dnsapi: Fix conflicts nameser.h with winerror.h.
[wine/gsoc_cpanel.git] / configure
blob700baca6cd6bd3fee54069dddd8a1afed4fae58e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d for Wine 0.9.15.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
48 rm -f conf$$.sh
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
66 IFS=" "" $as_nl"
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 done
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
138 /^X\/\(\/\/\)$/{
139 s//\1/
142 /^X\/\(\/\).*/{
143 s//\1/
146 s/.*/./; q'`
148 # CDPATH.
149 $as_unset CDPATH
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
163 as_func_success () {
164 as_func_return 0
166 as_func_failure () {
167 as_func_return 1
169 as_func_ret_success () {
170 return 0
172 as_func_ret_failure () {
173 return 1
176 exitcode=0
177 if as_func_success; then
179 else
180 exitcode=1
181 echo as_func_success failed.
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
189 if as_func_ret_success; then
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 else
204 exitcode=1
205 echo positional parameters were not saved.
208 test \$exitcode = 0) || { (exit 1); exit 1; }
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells which exist, to save several forks.
236 if test -f $as_shell &&
237 { ($as_shell) 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { $as_shell 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
273 (as_func_return () {
274 (exit $1)
276 as_func_success () {
277 as_func_return 0
279 as_func_failure () {
280 as_func_return 1
282 as_func_ret_success () {
283 return 0
285 as_func_ret_failure () {
286 return 1
289 exitcode=0
290 if as_func_success; then
292 else
293 exitcode=1
294 echo as_func_success failed.
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
302 if as_func_ret_success; then
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 else
317 exitcode=1
318 echo positional parameters were not saved.
321 test $exitcode = 0) || { (exit 1); exit 1; }
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329 _ASEOF
330 }; then
331 break
336 done
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
362 (eval "as_func_return () {
363 (exit \$1)
365 as_func_success () {
366 as_func_return 0
368 as_func_failure () {
369 as_func_return 1
371 as_func_ret_success () {
372 return 0
374 as_func_ret_failure () {
375 return 1
378 exitcode=0
379 if as_func_success; then
381 else
382 exitcode=1
383 echo as_func_success failed.
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
391 if as_func_ret_success; then
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 else
406 exitcode=1
407 echo positional parameters were not saved.
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
462 if (dirname -- /) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
476 ECHO_N='-n';;
477 esac
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
529 rm -f conf$$.file
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
559 # Identity of this package.
560 PACKAGE_NAME='Wine'
561 PACKAGE_TARNAME='wine'
562 PACKAGE_VERSION='0.9.15'
563 PACKAGE_STRING='Wine 0.9.15'
564 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 ac_unique_file="server/atom.c"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 WIN16_FILES
649 WIN16_INSTALL
650 SET_MAKE
652 CFLAGS
653 LDFLAGS
654 CPPFLAGS
655 ac_ct_CC
656 EXEEXT
657 OBJEXT
659 CXXFLAGS
660 ac_ct_CXX
661 CPPBIN
662 TOOLSDIR
663 XMKMF
665 X_CFLAGS
666 X_PRE_LIBS
667 X_LIBS
668 X_EXTRA_LIBS
670 LEXLIB
671 LEX_OUTPUT_ROOT
672 XLEX
673 BISON
675 ac_ct_AS
678 RANLIB
679 STRIP
680 WINDRES
681 LN_S
683 GREP
684 EGREP
685 LDCONFIG
686 INSTALL_PROGRAM
687 INSTALL_SCRIPT
688 INSTALL_DATA
689 LINT
690 LINTFLAGS
691 FONTFORGE
692 PKG_CONFIG
693 PRELINK
694 LIBPTHREAD
695 XLIB
696 XFILES
697 OPENGLFILES
698 GLU32FILES
699 OPENGL_LIBS
700 GLUT_LIBS
701 GLUT32FILES
702 NASLIBS
703 XML2LIBS
704 XML2INCL
705 XSLTLIBS
706 XSLTINCL
707 HALINCL
708 CURSESLIBS
709 sane_devel
710 SANELIBS
711 SANEINCL
712 gphoto2_devel
713 gphoto2port_devel
714 GPHOTO2LIBS
715 GPHOTO2INCL
716 ICULIBS
717 RESOLVLIBS
718 LCMSLIBS
719 LDAPLIBS
720 FREETYPELIBS
721 FREETYPEINCL
722 ft_devel
723 ft_devel2
724 FONTSSUBDIRS
725 ARTSCCONFIG
726 ARTSLIBS
727 ARTSINCL
728 ESDCONFIG
729 ESDLIBS
730 ESDINCL
731 ALSALIBS
732 AUDIOIOLIBS
733 EXTRACFLAGS
734 BUILTINFLAG
735 DLLEXT
736 DLLFLAGS
737 DLLIBS
738 LDSHARED
739 LDDLLFLAGS
740 LIBEXT
741 IMPLIBEXT
742 DLLTOOL
743 DLLWRAP
744 LDEXECFLAGS
745 LDEXERPATH
746 LDDLLRPATH
747 COREFOUNDATIONLIB
748 IOKITLIB
749 COREAUDIO
750 CROSSTEST
751 CROSSCC
752 CROSSWINDRES
753 LDPATH
754 CRTLIBS
755 SOCKETLIBS
756 MAIN_BINARY
757 EXTRA_BINARIES
759 LIBOBJS
760 LTLIBOBJS'
761 ac_subst_files='MAKE_RULES
762 MAKE_DLL_RULES
763 MAKE_IMPLIB_RULES
764 MAKE_TEST_RULES
765 MAKE_LIB_RULES
766 MAKE_PROG_RULES'
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CFLAGS
772 LDFLAGS
773 CPPFLAGS
775 CXXFLAGS
777 XMKMF
778 CPP'
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
786 cache_file=/dev/null
787 exec_prefix=NONE
788 no_create=
789 no_recursion=
790 prefix=NONE
791 program_prefix=NONE
792 program_suffix=NONE
793 program_transform_name=s,x,x,
794 silent=
795 site=
796 srcdir=
797 verbose=
798 x_includes=NONE
799 x_libraries=NONE
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir='${exec_prefix}/bin'
808 sbindir='${exec_prefix}/sbin'
809 libexecdir='${exec_prefix}/libexec'
810 datarootdir='${prefix}/share'
811 datadir='${datarootdir}'
812 sysconfdir='${prefix}/etc'
813 sharedstatedir='${prefix}/com'
814 localstatedir='${prefix}/var'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
827 ac_prev=
828 ac_dashdash=
829 for ac_option
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
847 ac_dashdash=yes ;;
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
866 --config-cache | -C)
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
888 eval enable_$ac_feature=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
907 eval enable_$ac_feature=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
1103 ac_package=`echo $ac_package| sed 's/-/_/g'`
1104 eval with_$ac_package=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/-/_/g'`
1113 eval with_$ac_package=no ;;
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134 Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 esac
1156 done
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
1164 # Be sure to have absolute directory names.
1165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
1170 eval ac_val=\$$ac_var
1171 case $ac_val in
1172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1174 esac
1175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
1177 done
1179 # There might be people who depend on the old broken behavior: `$host'
1180 # used to hold the argument of --host etc.
1181 # FIXME: To remove some day.
1182 build=$build_alias
1183 host=$host_alias
1184 target=$target_alias
1186 # FIXME: To remove some day.
1187 if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1197 ac_tool_prefix=
1198 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200 test "$silent" = yes && exec 6>/dev/null
1203 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204 ac_ls_di=`ls -di .` &&
1205 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
1218 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
1221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1222 echo X"$0" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1231 /^X\(\/\/\)$/{
1232 s//\1/
1235 /^X\(\/\).*/{
1236 s//\1/
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1244 else
1245 ac_srcdir_defaulted=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1250 { (exit 1); exit 1; }; }
1252 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1255 { (exit 1); exit 1; }; }
1256 pwd)`
1257 # When building in place, set srcdir=.
1258 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1261 # Remove unnecessary trailing slashes from srcdir.
1262 # Double slashes in file names in object file debugging info
1263 # mess up M-x gdb in Emacs.
1264 case $srcdir in
1265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266 esac
1267 for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 done
1275 # Report the --help message.
1277 if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
1280 cat <<_ACEOF
1281 \`configure' configures Wine 0.9.15 to adapt to many kinds of systems.
1283 Usage: $0 [OPTION]... [VAR=VALUE]...
1285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286 VAR=VALUE. See below for descriptions of some of the useful variables.
1288 Defaults for the options are specified in brackets.
1290 Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301 Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
1303 [$ac_default_prefix]
1304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 [PREFIX]
1307 By default, \`make install' will install all the files in
1308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310 for instance \`--prefix=\$HOME'.
1312 For better control, use the options below.
1314 Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
1318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
1334 _ACEOF
1336 cat <<\_ACEOF
1338 X features:
1339 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of Wine 0.9.15:";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-win16 do not include Win16 support
1358 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1359 binaries)
1361 Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --without-opengl do not use OpenGL
1365 --without-curses do not use curses
1366 --with-wine-tools=<dir> use Wine tools from directory <dir>
1367 --with-x use the X Window System
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CXX C++ compiler command
1377 CXXFLAGS C++ compiler flags
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1379 CPP C preprocessor
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to <wine-devel@winehq.org>.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d $ac_dir || continue
1393 ac_builddir=.
1395 case "$ac_dir" in
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405 esac
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1411 case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 esac
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f $ac_srcdir/configure.gnu; then
1430 echo &&
1431 $SHELL $ac_srcdir/configure.gnu --help=recursive
1432 elif test -f $ac_srcdir/configure; then
1433 echo &&
1434 $SHELL $ac_srcdir/configure --help=recursive
1435 else
1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1444 cat <<\_ACEOF
1445 Wine configure 0.9.15
1446 generated by GNU Autoconf 2.59d
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1452 _ACEOF
1453 exit
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1459 It was created by Wine $as_me 0.9.15, which was
1460 generated by GNU Autoconf 2.59d. Invocation command line was
1462 $ $0 $@
1464 _ACEOF
1465 exec 5>>config.log
1467 cat <<_ASUNAME
1468 ## --------- ##
1469 ## Platform. ##
1470 ## --------- ##
1472 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1484 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1485 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 _ASUNAME
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497 done
1498 IFS=$as_save_IFS
1500 } >&5
1502 cat >&5 <<_ACEOF
1505 ## ----------- ##
1506 ## Core tests. ##
1507 ## ----------- ##
1509 _ACEOF
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_configure_args=
1518 ac_configure_args0=
1519 ac_configure_args1=
1520 ac_sep=
1521 ac_must_keep_next=false
1522 for ac_pass in 1 2
1524 for ac_arg
1526 case $ac_arg in
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1530 continue ;;
1531 *\'*)
1532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1533 esac
1534 case $ac_pass in
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1540 else
1541 case $ac_arg in
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 esac
1550 -* ) ac_must_keep_next=true ;;
1551 esac
1553 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1554 # Get rid of the leading space.
1555 ac_sep=" "
1557 esac
1558 done
1559 done
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1571 echo
1573 cat <<\_ASBOX
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1577 _ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1592 esac ;;
1593 esac
1594 done
1595 (set) 2>&1 |
1596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1598 sed -n \
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 ;; #(
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1605 esac |
1606 sort
1608 echo
1610 cat <<\_ASBOX
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1614 _ASBOX
1615 echo
1616 for ac_var in $ac_subst_vars
1618 eval ac_val=\$$ac_var
1619 echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1632 eval ac_val=\$$ac_var
1633 echo "$ac_var='\''$ac_val'\''"
1634 done | sort
1635 echo
1638 if test -s confdefs.h; then
1639 cat <<\_ASBOX
1640 ## ----------- ##
1641 ## confdefs.h. ##
1642 ## ----------- ##
1643 _ASBOX
1644 echo
1645 cat confdefs.h
1646 echo
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1651 } >&5
1652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1654 exit $exit_status
1656 for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658 done
1659 ac_signal=0
1661 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1662 rm -f -r conftest* confdefs.h
1664 # Predefined preprocessor variables.
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_NAME "$PACKAGE_NAME"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_STRING "$PACKAGE_STRING"
1683 _ACEOF
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688 _ACEOF
1691 # Let the site file select an alternate cache file if it wants to.
1692 # Prefer explicitly selected file to automatically selected ones.
1693 if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695 elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697 else
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
1701 shift
1702 for ac_site_file
1704 if test -r "$ac_site_file"; then
1705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706 echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1708 . "$ac_site_file"
1710 done
1712 if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717 echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . $cache_file;;
1720 *) . ./$cache_file;;
1721 esac
1723 else
1724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725 echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1729 # Check that the precious variables saved in the cache have kept the same
1730 # value.
1731 ac_cache_corrupted=false
1732 for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752 echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754 echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1756 fi;;
1757 esac
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 esac
1769 done
1770 if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1802 ac_ext=c
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810 ac_config_headers="$ac_config_headers include/config.h"
1812 ac_aux_dir=
1813 for ac_dir in tools $srcdir/tools; do
1814 if test -f $ac_dir/install-sh; then
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/install-sh -c"
1817 break
1818 elif test -f $ac_dir/install.sh; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install.sh -c"
1821 break
1822 elif test -f $ac_dir/shtool; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/shtool install -c"
1825 break
1827 done
1828 if test -z "$ac_aux_dir"; then
1829 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1830 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1831 { (exit 1); exit 1; }; }
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1835 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1839 # Check whether --enable-win16 was given.
1840 if test "${enable_win16+set}" = set; then
1841 enableval=$enable_win16;
1844 # Check whether --enable-win64 was given.
1845 if test "${enable_win64+set}" = set; then
1846 enableval=$enable_win64;
1851 # Check whether --with-opengl was given.
1852 if test "${with_opengl+set}" = set; then
1853 withval=$with_opengl;
1857 # Check whether --with-curses was given.
1858 if test "${with_curses+set}" = set; then
1859 withval=$with_curses;
1863 # Check whether --with-wine-tools was given.
1864 if test "${with_wine_tools+set}" = set; then
1865 withval=$with_wine_tools;
1869 # Make sure we can run config.sub.
1870 $ac_config_sub sun4 >/dev/null 2>&1 ||
1871 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1872 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1873 { (exit 1); exit 1; }; }
1875 { echo "$as_me:$LINENO: checking build system type" >&5
1876 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1877 if test "${ac_cv_build+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 ac_build_alias=$build_alias
1881 test "x$ac_build_alias" = x &&
1882 ac_build_alias=`$ac_config_guess`
1883 test "x$ac_build_alias" = x &&
1884 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1885 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1886 { (exit 1); exit 1; }; }
1887 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1889 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1890 { (exit 1); exit 1; }; }
1893 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1894 echo "${ECHO_T}$ac_cv_build" >&6; }
1895 case $ac_cv_build in
1896 *-*-*) ;;
1897 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1898 echo "$as_me: error: invalid value of canonical build" >&2;}
1899 { (exit 1); exit 1; }; };;
1900 esac
1901 build=$ac_cv_build
1902 ac_save_IFS=$IFS; IFS='-'
1903 set x $ac_cv_build
1904 shift
1905 build_cpu=$1
1906 build_vendor=$2
1907 shift; shift
1908 # Remember, the first character of IFS is used to create $*,
1909 # except with old shells:
1910 build_os=$*
1911 IFS=$ac_save_IFS
1912 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1915 { echo "$as_me:$LINENO: checking host system type" >&5
1916 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_host+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test "x$host_alias" = x; then
1921 ac_cv_host=$ac_cv_build
1922 else
1923 ac_cv_host=`$ac_config_sub $host_alias` ||
1924 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
1925 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
1926 { (exit 1); exit 1; }; }
1930 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1931 echo "${ECHO_T}$ac_cv_host" >&6; }
1932 case $ac_cv_host in
1933 *-*-*) ;;
1934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1935 echo "$as_me: error: invalid value of canonical host" >&2;}
1936 { (exit 1); exit 1; }; };;
1937 esac
1938 host=$ac_cv_host
1939 ac_save_IFS=$IFS; IFS='-'
1940 set x $ac_cv_host
1941 shift
1942 host_cpu=$1
1943 host_vendor=$2
1944 shift; shift
1945 # Remember, the first character of IFS is used to create $*,
1946 # except with old shells:
1947 host_os=$*
1948 IFS=$ac_save_IFS
1949 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1952 case $host in
1953 x86_64*linux*)
1954 if test "x$enable_win64" != "xyes"
1955 then
1956 test -n "$CC" || CC="gcc -m32"
1957 test -n "$LD" || LD="ld -m elf_i386"
1958 test -n "$AS" || AS="as --32"
1959 host_cpu="i386"
1962 esac
1964 case $host_cpu in
1965 *i[3456789]86*)
1966 if test "x$enable_win16" != "xno"
1967 then
1968 enable_win16="yes"
1971 esac
1973 WIN16_FILES="\$(WIN16_FILES)"
1975 WIN16_INSTALL="\$(WIN16_INSTALL)"
1977 if test "x$enable_win16" != "xyes"
1978 then
1979 WIN16_FILES=""
1980 WIN16_INSTALL=""
1984 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1985 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1986 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1987 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990 cat >conftest.make <<\_ACEOF
1991 SHELL = /bin/sh
1992 all:
1993 @echo 'ac_maketemp=X"$(MAKE)"'
1994 _ACEOF
1995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1996 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1997 if test "$ac_maketemp" != X ; then
1998 eval ac_cv_prog_make_${ac_make}_set=yes
1999 else
2000 eval ac_cv_prog_make_${ac_make}_set=no
2002 rm -f conftest.make
2004 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2005 { echo "$as_me:$LINENO: result: yes" >&5
2006 echo "${ECHO_T}yes" >&6; }
2007 SET_MAKE=
2008 else
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 SET_MAKE="MAKE=${MAKE-make}"
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2021 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2041 done
2042 done
2043 IFS=$as_save_IFS
2047 CC=$ac_cv_prog_CC
2048 if test -n "$CC"; then
2049 { echo "$as_me:$LINENO: result: $CC" >&5
2050 echo "${ECHO_T}$CC" >&6; }
2051 else
2052 { echo "$as_me:$LINENO: result: no" >&5
2053 echo "${ECHO_T}no" >&6; }
2058 if test -z "$ac_cv_prog_CC"; then
2059 ac_ct_CC=$CC
2060 # Extract the first word of "gcc", so it can be a program name with args.
2061 set dummy gcc; ac_word=$2
2062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2077 ac_cv_prog_ac_ct_CC="gcc"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2081 done
2082 done
2083 IFS=$as_save_IFS
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6; }
2091 else
2092 { echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6; }
2096 if test "x$ac_ct_CC" = x; then
2097 CC=""
2098 else
2099 case $cross_compiling:$ac_tool_warned in
2100 yes:)
2101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2102 whose name does not start with the host triplet. If you think this
2103 configuration is useful to you, please write to autoconf@gnu.org." >&5
2104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2105 whose name does not start with the host triplet. If you think this
2106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2107 ac_tool_warned=yes ;;
2108 esac
2109 CC=$ac_ct_CC
2111 else
2112 CC="$ac_cv_prog_CC"
2115 if test -z "$CC"; then
2116 if test -n "$ac_tool_prefix"; then
2117 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2118 set dummy ${ac_tool_prefix}cc; ac_word=$2
2119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2121 if test "${ac_cv_prog_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124 if test -n "$CC"; then
2125 ac_cv_prog_CC="$CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2134 ac_cv_prog_CC="${ac_tool_prefix}cc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2138 done
2139 done
2140 IFS=$as_save_IFS
2144 CC=$ac_cv_prog_CC
2145 if test -n "$CC"; then
2146 { echo "$as_me:$LINENO: result: $CC" >&5
2147 echo "${ECHO_T}$CC" >&6; }
2148 else
2149 { echo "$as_me:$LINENO: result: no" >&5
2150 echo "${ECHO_T}no" >&6; }
2156 if test -z "$CC"; then
2157 # Extract the first word of "cc", so it can be a program name with args.
2158 set dummy cc; ac_word=$2
2159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 ac_prog_rejected=no
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
2174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2176 ac_prog_rejected=yes
2177 continue
2179 ac_cv_prog_CC="cc"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2183 done
2184 done
2185 IFS=$as_save_IFS
2187 if test $ac_prog_rejected = yes; then
2188 # We found a bogon in the path, so make sure we never use it.
2189 set dummy $ac_cv_prog_CC
2190 shift
2191 if test $# != 0; then
2192 # We chose a different compiler from the bogus one.
2193 # However, it has the same basename, so the bogon will be chosen
2194 # first if we set CC to just the basename; use the full file name.
2195 shift
2196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2201 CC=$ac_cv_prog_CC
2202 if test -n "$CC"; then
2203 { echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6; }
2205 else
2206 { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2212 if test -z "$CC"; then
2213 if test -n "$ac_tool_prefix"; then
2214 for ac_prog in cl.exe
2216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2237 done
2238 done
2239 IFS=$as_save_IFS
2243 CC=$ac_cv_prog_CC
2244 if test -n "$CC"; then
2245 { echo "$as_me:$LINENO: result: $CC" >&5
2246 echo "${ECHO_T}$CC" >&6; }
2247 else
2248 { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2253 test -n "$CC" && break
2254 done
2256 if test -z "$CC"; then
2257 ac_ct_CC=$CC
2258 for ac_prog in cl.exe
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 if test -n "$ac_ct_CC"; then
2268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2277 ac_cv_prog_ac_ct_CC="$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2281 done
2282 done
2283 IFS=$as_save_IFS
2287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288 if test -n "$ac_ct_CC"; then
2289 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290 echo "${ECHO_T}$ac_ct_CC" >&6; }
2291 else
2292 { echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6; }
2297 test -n "$ac_ct_CC" && break
2298 done
2300 if test "x$ac_ct_CC" = x; then
2301 CC=""
2302 else
2303 case $cross_compiling:$ac_tool_warned in
2304 yes:)
2305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2306 whose name does not start with the host triplet. If you think this
2307 configuration is useful to you, please write to autoconf@gnu.org." >&5
2308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2309 whose name does not start with the host triplet. If you think this
2310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2311 ac_tool_warned=yes ;;
2312 esac
2313 CC=$ac_ct_CC
2320 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: no acceptable C compiler found in \$PATH
2323 See \`config.log' for more details." >&2;}
2324 { (exit 1); exit 1; }; }
2326 # Provide some information about the compiler.
2327 echo "$as_me:$LINENO: checking for C compiler version" >&5
2328 ac_compiler=`set X $ac_compile; echo $2`
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2330 (eval $ac_compiler --version >&5) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }
2334 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2335 (eval $ac_compiler -v >&5) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }
2339 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2340 (eval $ac_compiler -V >&5) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }
2346 # List of possible output files. We want to start from the most likely,
2347 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2348 # also for foo.exe. b.out is created by i960 compilers.
2349 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2350 # But we are not allowed to rm a.*, and we do not want always remove
2351 # conftest.*, so we will list them literally, when appropriate.
2352 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2354 # The IRIX 6 linker writes into existing files which may not be
2355 # executable, retaining their permissions. Remove them first so a
2356 # subsequent execution test works.
2357 rm -f $ac_outfiles conftest.*
2359 cat >conftest.$ac_ext <<_ACEOF
2360 /* confdefs.h. */
2361 _ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2367 main ()
2371 return 0;
2373 _ACEOF
2375 ac_clean_files_save=$ac_clean_files
2376 ac_clean_files="$ac_clean_files $ac_outfiles"
2378 # The following tests should remove their output except files matching conftest.*.
2379 # Try to create an executable without -o first, disregard a.out.
2380 # It will help us diagnose broken compilers, and finding out an intuition
2381 # of exeext.
2382 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2383 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2384 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2387 (eval $ac_link_default) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 for ac_file in $ac_outfiles a.* conftest.* NO
2393 test -f "$ac_file" || continue
2394 case $ac_file in
2395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2396 * ) break;;
2397 esac
2398 done
2399 if test "$ac_file" = NO; then
2400 { { echo "$as_me:$LINENO: error: no output file found
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: no output file found
2403 See \`config.log' for more details." >&2;}
2404 { (exit 1); exit 1; }; }
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&2;}
2416 { (exit 77); exit 77; }; }
2419 { echo "$as_me:$LINENO: result: $ac_file" >&5
2420 echo "${ECHO_T}$ac_file" >&6; }
2421 # Check that the compiler produces executables we can run. If not, either
2422 # the compiler is broken, or we cross compile.
2423 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2424 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2425 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2426 # If not cross compiling, check that we can run a simple program.
2427 if test "$cross_compiling" != yes; then
2428 if { ac_try='./$ac_file'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 cross_compiling=no
2435 else
2436 if test "$cross_compiling" = maybe; then
2437 cross_compiling=yes
2438 else
2439 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: cannot run C compiled programs.
2443 If you meant to cross compile, use \`--host'.
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2449 { echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6; }
2452 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2453 rm -f $ac_outfiles $ac_file
2455 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2456 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2457 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2458 echo "${ECHO_T}$cross_compiling" >&6; }
2460 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2461 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2462 if test "${ac_cv_exeext+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2466 (eval $ac_link) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2471 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2473 for ac_file in conftest.exe conftest conftest.* NO; do
2474 test -f "$ac_file" || continue
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 break;;
2479 * ) break;;
2480 esac
2481 done
2482 if test "$ac_file" = NO; then
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of executables: no output file found
2486 See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2490 # Clean up; list also $ac_file, in case it matched conftest.*.
2491 rm -f $ac_outfiles $ac_file
2493 else
2494 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2504 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2506 EXEEXT=$ac_cv_exeext
2507 ac_exeext=$EXEEXT
2510 ac_clean_files=$ac_clean_files_save
2512 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2513 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2514 if test "${ac_cv_objext+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 rm -f conftest.o conftest.obj
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; then
2523 for ac_file in conftest.o conftest.obj conftest.*; do
2524 test -f "$ac_file" || continue;
2525 case $ac_file in
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2528 break;;
2529 esac
2530 done
2531 else
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2538 See \`config.log' for more details." >&2;}
2539 { (exit 1); exit 1; }; }
2543 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2544 echo "${ECHO_T}$ac_cv_objext" >&6; }
2545 OBJEXT=$ac_cv_objext
2546 ac_objext=$OBJEXT
2549 rm -f conftest.*
2550 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2551 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2552 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 cat >conftest.$ac_ext <<_ACEOF
2556 /* confdefs.h. */
2557 _ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2563 main ()
2565 #ifndef __GNUC__
2566 choke me
2567 #endif
2570 return 0;
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_compiler_gnu=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_compiler_gnu=no
2602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2606 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 ac_save_c_werror_flag=$ac_c_werror_flag
2617 ac_c_werror_flag=yes
2618 ac_cv_prog_cc_g=no
2619 CFLAGS="-g"
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2628 main ()
2632 return 0;
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652 (eval $ac_try) 2>&5
2653 ac_status=$?
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2656 ac_cv_prog_cc_g=yes
2657 else
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 CFLAGS=""
2662 cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2670 main ()
2674 return 0;
2676 _ACEOF
2677 rm -f conftest.$ac_objext
2678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2699 else
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2703 ac_c_werror_flag=$ac_save_c_werror_flag
2704 CFLAGS="-g"
2705 cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h. */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h. */
2713 main ()
2717 return 0;
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_prog_cc_g=yes
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2758 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2760 if test "$ac_test_CFLAGS" = set; then
2761 CFLAGS=$ac_save_CFLAGS
2762 elif test $ac_cv_prog_cc_g = yes; then
2763 if test "$GCC" = yes; then
2764 CFLAGS="-g -O2"
2765 else
2766 CFLAGS="-g"
2768 else
2769 if test "$GCC" = yes; then
2770 CFLAGS="-O2"
2771 else
2772 CFLAGS=
2775 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2776 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_c89+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780 ac_cv_prog_cc_c89=no
2781 ac_save_CC=$CC
2782 cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h. */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2788 #include <stdarg.h>
2789 #include <stdio.h>
2790 #include <sys/types.h>
2791 #include <sys/stat.h>
2792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2793 struct buf { int x; };
2794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795 static char *e (p, i)
2796 char **p;
2797 int i;
2799 return p[i];
2801 static char *f (char * (*g) (char **, int), char **p, ...)
2803 char *s;
2804 va_list v;
2805 va_start (v,p);
2806 s = g (p, va_arg (v,int));
2807 va_end (v);
2808 return s;
2811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2812 function prototypes and stuff, but not '\xHH' hex character constants.
2813 These don't provoke an error unfortunately, instead are silently treated
2814 as 'x'. The following induces an error, until -std is added to get
2815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2816 array size at least. It's necessary to write '\x00'==0 to get something
2817 that's true only with -std. */
2818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2820 int test (int i, double x);
2821 struct s1 {int (*f) (int a);};
2822 struct s2 {int (*f) (double a);};
2823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2824 int argc;
2825 char **argv;
2827 main ()
2829 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2831 return 0;
2833 _ACEOF
2834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2837 CC="$ac_save_CC $ac_arg"
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2841 ac_status=$?
2842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_prog_cc_c89=$ac_arg
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2867 rm -f conftest.err conftest.$ac_objext
2868 test "x$ac_cv_prog_cc_c89" != "xno" && break
2869 done
2870 rm -f conftest.$ac_ext
2871 CC=$ac_save_CC
2874 # AC_CACHE_VAL
2875 case "x$ac_cv_prog_cc_c89" in
2877 { echo "$as_me:$LINENO: result: none needed" >&5
2878 echo "${ECHO_T}none needed" >&6; } ;;
2879 xno)
2880 { echo "$as_me:$LINENO: result: unsupported" >&5
2881 echo "${ECHO_T}unsupported" >&6; } ;;
2883 CC="$CC $ac_cv_prog_cc_c89"
2884 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2885 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2886 esac
2889 ac_ext=c
2890 ac_cpp='$CPP $CPPFLAGS'
2891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895 ac_ext=cpp
2896 ac_cpp='$CXXCPP $CPPFLAGS'
2897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2900 if test -z "$CXX"; then
2901 if test -n "$CCC"; then
2902 CXX=$CCC
2903 else
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_CXX+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 else
2914 if test -n "$CXX"; then
2915 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2930 IFS=$as_save_IFS
2934 CXX=$ac_cv_prog_CXX
2935 if test -n "$CXX"; then
2936 { echo "$as_me:$LINENO: result: $CXX" >&5
2937 echo "${ECHO_T}$CXX" >&6; }
2938 else
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2944 test -n "$CXX" && break
2945 done
2947 if test -z "$CXX"; then
2948 ac_ct_CXX=$CXX
2949 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2955 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 if test -n "$ac_ct_CXX"; then
2959 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CXX="$ac_prog"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2979 if test -n "$ac_ct_CXX"; then
2980 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2981 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2982 else
2983 { echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6; }
2988 test -n "$ac_ct_CXX" && break
2989 done
2991 if test "x$ac_ct_CXX" = x; then
2992 CXX="g++"
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&5
2999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3000 whose name does not start with the host triplet. If you think this
3001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CXX=$ac_ct_CXX
3010 # Provide some information about the compiler.
3011 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3012 ac_compiler=`set X $ac_compile; echo $2`
3013 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3014 (eval $ac_compiler --version >&5) 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
3018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
3019 (eval $ac_compiler -v >&5) 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
3024 (eval $ac_compiler -V >&5) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3029 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3030 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3031 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034 cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h. */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3042 main ()
3044 #ifndef __GNUC__
3045 choke me
3046 #endif
3049 return 0;
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 (eval $ac_try) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 (eval $ac_try) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 ac_compiler_gnu=yes
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 ac_compiler_gnu=no
3081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3085 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3086 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3087 GXX=`test $ac_compiler_gnu = yes && echo yes`
3088 ac_test_CXXFLAGS=${CXXFLAGS+set}
3089 ac_save_CXXFLAGS=$CXXFLAGS
3090 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3091 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_cxx_g+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3096 ac_cxx_werror_flag=yes
3097 ac_cv_prog_cxx_g=no
3098 CXXFLAGS="-g"
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3107 main ()
3111 return 0;
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116 (eval $ac_compile) 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 ac_cv_prog_cxx_g=yes
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 CXXFLAGS=""
3141 cat >conftest.$ac_ext <<_ACEOF
3142 /* confdefs.h. */
3143 _ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 CXXFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3192 main ()
3196 return 0;
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 ac_cv_prog_cxx_g=yes
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3239 if test "$ac_test_CXXFLAGS" = set; then
3240 CXXFLAGS=$ac_save_CXXFLAGS
3241 elif test $ac_cv_prog_cxx_g = yes; then
3242 if test "$GXX" = yes; then
3243 CXXFLAGS="-g -O2"
3244 else
3245 CXXFLAGS="-g"
3247 else
3248 if test "$GXX" = yes; then
3249 CXXFLAGS="-O2"
3250 else
3251 CXXFLAGS=
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3265 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 if test -n "$CPPBIN"; then
3269 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3282 done
3283 done
3284 IFS=$as_save_IFS
3288 CPPBIN=$ac_cv_prog_CPPBIN
3289 if test -n "$CPPBIN"; then
3290 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3291 echo "${ECHO_T}$CPPBIN" >&6; }
3292 else
3293 { echo "$as_me:$LINENO: result: no" >&5
3294 echo "${ECHO_T}no" >&6; }
3299 if test -z "$ac_cv_prog_CPPBIN"; then
3300 ac_ct_CPPBIN=$CPPBIN
3301 # Extract the first word of "cpp", so it can be a program name with args.
3302 set dummy cpp; ac_word=$2
3303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 if test -n "$ac_ct_CPPBIN"; then
3309 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CPPBIN="cpp"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3329 if test -n "$ac_ct_CPPBIN"; then
3330 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3331 echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3332 else
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3337 if test "x$ac_ct_CPPBIN" = x; then
3338 CPPBIN="cpp"
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3343 whose name does not start with the host triplet. If you think this
3344 configuration is useful to you, please write to autoconf@gnu.org." >&5
3345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3346 whose name does not start with the host triplet. If you think this
3347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3348 ac_tool_warned=yes ;;
3349 esac
3350 CPPBIN=$ac_ct_CPPBIN
3352 else
3353 CPPBIN="$ac_cv_prog_CPPBIN"
3357 { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3358 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
3359 if test "${wine_cv_toolsdir+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 if test -z "$with_wine_tools"; then
3363 if test "$cross_compiling" = "yes"; then
3364 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3365 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3366 { (exit 1); exit 1; }; }
3367 else
3368 wine_cv_toolsdir="\$(TOPOBJDIR)"
3370 elif test -d "$with_wine_tools/tools/winebuild"; then
3371 case $with_wine_tools in
3372 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3373 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3374 esac
3375 else
3376 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3377 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3378 { (exit 1); exit 1; }; }
3381 { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3382 echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
3383 TOOLSDIR=$wine_cv_toolsdir
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425 Syntax error
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3438 else
3439 ac_cpp_err=
3441 else
3442 ac_cpp_err=yes
3444 if test -z "$ac_cpp_err"; then
3446 else
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3450 # Broken: fails on valid input.
3451 continue
3454 rm -f conftest.err conftest.$ac_ext
3456 # OK, works on sane cases. Now check whether nonexistent headers
3457 # can be detected and how.
3458 cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h. */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 #include <ac_nonexistent.h>
3465 _ACEOF
3466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
3476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477 else
3478 ac_cpp_err=
3480 else
3481 ac_cpp_err=yes
3483 if test -z "$ac_cpp_err"; then
3484 # Broken: success on invalid input.
3485 continue
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 # Passes both tests.
3491 ac_preproc_ok=:
3492 break
3495 rm -f conftest.err conftest.$ac_ext
3497 done
3498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499 rm -f conftest.err conftest.$ac_ext
3500 if $ac_preproc_ok; then
3501 break
3504 done
3505 ac_cv_prog_CPP=$CPP
3508 CPP=$ac_cv_prog_CPP
3509 else
3510 ac_cv_prog_CPP=$CPP
3512 { echo "$as_me:$LINENO: result: $CPP" >&5
3513 echo "${ECHO_T}$CPP" >&6; }
3514 ac_preproc_ok=false
3515 for ac_c_preproc_warn_flag in '' yes
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520 # <limits.h> exists even on freestanding compilers.
3521 # On the NeXT, cc -E runs the code through the compiler's parser,
3522 # not just through cpp. "Syntax error" is here to catch this case.
3523 cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h. */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3529 #ifdef __STDC__
3530 # include <limits.h>
3531 #else
3532 # include <assert.h>
3533 #endif
3534 Syntax error
3535 _ACEOF
3536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3547 else
3548 ac_cpp_err=
3550 else
3551 ac_cpp_err=yes
3553 if test -z "$ac_cpp_err"; then
3555 else
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 # Broken: fails on valid input.
3560 continue
3563 rm -f conftest.err conftest.$ac_ext
3565 # OK, works on sane cases. Now check whether nonexistent headers
3566 # can be detected and how.
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3574 _ACEOF
3575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } >/dev/null; then
3583 if test -s conftest.err; then
3584 ac_cpp_err=$ac_c_preproc_warn_flag
3585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 else
3587 ac_cpp_err=
3589 else
3590 ac_cpp_err=yes
3592 if test -z "$ac_cpp_err"; then
3593 # Broken: success on invalid input.
3594 continue
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 # Passes both tests.
3600 ac_preproc_ok=:
3601 break
3604 rm -f conftest.err conftest.$ac_ext
3606 done
3607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3608 rm -f conftest.err conftest.$ac_ext
3609 if $ac_preproc_ok; then
3611 else
3612 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details." >&5
3614 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3615 See \`config.log' for more details." >&2;}
3616 { (exit 1); exit 1; }; }
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 if test "x$ac_path_x_has_been_run" != xyes; then
3628 { echo "$as_me:$LINENO: checking for X" >&5
3629 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3631 ac_path_x_has_been_run=yes
3633 # Check whether --with-x was given.
3634 if test "${with_x+set}" = set; then
3635 withval=$with_x;
3638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3639 if test "x$with_x" = xno; then
3640 # The user explicitly disabled X.
3641 have_x=disabled
3642 else
3643 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3644 # Both variables are already set.
3645 have_x=yes
3646 else
3647 if test "${ac_cv_have_x+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 # One or both of the vars are not set, and there is no cached value.
3651 ac_x_includes=no ac_x_libraries=no
3652 rm -f -r conftest.dir
3653 if mkdir conftest.dir; then
3654 cd conftest.dir
3655 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3656 cat >Imakefile <<'_ACEOF'
3657 acfindx:
3658 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3659 _ACEOF
3660 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3662 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3663 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3664 for ac_extension in a so sl; do
3665 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3666 test -f $ac_im_libdir/libX11.$ac_extension; then
3667 ac_im_usrlibdir=$ac_im_libdir; break
3669 done
3670 # Screen out bogus values from the imake configuration. They are
3671 # bogus both because they are the default anyway, and because
3672 # using them would break gcc on systems where it needs fixed includes.
3673 case $ac_im_incroot in
3674 /usr/include) ac_x_includes= ;;
3675 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3676 esac
3677 case $ac_im_usrlibdir in
3678 /usr/lib | /lib) ;;
3679 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3680 esac
3682 cd ..
3683 rm -f -r conftest.dir
3686 # Standard set of common directories for X headers.
3687 # Check X11 before X11Rn because it is often a symlink to the current release.
3688 ac_x_header_dirs='
3689 /usr/X11/include
3690 /usr/X11R6/include
3691 /usr/X11R5/include
3692 /usr/X11R4/include
3694 /usr/include/X11
3695 /usr/include/X11R6
3696 /usr/include/X11R5
3697 /usr/include/X11R4
3699 /usr/local/X11/include
3700 /usr/local/X11R6/include
3701 /usr/local/X11R5/include
3702 /usr/local/X11R4/include
3704 /usr/local/include/X11
3705 /usr/local/include/X11R6
3706 /usr/local/include/X11R5
3707 /usr/local/include/X11R4
3709 /usr/X386/include
3710 /usr/x386/include
3711 /usr/XFree86/include/X11
3713 /usr/include
3714 /usr/local/include
3715 /usr/unsupported/include
3716 /usr/athena/include
3717 /usr/local/x11r5/include
3718 /usr/lpp/Xamples/include
3720 /usr/openwin/include
3721 /usr/openwin/share/include'
3723 if test "$ac_x_includes" = no; then
3724 # Guess where to find include files, by looking for Xlib.h.
3725 # First, try using that file with no special directory specified.
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732 #include <X11/Xlib.h.h>
3733 _ACEOF
3734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } >/dev/null; then
3742 if test -s conftest.err; then
3743 ac_cpp_err=$ac_c_preproc_warn_flag
3744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3745 else
3746 ac_cpp_err=
3748 else
3749 ac_cpp_err=yes
3751 if test -z "$ac_cpp_err"; then
3752 # We can compile using X headers with no special include directory.
3753 ac_x_includes=
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 for ac_dir in $ac_x_header_dirs; do
3759 if test -r "$ac_dir/X11/Xlib.h"; then
3760 ac_x_includes=$ac_dir
3761 break
3763 done
3766 rm -f conftest.err conftest.$ac_ext
3767 fi # $ac_x_includes = no
3769 if test "$ac_x_libraries" = no; then
3770 # Check for the libraries.
3771 # See if we find them without any special options.
3772 # Don't add to $LIBS permanently.
3773 ac_save_LIBS=$LIBS
3774 LIBS="-lXt $LIBS"
3775 cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h. */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <X11/Xlib.h>
3783 main ()
3785 XrmInitialize ()
3787 return 0;
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 LIBS=$ac_save_LIBS
3812 # We can link X programs with no special library path.
3813 ac_x_libraries=
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 LIBS=$ac_save_LIBS
3819 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3821 # Don't even attempt the hair of trying to link an X program!
3822 for ac_extension in a so sl; do
3823 if test -r $ac_dir/libX11.$ac_extension; then
3824 ac_x_libraries=$ac_dir
3825 break 2
3827 done
3828 done
3831 rm -f conftest.err conftest.$ac_objext \
3832 conftest$ac_exeext conftest.$ac_ext
3833 fi # $ac_x_libraries = no
3835 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3836 # Didn't find X anywhere. Cache the known absence of X.
3837 ac_cv_have_x="have_x=no"
3838 else
3839 # Record where we found X for the cache.
3840 ac_cv_have_x="have_x=yes \
3841 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3846 eval "$ac_cv_have_x"
3847 fi # $with_x != no
3849 if test "$have_x" != yes; then
3850 { echo "$as_me:$LINENO: result: $have_x" >&5
3851 echo "${ECHO_T}$have_x" >&6; }
3852 no_x=yes
3853 else
3854 # If each of the values was on the command line, it overrides each guess.
3855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3857 # Update the cache value to reflect the command line values.
3858 ac_cv_have_x="have_x=yes \
3859 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3860 # It might be that x_includes is empty (headers are found in the
3861 # standard search path. Then output the corresponding message
3862 ac_out_x_includes=$x_includes
3863 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3864 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3865 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
3869 if test "$no_x" = yes; then
3870 # Not all programs may use this symbol, but it does not hurt to define it.
3872 cat >>confdefs.h <<\_ACEOF
3873 #define X_DISPLAY_MISSING 1
3874 _ACEOF
3876 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3877 else
3878 if test -n "$x_includes"; then
3879 X_CFLAGS="$X_CFLAGS -I$x_includes"
3882 # It would also be nice to do this for all -L options, not just this one.
3883 if test -n "$x_libraries"; then
3884 X_LIBS="$X_LIBS -L$x_libraries"
3885 # For Solaris; some versions of Sun CC require a space after -R and
3886 # others require no space. Words are not sufficient . . . .
3887 case `(uname -sr) 2>/dev/null` in
3888 "SunOS 5"*)
3889 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3890 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3891 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h. */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext conftest$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } &&
3916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest$ac_exeext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 ac_R_nospace=yes
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 ac_R_nospace=no
3936 rm -f conftest.err conftest.$ac_objext \
3937 conftest$ac_exeext conftest.$ac_ext
3938 if test $ac_R_nospace = yes; then
3939 { echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6; }
3941 X_LIBS="$X_LIBS -R$x_libraries"
3942 else
3943 LIBS="$ac_xsave_LIBS -R $x_libraries"
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3952 main ()
3956 return 0;
3958 _ACEOF
3959 rm -f conftest.$ac_objext conftest$ac_exeext
3960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3961 (eval $ac_link) 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest$ac_exeext'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 ac_R_space=yes
3981 else
3982 echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3985 ac_R_space=no
3988 rm -f conftest.err conftest.$ac_objext \
3989 conftest$ac_exeext conftest.$ac_ext
3990 if test $ac_R_space = yes; then
3991 { echo "$as_me:$LINENO: result: yes" >&5
3992 echo "${ECHO_T}yes" >&6; }
3993 X_LIBS="$X_LIBS -R $x_libraries"
3994 else
3995 { echo "$as_me:$LINENO: result: neither works" >&5
3996 echo "${ECHO_T}neither works" >&6; }
3999 LIBS=$ac_xsave_LIBS
4000 esac
4003 # Check for system-dependent libraries X programs must link with.
4004 # Do this before checking for the system-independent R6 libraries
4005 # (-lICE), since we may need -lsocket or whatever for X linking.
4007 if test "$ISC" = yes; then
4008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4009 else
4010 # Martyn Johnson says this is needed for Ultrix, if the X
4011 # libraries were built with DECnet support. And Karl Berry says
4012 # the Alpha needs dnet_stub (dnet does not exist).
4013 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4021 /* Override any GCC internal prototype to avoid an error.
4022 Use char because int might match the return type of a GCC
4023 builtin and then its argument prototype would still apply. */
4024 #ifdef __cplusplus
4025 extern "C"
4026 #endif
4027 char XOpenDisplay ();
4029 main ()
4031 return XOpenDisplay ();
4033 return 0;
4035 _ACEOF
4036 rm -f conftest.$ac_objext conftest$ac_exeext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038 (eval $ac_link) 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
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
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4058 else
4059 echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4062 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4063 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4064 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 ac_check_lib_save_LIBS=$LIBS
4068 LIBS="-ldnet $LIBS"
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4076 /* Override any GCC internal prototype to avoid an error.
4077 Use char because int might match the return type of a GCC
4078 builtin and then its argument prototype would still apply. */
4079 #ifdef __cplusplus
4080 extern "C"
4081 #endif
4082 char dnet_ntoa ();
4084 main ()
4086 return dnet_ntoa ();
4088 return 0;
4090 _ACEOF
4091 rm -f conftest.$ac_objext conftest$ac_exeext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4093 (eval $ac_link) 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest$ac_exeext'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; }; then
4112 ac_cv_lib_dnet_dnet_ntoa=yes
4113 else
4114 echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4117 ac_cv_lib_dnet_dnet_ntoa=no
4120 rm -f conftest.err conftest.$ac_objext \
4121 conftest$ac_exeext conftest.$ac_ext
4122 LIBS=$ac_check_lib_save_LIBS
4124 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4125 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4126 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4127 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4130 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4131 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4132 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4133 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 ac_check_lib_save_LIBS=$LIBS
4137 LIBS="-ldnet_stub $LIBS"
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4145 /* Override any GCC internal prototype to avoid an error.
4146 Use char because int might match the return type of a GCC
4147 builtin and then its argument prototype would still apply. */
4148 #ifdef __cplusplus
4149 extern "C"
4150 #endif
4151 char dnet_ntoa ();
4153 main ()
4155 return dnet_ntoa ();
4157 return 0;
4159 _ACEOF
4160 rm -f conftest.$ac_objext conftest$ac_exeext
4161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4162 (eval $ac_link) 2>conftest.er1
4163 ac_status=$?
4164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest$ac_exeext'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 (eval $ac_try) 2>&5
4178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4182 else
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4186 ac_cv_lib_dnet_stub_dnet_ntoa=no
4189 rm -f conftest.err conftest.$ac_objext \
4190 conftest$ac_exeext conftest.$ac_ext
4191 LIBS=$ac_check_lib_save_LIBS
4193 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4194 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4195 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4202 rm -f conftest.err conftest.$ac_objext \
4203 conftest$ac_exeext conftest.$ac_ext
4204 LIBS="$ac_xsave_LIBS"
4206 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4207 # to get the SysV transport functions.
4208 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4209 # needs -lnsl.
4210 # The nsl library prevents programs from opening the X display
4211 # on Irix 5.2, according to T.E. Dickey.
4212 # The functions gethostbyname, getservbyname, and inet_addr are
4213 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4214 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4215 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4216 if test "${ac_cv_func_gethostbyname+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4227 #define gethostbyname innocuous_gethostbyname
4229 /* System header to define __stub macros and hopefully few prototypes,
4230 which can conflict with char gethostbyname (); below.
4231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 <limits.h> exists even on freestanding compilers. */
4234 #ifdef __STDC__
4235 # include <limits.h>
4236 #else
4237 # include <assert.h>
4238 #endif
4240 #undef gethostbyname
4242 /* Override any GCC internal prototype to avoid an error.
4243 Use char because int might match the return type of a GCC
4244 builtin and then its argument prototype would still apply. */
4245 #ifdef __cplusplus
4246 extern "C"
4247 #endif
4248 char gethostbyname ();
4249 /* The GNU C library defines this for functions which it implements
4250 to always fail with ENOSYS. Some functions are actually named
4251 something starting with __ and the normal name is an alias. */
4252 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4253 choke me
4254 #endif
4257 main ()
4259 return gethostbyname ();
4261 return 0;
4263 _ACEOF
4264 rm -f conftest.$ac_objext conftest$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>conftest.er1
4267 ac_status=$?
4268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } &&
4273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest$ac_exeext'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_func_gethostbyname=yes
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ac_cv_func_gethostbyname=no
4293 rm -f conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
4296 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4297 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4299 if test $ac_cv_func_gethostbyname = no; then
4300 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4301 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4302 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 ac_check_lib_save_LIBS=$LIBS
4306 LIBS="-lnsl $LIBS"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4314 /* Override any GCC internal prototype to avoid an error.
4315 Use char because int might match the return type of a GCC
4316 builtin and then its argument prototype would still apply. */
4317 #ifdef __cplusplus
4318 extern "C"
4319 #endif
4320 char gethostbyname ();
4322 main ()
4324 return gethostbyname ();
4326 return 0;
4328 _ACEOF
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4331 (eval $ac_link) 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try='test -s conftest$ac_exeext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 (eval $ac_try) 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_cv_lib_nsl_gethostbyname=yes
4351 else
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 ac_cv_lib_nsl_gethostbyname=no
4358 rm -f conftest.err conftest.$ac_objext \
4359 conftest$ac_exeext conftest.$ac_ext
4360 LIBS=$ac_check_lib_save_LIBS
4362 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4363 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4364 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4368 if test $ac_cv_lib_nsl_gethostbyname = no; then
4369 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4370 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4371 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 ac_check_lib_save_LIBS=$LIBS
4375 LIBS="-lbsd $LIBS"
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4383 /* Override any GCC internal prototype to avoid an error.
4384 Use char because int might match the return type of a GCC
4385 builtin and then its argument prototype would still apply. */
4386 #ifdef __cplusplus
4387 extern "C"
4388 #endif
4389 char gethostbyname ();
4391 main ()
4393 return gethostbyname ();
4395 return 0;
4397 _ACEOF
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400 (eval $ac_link) 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest$ac_exeext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 ac_cv_lib_bsd_gethostbyname=yes
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 ac_cv_lib_bsd_gethostbyname=no
4427 rm -f conftest.err conftest.$ac_objext \
4428 conftest$ac_exeext conftest.$ac_ext
4429 LIBS=$ac_check_lib_save_LIBS
4431 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4432 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4433 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4441 # socket/setsockopt and other routines are undefined under SCO ODT
4442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4443 # on later versions), says Simon Leinen: it contains gethostby*
4444 # variants that don't use the name server (or something). -lsocket
4445 # must be given before -lnsl if both are needed. We assume that
4446 # if connect needs -lnsl, so does gethostbyname.
4447 { echo "$as_me:$LINENO: checking for connect" >&5
4448 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4449 if test "${ac_cv_func_connect+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4460 #define connect innocuous_connect
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char connect (); below.
4464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 <limits.h> exists even on freestanding compilers. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4473 #undef connect
4475 /* Override any GCC internal prototype to avoid an error.
4476 Use char because int might match the return type of a GCC
4477 builtin and then its argument prototype would still apply. */
4478 #ifdef __cplusplus
4479 extern "C"
4480 #endif
4481 char connect ();
4482 /* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
4485 #if defined __stub_connect || defined __stub___connect
4486 choke me
4487 #endif
4490 main ()
4492 return connect ();
4494 return 0;
4496 _ACEOF
4497 rm -f conftest.$ac_objext conftest$ac_exeext
4498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4499 (eval $ac_link) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
4506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_func_connect=yes
4519 else
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 ac_cv_func_connect=no
4526 rm -f conftest.err conftest.$ac_objext \
4527 conftest$ac_exeext conftest.$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4530 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4532 if test $ac_cv_func_connect = no; then
4533 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4534 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4535 if test "${ac_cv_lib_socket_connect+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538 ac_check_lib_save_LIBS=$LIBS
4539 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4540 cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h. */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4550 #ifdef __cplusplus
4551 extern "C"
4552 #endif
4553 char connect ();
4555 main ()
4557 return connect ();
4559 return 0;
4561 _ACEOF
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>conftest.er1
4565 ac_status=$?
4566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest$ac_exeext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_cv_lib_socket_connect=yes
4584 else
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_lib_socket_connect=no
4591 rm -f conftest.err conftest.$ac_objext \
4592 conftest$ac_exeext conftest.$ac_ext
4593 LIBS=$ac_check_lib_save_LIBS
4595 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4596 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4597 if test $ac_cv_lib_socket_connect = yes; then
4598 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4603 # Guillermo Gomez says -lposix is necessary on A/UX.
4604 { echo "$as_me:$LINENO: checking for remove" >&5
4605 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4606 if test "${ac_cv_func_remove+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h. */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4615 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4617 #define remove innocuous_remove
4619 /* System header to define __stub macros and hopefully few prototypes,
4620 which can conflict with char remove (); below.
4621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4622 <limits.h> exists even on freestanding compilers. */
4624 #ifdef __STDC__
4625 # include <limits.h>
4626 #else
4627 # include <assert.h>
4628 #endif
4630 #undef remove
4632 /* Override any GCC internal prototype to avoid an error.
4633 Use char because int might match the return type of a GCC
4634 builtin and then its argument prototype would still apply. */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 char remove ();
4639 /* The GNU C library defines this for functions which it implements
4640 to always fail with ENOSYS. Some functions are actually named
4641 something starting with __ and the normal name is an alias. */
4642 #if defined __stub_remove || defined __stub___remove
4643 choke me
4644 #endif
4647 main ()
4649 return remove ();
4651 return 0;
4653 _ACEOF
4654 rm -f conftest.$ac_objext conftest$ac_exeext
4655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4656 (eval $ac_link) 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
4663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_func_remove=yes
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4680 ac_cv_func_remove=no
4683 rm -f conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
4686 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4687 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4689 if test $ac_cv_func_remove = no; then
4690 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4691 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4692 if test "${ac_cv_lib_posix_remove+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 ac_check_lib_save_LIBS=$LIBS
4696 LIBS="-lposix $LIBS"
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4704 /* Override any GCC internal prototype to avoid an error.
4705 Use char because int might match the return type of a GCC
4706 builtin and then its argument prototype would still apply. */
4707 #ifdef __cplusplus
4708 extern "C"
4709 #endif
4710 char remove ();
4712 main ()
4714 return remove ();
4716 return 0;
4718 _ACEOF
4719 rm -f conftest.$ac_objext conftest$ac_exeext
4720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4721 (eval $ac_link) 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4740 ac_cv_lib_posix_remove=yes
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_cv_lib_posix_remove=no
4748 rm -f conftest.err conftest.$ac_objext \
4749 conftest$ac_exeext conftest.$ac_ext
4750 LIBS=$ac_check_lib_save_LIBS
4752 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4753 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4754 if test $ac_cv_lib_posix_remove = yes; then
4755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4760 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4761 { echo "$as_me:$LINENO: checking for shmat" >&5
4762 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4763 if test "${ac_cv_func_shmat+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4774 #define shmat innocuous_shmat
4776 /* System header to define __stub macros and hopefully few prototypes,
4777 which can conflict with char shmat (); below.
4778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779 <limits.h> exists even on freestanding compilers. */
4781 #ifdef __STDC__
4782 # include <limits.h>
4783 #else
4784 # include <assert.h>
4785 #endif
4787 #undef shmat
4789 /* Override any GCC internal prototype to avoid an error.
4790 Use char because int might match the return type of a GCC
4791 builtin and then its argument prototype would still apply. */
4792 #ifdef __cplusplus
4793 extern "C"
4794 #endif
4795 char shmat ();
4796 /* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
4799 #if defined __stub_shmat || defined __stub___shmat
4800 choke me
4801 #endif
4804 main ()
4806 return shmat ();
4808 return 0;
4810 _ACEOF
4811 rm -f conftest.$ac_objext conftest$ac_exeext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4813 (eval $ac_link) 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest$ac_exeext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 ac_cv_func_shmat=yes
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 ac_cv_func_shmat=no
4840 rm -f conftest.err conftest.$ac_objext \
4841 conftest$ac_exeext conftest.$ac_ext
4843 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4844 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4846 if test $ac_cv_func_shmat = no; then
4847 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4848 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4849 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852 ac_check_lib_save_LIBS=$LIBS
4853 LIBS="-lipc $LIBS"
4854 cat >conftest.$ac_ext <<_ACEOF
4855 /* confdefs.h. */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4861 /* Override any GCC internal prototype to avoid an error.
4862 Use char because int might match the return type of a GCC
4863 builtin and then its argument prototype would still apply. */
4864 #ifdef __cplusplus
4865 extern "C"
4866 #endif
4867 char shmat ();
4869 main ()
4871 return shmat ();
4873 return 0;
4875 _ACEOF
4876 rm -f conftest.$ac_objext conftest$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>conftest.er1
4879 ac_status=$?
4880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4897 ac_cv_lib_ipc_shmat=yes
4898 else
4899 echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_cv_lib_ipc_shmat=no
4905 rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
4907 LIBS=$ac_check_lib_save_LIBS
4909 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4910 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4911 if test $ac_cv_lib_ipc_shmat = yes; then
4912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4918 # Check for libraries that X11R6 Xt/Xaw programs need.
4919 ac_save_LDFLAGS=$LDFLAGS
4920 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4921 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4922 # check for ICE first), but we must link in the order -lSM -lICE or
4923 # we get undefined symbols. So assume we have SM if we have ICE.
4924 # These have to be linked with before -lX11, unlike the other
4925 # libraries we check for below, so use a different variable.
4926 # John Interrante, Karl Berry
4927 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4928 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4929 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932 ac_check_lib_save_LIBS=$LIBS
4933 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4934 cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h. */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4941 /* Override any GCC internal prototype to avoid an error.
4942 Use char because int might match the return type of a GCC
4943 builtin and then its argument prototype would still apply. */
4944 #ifdef __cplusplus
4945 extern "C"
4946 #endif
4947 char IceConnectionNumber ();
4949 main ()
4951 return IceConnectionNumber ();
4953 return 0;
4955 _ACEOF
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; } &&
4971 { ac_try='test -s conftest$ac_exeext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_lib_ICE_IceConnectionNumber=yes
4978 else
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_cv_lib_ICE_IceConnectionNumber=no
4985 rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
4987 LIBS=$ac_check_lib_save_LIBS
4989 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4990 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4991 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4992 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4995 LDFLAGS=$ac_save_LDFLAGS
4999 for ac_prog in flex lex
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005 if test "${ac_cv_prog_LEX+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 else
5008 if test -n "$LEX"; then
5009 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_LEX="$ac_prog"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 LEX=$ac_cv_prog_LEX
5029 if test -n "$LEX"; then
5030 { echo "$as_me:$LINENO: result: $LEX" >&5
5031 echo "${ECHO_T}$LEX" >&6; }
5032 else
5033 { echo "$as_me:$LINENO: result: no" >&5
5034 echo "${ECHO_T}no" >&6; }
5038 test -n "$LEX" && break
5039 done
5040 test -n "$LEX" || LEX=":"
5042 if test -z "$LEXLIB"
5043 then
5044 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5045 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
5046 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049 ac_check_lib_save_LIBS=$LIBS
5050 LIBS="-lfl $LIBS"
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5058 /* Override any GCC internal prototype to avoid an error.
5059 Use char because int might match the return type of a GCC
5060 builtin and then its argument prototype would still apply. */
5061 #ifdef __cplusplus
5062 extern "C"
5063 #endif
5064 char yywrap ();
5066 main ()
5068 return yywrap ();
5070 return 0;
5072 _ACEOF
5073 rm -f conftest.$ac_objext conftest$ac_exeext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5075 (eval $ac_link) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest$ac_exeext'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 (eval $ac_try) 2>&5
5091 ac_status=$?
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; }; then
5094 ac_cv_lib_fl_yywrap=yes
5095 else
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5099 ac_cv_lib_fl_yywrap=no
5102 rm -f conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5104 LIBS=$ac_check_lib_save_LIBS
5106 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5107 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
5108 if test $ac_cv_lib_fl_yywrap = yes; then
5109 LEXLIB="-lfl"
5110 else
5111 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5112 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
5113 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 ac_check_lib_save_LIBS=$LIBS
5117 LIBS="-ll $LIBS"
5118 cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h. */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h. */
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5128 #ifdef __cplusplus
5129 extern "C"
5130 #endif
5131 char yywrap ();
5133 main ()
5135 return yywrap ();
5137 return 0;
5139 _ACEOF
5140 rm -f conftest.$ac_objext conftest$ac_exeext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest$ac_exeext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_lib_l_yywrap=yes
5162 else
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 ac_cv_lib_l_yywrap=no
5169 rm -f conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
5171 LIBS=$ac_check_lib_save_LIBS
5173 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5174 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
5175 if test $ac_cv_lib_l_yywrap = yes; then
5176 LEXLIB="-ll"
5183 if test "x$LEX" != "x:"; then
5184 { echo "$as_me:$LINENO: checking lex output file root" >&5
5185 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5186 if test "${ac_cv_prog_lex_root+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 # The minimal lex program is just a single line: %%. But some broken lexes
5190 # (Solaris, I think it was) want two %% lines, so accommodate them.
5191 cat >conftest.l <<_ACEOF
5194 _ACEOF
5195 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5196 (eval $LEX conftest.l) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }
5200 if test -f lex.yy.c; then
5201 ac_cv_prog_lex_root=lex.yy
5202 elif test -f lexyy.c; then
5203 ac_cv_prog_lex_root=lexyy
5204 else
5205 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5206 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5207 { (exit 1); exit 1; }; }
5210 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5211 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5212 rm -f conftest.l
5213 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5215 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5216 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5217 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 # POSIX says lex can declare yytext either as a pointer or an array; the
5221 # default is implementation-dependent. Figure out which it is, since
5222 # not all implementations provide the %pointer and %array declarations.
5223 ac_cv_prog_lex_yytext_pointer=no
5224 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5225 ac_save_LIBS=$LIBS
5226 LIBS="$LIBS $LEXLIB"
5227 cat >conftest.$ac_ext <<_ACEOF
5228 `cat $LEX_OUTPUT_ROOT.c`
5229 _ACEOF
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest$ac_exeext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 ac_cv_prog_lex_yytext_pointer=yes
5252 else
5253 echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.$ac_ext >&5
5259 rm -f conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
5261 LIBS=$ac_save_LIBS
5262 rm -f "${LEX_OUTPUT_ROOT}.c"
5265 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5266 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
5267 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5269 cat >>confdefs.h <<\_ACEOF
5270 #define YYTEXT_POINTER 1
5271 _ACEOF
5277 for ac_prog in $LEX flex lex
5279 # Extract the first word of "$ac_prog", so it can be a program name with args.
5280 set dummy $ac_prog; ac_word=$2
5281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5283 if test "${ac_cv_prog_XLEX+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test -n "$XLEX"; then
5287 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_XLEX="$ac_prog"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5302 IFS=$as_save_IFS
5306 XLEX=$ac_cv_prog_XLEX
5307 if test -n "$XLEX"; then
5308 { echo "$as_me:$LINENO: result: $XLEX" >&5
5309 echo "${ECHO_T}$XLEX" >&6; }
5310 else
5311 { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5316 test -n "$XLEX" && break
5317 done
5318 test -n "$XLEX" || XLEX="none"
5320 if test "$XLEX" = "none"
5321 then
5322 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5323 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5324 { (exit 1); exit 1; }; }
5327 for ac_prog in bison
5329 # Extract the first word of "$ac_prog", so it can be a program name with args.
5330 set dummy $ac_prog; ac_word=$2
5331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5333 if test "${ac_cv_prog_BISON+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 if test -n "$BISON"; then
5337 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5338 else
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_prog_BISON="$ac_prog"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5350 done
5351 done
5352 IFS=$as_save_IFS
5356 BISON=$ac_cv_prog_BISON
5357 if test -n "$BISON"; then
5358 { echo "$as_me:$LINENO: result: $BISON" >&5
5359 echo "${ECHO_T}$BISON" >&6; }
5360 else
5361 { echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6; }
5366 test -n "$BISON" && break
5367 done
5368 test -n "$BISON" || BISON="none"
5370 if test "$BISON" = "none"
5371 then
5372 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5373 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5374 { (exit 1); exit 1; }; }
5377 if test -n "$ac_tool_prefix"; then
5378 for ac_prog in gas as
5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5384 if test "${ac_cv_prog_AS+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 if test -n "$AS"; then
5388 ac_cv_prog_AS="$AS" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 AS=$ac_cv_prog_AS
5408 if test -n "$AS"; then
5409 { echo "$as_me:$LINENO: result: $AS" >&5
5410 echo "${ECHO_T}$AS" >&6; }
5411 else
5412 { echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6; }
5417 test -n "$AS" && break
5418 done
5420 if test -z "$AS"; then
5421 ac_ct_AS=$AS
5422 for ac_prog in gas as
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5428 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 if test -n "$ac_ct_AS"; then
5432 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_ac_ct_AS="$ac_prog"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5451 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5452 if test -n "$ac_ct_AS"; then
5453 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5454 echo "${ECHO_T}$ac_ct_AS" >&6; }
5455 else
5456 { echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6; }
5461 test -n "$ac_ct_AS" && break
5462 done
5464 if test "x$ac_ct_AS" = x; then
5465 AS="as"
5466 else
5467 case $cross_compiling:$ac_tool_warned in
5468 yes:)
5469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470 whose name does not start with the host triplet. If you think this
5471 configuration is useful to you, please write to autoconf@gnu.org." >&5
5472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473 whose name does not start with the host triplet. If you think this
5474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475 ac_tool_warned=yes ;;
5476 esac
5477 AS=$ac_ct_AS
5481 if test -n "$ac_tool_prefix"; then
5482 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5483 set dummy ${ac_tool_prefix}ld; ac_word=$2
5484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5486 if test "${ac_cv_prog_LD+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 if test -n "$LD"; then
5490 ac_cv_prog_LD="$LD" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_LD="${ac_tool_prefix}ld"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5503 done
5504 done
5505 IFS=$as_save_IFS
5509 LD=$ac_cv_prog_LD
5510 if test -n "$LD"; then
5511 { echo "$as_me:$LINENO: result: $LD" >&5
5512 echo "${ECHO_T}$LD" >&6; }
5513 else
5514 { echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6; }
5520 if test -z "$ac_cv_prog_LD"; then
5521 ac_ct_LD=$LD
5522 # Extract the first word of "ld", so it can be a program name with args.
5523 set dummy ld; ac_word=$2
5524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5526 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 if test -n "$ac_ct_LD"; then
5530 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_prog_ac_ct_LD="ld"
5540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5543 done
5544 done
5545 IFS=$as_save_IFS
5549 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5550 if test -n "$ac_ct_LD"; then
5551 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5552 echo "${ECHO_T}$ac_ct_LD" >&6; }
5553 else
5554 { echo "$as_me:$LINENO: result: no" >&5
5555 echo "${ECHO_T}no" >&6; }
5558 if test "x$ac_ct_LD" = x; then
5559 LD="ld"
5560 else
5561 case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5564 whose name does not start with the host triplet. If you think this
5565 configuration is useful to you, please write to autoconf@gnu.org." >&5
5566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5567 whose name does not start with the host triplet. If you think this
5568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5569 ac_tool_warned=yes ;;
5570 esac
5571 LD=$ac_ct_LD
5573 else
5574 LD="$ac_cv_prog_LD"
5577 if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5579 set dummy ${ac_tool_prefix}ar; ac_word=$2
5580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5582 if test "${ac_cv_prog_AR+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 if test -n "$AR"; then
5586 ac_cv_prog_AR="$AR" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_AR="${ac_tool_prefix}ar"
5596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5599 done
5600 done
5601 IFS=$as_save_IFS
5605 AR=$ac_cv_prog_AR
5606 if test -n "$AR"; then
5607 { echo "$as_me:$LINENO: result: $AR" >&5
5608 echo "${ECHO_T}$AR" >&6; }
5609 else
5610 { echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6; }
5616 if test -z "$ac_cv_prog_AR"; then
5617 ac_ct_AR=$AR
5618 # Extract the first word of "ar", so it can be a program name with args.
5619 set dummy ar; ac_word=$2
5620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625 if test -n "$ac_ct_AR"; then
5626 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_ac_ct_AR="ar"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5639 done
5640 done
5641 IFS=$as_save_IFS
5645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646 if test -n "$ac_ct_AR"; then
5647 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5648 echo "${ECHO_T}$ac_ct_AR" >&6; }
5649 else
5650 { echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6; }
5654 if test "x$ac_ct_AR" = x; then
5655 AR="ar"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet. If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&5
5662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663 whose name does not start with the host triplet. If you think this
5664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665 ac_tool_warned=yes ;;
5666 esac
5667 AR=$ac_ct_AR
5669 else
5670 AR="$ac_cv_prog_AR"
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5678 if test "${ac_cv_prog_RANLIB+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681 if test -n "$RANLIB"; then
5682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5701 RANLIB=$ac_cv_prog_RANLIB
5702 if test -n "$RANLIB"; then
5703 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5704 echo "${ECHO_T}$RANLIB" >&6; }
5705 else
5706 { echo "$as_me:$LINENO: result: no" >&5
5707 echo "${ECHO_T}no" >&6; }
5712 if test -z "$ac_cv_prog_RANLIB"; then
5713 ac_ct_RANLIB=$RANLIB
5714 # Extract the first word of "ranlib", so it can be a program name with args.
5715 set dummy ranlib; ac_word=$2
5716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5718 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721 if test -n "$ac_ct_RANLIB"; then
5722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5723 else
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 for as_dir in $PATH
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5731 ac_cv_prog_ac_ct_RANLIB="ranlib"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5735 done
5736 done
5737 IFS=$as_save_IFS
5741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5742 if test -n "$ac_ct_RANLIB"; then
5743 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5744 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5745 else
5746 { echo "$as_me:$LINENO: result: no" >&5
5747 echo "${ECHO_T}no" >&6; }
5750 if test "x$ac_ct_RANLIB" = x; then
5751 RANLIB=":"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754 yes:)
5755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5756 whose name does not start with the host triplet. If you think this
5757 configuration is useful to you, please write to autoconf@gnu.org." >&5
5758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5759 whose name does not start with the host triplet. If you think this
5760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5761 ac_tool_warned=yes ;;
5762 esac
5763 RANLIB=$ac_ct_RANLIB
5765 else
5766 RANLIB="$ac_cv_prog_RANLIB"
5769 if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5771 set dummy ${ac_tool_prefix}strip; ac_word=$2
5772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5774 if test "${ac_cv_prog_STRIP+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 if test -n "$STRIP"; then
5778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5791 done
5792 done
5793 IFS=$as_save_IFS
5797 STRIP=$ac_cv_prog_STRIP
5798 if test -n "$STRIP"; then
5799 { echo "$as_me:$LINENO: result: $STRIP" >&5
5800 echo "${ECHO_T}$STRIP" >&6; }
5801 else
5802 { echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6; }
5808 if test -z "$ac_cv_prog_STRIP"; then
5809 ac_ct_STRIP=$STRIP
5810 # Extract the first word of "strip", so it can be a program name with args.
5811 set dummy strip; ac_word=$2
5812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5814 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 if test -n "$ac_ct_STRIP"; then
5818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_ac_ct_STRIP="strip"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5833 IFS=$as_save_IFS
5837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5838 if test -n "$ac_ct_STRIP"; then
5839 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5840 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5841 else
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5846 if test "x$ac_ct_STRIP" = x; then
5847 STRIP="strip"
5848 else
5849 case $cross_compiling:$ac_tool_warned in
5850 yes:)
5851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5852 whose name does not start with the host triplet. If you think this
5853 configuration is useful to you, please write to autoconf@gnu.org." >&5
5854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5855 whose name does not start with the host triplet. If you think this
5856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5857 ac_tool_warned=yes ;;
5858 esac
5859 STRIP=$ac_ct_STRIP
5861 else
5862 STRIP="$ac_cv_prog_STRIP"
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}windres; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_prog_WINDRES+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 if test -n "$WINDRES"; then
5874 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5883 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5887 done
5888 done
5889 IFS=$as_save_IFS
5893 WINDRES=$ac_cv_prog_WINDRES
5894 if test -n "$WINDRES"; then
5895 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5896 echo "${ECHO_T}$WINDRES" >&6; }
5897 else
5898 { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5904 if test -z "$ac_cv_prog_WINDRES"; then
5905 ac_ct_WINDRES=$WINDRES
5906 # Extract the first word of "windres", so it can be a program name with args.
5907 set dummy windres; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 if test -n "$ac_ct_WINDRES"; then
5914 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_prog_ac_ct_WINDRES="windres"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5927 done
5928 done
5929 IFS=$as_save_IFS
5933 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5934 if test -n "$ac_ct_WINDRES"; then
5935 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5936 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
5937 else
5938 { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5942 if test "x$ac_ct_WINDRES" = x; then
5943 WINDRES="false"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946 yes:)
5947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5948 whose name does not start with the host triplet. If you think this
5949 configuration is useful to you, please write to autoconf@gnu.org." >&5
5950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5951 whose name does not start with the host triplet. If you think this
5952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5953 ac_tool_warned=yes ;;
5954 esac
5955 WINDRES=$ac_ct_WINDRES
5957 else
5958 WINDRES="$ac_cv_prog_WINDRES"
5961 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5962 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5963 LN_S=$as_ln_s
5964 if test "$LN_S" = "ln -s"; then
5965 { echo "$as_me:$LINENO: result: yes" >&5
5966 echo "${ECHO_T}yes" >&6; }
5967 else
5968 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5969 echo "${ECHO_T}no, using $LN_S" >&6; }
5972 { echo "$as_me:$LINENO: checking whether ln works" >&5
5973 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
5974 rm -f conf$$ conf$$.file
5975 echo >conf$$.file
5976 if ln conf$$.file conf$$ 2>/dev/null; then
5977 LN=ln
5979 { echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6; }
5981 else
5982 LN="cp -p"
5984 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5985 echo "${ECHO_T}no, using $LN" >&6; }
5987 rm -f conf$$ conf$$.file
5988 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5989 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5990 if test "${ac_cv_path_GREP+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 # Extract the first word of "grep ggrep" to use in msg output
5994 if test -z "$GREP"; then
5995 set dummy grep ggrep; ac_prog_name=$2
5996 if test "${ac_cv_path_GREP+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 ac_path_GREP_found=false
6000 # Loop through the user's path and test for each of PROGNAME-LIST
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_prog in grep ggrep; do
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6009 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6010 # Check for GNU ac_path_GREP and select it if it is found.
6011 # Check for GNU $ac_path_GREP
6012 case `"$ac_path_GREP" --version 2>&1` in
6013 *GNU*)
6014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6016 ac_count=0
6017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6018 while :
6020 cat "conftest.in" "conftest.in" >"conftest.tmp"
6021 mv "conftest.tmp" "conftest.in"
6022 cp "conftest.in" "conftest.nl"
6023 echo 'GREP' >> "conftest.nl"
6024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6026 ac_count=`expr $ac_count + 1`
6027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6028 # Best one so far, save it but keep looking for a better one
6029 ac_cv_path_GREP="$ac_path_GREP"
6030 ac_path_GREP_max=$ac_count
6032 # 10*(2^10) chars as input seems more than enough
6033 test $ac_count -gt 10 && break
6034 done
6035 rm -f conftest.*;;
6036 esac
6039 $ac_path_GREP_found && break 3
6040 done
6041 done
6043 done
6044 IFS=$as_save_IFS
6049 GREP="$ac_cv_path_GREP"
6050 if test -z "$GREP"; then
6051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6053 { (exit 1); exit 1; }; }
6056 else
6057 ac_cv_path_GREP=$GREP
6062 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6063 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6064 GREP="$ac_cv_path_GREP"
6067 { echo "$as_me:$LINENO: checking for egrep" >&5
6068 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6069 if test "${ac_cv_path_EGREP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6073 then ac_cv_path_EGREP="$GREP -E"
6074 else
6075 # Extract the first word of "egrep" to use in msg output
6076 if test -z "$EGREP"; then
6077 set dummy egrep; ac_prog_name=$2
6078 if test "${ac_cv_path_EGREP+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081 ac_path_EGREP_found=false
6082 # Loop through the user's path and test for each of PROGNAME-LIST
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_prog in egrep; do
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6091 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6092 # Check for GNU ac_path_EGREP and select it if it is found.
6093 # Check for GNU $ac_path_EGREP
6094 case `"$ac_path_EGREP" --version 2>&1` in
6095 *GNU*)
6096 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6098 ac_count=0
6099 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6100 while :
6102 cat "conftest.in" "conftest.in" >"conftest.tmp"
6103 mv "conftest.tmp" "conftest.in"
6104 cp "conftest.in" "conftest.nl"
6105 echo 'EGREP' >> "conftest.nl"
6106 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6108 ac_count=`expr $ac_count + 1`
6109 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6110 # Best one so far, save it but keep looking for a better one
6111 ac_cv_path_EGREP="$ac_path_EGREP"
6112 ac_path_EGREP_max=$ac_count
6114 # 10*(2^10) chars as input seems more than enough
6115 test $ac_count -gt 10 && break
6116 done
6117 rm -f conftest.*;;
6118 esac
6121 $ac_path_EGREP_found && break 3
6122 done
6123 done
6125 done
6126 IFS=$as_save_IFS
6131 EGREP="$ac_cv_path_EGREP"
6132 if test -z "$EGREP"; then
6133 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6134 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6135 { (exit 1); exit 1; }; }
6138 else
6139 ac_cv_path_EGREP=$EGREP
6145 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6146 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6147 EGREP="$ac_cv_path_EGREP"
6150 # Extract the first word of "ldconfig", so it can be a program name with args.
6151 set dummy ldconfig; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157 case $LDCONFIG in
6158 [\\/]* | ?:[\\/]*)
6159 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in /sbin /usr/sbin $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6175 IFS=$as_save_IFS
6177 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
6179 esac
6181 LDCONFIG=$ac_cv_path_LDCONFIG
6182 if test -n "$LDCONFIG"; then
6183 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6184 echo "${ECHO_T}$LDCONFIG" >&6; }
6185 else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6191 # Find a good install program. We prefer a C program (faster),
6192 # so one script is as good as another. But avoid the broken or
6193 # incompatible versions:
6194 # SysV /etc/install, /usr/sbin/install
6195 # SunOS /usr/etc/install
6196 # IRIX /sbin/install
6197 # AIX /bin/install
6198 # AmigaOS /C/install, which installs bootblocks on floppy discs
6199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6202 # OS/2's system install, which has a completely different semantic
6203 # ./install, which can be erroneously created by make from ./install.sh.
6204 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6205 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6206 if test -z "$INSTALL"; then
6207 if test "${ac_cv_path_install+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 # Account for people who put trailing slashes in PATH elements.
6216 case $as_dir/ in
6217 ./ | .// | /cC/* | \
6218 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6219 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6220 /usr/ucb/* ) ;;
6222 # OSF1 and SCO ODT 3.0 have their own names for install.
6223 # Don't use installbsd from OSF since it installs stuff as root
6224 # by default.
6225 for ac_prog in ginstall scoinst install; do
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6228 if test $ac_prog = install &&
6229 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6230 # AIX install. It has an incompatible calling convention.
6232 elif test $ac_prog = install &&
6233 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6234 # program-specific install script used by HP pwplus--don't use.
6236 else
6237 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6238 break 3
6241 done
6242 done
6244 esac
6245 done
6246 IFS=$as_save_IFS
6250 if test "${ac_cv_path_install+set}" = set; then
6251 INSTALL=$ac_cv_path_install
6252 else
6253 # As a last resort, use the slow shell script. Don't cache a
6254 # value for INSTALL within a source directory, because that will
6255 # break other packages using the cache if that directory is
6256 # removed, or if the value is a relative name.
6257 INSTALL=$ac_install_sh
6260 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6261 echo "${ECHO_T}$INSTALL" >&6; }
6263 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6264 # It thinks the first close brace ends the variable substitution.
6265 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6267 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6271 case "$INSTALL" in
6272 [\\/$]* | ?:[\\/]* ) ;;
6273 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6274 esac
6276 for ac_prog in lclint lint
6278 # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282 if test "${ac_cv_prog_LINT+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 else
6285 if test -n "$LINT"; then
6286 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_prog_LINT="$ac_prog"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6299 done
6300 done
6301 IFS=$as_save_IFS
6305 LINT=$ac_cv_prog_LINT
6306 if test -n "$LINT"; then
6307 { echo "$as_me:$LINENO: result: $LINT" >&5
6308 echo "${ECHO_T}$LINT" >&6; }
6309 else
6310 { echo "$as_me:$LINENO: result: no" >&5
6311 echo "${ECHO_T}no" >&6; }
6315 test -n "$LINT" && break
6316 done
6318 if test "$LINT" = "lint"
6319 then
6320 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6325 for ac_prog in fontforge
6327 # Extract the first word of "$ac_prog", so it can be a program name with args.
6328 set dummy $ac_prog; ac_word=$2
6329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6331 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333 else
6334 if test -n "$FONTFORGE"; then
6335 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_FONTFORGE="$ac_prog"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 FONTFORGE=$ac_cv_prog_FONTFORGE
6355 if test -n "$FONTFORGE"; then
6356 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6357 echo "${ECHO_T}$FONTFORGE" >&6; }
6358 else
6359 { echo "$as_me:$LINENO: result: no" >&5
6360 echo "${ECHO_T}no" >&6; }
6364 test -n "$FONTFORGE" && break
6365 done
6366 test -n "$FONTFORGE" || FONTFORGE="false"
6368 for ac_prog in pkg-config
6370 # Extract the first word of "$ac_prog", so it can be a program name with args.
6371 set dummy $ac_prog; ac_word=$2
6372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6374 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 if test -n "$PKG_CONFIG"; then
6378 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_prog_PKG_CONFIG="$ac_prog"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6391 done
6392 done
6393 IFS=$as_save_IFS
6397 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6398 if test -n "$PKG_CONFIG"; then
6399 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6400 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6401 else
6402 { echo "$as_me:$LINENO: result: no" >&5
6403 echo "${ECHO_T}no" >&6; }
6407 test -n "$PKG_CONFIG" && break
6408 done
6409 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6412 case $host_cpu in
6413 *i[3456789]86*)
6414 for ac_prog in prelink
6416 # Extract the first word of "$ac_prog", so it can be a program name with args.
6417 set dummy $ac_prog; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_prog_PRELINK+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 if test -n "$PRELINK"; then
6424 ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in /sbin /usr/sbin $PATH
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_PRELINK="$ac_prog"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6437 done
6438 done
6439 IFS=$as_save_IFS
6443 PRELINK=$ac_cv_prog_PRELINK
6444 if test -n "$PRELINK"; then
6445 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6446 echo "${ECHO_T}$PRELINK" >&6; }
6447 else
6448 { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6453 test -n "$PRELINK" && break
6454 done
6455 test -n "$PRELINK" || PRELINK="false"
6458 esac
6462 { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6463 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
6464 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 ac_check_lib_save_LIBS=$LIBS
6468 LIBS="-li386 $LIBS"
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6476 /* Override any GCC internal prototype to avoid an error.
6477 Use char because int might match the return type of a GCC
6478 builtin and then its argument prototype would still apply. */
6479 #ifdef __cplusplus
6480 extern "C"
6481 #endif
6482 char i386_set_ldt ();
6484 main ()
6486 return i386_set_ldt ();
6488 return 0;
6490 _ACEOF
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>conftest.er1
6494 ac_status=$?
6495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } &&
6500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 (eval $ac_try) 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 ac_cv_lib_i386_i386_set_ldt=yes
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_cv_lib_i386_i386_set_ldt=no
6520 rm -f conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 LIBS=$ac_check_lib_save_LIBS
6524 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6525 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
6526 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_LIBI386 1
6529 _ACEOF
6531 LIBS="-li386 $LIBS"
6536 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6537 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6538 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 ac_check_lib_save_LIBS=$LIBS
6542 LIBS="-lossaudio $LIBS"
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6550 /* Override any GCC internal prototype to avoid an error.
6551 Use char because int might match the return type of a GCC
6552 builtin and then its argument prototype would still apply. */
6553 #ifdef __cplusplus
6554 extern "C"
6555 #endif
6556 char _oss_ioctl ();
6558 main ()
6560 return _oss_ioctl ();
6562 return 0;
6564 _ACEOF
6565 rm -f conftest.$ac_objext conftest$ac_exeext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6567 (eval $ac_link) 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest$ac_exeext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_lib_ossaudio__oss_ioctl=yes
6587 else
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_cv_lib_ossaudio__oss_ioctl=no
6594 rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 LIBS=$ac_check_lib_save_LIBS
6598 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6599 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6600 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6601 cat >>confdefs.h <<_ACEOF
6602 #define HAVE_LIBOSSAUDIO 1
6603 _ACEOF
6605 LIBS="-lossaudio $LIBS"
6610 for ac_func in gethostbyname
6612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6626 #define $ac_func innocuous_$ac_func
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func (); below.
6630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6631 <limits.h> exists even on freestanding compilers. */
6633 #ifdef __STDC__
6634 # include <limits.h>
6635 #else
6636 # include <assert.h>
6637 #endif
6639 #undef $ac_func
6641 /* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
6644 #ifdef __cplusplus
6645 extern "C"
6646 #endif
6647 char $ac_func ();
6648 /* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
6651 #if defined __stub_$ac_func || defined __stub___$ac_func
6652 choke me
6653 #endif
6656 main ()
6658 return $ac_func ();
6660 return 0;
6662 _ACEOF
6663 rm -f conftest.$ac_objext conftest$ac_exeext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6665 (eval $ac_link) 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; } &&
6678 { ac_try='test -s conftest$ac_exeext'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; }; then
6684 eval "$as_ac_var=yes"
6685 else
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6689 eval "$as_ac_var=no"
6692 rm -f conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
6695 ac_res=`eval echo '${'$as_ac_var'}'`
6696 { echo "$as_me:$LINENO: result: $ac_res" >&5
6697 echo "${ECHO_T}$ac_res" >&6; }
6698 if test `eval echo '${'$as_ac_var'}'` = yes; then
6699 cat >>confdefs.h <<_ACEOF
6700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6701 _ACEOF
6703 else
6705 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6706 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6707 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 ac_check_lib_save_LIBS=$LIBS
6711 LIBS="-lnsl $LIBS"
6712 cat >conftest.$ac_ext <<_ACEOF
6713 /* confdefs.h. */
6714 _ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6719 /* Override any GCC internal prototype to avoid an error.
6720 Use char because int might match the return type of a GCC
6721 builtin and then its argument prototype would still apply. */
6722 #ifdef __cplusplus
6723 extern "C"
6724 #endif
6725 char gethostbyname ();
6727 main ()
6729 return gethostbyname ();
6731 return 0;
6733 _ACEOF
6734 rm -f conftest.$ac_objext conftest$ac_exeext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6736 (eval $ac_link) 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest$ac_exeext'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; }; then
6755 ac_cv_lib_nsl_gethostbyname=yes
6756 else
6757 echo "$as_me: failed program was:" >&5
6758 sed 's/^/| /' conftest.$ac_ext >&5
6760 ac_cv_lib_nsl_gethostbyname=no
6763 rm -f conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LIBS=$ac_check_lib_save_LIBS
6767 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6768 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6769 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6770 cat >>confdefs.h <<_ACEOF
6771 #define HAVE_LIBNSL 1
6772 _ACEOF
6774 LIBS="-lnsl $LIBS"
6779 done
6782 for ac_func in connect
6784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6798 #define $ac_func innocuous_$ac_func
6800 /* System header to define __stub macros and hopefully few prototypes,
6801 which can conflict with char $ac_func (); below.
6802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6803 <limits.h> exists even on freestanding compilers. */
6805 #ifdef __STDC__
6806 # include <limits.h>
6807 #else
6808 # include <assert.h>
6809 #endif
6811 #undef $ac_func
6813 /* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
6816 #ifdef __cplusplus
6817 extern "C"
6818 #endif
6819 char $ac_func ();
6820 /* The GNU C library defines this for functions which it implements
6821 to always fail with ENOSYS. Some functions are actually named
6822 something starting with __ and the normal name is an alias. */
6823 #if defined __stub_$ac_func || defined __stub___$ac_func
6824 choke me
6825 #endif
6828 main ()
6830 return $ac_func ();
6832 return 0;
6834 _ACEOF
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6837 (eval $ac_link) 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try='test -s conftest$ac_exeext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 eval "$as_ac_var=yes"
6857 else
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 eval "$as_ac_var=no"
6864 rm -f conftest.err conftest.$ac_objext \
6865 conftest$ac_exeext conftest.$ac_ext
6867 ac_res=`eval echo '${'$as_ac_var'}'`
6868 { echo "$as_me:$LINENO: result: $ac_res" >&5
6869 echo "${ECHO_T}$ac_res" >&6; }
6870 if test `eval echo '${'$as_ac_var'}'` = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6873 _ACEOF
6875 else
6877 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6878 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6879 if test "${ac_cv_lib_socket_connect+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 ac_check_lib_save_LIBS=$LIBS
6883 LIBS="-lsocket $LIBS"
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6891 /* Override any GCC internal prototype to avoid an error.
6892 Use char because int might match the return type of a GCC
6893 builtin and then its argument prototype would still apply. */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 char connect ();
6899 main ()
6901 return connect ();
6903 return 0;
6905 _ACEOF
6906 rm -f conftest.$ac_objext conftest$ac_exeext
6907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } &&
6915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 ac_cv_lib_socket_connect=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_lib_socket_connect=no
6935 rm -f conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6937 LIBS=$ac_check_lib_save_LIBS
6939 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6940 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6941 if test $ac_cv_lib_socket_connect = yes; then
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_LIBSOCKET 1
6944 _ACEOF
6946 LIBS="-lsocket $LIBS"
6951 done
6954 for ac_func in inet_aton
6956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6970 #define $ac_func innocuous_$ac_func
6972 /* System header to define __stub macros and hopefully few prototypes,
6973 which can conflict with char $ac_func (); below.
6974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6975 <limits.h> exists even on freestanding compilers. */
6977 #ifdef __STDC__
6978 # include <limits.h>
6979 #else
6980 # include <assert.h>
6981 #endif
6983 #undef $ac_func
6985 /* Override any GCC internal prototype to avoid an error.
6986 Use char because int might match the return type of a GCC
6987 builtin and then its argument prototype would still apply. */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 char $ac_func ();
6992 /* The GNU C library defines this for functions which it implements
6993 to always fail with ENOSYS. Some functions are actually named
6994 something starting with __ and the normal name is an alias. */
6995 #if defined __stub_$ac_func || defined __stub___$ac_func
6996 choke me
6997 #endif
7000 main ()
7002 return $ac_func ();
7004 return 0;
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>conftest.er1
7010 ac_status=$?
7011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 eval "$as_ac_var=yes"
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 eval "$as_ac_var=no"
7036 rm -f conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
7039 ac_res=`eval echo '${'$as_ac_var'}'`
7040 { echo "$as_me:$LINENO: result: $ac_res" >&5
7041 echo "${ECHO_T}$ac_res" >&6; }
7042 if test `eval echo '${'$as_ac_var'}'` = yes; then
7043 cat >>confdefs.h <<_ACEOF
7044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7045 _ACEOF
7047 else
7049 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7050 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
7051 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 ac_check_lib_save_LIBS=$LIBS
7055 LIBS="-lresolv $LIBS"
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7063 /* Override any GCC internal prototype to avoid an error.
7064 Use char because int might match the return type of a GCC
7065 builtin and then its argument prototype would still apply. */
7066 #ifdef __cplusplus
7067 extern "C"
7068 #endif
7069 char inet_aton ();
7071 main ()
7073 return inet_aton ();
7075 return 0;
7077 _ACEOF
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>conftest.er1
7081 ac_status=$?
7082 grep -v '^ *+' conftest.er1 >conftest.err
7083 rm -f conftest.er1
7084 cat conftest.err >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } &&
7087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest$ac_exeext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 ac_cv_lib_resolv_inet_aton=yes
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_cv_lib_resolv_inet_aton=no
7107 rm -f conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 LIBS=$ac_check_lib_save_LIBS
7111 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7112 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
7113 if test $ac_cv_lib_resolv_inet_aton = yes; then
7114 cat >>confdefs.h <<_ACEOF
7115 #define HAVE_LIBRESOLV 1
7116 _ACEOF
7118 LIBS="-lresolv $LIBS"
7123 done
7126 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7127 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7128 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 ac_check_lib_save_LIBS=$LIBS
7132 LIBS="-lxpg4 $LIBS"
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7140 /* Override any GCC internal prototype to avoid an error.
7141 Use char because int might match the return type of a GCC
7142 builtin and then its argument prototype would still apply. */
7143 #ifdef __cplusplus
7144 extern "C"
7145 #endif
7146 char _xpg4_setrunelocale ();
7148 main ()
7150 return _xpg4_setrunelocale ();
7152 return 0;
7154 _ACEOF
7155 rm -f conftest.$ac_objext conftest$ac_exeext
7156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7157 (eval $ac_link) 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } &&
7164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_lib_xpg4__xpg4_setrunelocale=no
7184 rm -f conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7188 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7189 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7190 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
7191 cat >>confdefs.h <<_ACEOF
7192 #define HAVE_LIBXPG4 1
7193 _ACEOF
7195 LIBS="-lxpg4 $LIBS"
7200 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7201 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
7202 if test "${ac_cv_lib_poll_poll+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205 ac_check_lib_save_LIBS=$LIBS
7206 LIBS="-lpoll $LIBS"
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7217 #ifdef __cplusplus
7218 extern "C"
7219 #endif
7220 char poll ();
7222 main ()
7224 return poll ();
7226 return 0;
7228 _ACEOF
7229 rm -f conftest.$ac_objext conftest$ac_exeext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7231 (eval $ac_link) 2>conftest.er1
7232 ac_status=$?
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_lib_poll_poll=yes
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7255 ac_cv_lib_poll_poll=no
7258 rm -f conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext conftest.$ac_ext
7260 LIBS=$ac_check_lib_save_LIBS
7262 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7263 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
7264 if test $ac_cv_lib_poll_poll = yes; then
7265 cat >>confdefs.h <<_ACEOF
7266 #define HAVE_LIBPOLL 1
7267 _ACEOF
7269 LIBS="-lpoll $LIBS"
7274 { echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7275 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
7276 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 ac_check_lib_save_LIBS=$LIBS
7280 LIBS="-lresolv $LIBS"
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7288 /* Override any GCC internal prototype to avoid an error.
7289 Use char because int might match the return type of a GCC
7290 builtin and then its argument prototype would still apply. */
7291 #ifdef __cplusplus
7292 extern "C"
7293 #endif
7294 char res_9_init ();
7296 main ()
7298 return res_9_init ();
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext conftest$ac_exeext
7304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest$ac_exeext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_cv_lib_resolv_res_9_init=yes
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7329 ac_cv_lib_resolv_res_9_init=no
7332 rm -f conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
7334 LIBS=$ac_check_lib_save_LIBS
7336 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7337 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
7338 if test $ac_cv_lib_resolv_res_9_init = yes; then
7339 cat >>confdefs.h <<_ACEOF
7340 #define HAVE_LIBRESOLV 1
7341 _ACEOF
7343 LIBS="-lresolv $LIBS"
7347 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7348 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7349 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 ac_check_lib_save_LIBS=$LIBS
7353 LIBS="-lpthread $LIBS"
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7361 /* Override any GCC internal prototype to avoid an error.
7362 Use char because int might match the return type of a GCC
7363 builtin and then its argument prototype would still apply. */
7364 #ifdef __cplusplus
7365 extern "C"
7366 #endif
7367 char pthread_create ();
7369 main ()
7371 return pthread_create ();
7373 return 0;
7375 _ACEOF
7376 rm -f conftest.$ac_objext conftest$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>conftest.er1
7379 ac_status=$?
7380 grep -v '^ *+' conftest.er1 >conftest.err
7381 rm -f conftest.er1
7382 cat conftest.err >&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest$ac_exeext'
7392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 (eval $ac_try) 2>&5
7394 ac_status=$?
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); }; }; then
7397 ac_cv_lib_pthread_pthread_create=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7402 ac_cv_lib_pthread_pthread_create=no
7405 rm -f conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext conftest.$ac_ext
7407 LIBS=$ac_check_lib_save_LIBS
7409 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7410 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7411 if test $ac_cv_lib_pthread_pthread_create = yes; then
7412 LIBPTHREAD="-lpthread"
7417 XLIB=""
7419 XFILES=""
7421 OPENGLFILES=""
7423 GLU32FILES=""
7425 OPENGL_LIBS=""
7429 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7430 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7431 if test "${ac_cv_header_stdc+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 cat >conftest.$ac_ext <<_ACEOF
7435 /* confdefs.h. */
7436 _ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 #include <stdlib.h>
7441 #include <stdarg.h>
7442 #include <string.h>
7443 #include <float.h>
7446 main ()
7450 return 0;
7452 _ACEOF
7453 rm -f conftest.$ac_objext
7454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7455 (eval $ac_compile) 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } &&
7462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 ac_cv_header_stdc=yes
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_cv_header_stdc=no
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 if test $ac_cv_header_stdc = yes; then
7485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 #include <string.h>
7494 _ACEOF
7495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7496 $EGREP "memchr" >/dev/null 2>&1; then
7498 else
7499 ac_cv_header_stdc=no
7501 rm -f conftest*
7505 if test $ac_cv_header_stdc = yes; then
7506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 #include <stdlib.h>
7515 _ACEOF
7516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7517 $EGREP "free" >/dev/null 2>&1; then
7519 else
7520 ac_cv_header_stdc=no
7522 rm -f conftest*
7526 if test $ac_cv_header_stdc = yes; then
7527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7528 if test "$cross_compiling" = yes; then
7530 else
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 #include <ctype.h>
7538 #include <stdlib.h>
7539 #if ((' ' & 0x0FF) == 0x020)
7540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7542 #else
7543 # define ISLOWER(c) \
7544 (('a' <= (c) && (c) <= 'i') \
7545 || ('j' <= (c) && (c) <= 'r') \
7546 || ('s' <= (c) && (c) <= 'z'))
7547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7548 #endif
7550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7552 main ()
7554 int i;
7555 for (i = 0; i < 256; i++)
7556 if (XOR (islower (i), ISLOWER (i))
7557 || toupper (i) != TOUPPER (i))
7558 return 2;
7559 return 0;
7561 _ACEOF
7562 rm -f conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7574 else
7575 echo "$as_me: program exited with status $ac_status" >&5
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ( exit $ac_status )
7580 ac_cv_header_stdc=no
7582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7588 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7589 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7590 if test $ac_cv_header_stdc = yes; then
7592 cat >>confdefs.h <<\_ACEOF
7593 #define STDC_HEADERS 1
7594 _ACEOF
7598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7609 inttypes.h stdint.h unistd.h
7611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 else
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 $ac_includes_default
7625 #include <$ac_header>
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 eval "$as_ac_Header=yes"
7649 else
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7653 eval "$as_ac_Header=no"
7656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7658 ac_res=`eval echo '${'$as_ac_Header'}'`
7659 { echo "$as_me:$LINENO: result: $ac_res" >&5
7660 echo "${ECHO_T}$ac_res" >&6; }
7661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7662 cat >>confdefs.h <<_ACEOF
7663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7664 _ACEOF
7668 done
7777 for ac_header in \
7778 AudioUnit/AudioUnit.h \
7779 CoreAudio/CoreAudio.h \
7780 IOKit/IOKitLib.h \
7781 alsa/asoundlib.h \
7782 arpa/inet.h \
7783 arpa/nameser.h \
7784 asm/types.h \
7785 capi20.h \
7786 cups/cups.h \
7787 curses.h \
7788 direct.h \
7789 dlfcn.h \
7790 elf.h \
7791 float.h \
7792 fontconfig/fontconfig.h \
7793 getopt.h \
7794 gif_lib.h \
7795 ieeefp.h \
7796 io.h \
7797 jack/jack.h \
7798 jpeglib.h \
7799 lber.h \
7800 lcms.h \
7801 lcms/lcms.h \
7802 ldap.h \
7803 libaudioio.h \
7804 link.h \
7805 linux/cdrom.h \
7806 linux/compiler.h \
7807 linux/hdreg.h \
7808 linux/input.h \
7809 linux/ioctl.h \
7810 linux/joystick.h \
7811 linux/major.h \
7812 linux/param.h \
7813 linux/serial.h \
7814 linux/ucdrom.h \
7815 mach/machine.h \
7816 machine/cpu.h \
7817 machine/limits.h \
7818 machine/soundcard.h \
7819 mntent.h \
7820 ncurses.h \
7821 netdb.h \
7822 netinet/in.h \
7823 netinet/in_systm.h \
7824 netinet/tcp.h \
7825 netinet/tcp_fsm.h \
7826 openssl/err.h \
7827 openssl/ssl.h \
7828 poll.h \
7829 process.h \
7830 pthread.h \
7831 pwd.h \
7832 regex.h \
7833 sched.h \
7834 scsi/scsi.h \
7835 scsi/scsi_ioctl.h \
7836 scsi/sg.h \
7837 soundcard.h \
7838 stdint.h \
7839 strings.h \
7840 sys/asoundlib.h \
7841 sys/cdio.h \
7842 sys/elf32.h \
7843 sys/epoll.h \
7844 sys/errno.h \
7845 sys/exec_elf.h \
7846 sys/filio.h \
7847 sys/ioctl.h \
7848 sys/ipc.h \
7849 sys/limits.h \
7850 sys/link.h \
7851 sys/lwp.h \
7852 sys/mman.h \
7853 sys/modem.h \
7854 sys/msg.h \
7855 sys/mtio.h \
7856 sys/param.h \
7857 sys/poll.h \
7858 sys/prctl.h \
7859 sys/ptrace.h \
7860 sys/reg.h \
7861 sys/resource.h \
7862 sys/scsiio.h \
7863 sys/shm.h \
7864 sys/signal.h \
7865 sys/socket.h \
7866 sys/sockio.h \
7867 sys/soundcard.h \
7868 sys/statvfs.h \
7869 sys/strtio.h \
7870 sys/syscall.h \
7871 sys/sysctl.h \
7872 sys/time.h \
7873 sys/times.h \
7874 sys/uio.h \
7875 sys/un.h \
7876 sys/vm86.h \
7877 sys/wait.h \
7878 syscall.h \
7879 termios.h \
7880 unicode/ubidi.h \
7881 unistd.h \
7882 utime.h \
7883 valgrind/memcheck.h
7886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 ac_res=`eval echo '${'$as_ac_Header'}'`
7894 { echo "$as_me:$LINENO: result: $ac_res" >&5
7895 echo "${ECHO_T}$ac_res" >&6; }
7896 else
7897 # Is the header compilable?
7898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7900 cat >conftest.$ac_ext <<_ACEOF
7901 /* confdefs.h. */
7902 _ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 #include <$ac_header>
7908 _ACEOF
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7911 (eval $ac_compile) 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_header_compiler=yes
7931 else
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_header_compiler=no
7938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7940 echo "${ECHO_T}$ac_header_compiler" >&6; }
7942 # Is the header present?
7943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 #include <$ac_header>
7952 _ACEOF
7953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } >/dev/null; then
7961 if test -s conftest.err; then
7962 ac_cpp_err=$ac_c_preproc_warn_flag
7963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7964 else
7965 ac_cpp_err=
7967 else
7968 ac_cpp_err=yes
7970 if test -z "$ac_cpp_err"; then
7971 ac_header_preproc=yes
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 ac_header_preproc=no
7979 rm -f conftest.err conftest.$ac_ext
7980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7981 echo "${ECHO_T}$ac_header_preproc" >&6; }
7983 # So? What about this header?
7984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7985 yes:no: )
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7990 ac_header_preproc=yes
7992 no:yes:* )
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8005 ( cat <<\_ASBOX
8006 ## ------------------------------------ ##
8007 ## Report this to wine-devel@winehq.org ##
8008 ## ------------------------------------ ##
8009 _ASBOX
8010 ) | sed "s/^/$as_me: WARNING: /" >&2
8012 esac
8013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018 eval "$as_ac_Header=\$ac_header_preproc"
8020 ac_res=`eval echo '${'$as_ac_Header'}'`
8021 { echo "$as_me:$LINENO: result: $ac_res" >&5
8022 echo "${ECHO_T}$ac_res" >&6; }
8025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8026 cat >>confdefs.h <<_ACEOF
8027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8028 _ACEOF
8032 done
8034 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8035 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
8036 if test "${ac_cv_header_stat_broken+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h. */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 #include <sys/types.h>
8046 #include <sys/stat.h>
8048 #if defined S_ISBLK && defined S_IFDIR
8049 # if S_ISBLK (S_IFDIR)
8050 You lose.
8051 # endif
8052 #endif
8054 #if defined S_ISBLK && defined S_IFCHR
8055 # if S_ISBLK (S_IFCHR)
8056 You lose.
8057 # endif
8058 #endif
8060 #if defined S_ISLNK && defined S_IFREG
8061 # if S_ISLNK (S_IFREG)
8062 You lose.
8063 # endif
8064 #endif
8066 #if defined S_ISSOCK && defined S_IFREG
8067 # if S_ISSOCK (S_IFREG)
8068 You lose.
8069 # endif
8070 #endif
8072 _ACEOF
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074 $EGREP "You lose" >/dev/null 2>&1; then
8075 ac_cv_header_stat_broken=yes
8076 else
8077 ac_cv_header_stat_broken=no
8079 rm -f conftest*
8082 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8083 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
8084 if test $ac_cv_header_stat_broken = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define STAT_MACROS_BROKEN 1
8088 _ACEOF
8098 for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 #include <sys/types.h>
8113 #if HAVE_SYS_PARAM_H
8114 # include <sys/param.h>
8115 #endif
8117 #include <$ac_header>
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121 (eval $ac_compile) 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 eval "$as_ac_Header=yes"
8141 else
8142 echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8145 eval "$as_ac_Header=no"
8148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8150 ac_res=`eval echo '${'$as_ac_Header'}'`
8151 { echo "$as_me:$LINENO: result: $ac_res" >&5
8152 echo "${ECHO_T}$ac_res" >&6; }
8153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8156 _ACEOF
8160 done
8169 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h. */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8183 #include <sys/types.h>
8184 #if HAVE_SYS_SOCKET_H
8185 # include <sys/socket.h>
8186 #endif
8188 #include <$ac_header>
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest.$ac_objext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 eval "$as_ac_Header=yes"
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 eval "$as_ac_Header=no"
8219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8221 ac_res=`eval echo '${'$as_ac_Header'}'`
8222 { echo "$as_me:$LINENO: result: $ac_res" >&5
8223 echo "${ECHO_T}$ac_res" >&6; }
8224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 _ACEOF
8231 done
8235 for ac_header in resolv.h
8237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #include <sys/types.h>
8250 #if HAVE_SYS_SOCKET_H
8251 # include <sys/socket.h>
8252 #endif
8253 #if HAVE_NETINET_IN_H
8254 # include <netinet/in.h>
8255 #endif
8256 #if HAVE_ARPA_NAMESER_H
8257 # include <arpa/nameser.h>
8258 #endif
8260 #include <$ac_header>
8261 _ACEOF
8262 rm -f conftest.$ac_objext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264 (eval $ac_compile) 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 eval "$as_ac_Header=yes"
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8288 eval "$as_ac_Header=no"
8291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8293 ac_res=`eval echo '${'$as_ac_Header'}'`
8294 { echo "$as_me:$LINENO: result: $ac_res" >&5
8295 echo "${ECHO_T}$ac_res" >&6; }
8296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8297 cat >>confdefs.h <<_ACEOF
8298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8299 _ACEOF
8303 done
8307 for ac_header in ucontext.h
8309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h. */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 #include <signal.h>
8323 #include <$ac_header>
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 eval "$as_ac_Header=yes"
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 eval "$as_ac_Header=no"
8354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8356 ac_res=`eval echo '${'$as_ac_Header'}'`
8357 { echo "$as_me:$LINENO: result: $ac_res" >&5
8358 echo "${ECHO_T}$ac_res" >&6; }
8359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8360 cat >>confdefs.h <<_ACEOF
8361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8362 _ACEOF
8366 done
8371 for ac_header in linux/ipx.h linux/videodev.h
8373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379 cat >conftest.$ac_ext <<_ACEOF
8380 /* confdefs.h. */
8381 _ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 #ifdef HAVE_SYS_TIME_H
8386 #include <sys/time.h>
8387 #endif
8388 #include <sys/types.h>
8389 #ifdef HAVE_ASM_TYPES_H
8390 #include <asm/types.h>
8391 #endif
8393 #include <$ac_header>
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397 (eval $ac_compile) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 eval "$as_ac_Header=yes"
8417 else
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 eval "$as_ac_Header=no"
8424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8426 ac_res=`eval echo '${'$as_ac_Header'}'`
8427 { echo "$as_me:$LINENO: result: $ac_res" >&5
8428 echo "${ECHO_T}$ac_res" >&6; }
8429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8432 _ACEOF
8436 done
8440 for ac_header in linux/capi.h
8442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 #define __user
8456 #include <$ac_header>
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 eval "$as_ac_Header=yes"
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 eval "$as_ac_Header=no"
8487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8489 ac_res=`eval echo '${'$as_ac_Header'}'`
8490 { echo "$as_me:$LINENO: result: $ac_res" >&5
8491 echo "${ECHO_T}$ac_res" >&6; }
8492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493 cat >>confdefs.h <<_ACEOF
8494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495 _ACEOF
8499 done
8503 if test "$have_x" = "yes"
8504 then
8505 XLIB="-lXext -lX11"
8506 ac_save_CPPFLAGS="$CPPFLAGS"
8507 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8519 for ac_header in X11/Xlib.h \
8520 X11/XKBlib.h \
8521 X11/Xutil.h \
8522 X11/extensions/shape.h \
8523 X11/extensions/XInput.h \
8524 X11/extensions/XShm.h \
8525 X11/extensions/Xrandr.h \
8526 X11/extensions/Xrender.h \
8527 X11/extensions/xf86dga.h \
8528 X11/extensions/xf86vmode.h
8530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h. */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 #ifdef HAVE_X11_XLIB_H
8543 # include <X11/Xlib.h>
8544 #endif
8545 #ifdef HAVE_X11_XUTIL_H
8546 # include <X11/Xutil.h>
8547 #endif
8549 #include <$ac_header>
8550 _ACEOF
8551 rm -f conftest.$ac_objext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8553 (eval $ac_compile) 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 eval "$as_ac_Header=yes"
8573 else
8574 echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8577 eval "$as_ac_Header=no"
8580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 ac_res=`eval echo '${'$as_ac_Header'}'`
8583 { echo "$as_me:$LINENO: result: $ac_res" >&5
8584 echo "${ECHO_T}$ac_res" >&6; }
8585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8588 _ACEOF
8592 done
8595 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8596 then
8597 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8598 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
8599 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602 ac_check_lib_save_LIBS=$LIBS
8603 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 /* Override any GCC internal prototype to avoid an error.
8612 Use char because int might match the return type of a GCC
8613 builtin and then its argument prototype would still apply. */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 char XkbQueryExtension ();
8619 main ()
8621 return XkbQueryExtension ();
8623 return 0;
8625 _ACEOF
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8628 (eval $ac_link) 2>conftest.er1
8629 ac_status=$?
8630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 ac_cv_lib_X11_XkbQueryExtension=yes
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8652 ac_cv_lib_X11_XkbQueryExtension=no
8655 rm -f conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
8657 LIBS=$ac_check_lib_save_LIBS
8659 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8660 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8661 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_XKB 1
8665 _ACEOF
8671 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8672 then
8673 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8674 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
8675 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 char XShmQueryExtension ();
8695 main ()
8697 return XShmQueryExtension ();
8699 return 0;
8701 _ACEOF
8702 rm -f conftest.$ac_objext conftest$ac_exeext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_cv_lib_Xext_XShmQueryExtension=yes
8724 else
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8728 ac_cv_lib_Xext_XShmQueryExtension=no
8731 rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_lib_save_LIBS
8735 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8736 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8737 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8739 cat >>confdefs.h <<\_ACEOF
8740 #define HAVE_LIBXXSHM 1
8741 _ACEOF
8747 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8748 then
8749 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8750 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
8751 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 ac_check_lib_save_LIBS=$LIBS
8755 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8763 /* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8766 #ifdef __cplusplus
8767 extern "C"
8768 #endif
8769 char XShapeQueryExtension ();
8771 main ()
8773 return XShapeQueryExtension ();
8775 return 0;
8777 _ACEOF
8778 rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8780 (eval $ac_link) 2>conftest.er1
8781 ac_status=$?
8782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } &&
8787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest$ac_exeext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_cv_lib_Xext_XShapeQueryExtension=yes
8800 else
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_lib_Xext_XShapeQueryExtension=no
8807 rm -f conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_lib_save_LIBS
8811 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8812 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8813 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8815 cat >>confdefs.h <<\_ACEOF
8816 #define HAVE_LIBXSHAPE 1
8817 _ACEOF
8823 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8824 then
8825 { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8826 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
8827 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 else
8830 ac_check_lib_save_LIBS=$LIBS
8831 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8832 cat >conftest.$ac_ext <<_ACEOF
8833 /* confdefs.h. */
8834 _ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8839 /* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 char XDGAQueryExtension ();
8847 main ()
8849 return XDGAQueryExtension ();
8851 return 0;
8853 _ACEOF
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>conftest.er1
8857 ac_status=$?
8858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } &&
8863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
8875 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8876 else
8877 echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8880 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8883 rm -f conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 LIBS=$ac_check_lib_save_LIBS
8887 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8888 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
8889 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_LIBXXF86DGA2 1
8893 _ACEOF
8895 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8901 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8902 then
8903 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8904 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
8905 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 else
8908 ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8917 /* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
8920 #ifdef __cplusplus
8921 extern "C"
8922 #endif
8923 char XF86VidModeQueryExtension ();
8925 main ()
8927 return XF86VidModeQueryExtension ();
8929 return 0;
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8954 else
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8961 rm -f conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963 LIBS=$ac_check_lib_save_LIBS
8965 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8966 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
8967 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8969 cat >>confdefs.h <<\_ACEOF
8970 #define HAVE_LIBXXF86VM 1
8971 _ACEOF
8973 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8979 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8980 then
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h. */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 #include <X11/Xlib.h>
8988 #include <X11/extensions/Xrandr.h>
8990 main ()
8992 static typeof(XRRSetScreenConfigAndRate) * func;
8994 return 0;
8996 _ACEOF
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
9019 cat >>confdefs.h <<\_ACEOF
9020 #define HAVE_LIBXRANDR 1
9021 _ACEOF
9023 else
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9033 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9034 then
9035 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9036 echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9037 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040 ac_check_lib_save_LIBS=$LIBS
9041 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9049 /* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char XRenderSetPictureTransform ();
9057 main ()
9059 return XRenderSetPictureTransform ();
9061 return 0;
9063 _ACEOF
9064 rm -f conftest.$ac_objext conftest$ac_exeext
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9086 else
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.$ac_ext >&5
9090 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9093 rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095 LIBS=$ac_check_lib_save_LIBS
9097 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9098 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9099 if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9101 cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_XRENDERSETPICTURETRANSFORM 1
9103 _ACEOF
9109 if test "x$with_opengl" != "xno"
9110 then
9115 for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
9117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 else
9123 cat >conftest.$ac_ext <<_ACEOF
9124 /* confdefs.h. */
9125 _ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9129 #ifdef HAVE_GL_GLX_H
9130 # include <GL/glx.h>
9131 #endif
9133 #include <$ac_header>
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest.$ac_objext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 eval "$as_ac_Header=yes"
9157 else
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 eval "$as_ac_Header=no"
9164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9166 ac_res=`eval echo '${'$as_ac_Header'}'`
9167 { echo "$as_me:$LINENO: result: $ac_res" >&5
9168 echo "${ECHO_T}$ac_res" >&6; }
9169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9170 cat >>confdefs.h <<_ACEOF
9171 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172 _ACEOF
9176 done
9178 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9179 then
9180 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9181 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
9182 if test "${wine_cv_opengl_version_OK+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <GL/gl.h>
9193 main ()
9195 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9197 return 0;
9199 _ACEOF
9200 rm -f conftest.$ac_objext
9201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9202 (eval $ac_compile) 2>conftest.er1
9203 ac_status=$?
9204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } &&
9209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest.$ac_objext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 wine_cv_opengl_version_OK="yes"
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 wine_cv_opengl_version_OK="no"
9230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9233 { echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
9234 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
9236 if test "$wine_cv_opengl_version_OK" = "yes"
9237 then
9238 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9239 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
9240 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char glXCreateContext ();
9260 main ()
9262 return glXCreateContext ();
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_cv_lib_GL_glXCreateContext=yes
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 ac_cv_lib_GL_glXCreateContext=no
9296 rm -f conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9300 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9301 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
9302 if test $ac_cv_lib_GL_glXCreateContext = yes; then
9303 OPENGL_LIBS="-lGL"
9308 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
9309 then
9310 OPENGLFILES='$(OPENGLFILES)'
9312 cat >>confdefs.h <<\_ACEOF
9313 #define HAVE_OPENGL 1
9314 _ACEOF
9316 else
9317 if test -f /usr/X11R6/lib/libGL.a
9318 then
9319 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
9320 This prevents linking to OpenGL. Delete the file and restart configure." >&5
9321 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
9322 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
9323 { (exit 1); exit 1; }; }
9327 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9328 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
9329 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9334 $LIBS"
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9342 /* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
9345 #ifdef __cplusplus
9346 extern "C"
9347 #endif
9348 char gluLookAt ();
9350 main ()
9352 return gluLookAt ();
9354 return 0;
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest$ac_exeext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 (eval $ac_try) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_lib_GLU_gluLookAt=yes
9379 else
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9383 ac_cv_lib_GLU_gluLookAt=no
9386 rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9391 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
9392 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9393 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9394 GLU32FILES='$(GLU32FILES)'
9400 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9401 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
9402 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405 ac_check_lib_save_LIBS=$LIBS
9406 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9407 cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h. */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9414 /* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char glutMainLoop ();
9422 main ()
9424 return glutMainLoop ();
9426 return 0;
9428 _ACEOF
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431 (eval $ac_link) 2>conftest.er1
9432 ac_status=$?
9433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest$ac_exeext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_lib_glut_glutMainLoop=yes
9451 else
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ac_cv_lib_glut_glutMainLoop=no
9458 rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$ac_check_lib_save_LIBS
9462 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9463 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
9464 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9465 GLUT_LIBS="-lglut -lXmu -lXi"
9467 GLUT32FILES='$(GLUT32FILES)'
9474 NASLIBS=""
9477 for ac_header in audio/audiolib.h
9479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 ac_res=`eval echo '${'$as_ac_Header'}'`
9487 { echo "$as_me:$LINENO: result: $ac_res" >&5
9488 echo "${ECHO_T}$ac_res" >&6; }
9489 else
9490 # Is the header compilable?
9491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9493 cat >conftest.$ac_ext <<_ACEOF
9494 /* confdefs.h. */
9495 _ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 $ac_includes_default
9500 #include <$ac_header>
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504 (eval $ac_compile) 2>conftest.er1
9505 ac_status=$?
9506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest.$ac_objext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_header_compiler=yes
9524 else
9525 echo "$as_me: failed program was:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9528 ac_header_compiler=no
9531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9533 echo "${ECHO_T}$ac_header_compiler" >&6; }
9535 # Is the header present?
9536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 #include <$ac_header>
9545 _ACEOF
9546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } >/dev/null; then
9554 if test -s conftest.err; then
9555 ac_cpp_err=$ac_c_preproc_warn_flag
9556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9557 else
9558 ac_cpp_err=
9560 else
9561 ac_cpp_err=yes
9563 if test -z "$ac_cpp_err"; then
9564 ac_header_preproc=yes
9565 else
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_header_preproc=no
9572 rm -f conftest.err conftest.$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9574 echo "${ECHO_T}$ac_header_preproc" >&6; }
9576 # So? What about this header?
9577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9578 yes:no: )
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9583 ac_header_preproc=yes
9585 no:yes:* )
9586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9598 ( cat <<\_ASBOX
9599 ## ------------------------------------ ##
9600 ## Report this to wine-devel@winehq.org ##
9601 ## ------------------------------------ ##
9602 _ASBOX
9603 ) | sed "s/^/$as_me: WARNING: /" >&2
9605 esac
9606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611 eval "$as_ac_Header=\$ac_header_preproc"
9613 ac_res=`eval echo '${'$as_ac_Header'}'`
9614 { echo "$as_me:$LINENO: result: $ac_res" >&5
9615 echo "${ECHO_T}$ac_res" >&6; }
9618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9619 cat >>confdefs.h <<_ACEOF
9620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9621 _ACEOF
9623 for ac_header in audio/soundlib.h
9625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h. */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 #include <audio/audiolib.h>
9639 #include <$ac_header>
9640 _ACEOF
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>conftest.er1
9644 ac_status=$?
9645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest.$ac_objext'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 eval "$as_ac_Header=yes"
9663 else
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 eval "$as_ac_Header=no"
9670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 ac_res=`eval echo '${'$as_ac_Header'}'`
9673 { echo "$as_me:$LINENO: result: $ac_res" >&5
9674 echo "${ECHO_T}$ac_res" >&6; }
9675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >>confdefs.h <<_ACEOF
9677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678 _ACEOF
9682 done
9684 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9685 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
9686 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689 ac_check_lib_save_LIBS=$LIBS
9690 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9691 cat >conftest.$ac_ext <<_ACEOF
9692 /* confdefs.h. */
9693 _ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char AuCreateFlow ();
9706 main ()
9708 return AuCreateFlow ();
9710 return 0;
9712 _ACEOF
9713 rm -f conftest.$ac_objext conftest$ac_exeext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9715 (eval $ac_link) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_audio_AuCreateFlow=yes
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_cv_lib_audio_AuCreateFlow=no
9742 rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
9744 LIBS=$ac_check_lib_save_LIBS
9746 { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9747 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
9748 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9750 cat >>confdefs.h <<\_ACEOF
9751 #define HAVE_NAS 1
9752 _ACEOF
9754 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9759 done
9762 CPPFLAGS="$ac_save_CPPFLAGS"
9763 XFILES='$(XFILES)'
9764 else
9765 XLIB=""
9766 X_CFLAGS=""
9767 X_LIBS=""
9771 XML2LIBS=""
9773 XML2INCL=""
9775 XSLTLIBS=""
9777 XSLTINCL=""
9779 if test "$PKG_CONFIG" != "false"
9780 then
9781 ac_save_CPPFLAGS="$CPPFLAGS"
9782 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`"
9783 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
9784 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9786 for ac_header in libxml/parser.h
9788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 ac_res=`eval echo '${'$as_ac_Header'}'`
9796 { echo "$as_me:$LINENO: result: $ac_res" >&5
9797 echo "${ECHO_T}$ac_res" >&6; }
9798 else
9799 # Is the header compilable?
9800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 $ac_includes_default
9809 #include <$ac_header>
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_header_compiler=yes
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 ac_header_compiler=no
9840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9842 echo "${ECHO_T}$ac_header_compiler" >&6; }
9844 # Is the header present?
9845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 #include <$ac_header>
9854 _ACEOF
9855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } >/dev/null; then
9863 if test -s conftest.err; then
9864 ac_cpp_err=$ac_c_preproc_warn_flag
9865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9866 else
9867 ac_cpp_err=
9869 else
9870 ac_cpp_err=yes
9872 if test -z "$ac_cpp_err"; then
9873 ac_header_preproc=yes
9874 else
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9878 ac_header_preproc=no
9881 rm -f conftest.err conftest.$ac_ext
9882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9883 echo "${ECHO_T}$ac_header_preproc" >&6; }
9885 # So? What about this header?
9886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9887 yes:no: )
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9892 ac_header_preproc=yes
9894 no:yes:* )
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9907 ( cat <<\_ASBOX
9908 ## ------------------------------------ ##
9909 ## Report this to wine-devel@winehq.org ##
9910 ## ------------------------------------ ##
9911 _ASBOX
9912 ) | sed "s/^/$as_me: WARNING: /" >&2
9914 esac
9915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 else
9920 eval "$as_ac_Header=\$ac_header_preproc"
9922 ac_res=`eval echo '${'$as_ac_Header'}'`
9923 { echo "$as_me:$LINENO: result: $ac_res" >&5
9924 echo "${ECHO_T}$ac_res" >&6; }
9927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9928 cat >>confdefs.h <<_ACEOF
9929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9930 _ACEOF
9931 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9932 echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
9933 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-lxml2 $ac_xml_libs $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 char xmlParseMemory ();
9953 main ()
9955 return xmlParseMemory ();
9957 return 0;
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_lib_xml2_xmlParseMemory=yes
9982 else
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_lib_xml2_xmlParseMemory=no
9989 rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9994 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9995 if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_LIBXML2 1
9999 _ACEOF
10001 XML2LIBS="$ac_xml_libs"
10002 XML2INCL="$ac_xml_cflags"
10005 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10006 echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
10007 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 ac_check_lib_save_LIBS=$LIBS
10011 LIBS="-lxml2 $ac_xml_libs $LIBS"
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10022 #ifdef __cplusplus
10023 extern "C"
10024 #endif
10025 char xmlReadMemory ();
10027 main ()
10029 return xmlReadMemory ();
10031 return 0;
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_lib_xml2_xmlReadMemory=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10060 ac_cv_lib_xml2_xmlReadMemory=no
10063 rm -f conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10067 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10068 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10069 if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_XMLREADMEMORY 1
10073 _ACEOF
10080 done
10082 CPPFLAGS="$ac_save_CPPFLAGS"
10083 ac_xslt_libs="`$PKG_CONFIG --libs libxslt`"
10084 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`"
10085 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10088 for ac_header in libxslt/pattern.h libxslt/transform.h
10090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 else
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 #ifdef HAVE_LIBXSLT_PATTERN_H
10103 # include <libxslt/pattern.h>
10104 #endif
10106 #include <$ac_header>
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 eval "$as_ac_Header=yes"
10130 else
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 eval "$as_ac_Header=no"
10137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10139 ac_res=`eval echo '${'$as_ac_Header'}'`
10140 { echo "$as_me:$LINENO: result: $ac_res" >&5
10141 echo "${ECHO_T}$ac_res" >&6; }
10142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10145 _ACEOF
10146 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10147 echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
10148 if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-lxslt $ac_xslt_libs $LIBS"
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10160 /* Override any GCC internal prototype to avoid an error.
10161 Use char because int might match the return type of a GCC
10162 builtin and then its argument prototype would still apply. */
10163 #ifdef __cplusplus
10164 extern "C"
10165 #endif
10166 char xsltCompilePattern ();
10168 main ()
10170 return xsltCompilePattern ();
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_lib_xslt_xsltCompilePattern=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_xslt_xsltCompilePattern=no
10204 rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10209 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
10210 if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_LIBXSLT 1
10214 _ACEOF
10216 XSLTLIBS="$ac_xslt_libs"
10217 XSLTINCL="$ac_xslt_cflags"
10223 done
10225 CPPFLAGS="$ac_save_CPPFLAGS"
10228 HALINCL=""
10230 if test "$PKG_CONFIG" != "false"
10231 then
10232 ac_save_CPPFLAGS="$CPPFLAGS"
10233 ac_hal_libs="`$PKG_CONFIG --libs hal`"
10234 ac_hal_cflags="`$PKG_CONFIG --cflags hal`"
10235 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10238 for ac_header in dbus/dbus.h hal/libhal.h
10240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 ac_res=`eval echo '${'$as_ac_Header'}'`
10248 { echo "$as_me:$LINENO: result: $ac_res" >&5
10249 echo "${ECHO_T}$ac_res" >&6; }
10250 else
10251 # Is the header compilable?
10252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10254 cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h. */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10260 $ac_includes_default
10261 #include <$ac_header>
10262 _ACEOF
10263 rm -f conftest.$ac_objext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try='test -s conftest.$ac_objext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_header_compiler=yes
10285 else
10286 echo "$as_me: failed program was:" >&5
10287 sed 's/^/| /' conftest.$ac_ext >&5
10289 ac_header_compiler=no
10292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294 echo "${ECHO_T}$ac_header_compiler" >&6; }
10296 # Is the header present?
10297 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10299 cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h. */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <$ac_header>
10306 _ACEOF
10307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } >/dev/null; then
10315 if test -s conftest.err; then
10316 ac_cpp_err=$ac_c_preproc_warn_flag
10317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10318 else
10319 ac_cpp_err=
10321 else
10322 ac_cpp_err=yes
10324 if test -z "$ac_cpp_err"; then
10325 ac_header_preproc=yes
10326 else
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_header_preproc=no
10333 rm -f conftest.err conftest.$ac_ext
10334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10335 echo "${ECHO_T}$ac_header_preproc" >&6; }
10337 # So? What about this header?
10338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10339 yes:no: )
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10344 ac_header_preproc=yes
10346 no:yes:* )
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10359 ( cat <<\_ASBOX
10360 ## ------------------------------------ ##
10361 ## Report this to wine-devel@winehq.org ##
10362 ## ------------------------------------ ##
10363 _ASBOX
10364 ) | sed "s/^/$as_me: WARNING: /" >&2
10366 esac
10367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 else
10372 eval "$as_ac_Header=\$ac_header_preproc"
10374 ac_res=`eval echo '${'$as_ac_Header'}'`
10375 { echo "$as_me:$LINENO: result: $ac_res" >&5
10376 echo "${ECHO_T}$ac_res" >&6; }
10379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382 _ACEOF
10386 done
10388 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10389 then
10390 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10391 echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
10392 if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394 else
10395 ac_check_lib_save_LIBS=$LIBS
10396 LIBS="-lhal $LIBS"
10397 cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h. */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char libhal_ctx_new ();
10412 main ()
10414 return libhal_ctx_new ();
10416 return 0;
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_lib_hal_libhal_ctx_new=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_cv_lib_hal_libhal_ctx_new=no
10448 rm -f conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_lib_save_LIBS
10452 { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10453 echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
10454 if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
10455 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10456 echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
10457 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10469 /* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
10472 #ifdef __cplusplus
10473 extern "C"
10474 #endif
10475 char dbus_connection_close ();
10477 main ()
10479 return dbus_connection_close ();
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } &&
10499 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_lib_dbus_1_dbus_connection_close=yes
10506 else
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10510 ac_cv_lib_dbus_1_dbus_connection_close=no
10513 rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10517 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10518 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
10519 if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
10521 cat >>confdefs.h <<\_ACEOF
10522 #define HAVE_LIBHAL 1
10523 _ACEOF
10525 HALINCL="$ac_hal_cflags"
10531 CPPFLAGS="$ac_save_CPPFLAGS"
10534 CURSESLIBS=""
10535 if test "x$with_curses" != "xno"
10536 then
10537 if test "$ac_cv_header_ncurses_h" = "yes"
10538 then
10539 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10540 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
10541 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 ac_check_lib_save_LIBS=$LIBS
10545 LIBS="-lncurses $LIBS"
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h. */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10553 /* Override any GCC internal prototype to avoid an error.
10554 Use char because int might match the return type of a GCC
10555 builtin and then its argument prototype would still apply. */
10556 #ifdef __cplusplus
10557 extern "C"
10558 #endif
10559 char waddch ();
10561 main ()
10563 return waddch ();
10565 return 0;
10567 _ACEOF
10568 rm -f conftest.$ac_objext conftest$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10586 ac_status=$?
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; }; then
10589 ac_cv_lib_ncurses_waddch=yes
10590 else
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_cv_lib_ncurses_waddch=no
10597 rm -f conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10601 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
10602 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
10603 if test $ac_cv_lib_ncurses_waddch = yes; then
10605 cat >>confdefs.h <<\_ACEOF
10606 #define HAVE_LIBNCURSES 1
10607 _ACEOF
10609 CURSESLIBS="-lncurses"
10612 elif test "$ac_cv_header_curses_h" = "yes"
10613 then
10614 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
10615 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
10616 if test "${ac_cv_lib_curses_waddch+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lcurses $LIBS"
10621 cat >conftest.$ac_ext <<_ACEOF
10622 /* confdefs.h. */
10623 _ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char waddch ();
10636 main ()
10638 return waddch ();
10640 return 0;
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_lib_curses_waddch=yes
10665 else
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_cv_lib_curses_waddch=no
10672 rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674 LIBS=$ac_check_lib_save_LIBS
10676 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
10677 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
10678 if test $ac_cv_lib_curses_waddch = yes; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_LIBCURSES 1
10682 _ACEOF
10684 CURSESLIBS="-lcurses"
10691 # Extract the first word of "sane-config", so it can be a program name with args.
10692 set dummy sane-config; ac_word=$2
10693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10695 if test "${ac_cv_prog_sane_devel+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697 else
10698 if test -n "$sane_devel"; then
10699 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10700 else
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10708 ac_cv_prog_sane_devel="sane-config"
10709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10712 done
10713 done
10714 IFS=$as_save_IFS
10716 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10719 sane_devel=$ac_cv_prog_sane_devel
10720 if test -n "$sane_devel"; then
10721 { echo "$as_me:$LINENO: result: $sane_devel" >&5
10722 echo "${ECHO_T}$sane_devel" >&6; }
10723 else
10724 { echo "$as_me:$LINENO: result: no" >&5
10725 echo "${ECHO_T}no" >&6; }
10729 SANELIBS=""
10731 SANEINCL=""
10733 if test "$sane_devel" != "no"
10734 then
10735 SANELIBS="`$sane_devel --libs`"
10736 SANEINCL="`$sane_devel --cflags`"
10737 ac_save_CPPFLAGS="$CPPFLAGS"
10738 ac_save_LIBS="$LIBS"
10739 CPPFLAGS="$CPPFLAGS $SANEINCL"
10740 LIBS="$LIBS $SANELIBS"
10741 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10742 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10743 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10744 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10748 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10749 else
10750 # Is the header compilable?
10751 { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10752 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10760 #include <sane/sane.h>
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_header_compiler=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_header_compiler=no
10791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10793 echo "${ECHO_T}$ac_header_compiler" >&6; }
10795 # Is the header present?
10796 { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10797 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h. */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10804 #include <sane/sane.h>
10805 _ACEOF
10806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } >/dev/null; then
10814 if test -s conftest.err; then
10815 ac_cpp_err=$ac_c_preproc_warn_flag
10816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10817 else
10818 ac_cpp_err=
10820 else
10821 ac_cpp_err=yes
10823 if test -z "$ac_cpp_err"; then
10824 ac_header_preproc=yes
10825 else
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 ac_header_preproc=no
10832 rm -f conftest.err conftest.$ac_ext
10833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10834 echo "${ECHO_T}$ac_header_preproc" >&6; }
10836 # So? What about this header?
10837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10838 yes:no: )
10839 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10840 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10841 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10842 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10843 ac_header_preproc=yes
10845 no:yes:* )
10846 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10847 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10848 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10849 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10851 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10853 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10854 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10855 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10856 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10857 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10858 ( cat <<\_ASBOX
10859 ## ------------------------------------ ##
10860 ## Report this to wine-devel@winehq.org ##
10861 ## ------------------------------------ ##
10862 _ASBOX
10863 ) | sed "s/^/$as_me: WARNING: /" >&2
10865 esac
10866 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10867 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
10868 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 else
10871 ac_cv_header_sane_sane_h=$ac_header_preproc
10873 { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10874 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
10877 if test $ac_cv_header_sane_sane_h = yes; then
10878 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10879 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
10880 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883 ac_check_lib_save_LIBS=$LIBS
10884 LIBS="-lsane $LIBS"
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h. */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10892 /* Override any GCC internal prototype to avoid an error.
10893 Use char because int might match the return type of a GCC
10894 builtin and then its argument prototype would still apply. */
10895 #ifdef __cplusplus
10896 extern "C"
10897 #endif
10898 char sane_open ();
10900 main ()
10902 return sane_open ();
10904 return 0;
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; } &&
10922 { ac_try='test -s conftest$ac_exeext'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; }; then
10928 ac_cv_lib_sane_sane_open=yes
10929 else
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ac_cv_lib_sane_sane_open=no
10936 rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
10938 LIBS=$ac_check_lib_save_LIBS
10940 { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10941 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
10942 if test $ac_cv_lib_sane_sane_open = yes; then
10944 cat >>confdefs.h <<\_ACEOF
10945 #define HAVE_SANE 1
10946 _ACEOF
10948 else
10949 SANELIBS=""
10950 SANEINCL=""
10953 else
10954 SANELIBS=""
10955 SANEINCL=""
10959 LIBS="$ac_save_LIBS"
10960 CPPFLAGS="$ac_save_CPPFLAGS"
10963 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10964 set dummy gphoto2-config; ac_word=$2
10965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10967 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 if test -n "$gphoto2_devel"; then
10971 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10972 else
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_prog_gphoto2_devel="gphoto2-config"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10984 done
10985 done
10986 IFS=$as_save_IFS
10988 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10991 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10992 if test -n "$gphoto2_devel"; then
10993 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10994 echo "${ECHO_T}$gphoto2_devel" >&6; }
10995 else
10996 { echo "$as_me:$LINENO: result: no" >&5
10997 echo "${ECHO_T}no" >&6; }
11001 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11002 set dummy gphoto2-port-config; ac_word=$2
11003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11005 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008 if test -n "$gphoto2port_devel"; then
11009 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11010 else
11011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $PATH
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
11017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11018 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11022 done
11023 done
11024 IFS=$as_save_IFS
11026 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11029 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11030 if test -n "$gphoto2port_devel"; then
11031 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11032 echo "${ECHO_T}$gphoto2port_devel" >&6; }
11033 else
11034 { echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6; }
11039 GPHOTO2LIBS=""
11041 GPHOTO2INCL=""
11043 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11044 then
11045 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11046 GPHOTO2LIBS=""
11047 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11049 case "$i" in
11050 -L/usr/lib|-L/usr/lib64) ;;
11051 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11052 esac
11053 done
11054 ac_save_CPPFLAGS="$CPPFLAGS"
11055 ac_save_LIBS="$LIBS"
11056 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11057 LIBS="$LIBS $GPHOTO2LIBS"
11058 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11059 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11060 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11061 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11065 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11066 else
11067 # Is the header compilable?
11068 { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11069 echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h. */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 #include <gphoto2-camera.h>
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081 (eval $ac_compile) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_header_compiler=yes
11101 else
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_header_compiler=no
11108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110 echo "${ECHO_T}$ac_header_compiler" >&6; }
11112 # Is the header present?
11113 { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11114 echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h. */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h. */
11121 #include <gphoto2-camera.h>
11122 _ACEOF
11123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } >/dev/null; then
11131 if test -s conftest.err; then
11132 ac_cpp_err=$ac_c_preproc_warn_flag
11133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11134 else
11135 ac_cpp_err=
11137 else
11138 ac_cpp_err=yes
11140 if test -z "$ac_cpp_err"; then
11141 ac_header_preproc=yes
11142 else
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ac_header_preproc=no
11149 rm -f conftest.err conftest.$ac_ext
11150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11151 echo "${ECHO_T}$ac_header_preproc" >&6; }
11153 # So? What about this header?
11154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155 yes:no: )
11156 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11157 echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11159 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11160 ac_header_preproc=yes
11162 no:yes:* )
11163 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11164 echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
11166 echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11168 echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
11170 echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11172 echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11174 echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
11175 ( cat <<\_ASBOX
11176 ## ------------------------------------ ##
11177 ## Report this to wine-devel@winehq.org ##
11178 ## ------------------------------------ ##
11179 _ASBOX
11180 ) | sed "s/^/$as_me: WARNING: /" >&2
11182 esac
11183 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11184 echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
11185 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11190 { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11191 echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
11194 if test $ac_cv_header_gphoto2_camera_h = yes; then
11195 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11196 echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
11197 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 ac_check_lib_save_LIBS=$LIBS
11201 LIBS="-lgphoto2 $LIBS"
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char gp_camera_new ();
11217 main ()
11219 return gp_camera_new ();
11221 return 0;
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_lib_gphoto2_gp_camera_new=yes
11246 else
11247 echo "$as_me: failed program was:" >&5
11248 sed 's/^/| /' conftest.$ac_ext >&5
11250 ac_cv_lib_gphoto2_gp_camera_new=no
11253 rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11258 echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11259 if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11261 cat >>confdefs.h <<\_ACEOF
11262 #define HAVE_GPHOTO2 1
11263 _ACEOF
11265 else
11266 GPHOTO2LIBS=""
11267 GPHOTO2INCL=""
11270 else
11271 GPHOTO2LIBS=""
11272 GPHOTO2INCL=""
11276 LIBS="$ac_save_LIBS"
11277 CPPFLAGS="$ac_save_CPPFLAGS"
11280 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11281 then
11282 saved_libs="$LIBS"
11283 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
11285 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
11286 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
11287 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
11288 echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
11289 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h. */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 #include <unicode/ubidi.h>
11298 main ()
11300 ubidi_open()
11302 return 0;
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307 (eval $ac_link) 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } &&
11314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest$ac_exeext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11323 ac_status=$?
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_ICU 1
11329 _ACEOF
11331 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11333 { echo "$as_me:$LINENO: result: yes" >&5
11334 echo "${ECHO_T}yes" >&6; }
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 { echo "$as_me:$LINENO: result: no" >&5
11340 echo "${ECHO_T}no" >&6; }
11343 rm -f conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11345 done
11346 LIBS="$saved_libs"
11349 RESOLVLIBS=""
11351 if test "$ac_cv_header_resolv_h" = "yes"
11352 then
11353 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11354 echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
11355 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358 ac_check_lib_save_LIBS=$LIBS
11359 LIBS="-lresolv $LIBS"
11360 cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h. */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char res_query ();
11375 main ()
11377 return res_query ();
11379 return 0;
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11384 (eval $ac_link) 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; } &&
11397 { ac_try='test -s conftest$ac_exeext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 ac_cv_lib_resolv_res_query=yes
11404 else
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_cv_lib_resolv_res_query=no
11411 rm -f conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11416 echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
11417 if test $ac_cv_lib_resolv_res_query = yes; then
11419 cat >>confdefs.h <<\_ACEOF
11420 #define HAVE_RESOLV 1
11421 _ACEOF
11423 RESOLVLIBS="-lresolv"
11428 LCMSLIBS=""
11430 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
11431 then
11432 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
11433 echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
11434 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-llcms $LIBS"
11439 cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h. */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char cmsOpenProfileFromFile ();
11454 main ()
11456 return cmsOpenProfileFromFile ();
11458 return 0;
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
11483 else
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 LIBS=$ac_check_lib_save_LIBS
11494 { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
11495 echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
11496 if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_LCMS 1
11500 _ACEOF
11502 LCMSLIBS="-llcms"
11507 LDAPLIBS=""
11509 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
11510 then
11511 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
11512 echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
11513 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-lldap_r $LIBPTHREAD $LIBS"
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char ldap_initialize ();
11533 main ()
11535 return ldap_initialize ();
11537 return 0;
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542 (eval $ac_link) 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest$ac_exeext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_cv_lib_ldap_r_ldap_initialize=yes
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_cv_lib_ldap_r_ldap_initialize=no
11569 rm -f conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
11571 LIBS=$ac_check_lib_save_LIBS
11573 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
11574 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
11575 if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
11576 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
11577 echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
11578 if test "${ac_cv_lib_lber_ber_init+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-llber $LIBPTHREAD $LIBS"
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h. */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char ber_init ();
11598 main ()
11600 return ber_init ();
11602 return 0;
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
11614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest$ac_exeext'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 ac_cv_lib_lber_ber_init=yes
11627 else
11628 echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11631 ac_cv_lib_lber_ber_init=no
11634 rm -f conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 LIBS=$ac_check_lib_save_LIBS
11638 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
11639 echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
11640 if test $ac_cv_lib_lber_ber_init = yes; then
11642 cat >>confdefs.h <<\_ACEOF
11643 #define HAVE_LDAP 1
11644 _ACEOF
11646 LDAPLIBS="-lldap_r -llber"
11651 ac_wine_check_funcs_save_LIBS="$LIBS"
11652 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
11657 for ac_func in \
11658 ldap_count_references \
11659 ldap_first_reference \
11660 ldap_next_reference \
11661 ldap_parse_reference
11663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11664 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11666 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11677 #define $ac_func innocuous_$ac_func
11679 /* System header to define __stub macros and hopefully few prototypes,
11680 which can conflict with char $ac_func (); below.
11681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11682 <limits.h> exists even on freestanding compilers. */
11684 #ifdef __STDC__
11685 # include <limits.h>
11686 #else
11687 # include <assert.h>
11688 #endif
11690 #undef $ac_func
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char $ac_func ();
11699 /* The GNU C library defines this for functions which it implements
11700 to always fail with ENOSYS. Some functions are actually named
11701 something starting with __ and the normal name is an alias. */
11702 #if defined __stub_$ac_func || defined __stub___$ac_func
11703 choke me
11704 #endif
11707 main ()
11709 return $ac_func ();
11711 return 0;
11713 _ACEOF
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>conftest.er1
11717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
11723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 eval "$as_ac_var=yes"
11736 else
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 eval "$as_ac_var=no"
11743 rm -f conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11746 ac_res=`eval echo '${'$as_ac_var'}'`
11747 { echo "$as_me:$LINENO: result: $ac_res" >&5
11748 echo "${ECHO_T}$ac_res" >&6; }
11749 if test `eval echo '${'$as_ac_var'}'` = yes; then
11750 cat >>confdefs.h <<_ACEOF
11751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11752 _ACEOF
11755 done
11757 LIBS="$ac_wine_check_funcs_save_LIBS"
11760 FREETYPELIBS=""
11762 FREETYPEINCL=""
11764 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
11765 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
11766 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769 ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-lfreetype $X_LIBS $LIBS"
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h. */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 char FT_Init_FreeType ();
11786 main ()
11788 return FT_Init_FreeType ();
11790 return 0;
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_cv_lib_freetype_FT_Init_FreeType=yes
11815 else
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ac_cv_lib_freetype_FT_Init_FreeType=no
11822 rm -f conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824 LIBS=$ac_check_lib_save_LIBS
11826 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11827 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
11828 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
11829 ft_lib=yes
11830 else
11831 ft_lib=no
11834 if test "$ft_lib" = "no"
11835 then
11836 wine_cv_msg_freetype=no
11837 else
11838 # Extract the first word of "freetype-config", so it can be a program name with args.
11839 set dummy freetype-config; ac_word=$2
11840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11842 if test "${ac_cv_prog_ft_devel+set}" = set; then
11843 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845 if test -n "$ft_devel"; then
11846 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
11847 else
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11855 ac_cv_prog_ft_devel="freetype-config"
11856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 break 2
11859 done
11860 done
11861 IFS=$as_save_IFS
11863 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
11866 ft_devel=$ac_cv_prog_ft_devel
11867 if test -n "$ft_devel"; then
11868 { echo "$as_me:$LINENO: result: $ft_devel" >&5
11869 echo "${ECHO_T}$ft_devel" >&6; }
11870 else
11871 { echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6; }
11876 if test "$ft_devel" = "no"
11877 then
11878 # Extract the first word of "freetype2-config", so it can be a program name with args.
11879 set dummy freetype2-config; ac_word=$2
11880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11882 if test "${ac_cv_prog_ft_devel2+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885 if test -n "$ft_devel2"; then
11886 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
11887 else
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11895 ac_cv_prog_ft_devel2="freetype2-config"
11896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 break 2
11899 done
11900 done
11901 IFS=$as_save_IFS
11903 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
11906 ft_devel2=$ac_cv_prog_ft_devel2
11907 if test -n "$ft_devel2"; then
11908 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
11909 echo "${ECHO_T}$ft_devel2" >&6; }
11910 else
11911 { echo "$as_me:$LINENO: result: no" >&5
11912 echo "${ECHO_T}no" >&6; }
11916 if test "$ft_devel2" = "freetype2-config"
11917 then
11918 ft_devel=$ft_devel2
11921 if test "$ft_devel" = "no"
11922 then
11923 wine_cv_msg_freetype=yes
11924 else
11925 FREETYPELIBS=`$ft_devel --libs`
11926 FREETYPEINCL=`$ft_devel --cflags`
11927 ac_save_CPPFLAGS="$CPPFLAGS"
11928 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
11940 for ac_header in ft2build.h \
11941 freetype/freetype.h \
11942 freetype/ftglyph.h \
11943 freetype/tttables.h \
11944 freetype/ftnames.h \
11945 freetype/ftsnames.h \
11946 freetype/ttnameid.h \
11947 freetype/ftoutln.h \
11948 freetype/ftwinfnt.h \
11949 freetype/ftmodapi.h \
11950 freetype/internal/sfnt.h
11952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 #if HAVE_FT2BUILD_H
11965 #include <ft2build.h>
11966 #endif
11968 #include <$ac_header>
11969 _ACEOF
11970 rm -f conftest.$ac_objext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972 (eval $ac_compile) 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest.$ac_objext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_Header=yes"
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 eval "$as_ac_Header=no"
11999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 ac_res=`eval echo '${'$as_ac_Header'}'`
12002 { echo "$as_me:$LINENO: result: $ac_res" >&5
12003 echo "${ECHO_T}$ac_res" >&6; }
12004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12005 cat >>confdefs.h <<_ACEOF
12006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12007 _ACEOF
12011 done
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019 #include <ft2build.h>
12020 #include <freetype/fttrigon.h>
12021 _ACEOF
12022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } >/dev/null; then
12030 if test -s conftest.err; then
12031 ac_cpp_err=$ac_c_preproc_warn_flag
12032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12033 else
12034 ac_cpp_err=
12036 else
12037 ac_cpp_err=yes
12039 if test -z "$ac_cpp_err"; then
12041 cat >>confdefs.h <<\_ACEOF
12042 #define HAVE_FREETYPE_FTTRIGON_H 1
12043 _ACEOF
12045 wine_cv_fttrigon=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 wine_cv_fttrigon=no
12053 rm -f conftest.err conftest.$ac_ext
12054 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12055 echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
12056 if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 #include <freetype/ftmodapi.h>
12067 typedef FT_TrueTypeEngineType ac__type_new_;
12069 main ()
12071 if ((ac__type_new_ *) 0)
12072 return 0;
12073 if (sizeof (ac__type_new_))
12074 return 0;
12076 return 0;
12078 _ACEOF
12079 rm -f conftest.$ac_objext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12081 (eval $ac_compile) 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; } &&
12094 { ac_try='test -s conftest.$ac_objext'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_cv_type_FT_TrueTypeEngineType=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_type_FT_TrueTypeEngineType=no
12108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12110 { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12111 echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
12112 if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define HAVE_FT_TRUETYPEENGINETYPE 1
12116 _ACEOF
12121 ac_save_CFLAGS="$CFLAGS"
12122 CFLAGS="$CFLAGS $FREETYPELIBS"
12124 for ac_func in FT_Load_Sfnt_Table
12126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131 else
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h. */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12140 #define $ac_func innocuous_$ac_func
12142 /* System header to define __stub macros and hopefully few prototypes,
12143 which can conflict with char $ac_func (); below.
12144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12145 <limits.h> exists even on freestanding compilers. */
12147 #ifdef __STDC__
12148 # include <limits.h>
12149 #else
12150 # include <assert.h>
12151 #endif
12153 #undef $ac_func
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 char $ac_func ();
12162 /* The GNU C library defines this for functions which it implements
12163 to always fail with ENOSYS. Some functions are actually named
12164 something starting with __ and the normal name is an alias. */
12165 #if defined __stub_$ac_func || defined __stub___$ac_func
12166 choke me
12167 #endif
12170 main ()
12172 return $ac_func ();
12174 return 0;
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 eval "$as_ac_var=yes"
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 eval "$as_ac_var=no"
12206 rm -f conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12209 ac_res=`eval echo '${'$as_ac_var'}'`
12210 { echo "$as_me:$LINENO: result: $ac_res" >&5
12211 echo "${ECHO_T}$ac_res" >&6; }
12212 if test `eval echo '${'$as_ac_var'}'` = yes; then
12213 cat >>confdefs.h <<_ACEOF
12214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215 _ACEOF
12218 done
12220 CFLAGS="$ac_save_CFLAGS"
12221 CPPFLAGS="$ac_save_CPPFLAGS"
12222 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
12223 then
12225 cat >>confdefs.h <<\_ACEOF
12226 #define HAVE_FREETYPE 1
12227 _ACEOF
12229 wine_cv_msg_freetype=no
12230 else
12231 FREETYPELIBS=""
12232 FREETYPEINCL=""
12233 wine_cv_msg_freetype=yes
12238 if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12239 then
12240 FONTSSUBDIRS="fonts"
12244 { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12245 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
12246 if test "${ac_cv_c_ppdev+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <linux/ppdev.h>
12257 main ()
12259 ioctl (1,PPCLAIM,0)
12261 return 0;
12263 _ACEOF
12264 rm -f conftest.$ac_objext
12265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; } &&
12279 { ac_try='test -s conftest.$ac_objext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_c_ppdev="yes"
12286 else
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_c_ppdev="no"
12293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296 { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
12297 echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
12298 if test "$ac_cv_c_ppdev" = "yes"
12299 then
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_PPDEV 1
12303 _ACEOF
12307 { echo "$as_me:$LINENO: checking for va_copy" >&5
12308 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
12309 if test "${ac_cv_c_va_copy+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 cat >conftest.$ac_ext <<_ACEOF
12313 /* confdefs.h. */
12314 _ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 #include <stdarg.h>
12320 main ()
12322 va_list ap1, ap2;
12323 va_copy(ap1,ap2);
12326 return 0;
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331 (eval $ac_link) 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_cv_c_va_copy="yes"
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_c_va_copy="no"
12358 rm -f conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12362 { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
12363 echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
12364 if test "$ac_cv_c_va_copy" = "yes"
12365 then
12367 cat >>confdefs.h <<\_ACEOF
12368 #define HAVE_VA_COPY 1
12369 _ACEOF
12372 { echo "$as_me:$LINENO: checking for __va_copy" >&5
12373 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
12374 if test "${ac_cv_c___va_copy+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 cat >conftest.$ac_ext <<_ACEOF
12378 /* confdefs.h. */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 #include <stdarg.h>
12385 main ()
12387 va_list ap1, ap2;
12388 __va_copy(ap1,ap2);
12391 return 0;
12393 _ACEOF
12394 rm -f conftest.$ac_objext conftest$ac_exeext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
12403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_c___va_copy="yes"
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_cv_c___va_copy="no"
12423 rm -f conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12427 { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
12428 echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
12429 if test "$ac_cv_c___va_copy" = "yes"
12430 then
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE___VA_COPY 1
12434 _ACEOF
12438 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12439 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
12440 if test "${ac_cv_c_sigsetjmp+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12443 cat >conftest.$ac_ext <<_ACEOF
12444 /* confdefs.h. */
12445 _ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <setjmp.h>
12451 main ()
12453 sigjmp_buf buf;
12454 sigsetjmp( buf, 1 );
12455 siglongjmp( buf, 1 );
12457 return 0;
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
12469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try='test -s conftest$ac_exeext'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 ac_cv_c_sigsetjmp="yes"
12482 else
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12486 ac_cv_c_sigsetjmp="no"
12489 rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12493 { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
12494 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
12495 if test "$ac_cv_c_sigsetjmp" = "yes"
12496 then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define HAVE_SIGSETJMP 1
12500 _ACEOF
12504 { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
12505 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
12506 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509 cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h. */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515 #define _GNU_SOURCE
12516 #include <pthread.h>
12518 typedef pthread_rwlock_t ac__type_new_;
12520 main ()
12522 if ((ac__type_new_ *) 0)
12523 return 0;
12524 if (sizeof (ac__type_new_))
12525 return 0;
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest.$ac_objext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_cv_type_pthread_rwlock_t=yes
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ac_cv_type_pthread_rwlock_t=no
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
12562 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
12563 if test $ac_cv_type_pthread_rwlock_t = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_PTHREAD_RWLOCK_T 1
12567 _ACEOF
12571 { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
12572 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
12573 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 else
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #define _GNU_SOURCE
12583 #include <pthread.h>
12585 typedef pthread_rwlockattr_t ac__type_new_;
12587 main ()
12589 if ((ac__type_new_ *) 0)
12590 return 0;
12591 if (sizeof (ac__type_new_))
12592 return 0;
12594 return 0;
12596 _ACEOF
12597 rm -f conftest.$ac_objext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>conftest.er1
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest.$ac_objext'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 ac_cv_type_pthread_rwlockattr_t=yes
12619 else
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ac_cv_type_pthread_rwlockattr_t=no
12626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12628 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
12629 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
12630 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_PTHREAD_RWLOCKATTR_T 1
12634 _ACEOF
12640 ac_wine_check_funcs_save_LIBS="$LIBS"
12641 LIBS="$LIBS $LIBPTHREAD"
12645 for ac_func in \
12646 pthread_getattr_np \
12647 pthread_get_stackaddr_np \
12648 pthread_get_stacksize_np
12650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12664 #define $ac_func innocuous_$ac_func
12666 /* System header to define __stub macros and hopefully few prototypes,
12667 which can conflict with char $ac_func (); below.
12668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12669 <limits.h> exists even on freestanding compilers. */
12671 #ifdef __STDC__
12672 # include <limits.h>
12673 #else
12674 # include <assert.h>
12675 #endif
12677 #undef $ac_func
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char $ac_func ();
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined __stub_$ac_func || defined __stub___$ac_func
12690 choke me
12691 #endif
12694 main ()
12696 return $ac_func ();
12698 return 0;
12700 _ACEOF
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>conftest.er1
12704 ac_status=$?
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12713 ac_status=$?
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; } &&
12716 { ac_try='test -s conftest$ac_exeext'
12717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12718 (eval $ac_try) 2>&5
12719 ac_status=$?
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; }; then
12722 eval "$as_ac_var=yes"
12723 else
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.$ac_ext >&5
12727 eval "$as_ac_var=no"
12730 rm -f conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12733 ac_res=`eval echo '${'$as_ac_var'}'`
12734 { echo "$as_me:$LINENO: result: $ac_res" >&5
12735 echo "${ECHO_T}$ac_res" >&6; }
12736 if test `eval echo '${'$as_ac_var'}'` = yes; then
12737 cat >>confdefs.h <<_ACEOF
12738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12739 _ACEOF
12742 done
12744 LIBS="$ac_wine_check_funcs_save_LIBS"
12746 # Extract the first word of "artsc-config", so it can be a program name with args.
12747 set dummy artsc-config; ac_word=$2
12748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12750 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 else
12753 case $ARTSCCONFIG in
12754 [\\/]* | ?:[\\/]*)
12755 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12761 IFS=$as_save_IFS
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12765 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 break 2
12769 done
12770 done
12771 IFS=$as_save_IFS
12774 esac
12776 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
12777 if test -n "$ARTSCCONFIG"; then
12778 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12779 echo "${ECHO_T}$ARTSCCONFIG" >&6; }
12780 else
12781 { echo "$as_me:$LINENO: result: no" >&5
12782 echo "${ECHO_T}no" >&6; }
12786 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12787 then
12788 ARTSC_CFLAGS=""
12789 for i in `$ARTSCCONFIG --cflags`
12791 case "$i" in
12792 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12793 esac
12794 done
12795 ARTSC_LIBS=""
12796 for i in `$ARTSCCONFIG --libs`
12798 case "$i" in
12799 -L/usr/lib|-L/usr/lib64) ;;
12800 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
12801 esac
12802 done
12803 save_CFLAGS="$CFLAGS"
12804 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
12805 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
12806 echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
12807 if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 ac_check_lib_save_LIBS=$LIBS
12811 LIBS="-lartsc $ARTSC_LIBS $LIBS"
12812 cat >conftest.$ac_ext <<_ACEOF
12813 /* confdefs.h. */
12814 _ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 char arts_init ();
12827 main ()
12829 return arts_init ();
12831 return 0;
12833 _ACEOF
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12836 (eval $ac_link) 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_artsc_arts_init=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 ac_cv_lib_artsc_arts_init=no
12863 rm -f conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12867 { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
12868 echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
12869 if test $ac_cv_lib_artsc_arts_init = yes; then
12870 cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 #include <artsc.h>
12878 main ()
12880 arts_stream_t stream;
12882 return 0;
12884 _ACEOF
12885 rm -f conftest.$ac_objext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887 (eval $ac_compile) 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ARTSLIBS=$ARTSC_LIBS
12908 ARTSINCL=$ARTSC_CFLAGS
12911 cat >>confdefs.h <<\_ACEOF
12912 #define HAVE_ARTS 1
12913 _ACEOF
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 CFLAGS="$save_CFLAGS"
12928 # Extract the first word of "esd-config", so it can be a program name with args.
12929 set dummy esd-config; ac_word=$2
12930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12932 if test "${ac_cv_path_ESDCONFIG+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 case $ESDCONFIG in
12936 [\\/]* | ?:[\\/]*)
12937 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12951 done
12952 done
12953 IFS=$as_save_IFS
12956 esac
12958 ESDCONFIG=$ac_cv_path_ESDCONFIG
12959 if test -n "$ESDCONFIG"; then
12960 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
12961 echo "${ECHO_T}$ESDCONFIG" >&6; }
12962 else
12963 { echo "$as_me:$LINENO: result: no" >&5
12964 echo "${ECHO_T}no" >&6; }
12968 if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12969 then
12970 ESD_CFLAGS=""
12971 for i in `$ESDCONFIG --cflags`
12973 case "$i" in
12974 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12975 esac
12976 done
12977 ESD_LIBS=`$ESDCONFIG --libs`
12978 save_CFLAGS="$CFLAGS"
12979 CFLAGS="$CFLAGS $ESD_CFLAGS"
12980 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12981 echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
12982 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985 ac_check_lib_save_LIBS=$LIBS
12986 LIBS="-lesd $LIBS"
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char esd_open_sound ();
13002 main ()
13004 return esd_open_sound ();
13006 return 0;
13008 _ACEOF
13009 rm -f conftest.$ac_objext conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>conftest.er1
13012 ac_status=$?
13013 grep -v '^ *+' conftest.er1 >conftest.err
13014 rm -f conftest.er1
13015 cat conftest.err >&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } &&
13018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; } &&
13024 { ac_try='test -s conftest$ac_exeext'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
13030 ac_cv_lib_esd_esd_open_sound=yes
13031 else
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13035 ac_cv_lib_esd_esd_open_sound=no
13038 rm -f conftest.err conftest.$ac_objext \
13039 conftest$ac_exeext conftest.$ac_ext
13040 LIBS=$ac_check_lib_save_LIBS
13042 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13043 echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
13044 if test $ac_cv_lib_esd_esd_open_sound = yes; then
13045 ESDLIBS=$ESD_LIBS
13047 ESDINCL=$ESD_CFLAGS
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_ESD 1
13052 _ACEOF
13056 CFLAGS="$save_CFLAGS"
13059 ALSALIBS=""
13061 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
13062 then
13063 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13064 echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
13065 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lasound $LIBS"
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 char snd_pcm_hw_params_get_access ();
13085 main ()
13087 return snd_pcm_hw_params_get_access ();
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext conftest$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>conftest.er1
13095 ac_status=$?
13096 grep -v '^ *+' conftest.er1 >conftest.err
13097 rm -f conftest.er1
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest$ac_exeext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
13121 rm -f conftest.err conftest.$ac_objext \
13122 conftest$ac_exeext conftest.$ac_ext
13123 LIBS=$ac_check_lib_save_LIBS
13125 { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13126 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
13127 if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13128 cat >conftest.$ac_ext <<_ACEOF
13129 /* confdefs.h. */
13130 _ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 #ifdef HAVE_ALSA_ASOUNDLIB_H
13135 #include <alsa/asoundlib.h>
13136 #elif defined(HAVE_SYS_ASOUNDLIB_H)
13137 #include <sys/asoundlib.h>
13138 #endif
13140 main ()
13142 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
13144 return 0;
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149 (eval $ac_compile) 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13169 cat >>confdefs.h <<\_ACEOF
13170 #define HAVE_ALSA 1
13171 _ACEOF
13173 ALSALIBS="-lasound"
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13187 AUDIOIOLIBS=""
13189 if test "$ac_cv_header_libaudioio_h" = "yes"
13190 then
13191 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
13192 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
13193 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196 ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-laudioio $LIBS"
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h. */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply. */
13208 #ifdef __cplusplus
13209 extern "C"
13210 #endif
13211 char AudioIOGetVersion ();
13213 main ()
13215 return AudioIOGetVersion ();
13217 return 0;
13219 _ACEOF
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222 (eval $ac_link) 2>conftest.er1
13223 ac_status=$?
13224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231 (eval $ac_try) 2>&5
13232 ac_status=$?
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; } &&
13235 { ac_try='test -s conftest$ac_exeext'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; }; then
13241 ac_cv_lib_audioio_AudioIOGetVersion=yes
13242 else
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13246 ac_cv_lib_audioio_AudioIOGetVersion=no
13249 rm -f conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS
13253 { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
13254 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
13255 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
13256 AUDIOIOLIBS="-laudioio"
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_LIBAUDIOIO 1
13260 _ACEOF
13267 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
13268 then
13269 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
13270 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
13271 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13274 ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-lcapi20 $LIBS"
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13283 /* Override any GCC internal prototype to avoid an error.
13284 Use char because int might match the return type of a GCC
13285 builtin and then its argument prototype would still apply. */
13286 #ifdef __cplusplus
13287 extern "C"
13288 #endif
13289 char capi20_register ();
13291 main ()
13293 return capi20_register ();
13295 return 0;
13297 _ACEOF
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13300 (eval $ac_link) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 ac_cv_lib_capi20_capi20_register=yes
13320 else
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 ac_cv_lib_capi20_capi20_register=no
13327 rm -f conftest.err conftest.$ac_objext \
13328 conftest$ac_exeext conftest.$ac_ext
13329 LIBS=$ac_check_lib_save_LIBS
13331 { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
13332 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
13333 if test $ac_cv_lib_capi20_capi20_register = yes; then
13335 cat >>confdefs.h <<\_ACEOF
13336 #define HAVE_CAPI4LINUX 1
13337 _ACEOF
13344 EXTRACFLAGS=""
13346 if test "x${GCC}" = "xyes"
13347 then
13348 EXTRACFLAGS="-Wall -pipe"
13350 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
13351 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
13352 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 else
13355 if test "$cross_compiling" = yes; then
13356 ac_cv_c_gcc_strength_bug="yes"
13357 else
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h. */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13365 int L[4] = {0,1,2,3};
13366 int main(void) {
13367 static int Array[3];
13368 unsigned int B = 3;
13369 int i;
13370 for(i=0; i<B; i++) Array[i] = i - 3;
13371 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13372 L[i] = 4;
13374 exit( Array[1] != -2 || L[2] != 3);
13376 _ACEOF
13377 rm -f conftest$ac_exeext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 ac_cv_c_gcc_strength_bug="no"
13389 else
13390 echo "$as_me: program exited with status $ac_status" >&5
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 ac_cv_c_gcc_strength_bug="yes"
13397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13402 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
13403 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
13404 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13405 then
13406 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13409 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
13410 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
13411 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414 ac_wine_try_cflags_saved=$CFLAGS
13415 CFLAGS="$CFLAGS -fshort-wchar"
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13424 main ()
13428 return 0;
13430 _ACEOF
13431 rm -f conftest.$ac_objext conftest$ac_exeext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433 (eval $ac_link) 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13449 ac_status=$?
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 ac_cv_c_gcc_fshort_wchar="yes"
13453 else
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_cv_c_gcc_fshort_wchar="no"
13460 rm -f conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 CFLAGS=$ac_wine_try_cflags_saved
13464 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
13465 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
13466 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
13467 then
13469 cat >>confdefs.h <<\_ACEOF
13470 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
13471 _ACEOF
13475 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
13476 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
13477 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480 ac_wine_try_cflags_saved=$CFLAGS
13481 CFLAGS="$CFLAGS -fno-strict-aliasing"
13482 cat >conftest.$ac_ext <<_ACEOF
13483 /* confdefs.h. */
13484 _ACEOF
13485 cat confdefs.h >>conftest.$ac_ext
13486 cat >>conftest.$ac_ext <<_ACEOF
13487 /* end confdefs.h. */
13490 main ()
13494 return 0;
13496 _ACEOF
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499 (eval $ac_link) 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try='test -s conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_c_gcc_no_strict_aliasing="yes"
13519 else
13520 echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13523 ac_cv_c_gcc_no_strict_aliasing="no"
13526 rm -f conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 CFLAGS=$ac_wine_try_cflags_saved
13530 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
13531 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
13532 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
13533 then
13534 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13537 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
13538 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
13539 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542 ac_wine_try_cflags_saved=$CFLAGS
13543 CFLAGS="$CFLAGS -gstabs+"
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13552 main ()
13556 return 0;
13558 _ACEOF
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561 (eval $ac_link) 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } &&
13574 { ac_try='test -s conftest$ac_exeext'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
13580 ac_cv_c_gcc_gstabs="yes"
13581 else
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 ac_cv_c_gcc_gstabs="no"
13588 rm -f conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 CFLAGS=$ac_wine_try_cflags_saved
13592 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
13593 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
13594 if test "$ac_cv_c_gcc_gstabs" = "yes"
13595 then
13596 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13599 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
13600 echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
13601 if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604 ac_wine_try_cflags_saved=$CFLAGS
13605 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13614 main ()
13618 return 0;
13620 _ACEOF
13621 rm -f conftest.$ac_objext conftest$ac_exeext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13623 (eval $ac_link) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
13630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest$ac_exeext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_c_gcc_decl_after_statement="yes"
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_cv_c_gcc_decl_after_statement="no"
13650 rm -f conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 CFLAGS=$ac_wine_try_cflags_saved
13654 { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
13655 echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
13656 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
13657 then
13658 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13661 saved_CFLAGS="$CFLAGS"
13662 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13663 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
13664 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
13665 if test "${ac_cv_c_string_h_warnings+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668 cat >conftest.$ac_ext <<_ACEOF
13669 /* confdefs.h. */
13670 _ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 #include <string.h>
13676 main ()
13680 return 0;
13682 _ACEOF
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_c_string_h_warnings=no
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 ac_cv_c_string_h_warnings=yes
13712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13714 { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
13715 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
13716 CFLAGS="$saved_CFLAGS"
13717 if test "$ac_cv_c_string_h_warnings" = "no"
13718 then
13719 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13722 BUILTINFLAG=""
13724 saved_CFLAGS="$CFLAGS"
13725 CFLAGS="$CFLAGS -Werror"
13726 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
13727 echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
13728 if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h. */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13739 main ()
13741 int iswlower(unsigned short);
13743 return 0;
13745 _ACEOF
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>conftest.er1
13749 ac_status=$?
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_c_builtin_wchar_ctype=no
13768 else
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ac_cv_c_builtin_wchar_ctype=yes
13775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13777 { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
13778 echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
13779 CFLAGS="$saved_CFLAGS"
13780 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
13781 then
13782 BUILTINFLAG=""
13783 for builtin in \
13784 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
13785 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
13787 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
13788 done
13793 { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
13794 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
13795 if test "${ac_cv_asm_func_def+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 else
13798 cat >conftest.$ac_ext <<_ACEOF
13799 /* confdefs.h. */
13800 _ACEOF
13801 cat confdefs.h >>conftest.$ac_ext
13802 cat >>conftest.$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13804 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"); }
13807 main ()
13811 return 0;
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816 (eval $ac_link) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13826 ac_status=$?
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }; } &&
13829 { ac_try='test -s conftest$ac_exeext'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13835 ac_cv_asm_func_def=".def"
13836 else
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
13849 main ()
13853 return 0;
13855 _ACEOF
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13858 (eval $ac_link) 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; } &&
13871 { ac_try='test -s conftest$ac_exeext'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_asm_func_def=".type @function"
13878 else
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13891 main ()
13895 return 0;
13897 _ACEOF
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900 (eval $ac_link) 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909 (eval $ac_try) 2>&5
13910 ac_status=$?
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; } &&
13913 { ac_try='test -s conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_asm_func_def=".type 2"
13920 else
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13924 ac_cv_asm_func_def="unknown"
13927 rm -f conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13931 rm -f conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13935 rm -f conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13938 { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13939 echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
13943 case "$ac_cv_asm_func_def" in
13944 ".def")
13945 cat >>confdefs.h <<\_ACEOF
13946 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13947 _ACEOF
13949 ".type @function")
13950 cat >>confdefs.h <<\_ACEOF
13951 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13952 _ACEOF
13954 ".type 2")
13955 cat >>confdefs.h <<\_ACEOF
13956 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13957 _ACEOF
13960 cat >>confdefs.h <<\_ACEOF
13961 #define __ASM_FUNC(name) ""
13962 _ACEOF
13964 esac
13967 { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13968 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
13969 if test "${ac_cv_c_extern_prefix+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972 cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h. */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13978 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13979 extern int ac_test;
13981 main ()
13983 if (ac_test) return 1
13985 return 0;
13987 _ACEOF
13988 rm -f conftest.$ac_objext conftest$ac_exeext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13990 (eval $ac_link) 2>conftest.er1
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14009 ac_cv_c_extern_prefix="yes"
14010 else
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_cv_c_extern_prefix="no"
14017 rm -f conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
14020 { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
14021 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
14025 if test "$ac_cv_c_extern_prefix" = "yes"
14026 then
14027 cat >>confdefs.h <<\_ACEOF
14028 #define __ASM_NAME(name) "_" name
14029 _ACEOF
14031 else
14032 cat >>confdefs.h <<\_ACEOF
14033 #define __ASM_NAME(name) name
14034 _ACEOF
14039 DLLEXT=""
14041 DLLFLAGS="-D_REENTRANT"
14043 DLLIBS=""
14045 LDSHARED=""
14047 LDDLLFLAGS=""
14049 LIBEXT="so"
14051 IMPLIBEXT="def"
14054 case $host_os in
14055 cygwin*|mingw32*)
14056 if test -n "$ac_tool_prefix"; then
14057 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14058 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14061 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 if test -n "$DLLTOOL"; then
14065 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14066 else
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14074 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14084 DLLTOOL=$ac_cv_prog_DLLTOOL
14085 if test -n "$DLLTOOL"; then
14086 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14087 echo "${ECHO_T}$DLLTOOL" >&6; }
14088 else
14089 { echo "$as_me:$LINENO: result: no" >&5
14090 echo "${ECHO_T}no" >&6; }
14095 if test -z "$ac_cv_prog_DLLTOOL"; then
14096 ac_ct_DLLTOOL=$DLLTOOL
14097 # Extract the first word of "dlltool", so it can be a program name with args.
14098 set dummy dlltool; ac_word=$2
14099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14101 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 if test -n "$ac_ct_DLLTOOL"; then
14105 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14106 else
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14110 IFS=$as_save_IFS
14111 test -z "$as_dir" && as_dir=.
14112 for ac_exec_ext in '' $ac_executable_extensions; do
14113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14114 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14116 break 2
14118 done
14119 done
14120 IFS=$as_save_IFS
14124 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14125 if test -n "$ac_ct_DLLTOOL"; then
14126 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14127 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
14128 else
14129 { echo "$as_me:$LINENO: result: no" >&5
14130 echo "${ECHO_T}no" >&6; }
14133 if test "x$ac_ct_DLLTOOL" = x; then
14134 DLLTOOL="false"
14135 else
14136 case $cross_compiling:$ac_tool_warned in
14137 yes:)
14138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14139 whose name does not start with the host triplet. If you think this
14140 configuration is useful to you, please write to autoconf@gnu.org." >&5
14141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14142 whose name does not start with the host triplet. If you think this
14143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14144 ac_tool_warned=yes ;;
14145 esac
14146 DLLTOOL=$ac_ct_DLLTOOL
14148 else
14149 DLLTOOL="$ac_cv_prog_DLLTOOL"
14152 if test -n "$ac_tool_prefix"; then
14153 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
14154 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
14155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14157 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 if test -n "$DLLWRAP"; then
14161 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
14162 else
14163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14164 for as_dir in $PATH
14166 IFS=$as_save_IFS
14167 test -z "$as_dir" && as_dir=.
14168 for ac_exec_ext in '' $ac_executable_extensions; do
14169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14170 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
14171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14172 break 2
14174 done
14175 done
14176 IFS=$as_save_IFS
14180 DLLWRAP=$ac_cv_prog_DLLWRAP
14181 if test -n "$DLLWRAP"; then
14182 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
14183 echo "${ECHO_T}$DLLWRAP" >&6; }
14184 else
14185 { echo "$as_me:$LINENO: result: no" >&5
14186 echo "${ECHO_T}no" >&6; }
14191 if test -z "$ac_cv_prog_DLLWRAP"; then
14192 ac_ct_DLLWRAP=$DLLWRAP
14193 # Extract the first word of "dllwrap", so it can be a program name with args.
14194 set dummy dllwrap; ac_word=$2
14195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14197 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200 if test -n "$ac_ct_DLLWRAP"; then
14201 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
14202 else
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14206 IFS=$as_save_IFS
14207 test -z "$as_dir" && as_dir=.
14208 for ac_exec_ext in '' $ac_executable_extensions; do
14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14210 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
14211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 break 2
14214 done
14215 done
14216 IFS=$as_save_IFS
14220 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
14221 if test -n "$ac_ct_DLLWRAP"; then
14222 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
14223 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
14224 else
14225 { echo "$as_me:$LINENO: result: no" >&5
14226 echo "${ECHO_T}no" >&6; }
14229 if test "x$ac_ct_DLLWRAP" = x; then
14230 DLLWRAP="false"
14231 else
14232 case $cross_compiling:$ac_tool_warned in
14233 yes:)
14234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14235 whose name does not start with the host triplet. If you think this
14236 configuration is useful to you, please write to autoconf@gnu.org." >&5
14237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14238 whose name does not start with the host triplet. If you think this
14239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14240 ac_tool_warned=yes ;;
14241 esac
14242 DLLWRAP=$ac_ct_DLLWRAP
14244 else
14245 DLLWRAP="$ac_cv_prog_DLLWRAP"
14248 if test "$DLLWRAP" = "false"; then
14249 LIBEXT="a"
14250 else
14251 LIBEXT="dll"
14253 IMPLIBEXT="a"
14254 WIN16_FILES=""
14255 WIN16_INSTALL=""
14258 if test "$ac_cv_header_dlfcn_h" = "yes"
14259 then
14261 for ac_func in dlopen
14263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269 cat >conftest.$ac_ext <<_ACEOF
14270 /* confdefs.h. */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14277 #define $ac_func innocuous_$ac_func
14279 /* System header to define __stub macros and hopefully few prototypes,
14280 which can conflict with char $ac_func (); below.
14281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14282 <limits.h> exists even on freestanding compilers. */
14284 #ifdef __STDC__
14285 # include <limits.h>
14286 #else
14287 # include <assert.h>
14288 #endif
14290 #undef $ac_func
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14295 #ifdef __cplusplus
14296 extern "C"
14297 #endif
14298 char $ac_func ();
14299 /* The GNU C library defines this for functions which it implements
14300 to always fail with ENOSYS. Some functions are actually named
14301 something starting with __ and the normal name is an alias. */
14302 #if defined __stub_$ac_func || defined __stub___$ac_func
14303 choke me
14304 #endif
14307 main ()
14309 return $ac_func ();
14311 return 0;
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 eval "$as_ac_var=yes"
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 eval "$as_ac_var=no"
14343 rm -f conftest.err conftest.$ac_objext \
14344 conftest$ac_exeext conftest.$ac_ext
14346 ac_res=`eval echo '${'$as_ac_var'}'`
14347 { echo "$as_me:$LINENO: result: $ac_res" >&5
14348 echo "${ECHO_T}$ac_res" >&6; }
14349 if test `eval echo '${'$as_ac_var'}'` = yes; then
14350 cat >>confdefs.h <<_ACEOF
14351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14352 _ACEOF
14354 else
14355 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14356 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14357 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360 ac_check_lib_save_LIBS=$LIBS
14361 LIBS="-ldl $LIBS"
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h. */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14369 /* Override any GCC internal prototype to avoid an error.
14370 Use char because int might match the return type of a GCC
14371 builtin and then its argument prototype would still apply. */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 char dlopen ();
14377 main ()
14379 return dlopen ();
14381 return 0;
14383 _ACEOF
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386 (eval $ac_link) 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; } &&
14399 { ac_try='test -s conftest$ac_exeext'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14402 ac_status=$?
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_cv_lib_dl_dlopen=yes
14406 else
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_lib_dl_dlopen=no
14413 rm -f conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS
14417 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14418 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14419 if test $ac_cv_lib_dl_dlopen = yes; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_DLOPEN 1
14423 _ACEOF
14425 DLLIBS="-ldl"
14426 else
14427 LIBEXT="a"
14431 done
14433 ac_wine_check_funcs_save_LIBS="$LIBS"
14434 LIBS="$LIBS $DLLIBS"
14436 for ac_func in dladdr
14438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444 cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h. */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14452 #define $ac_func innocuous_$ac_func
14454 /* System header to define __stub macros and hopefully few prototypes,
14455 which can conflict with char $ac_func (); below.
14456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14457 <limits.h> exists even on freestanding compilers. */
14459 #ifdef __STDC__
14460 # include <limits.h>
14461 #else
14462 # include <assert.h>
14463 #endif
14465 #undef $ac_func
14467 /* Override any GCC internal prototype to avoid an error.
14468 Use char because int might match the return type of a GCC
14469 builtin and then its argument prototype would still apply. */
14470 #ifdef __cplusplus
14471 extern "C"
14472 #endif
14473 char $ac_func ();
14474 /* The GNU C library defines this for functions which it implements
14475 to always fail with ENOSYS. Some functions are actually named
14476 something starting with __ and the normal name is an alias. */
14477 #if defined __stub_$ac_func || defined __stub___$ac_func
14478 choke me
14479 #endif
14482 main ()
14484 return $ac_func ();
14486 return 0;
14488 _ACEOF
14489 rm -f conftest.$ac_objext conftest$ac_exeext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14491 (eval $ac_link) 2>conftest.er1
14492 ac_status=$?
14493 grep -v '^ *+' conftest.er1 >conftest.err
14494 rm -f conftest.er1
14495 cat conftest.err >&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest$ac_exeext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 eval "$as_ac_var=yes"
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 eval "$as_ac_var=no"
14518 rm -f conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14521 ac_res=`eval echo '${'$as_ac_var'}'`
14522 { echo "$as_me:$LINENO: result: $ac_res" >&5
14523 echo "${ECHO_T}$ac_res" >&6; }
14524 if test `eval echo '${'$as_ac_var'}'` = yes; then
14525 cat >>confdefs.h <<_ACEOF
14526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14527 _ACEOF
14530 done
14532 LIBS="$ac_wine_check_funcs_save_LIBS"
14533 else
14534 LIBEXT="a"
14537 if test "$LIBEXT" = "so"
14538 then
14539 DLLFLAGS="$DLLFLAGS -fPIC"
14540 DLLEXT=".so"
14541 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
14542 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
14543 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546 ac_wine_try_cflags_saved=$CFLAGS
14547 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14548 cat >conftest.$ac_ext <<_ACEOF
14549 void myfunc() {}
14550 _ACEOF
14551 rm -f conftest.$ac_objext conftest$ac_exeext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14553 (eval $ac_link) 2>conftest.er1
14554 ac_status=$?
14555 grep -v '^ *+' conftest.er1 >conftest.err
14556 rm -f conftest.er1
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest$ac_exeext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_c_dll_gnuelf="yes"
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_cv_c_dll_gnuelf="no"
14580 rm -f conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14582 CFLAGS=$ac_wine_try_cflags_saved
14584 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14585 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
14586 if test "$ac_cv_c_dll_gnuelf" = "yes"
14587 then
14588 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14589 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14590 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14591 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
14592 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594 else
14595 ac_wine_try_cflags_saved=$CFLAGS
14596 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h. */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14605 main ()
14609 return 0;
14611 _ACEOF
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14614 (eval $ac_link) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; } &&
14627 { ac_try='test -s conftest$ac_exeext'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_c_dll_zdefs="yes"
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_cv_c_dll_zdefs="no"
14641 rm -f conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643 CFLAGS=$ac_wine_try_cflags_saved
14645 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14646 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
14647 if test "$ac_cv_c_dll_zdefs" = "yes"
14648 then
14649 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14652 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14653 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
14654 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657 ac_wine_try_cflags_saved=$CFLAGS
14658 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h. */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14667 main ()
14671 return 0;
14673 _ACEOF
14674 rm -f conftest.$ac_objext conftest$ac_exeext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676 (eval $ac_link) 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; } &&
14689 { ac_try='test -s conftest$ac_exeext'
14690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691 (eval $ac_try) 2>&5
14692 ac_status=$?
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); }; }; then
14695 ac_cv_c_dll_init_fini="yes"
14696 else
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_cv_c_dll_init_fini="no"
14703 rm -f conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 CFLAGS=$ac_wine_try_cflags_saved
14707 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14708 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
14709 if test "$ac_cv_c_dll_init_fini" = "yes"
14710 then
14711 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14714 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14715 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
14716 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719 echo '{ global: *; };' >conftest.map
14720 ac_wine_try_cflags_saved=$CFLAGS
14721 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h. */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14730 main ()
14734 return 0;
14736 _ACEOF
14737 rm -f conftest.$ac_objext conftest$ac_exeext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14739 (eval $ac_link) 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; } &&
14752 { ac_try='test -s conftest$ac_exeext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 ac_cv_c_ld_version_scripts="yes"
14759 else
14760 echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14763 ac_cv_c_ld_version_scripts="no"
14766 rm -f conftest.err conftest.$ac_objext \
14767 conftest$ac_exeext conftest.$ac_ext
14768 CFLAGS=$ac_wine_try_cflags_saved
14769 rm -f conftest.map
14771 { echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14772 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
14773 if test "$ac_cv_c_ld_version_scripts" = "yes"
14774 then
14775 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14778 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14779 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
14780 if test "${ac_cv_c_export_dynamic+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783 ac_wine_try_cflags_saved=$CFLAGS
14784 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h. */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h. */
14793 main ()
14797 return 0;
14799 _ACEOF
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest$ac_exeext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_c_export_dynamic="yes"
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_cv_c_export_dynamic="no"
14829 rm -f conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14831 CFLAGS=$ac_wine_try_cflags_saved
14833 { echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14834 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
14835 if test "$ac_cv_c_export_dynamic" = "yes"
14836 then
14837 LDEXECFLAGS="-Wl,--export-dynamic"
14841 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
14842 echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
14843 if test "${ac_cv_ld_rpath+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 else
14846 ac_wine_try_cflags_saved=$CFLAGS
14847 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
14848 cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h. */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14856 main ()
14860 return 0;
14862 _ACEOF
14863 rm -f conftest.$ac_objext conftest$ac_exeext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14865 (eval $ac_link) 2>conftest.er1
14866 ac_status=$?
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
14872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest$ac_exeext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_ld_rpath="yes"
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_cv_ld_rpath="no"
14892 rm -f conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
14894 CFLAGS=$ac_wine_try_cflags_saved
14896 { echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
14897 echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
14898 if test "$ac_cv_ld_rpath" = "yes"
14899 then
14900 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
14902 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
14906 case $host_cpu in
14907 *i[3456789]86*)
14908 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
14909 echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
14910 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913 ac_wine_try_cflags_saved=$CFLAGS
14914 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14923 main ()
14927 return 0;
14929 _ACEOF
14930 rm -f conftest.$ac_objext conftest$ac_exeext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14932 (eval $ac_link) 2>conftest.er1
14933 ac_status=$?
14934 grep -v '^ *+' conftest.er1 >conftest.err
14935 rm -f conftest.er1
14936 cat conftest.err >&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest$ac_exeext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14948 ac_status=$?
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_cv_ld_reloc_exec="yes"
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 ac_cv_ld_reloc_exec="no"
14959 rm -f conftest.err conftest.$ac_objext \
14960 conftest$ac_exeext conftest.$ac_ext
14961 CFLAGS=$ac_wine_try_cflags_saved
14963 { echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14964 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
14965 if test "$ac_cv_ld_reloc_exec" = "yes"
14966 then
14967 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
14970 esac
14972 else
14973 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14974 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
14975 if test "${ac_cv_c_dll_unixware+set}" = set; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 else
14978 ac_wine_try_cflags_saved=$CFLAGS
14979 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14980 cat >conftest.$ac_ext <<_ACEOF
14981 void myfunc() {}
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest$ac_exeext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_c_dll_unixware="yes"
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15009 ac_cv_c_dll_unixware="no"
15012 rm -f conftest.err conftest.$ac_objext \
15013 conftest$ac_exeext conftest.$ac_ext
15014 CFLAGS=$ac_wine_try_cflags_saved
15016 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
15017 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
15018 if test "$ac_cv_c_dll_unixware" = "yes"
15019 then
15020 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
15021 LDDLLFLAGS="-Wl,-G,-B,symbolic"
15023 else
15024 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
15025 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
15026 if test "${ac_cv_c_dll_macho+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029 ac_wine_try_cflags_saved=$CFLAGS
15030 CFLAGS="$CFLAGS -bundle"
15031 cat >conftest.$ac_ext <<_ACEOF
15032 void myfunc() {}
15033 _ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036 (eval $ac_link) 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } &&
15049 { ac_try='test -s conftest$ac_exeext'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
15055 ac_cv_c_dll_macho="yes"
15056 else
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 ac_cv_c_dll_macho="no"
15063 rm -f conftest.err conftest.$ac_objext \
15064 conftest$ac_exeext conftest.$ac_ext
15065 CFLAGS=$ac_wine_try_cflags_saved
15067 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
15068 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
15069 if test "$ac_cv_c_dll_macho" = "yes"
15070 then
15071 LIBEXT="dylib"
15072 LDDLLFLAGS="-bundle"
15073 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
15074 STRIP="$STRIP -u -r"
15075 COREFOUNDATIONLIB="-framework CoreFoundation"
15077 IOKITLIB="-framework IOKit -framework CoreFoundation"
15079 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
15081 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15082 then
15083 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15086 case $host_cpu in
15087 *powerpc*)
15088 CFLAGS="$CFLAGS -ffixed-r13"
15089 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
15091 esac
15093 else
15094 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
15095 echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
15096 if test "${ac_cv_c_dll_hpux+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15098 else
15099 ac_wine_try_cflags_saved=$CFLAGS
15100 CFLAGS="$CFLAGS -shared"
15101 cat >conftest.$ac_ext <<_ACEOF
15102 void myfunc() {}
15103 _ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106 (eval $ac_link) 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest$ac_exeext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_cv_c_dll_hpux="yes"
15126 else
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 ac_cv_c_dll_hpux="no"
15133 rm -f conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
15135 CFLAGS=$ac_wine_try_cflags_saved
15137 { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
15138 echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
15139 if test "$ac_cv_c_dll_hpux" = "yes"
15140 then
15141 LIBEXT="sl"
15142 DLLEXT=".sl"
15143 LDDLLFLAGS="-shared -fPIC"
15144 LDSHARED="\$(CC) -shared"
15151 CROSSTEST=""
15153 if test "$cross_compiling" = "no"
15154 then
15155 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
15157 # Extract the first word of "$ac_prog", so it can be a program name with args.
15158 set dummy $ac_prog; ac_word=$2
15159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15161 if test "${ac_cv_prog_CROSSCC+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 if test -n "$CROSSCC"; then
15165 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
15166 else
15167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15168 for as_dir in $PATH
15170 IFS=$as_save_IFS
15171 test -z "$as_dir" && as_dir=.
15172 for ac_exec_ext in '' $ac_executable_extensions; do
15173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15174 ac_cv_prog_CROSSCC="$ac_prog"
15175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15176 break 2
15178 done
15179 done
15180 IFS=$as_save_IFS
15184 CROSSCC=$ac_cv_prog_CROSSCC
15185 if test -n "$CROSSCC"; then
15186 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
15187 echo "${ECHO_T}$CROSSCC" >&6; }
15188 else
15189 { echo "$as_me:$LINENO: result: no" >&5
15190 echo "${ECHO_T}no" >&6; }
15194 test -n "$CROSSCC" && break
15195 done
15196 test -n "$CROSSCC" || CROSSCC="false"
15198 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
15200 # Extract the first word of "$ac_prog", so it can be a program name with args.
15201 set dummy $ac_prog; ac_word=$2
15202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15204 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207 if test -n "$DLLTOOL"; then
15208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15209 else
15210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15211 for as_dir in $PATH
15213 IFS=$as_save_IFS
15214 test -z "$as_dir" && as_dir=.
15215 for ac_exec_ext in '' $ac_executable_extensions; do
15216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15217 ac_cv_prog_DLLTOOL="$ac_prog"
15218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15219 break 2
15221 done
15222 done
15223 IFS=$as_save_IFS
15227 DLLTOOL=$ac_cv_prog_DLLTOOL
15228 if test -n "$DLLTOOL"; then
15229 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15230 echo "${ECHO_T}$DLLTOOL" >&6; }
15231 else
15232 { echo "$as_me:$LINENO: result: no" >&5
15233 echo "${ECHO_T}no" >&6; }
15237 test -n "$DLLTOOL" && break
15238 done
15239 test -n "$DLLTOOL" || DLLTOOL="false"
15241 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
15243 # Extract the first word of "$ac_prog", so it can be a program name with args.
15244 set dummy $ac_prog; ac_word=$2
15245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15247 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250 if test -n "$CROSSWINDRES"; then
15251 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
15252 else
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15260 ac_cv_prog_CROSSWINDRES="$ac_prog"
15261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 break 2
15264 done
15265 done
15266 IFS=$as_save_IFS
15270 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
15271 if test -n "$CROSSWINDRES"; then
15272 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
15273 echo "${ECHO_T}$CROSSWINDRES" >&6; }
15274 else
15275 { echo "$as_me:$LINENO: result: no" >&5
15276 echo "${ECHO_T}no" >&6; }
15280 test -n "$CROSSWINDRES" && break
15281 done
15282 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
15284 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
15287 esac
15289 if test "$LIBEXT" = "a"; then
15290 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
15291 It is currently not possible to build Wine without shared library
15292 (.so) support to allow transparent switch between .so and .dll files.
15293 If you are using Linux, you will need a newer binutils.
15294 " >&5
15295 echo "$as_me: error: could not find a way to build shared libraries.
15296 It is currently not possible to build Wine without shared library
15297 (.so) support to allow transparent switch between .so and .dll files.
15298 If you are using Linux, you will need a newer binutils.
15299 " >&2;}
15300 { (exit 1); exit 1; }; }
15303 case $build_os in
15304 cygwin*|mingw32*)
15305 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
15307 darwin*|macosx*)
15308 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
15311 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
15313 esac
15315 case $host_os in
15316 mingw32*)
15317 CRTLIBS="-lmsvcrt"
15319 SOCKETLIBS="-lws2_32"
15322 esac
15324 case $host_cpu in
15325 *i[3456789]86*)
15326 case $host_os in
15327 linux* | k*bsd*-gnu)
15328 MAIN_BINARY="wine-glibc"
15330 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
15332 darwin*|freebsd*)
15333 MAIN_BINARY="wine-pthread"
15336 MAIN_BINARY="wine-kthread"
15338 esac
15340 *) MAIN_BINARY="wine-pthread"
15342 esac
15345 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
15346 then
15347 # Extract the first word of "ldd", so it can be a program name with args.
15348 set dummy ldd; ac_word=$2
15349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15351 if test "${ac_cv_path_LDD+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 else
15354 case $LDD in
15355 [\\/]* | ?:[\\/]*)
15356 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
15359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15360 as_dummy="/sbin:/usr/sbin:$PATH"
15361 for as_dir in $as_dummy
15363 IFS=$as_save_IFS
15364 test -z "$as_dir" && as_dir=.
15365 for ac_exec_ext in '' $ac_executable_extensions; do
15366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15367 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
15368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15369 break 2
15371 done
15372 done
15373 IFS=$as_save_IFS
15375 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
15377 esac
15379 LDD=$ac_cv_path_LDD
15380 if test -n "$LDD"; then
15381 { echo "$as_me:$LINENO: result: $LDD" >&5
15382 echo "${ECHO_T}$LDD" >&6; }
15383 else
15384 { echo "$as_me:$LINENO: result: no" >&5
15385 echo "${ECHO_T}no" >&6; }
15389 { echo "$as_me:$LINENO: checking for -lX11 soname" >&5
15390 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
15391 if test "${ac_cv_lib_soname_X11+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394 ac_get_soname_save_LIBS=$LIBS
15395 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
15396 cat >conftest.$ac_ext <<_ACEOF
15397 /* confdefs.h. */
15398 _ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15403 /* Override any GCC internal prototype to avoid an error.
15404 Use char because int might match the return type of a GCC
15405 builtin and then its argument prototype would still apply. */
15406 #ifdef __cplusplus
15407 extern "C"
15408 #endif
15409 char XCreateWindow ();
15411 main ()
15413 return XCreateWindow ();
15415 return 0;
15417 _ACEOF
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15420 (eval $ac_link) 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15440 if test "x$ac_cv_lib_soname_X11" = "x"
15441 then
15442 ac_cv_lib_soname_X11="libX11.$LIBEXT"
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 ac_cv_lib_soname_X11="libX11.$LIBEXT"
15451 rm -f conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15453 LIBS=$ac_get_soname_save_LIBS
15455 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
15456 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
15457 if test "${ac_cv_lib_soname_X11+set}" = set; then
15459 cat >>confdefs.h <<_ACEOF
15460 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
15461 _ACEOF
15465 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
15466 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
15467 if test "${ac_cv_lib_soname_Xext+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 else
15470 ac_get_soname_save_LIBS=$LIBS
15471 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
15472 cat >conftest.$ac_ext <<_ACEOF
15473 /* confdefs.h. */
15474 _ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15479 /* Override any GCC internal prototype to avoid an error.
15480 Use char because int might match the return type of a GCC
15481 builtin and then its argument prototype would still apply. */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 char XextCreateExtension ();
15487 main ()
15489 return XextCreateExtension ();
15491 return 0;
15493 _ACEOF
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15496 (eval $ac_link) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
15503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest$ac_exeext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15516 if test "x$ac_cv_lib_soname_Xext" = "x"
15517 then
15518 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
15520 else
15521 echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
15527 rm -f conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
15529 LIBS=$ac_get_soname_save_LIBS
15531 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
15532 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
15533 if test "${ac_cv_lib_soname_Xext+set}" = set; then
15535 cat >>confdefs.h <<_ACEOF
15536 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
15537 _ACEOF
15541 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
15542 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
15543 if test "${ac_cv_lib_soname_Xi+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546 ac_get_soname_save_LIBS=$LIBS
15547 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any GCC internal prototype to avoid an error.
15556 Use char because int might match the return type of a GCC
15557 builtin and then its argument prototype would still apply. */
15558 #ifdef __cplusplus
15559 extern "C"
15560 #endif
15561 char XOpenDevice ();
15563 main ()
15565 return XOpenDevice ();
15567 return 0;
15569 _ACEOF
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572 (eval $ac_link) 2>conftest.er1
15573 ac_status=$?
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581 (eval $ac_try) 2>&5
15582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest$ac_exeext'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15591 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15592 if test "x$ac_cv_lib_soname_Xi" = "x"
15593 then
15594 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
15603 rm -f conftest.err conftest.$ac_objext \
15604 conftest$ac_exeext conftest.$ac_ext
15605 LIBS=$ac_get_soname_save_LIBS
15607 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
15608 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
15609 if test "${ac_cv_lib_soname_Xi+set}" = set; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
15613 _ACEOF
15617 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
15618 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
15619 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622 ac_get_soname_save_LIBS=$LIBS
15623 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15631 /* Override any GCC internal prototype to avoid an error.
15632 Use char because int might match the return type of a GCC
15633 builtin and then its argument prototype would still apply. */
15634 #ifdef __cplusplus
15635 extern "C"
15636 #endif
15637 char XRenderQueryExtension ();
15639 main ()
15641 return XRenderQueryExtension ();
15643 return 0;
15645 _ACEOF
15646 rm -f conftest.$ac_objext conftest$ac_exeext
15647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15648 (eval $ac_link) 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest$ac_exeext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15668 if test "x$ac_cv_lib_soname_Xrender" = "x"
15669 then
15670 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15672 else
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15679 rm -f conftest.err conftest.$ac_objext \
15680 conftest$ac_exeext conftest.$ac_ext
15681 LIBS=$ac_get_soname_save_LIBS
15683 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15684 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
15685 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15689 _ACEOF
15693 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15694 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
15695 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698 ac_get_soname_save_LIBS=$LIBS
15699 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15700 cat >conftest.$ac_ext <<_ACEOF
15701 /* confdefs.h. */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15707 /* Override any GCC internal prototype to avoid an error.
15708 Use char because int might match the return type of a GCC
15709 builtin and then its argument prototype would still apply. */
15710 #ifdef __cplusplus
15711 extern "C"
15712 #endif
15713 char XRRQueryExtension ();
15715 main ()
15717 return XRRQueryExtension ();
15719 return 0;
15721 _ACEOF
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15724 (eval $ac_link) 2>conftest.er1
15725 ac_status=$?
15726 grep -v '^ *+' conftest.er1 >conftest.err
15727 rm -f conftest.er1
15728 cat conftest.err >&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15744 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15745 then
15746 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15748 else
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15755 rm -f conftest.err conftest.$ac_objext \
15756 conftest$ac_exeext conftest.$ac_ext
15757 LIBS=$ac_get_soname_save_LIBS
15759 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15760 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
15761 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15765 _ACEOF
15769 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15770 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
15771 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774 ac_get_soname_save_LIBS=$LIBS
15775 LIBS="-lfreetype $X_LIBS $LIBS"
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15783 /* Override any GCC internal prototype to avoid an error.
15784 Use char because int might match the return type of a GCC
15785 builtin and then its argument prototype would still apply. */
15786 #ifdef __cplusplus
15787 extern "C"
15788 #endif
15789 char FT_Init_FreeType ();
15791 main ()
15793 return FT_Init_FreeType ();
15795 return 0;
15797 _ACEOF
15798 rm -f conftest.$ac_objext conftest$ac_exeext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15800 (eval $ac_link) 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest$ac_exeext'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; }; then
15819 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15820 if test "x$ac_cv_lib_soname_freetype" = "x"
15821 then
15822 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15824 else
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15831 rm -f conftest.err conftest.$ac_objext \
15832 conftest$ac_exeext conftest.$ac_ext
15833 LIBS=$ac_get_soname_save_LIBS
15835 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15836 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
15837 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15839 cat >>confdefs.h <<_ACEOF
15840 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15841 _ACEOF
15845 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
15846 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
15847 if test "${ac_cv_lib_soname_GL+set}" = set; then
15848 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 else
15850 ac_get_soname_save_LIBS=$LIBS
15851 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15852 cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h. */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15859 /* Override any GCC internal prototype to avoid an error.
15860 Use char because int might match the return type of a GCC
15861 builtin and then its argument prototype would still apply. */
15862 #ifdef __cplusplus
15863 extern "C"
15864 #endif
15865 char glXQueryExtension ();
15867 main ()
15869 return glXQueryExtension ();
15871 return 0;
15873 _ACEOF
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876 (eval $ac_link) 2>conftest.er1
15877 ac_status=$?
15878 grep -v '^ *+' conftest.er1 >conftest.err
15879 rm -f conftest.er1
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest$ac_exeext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15896 if test "x$ac_cv_lib_soname_GL" = "x"
15897 then
15898 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15900 else
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15907 rm -f conftest.err conftest.$ac_objext \
15908 conftest$ac_exeext conftest.$ac_ext
15909 LIBS=$ac_get_soname_save_LIBS
15911 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15912 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
15913 if test "${ac_cv_lib_soname_GL+set}" = set; then
15915 cat >>confdefs.h <<_ACEOF
15916 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15917 _ACEOF
15921 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
15922 echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
15923 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 else
15926 ac_get_soname_save_LIBS=$LIBS
15927 LIBS="-ldbus-1 $LIBS"
15928 cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h. */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h. */
15935 /* Override any GCC internal prototype to avoid an error.
15936 Use char because int might match the return type of a GCC
15937 builtin and then its argument prototype would still apply. */
15938 #ifdef __cplusplus
15939 extern "C"
15940 #endif
15941 char dbus_error_init ();
15943 main ()
15945 return dbus_error_init ();
15947 return 0;
15949 _ACEOF
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15952 (eval $ac_link) 2>conftest.er1
15953 ac_status=$?
15954 grep -v '^ *+' conftest.er1 >conftest.err
15955 rm -f conftest.er1
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
15959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15972 if test "x$ac_cv_lib_soname_dbus_1" = "x"
15973 then
15974 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15980 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
15983 rm -f conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
15985 LIBS=$ac_get_soname_save_LIBS
15987 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
15988 echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
15989 if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
15991 cat >>confdefs.h <<_ACEOF
15992 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
15993 _ACEOF
15997 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
15998 echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
15999 if test "${ac_cv_lib_soname_hal+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 ac_get_soname_save_LIBS=$LIBS
16003 LIBS="-lhal $LIBS"
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16011 /* Override any GCC internal prototype to avoid an error.
16012 Use char because int might match the return type of a GCC
16013 builtin and then its argument prototype would still apply. */
16014 #ifdef __cplusplus
16015 extern "C"
16016 #endif
16017 char libhal_ctx_new ();
16019 main ()
16021 return libhal_ctx_new ();
16023 return 0;
16025 _ACEOF
16026 rm -f conftest.$ac_objext conftest$ac_exeext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16028 (eval $ac_link) 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } &&
16035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest$ac_exeext'
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16048 if test "x$ac_cv_lib_soname_hal" = "x"
16049 then
16050 ac_cv_lib_soname_hal="libhal.$LIBEXT"
16052 else
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_cv_lib_soname_hal="libhal.$LIBEXT"
16059 rm -f conftest.err conftest.$ac_objext \
16060 conftest$ac_exeext conftest.$ac_ext
16061 LIBS=$ac_get_soname_save_LIBS
16063 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
16064 echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
16065 if test "${ac_cv_lib_soname_hal+set}" = set; then
16067 cat >>confdefs.h <<_ACEOF
16068 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
16069 _ACEOF
16073 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
16074 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
16075 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078 ac_get_soname_save_LIBS=$LIBS
16079 LIBS="-ltxc_dxtn $LIBS"
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h. */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16087 /* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16090 #ifdef __cplusplus
16091 extern "C"
16092 #endif
16093 char fetch_2d_texel_rgba_dxt1 ();
16095 main ()
16097 return fetch_2d_texel_rgba_dxt1 ();
16099 return 0;
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; } &&
16117 { ac_try='test -s conftest$ac_exeext'
16118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16124 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
16125 then
16126 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
16128 else
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
16135 rm -f conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16137 LIBS=$ac_get_soname_save_LIBS
16139 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
16140 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
16141 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
16143 cat >>confdefs.h <<_ACEOF
16144 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
16145 _ACEOF
16149 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
16150 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
16151 if test "${ac_cv_lib_soname_cups+set}" = set; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154 ac_get_soname_save_LIBS=$LIBS
16155 LIBS="-lcups $LIBS"
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h. */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16163 /* Override any GCC internal prototype to avoid an error.
16164 Use char because int might match the return type of a GCC
16165 builtin and then its argument prototype would still apply. */
16166 #ifdef __cplusplus
16167 extern "C"
16168 #endif
16169 char cupsGetDefault ();
16171 main ()
16173 return cupsGetDefault ();
16175 return 0;
16177 _ACEOF
16178 rm -f conftest.$ac_objext conftest$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180 (eval $ac_link) 2>conftest.er1
16181 ac_status=$?
16182 grep -v '^ *+' conftest.er1 >conftest.err
16183 rm -f conftest.er1
16184 cat conftest.err >&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); } &&
16187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16190 ac_status=$?
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; } &&
16193 { ac_try='test -s conftest$ac_exeext'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; }; then
16199 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16200 if test "x$ac_cv_lib_soname_cups" = "x"
16201 then
16202 ac_cv_lib_soname_cups="libcups.$LIBEXT"
16204 else
16205 echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16208 ac_cv_lib_soname_cups="libcups.$LIBEXT"
16211 rm -f conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213 LIBS=$ac_get_soname_save_LIBS
16215 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
16216 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
16217 if test "${ac_cv_lib_soname_cups+set}" = set; then
16219 cat >>confdefs.h <<_ACEOF
16220 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
16221 _ACEOF
16225 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
16226 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
16227 if test "${ac_cv_lib_soname_jack+set}" = set; then
16228 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230 ac_get_soname_save_LIBS=$LIBS
16231 LIBS="-ljack $LIBS"
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h. */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h. */
16239 /* Override any GCC internal prototype to avoid an error.
16240 Use char because int might match the return type of a GCC
16241 builtin and then its argument prototype would still apply. */
16242 #ifdef __cplusplus
16243 extern "C"
16244 #endif
16245 char jack_client_new ();
16247 main ()
16249 return jack_client_new ();
16251 return 0;
16253 _ACEOF
16254 rm -f conftest.$ac_objext conftest$ac_exeext
16255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16256 (eval $ac_link) 2>conftest.er1
16257 ac_status=$?
16258 grep -v '^ *+' conftest.er1 >conftest.err
16259 rm -f conftest.er1
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } &&
16263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; } &&
16269 { ac_try='test -s conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16276 if test "x$ac_cv_lib_soname_jack" = "x"
16277 then
16278 ac_cv_lib_soname_jack="libjack.$LIBEXT"
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_cv_lib_soname_jack="libjack.$LIBEXT"
16287 rm -f conftest.err conftest.$ac_objext \
16288 conftest$ac_exeext conftest.$ac_ext
16289 LIBS=$ac_get_soname_save_LIBS
16291 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
16292 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
16293 if test "${ac_cv_lib_soname_jack+set}" = set; then
16295 cat >>confdefs.h <<_ACEOF
16296 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
16297 _ACEOF
16301 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
16302 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
16303 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 ac_get_soname_save_LIBS=$LIBS
16307 LIBS="-lfontconfig $LIBS"
16308 cat >conftest.$ac_ext <<_ACEOF
16309 /* confdefs.h. */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h. */
16315 /* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16318 #ifdef __cplusplus
16319 extern "C"
16320 #endif
16321 char FcInit ();
16323 main ()
16325 return FcInit ();
16327 return 0;
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332 (eval $ac_link) 2>conftest.er1
16333 ac_status=$?
16334 grep -v '^ *+' conftest.er1 >conftest.err
16335 rm -f conftest.er1
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16352 if test "x$ac_cv_lib_soname_fontconfig" = "x"
16353 then
16354 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
16356 else
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
16363 rm -f conftest.err conftest.$ac_objext \
16364 conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_get_soname_save_LIBS
16367 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
16368 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
16369 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
16371 cat >>confdefs.h <<_ACEOF
16372 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
16373 _ACEOF
16377 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
16378 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
16379 if test "${ac_cv_lib_soname_ssl+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382 ac_get_soname_save_LIBS=$LIBS
16383 LIBS="-lssl $LIBS"
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h. */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16391 /* Override any GCC internal prototype to avoid an error.
16392 Use char because int might match the return type of a GCC
16393 builtin and then its argument prototype would still apply. */
16394 #ifdef __cplusplus
16395 extern "C"
16396 #endif
16397 char SSL_library_init ();
16399 main ()
16401 return SSL_library_init ();
16403 return 0;
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16408 (eval $ac_link) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; } &&
16421 { ac_try='test -s conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16428 if test "x$ac_cv_lib_soname_ssl" = "x"
16429 then
16430 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
16432 else
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
16439 rm -f conftest.err conftest.$ac_objext \
16440 conftest$ac_exeext conftest.$ac_ext
16441 LIBS=$ac_get_soname_save_LIBS
16443 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
16444 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
16445 if test "${ac_cv_lib_soname_ssl+set}" = set; then
16447 cat >>confdefs.h <<_ACEOF
16448 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
16449 _ACEOF
16453 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
16454 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
16455 if test "${ac_cv_lib_soname_crypto+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458 ac_get_soname_save_LIBS=$LIBS
16459 LIBS="-lcrypto $LIBS"
16460 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16467 /* Override any GCC internal prototype to avoid an error.
16468 Use char because int might match the return type of a GCC
16469 builtin and then its argument prototype would still apply. */
16470 #ifdef __cplusplus
16471 extern "C"
16472 #endif
16473 char BIO_new_socket ();
16475 main ()
16477 return BIO_new_socket ();
16479 return 0;
16481 _ACEOF
16482 rm -f conftest.$ac_objext conftest$ac_exeext
16483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16484 (eval $ac_link) 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } &&
16497 { ac_try='test -s conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16504 if test "x$ac_cv_lib_soname_crypto" = "x"
16505 then
16506 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
16508 else
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16512 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
16515 rm -f conftest.err conftest.$ac_objext \
16516 conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_get_soname_save_LIBS
16519 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
16520 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
16521 if test "${ac_cv_lib_soname_crypto+set}" = set; then
16523 cat >>confdefs.h <<_ACEOF
16524 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
16525 _ACEOF
16529 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
16530 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
16531 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
16532 echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534 ac_get_soname_save_LIBS=$LIBS
16535 LIBS="-lncurses $LIBS"
16536 cat >conftest.$ac_ext <<_ACEOF
16537 /* confdefs.h. */
16538 _ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16543 /* Override any GCC internal prototype to avoid an error.
16544 Use char because int might match the return type of a GCC
16545 builtin and then its argument prototype would still apply. */
16546 #ifdef __cplusplus
16547 extern "C"
16548 #endif
16549 char waddch ();
16551 main ()
16553 return waddch ();
16555 return 0;
16557 _ACEOF
16558 rm -f conftest.$ac_objext conftest$ac_exeext
16559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16560 (eval $ac_link) 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } &&
16567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest$ac_exeext'
16574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16576 ac_status=$?
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16580 if test "x$ac_cv_lib_soname_ncurses" = "x"
16581 then
16582 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
16591 rm -f conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_get_soname_save_LIBS
16595 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
16596 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
16597 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
16601 _ACEOF
16605 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
16606 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
16607 if test "${ac_cv_lib_soname_curses+set}" = set; then
16608 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 else
16610 ac_get_soname_save_LIBS=$LIBS
16611 LIBS="-lcurses $LIBS"
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16619 /* Override any GCC internal prototype to avoid an error.
16620 Use char because int might match the return type of a GCC
16621 builtin and then its argument prototype would still apply. */
16622 #ifdef __cplusplus
16623 extern "C"
16624 #endif
16625 char waddch ();
16627 main ()
16629 return waddch ();
16631 return 0;
16633 _ACEOF
16634 rm -f conftest.$ac_objext conftest$ac_exeext
16635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16636 (eval $ac_link) 2>conftest.er1
16637 ac_status=$?
16638 grep -v '^ *+' conftest.er1 >conftest.err
16639 rm -f conftest.er1
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } &&
16649 { ac_try='test -s conftest$ac_exeext'
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16656 if test "x$ac_cv_lib_soname_curses" = "x"
16657 then
16658 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
16667 rm -f conftest.err conftest.$ac_objext \
16668 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_get_soname_save_LIBS
16671 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
16672 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
16673 if test "${ac_cv_lib_soname_curses+set}" = set; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
16677 _ACEOF
16681 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
16682 echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
16683 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 ac_get_soname_save_LIBS=$LIBS
16687 LIBS="-ljpeg $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16698 #ifdef __cplusplus
16699 extern "C"
16700 #endif
16701 char jpeg_start_decompress ();
16703 main ()
16705 return jpeg_start_decompress ();
16707 return 0;
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16728 ac_status=$?
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16732 if test "x$ac_cv_lib_soname_jpeg" = "x"
16733 then
16734 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
16743 rm -f conftest.err conftest.$ac_objext \
16744 conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_get_soname_save_LIBS
16747 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
16748 echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
16749 if test "${ac_cv_lib_soname_jpeg+set}" = set; then
16751 cat >>confdefs.h <<_ACEOF
16752 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
16753 _ACEOF
16757 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
16758 echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
16759 if test "${ac_cv_lib_soname_ungif+set}" = set; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762 ac_get_soname_save_LIBS=$LIBS
16763 LIBS="-lungif $LIBS"
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16771 /* Override any GCC internal prototype to avoid an error.
16772 Use char because int might match the return type of a GCC
16773 builtin and then its argument prototype would still apply. */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 char DGifOpen ();
16779 main ()
16781 return DGifOpen ();
16783 return 0;
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16798 ac_status=$?
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; } &&
16801 { ac_try='test -s conftest$ac_exeext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16808 if test "x$ac_cv_lib_soname_ungif" = "x"
16809 then
16810 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
16812 else
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
16819 rm -f conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821 LIBS=$ac_get_soname_save_LIBS
16823 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
16824 echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
16825 if test "${ac_cv_lib_soname_ungif+set}" = set; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
16829 _ACEOF
16833 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
16834 echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
16835 if test "${ac_cv_lib_soname_gif+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838 ac_get_soname_save_LIBS=$LIBS
16839 LIBS="-lgif $LIBS"
16840 cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h. */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16847 /* Override any GCC internal prototype to avoid an error.
16848 Use char because int might match the return type of a GCC
16849 builtin and then its argument prototype would still apply. */
16850 #ifdef __cplusplus
16851 extern "C"
16852 #endif
16853 char DGifOpen ();
16855 main ()
16857 return DGifOpen ();
16859 return 0;
16861 _ACEOF
16862 rm -f conftest.$ac_objext conftest$ac_exeext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16864 (eval $ac_link) 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; } &&
16877 { ac_try='test -s conftest$ac_exeext'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; }; then
16883 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16884 if test "x$ac_cv_lib_soname_gif" = "x"
16885 then
16886 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16888 else
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.$ac_ext >&5
16892 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16895 rm -f conftest.err conftest.$ac_objext \
16896 conftest$ac_exeext conftest.$ac_ext
16897 LIBS=$ac_get_soname_save_LIBS
16899 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
16900 echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
16901 if test "${ac_cv_lib_soname_gif+set}" = set; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
16905 _ACEOF
16909 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
16910 echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
16911 if test "${ac_cv_lib_soname_capi20+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914 ac_get_soname_save_LIBS=$LIBS
16915 LIBS="-lcapi20 $LIBS"
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h. */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 char capi20_isinstalled ();
16931 main ()
16933 return capi20_isinstalled ();
16935 return 0;
16937 _ACEOF
16938 rm -f conftest.$ac_objext conftest$ac_exeext
16939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940 (eval $ac_link) 2>conftest.er1
16941 ac_status=$?
16942 grep -v '^ *+' conftest.er1 >conftest.err
16943 rm -f conftest.er1
16944 cat conftest.err >&5
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } &&
16947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16960 if test "x$ac_cv_lib_soname_capi20" = "x"
16961 then
16962 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
16971 rm -f conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16973 LIBS=$ac_get_soname_save_LIBS
16975 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
16976 echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
16977 if test "${ac_cv_lib_soname_capi20+set}" = set; then
16979 cat >>confdefs.h <<_ACEOF
16980 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
16981 _ACEOF
17053 for ac_func in \
17054 _lwp_create \
17055 _lwp_self \
17056 _pclose \
17057 _popen \
17058 _snprintf \
17059 _spawnvp \
17060 _stricmp \
17061 _strnicmp \
17062 _vsnprintf \
17063 asctime_r \
17064 chsize \
17065 clone \
17066 epoll_create \
17067 ffs \
17068 finite \
17069 fork \
17070 fpclass \
17071 fstatfs \
17072 fstatvfs \
17073 ftruncate \
17074 futimes \
17075 futimesat \
17076 getaddrinfo \
17077 getnameinfo \
17078 getnetbyname \
17079 getopt_long \
17080 getpagesize \
17081 getprotobyname \
17082 getprotobynumber \
17083 getpwuid \
17084 getservbyport \
17085 gettid \
17086 gettimeofday \
17087 getuid \
17088 inet_network \
17089 lstat \
17090 memmove \
17091 mmap \
17092 pclose \
17093 popen \
17094 prctl \
17095 pread \
17096 pwrite \
17097 readlink \
17098 rfork \
17099 sched_yield \
17100 select \
17101 sendmsg \
17102 settimeofday \
17103 sigaltstack \
17104 sigprocmask \
17105 snprintf \
17106 spawnvp \
17107 statfs \
17108 statvfs \
17109 strcasecmp \
17110 strerror \
17111 strncasecmp \
17112 tcgetattr \
17113 timegm \
17114 usleep \
17115 vsnprintf \
17116 wait4 \
17117 waitpid \
17120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126 cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h. */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17134 #define $ac_func innocuous_$ac_func
17136 /* System header to define __stub macros and hopefully few prototypes,
17137 which can conflict with char $ac_func (); below.
17138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17139 <limits.h> exists even on freestanding compilers. */
17141 #ifdef __STDC__
17142 # include <limits.h>
17143 #else
17144 # include <assert.h>
17145 #endif
17147 #undef $ac_func
17149 /* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
17152 #ifdef __cplusplus
17153 extern "C"
17154 #endif
17155 char $ac_func ();
17156 /* The GNU C library defines this for functions which it implements
17157 to always fail with ENOSYS. Some functions are actually named
17158 something starting with __ and the normal name is an alias. */
17159 #if defined __stub_$ac_func || defined __stub___$ac_func
17160 choke me
17161 #endif
17164 main ()
17166 return $ac_func ();
17168 return 0;
17170 _ACEOF
17171 rm -f conftest.$ac_objext conftest$ac_exeext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17173 (eval $ac_link) 2>conftest.er1
17174 ac_status=$?
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; } &&
17186 { ac_try='test -s conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 eval "$as_ac_var=yes"
17193 else
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 eval "$as_ac_var=no"
17200 rm -f conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17203 ac_res=`eval echo '${'$as_ac_var'}'`
17204 { echo "$as_me:$LINENO: result: $ac_res" >&5
17205 echo "${ECHO_T}$ac_res" >&6; }
17206 if test `eval echo '${'$as_ac_var'}'` = yes; then
17207 cat >>confdefs.h <<_ACEOF
17208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17209 _ACEOF
17212 done
17217 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
17219 if test "${ac_cv_c_const+set}" = set; then
17220 echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222 cat >conftest.$ac_ext <<_ACEOF
17223 /* confdefs.h. */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17230 main ()
17232 /* FIXME: Include the comments suggested by Paul. */
17233 #ifndef __cplusplus
17234 /* Ultrix mips cc rejects this. */
17235 typedef int charset[2];
17236 const charset x;
17237 /* SunOS 4.1.1 cc rejects this. */
17238 char const *const *ccp;
17239 char **p;
17240 /* NEC SVR4.0.2 mips cc rejects this. */
17241 struct point {int x, y;};
17242 static struct point const zero = {0,0};
17243 /* AIX XL C 1.02.0.0 rejects this.
17244 It does not let you subtract one const X* pointer from another in
17245 an arm of an if-expression whose if-part is not a constant
17246 expression */
17247 const char *g = "string";
17248 ccp = &g + (g ? g-g : 0);
17249 /* HPUX 7.0 cc rejects these. */
17250 ++ccp;
17251 p = (char**) ccp;
17252 ccp = (char const *const *) p;
17253 { /* SCO 3.2v4 cc rejects this. */
17254 char *t;
17255 char const *s = 0 ? (char *) 0 : (char const *) 0;
17257 *t++ = 0;
17258 if (s) return 0;
17260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17261 int x[] = {25, 17};
17262 const int *foo = &x[0];
17263 ++foo;
17265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17266 typedef const int *iptr;
17267 iptr p = 0;
17268 ++p;
17270 { /* AIX XL C 1.02.0.0 rejects this saying
17271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17272 struct s { int j; const int *ap[3]; };
17273 struct s *b; b->j = 5;
17275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17276 const int foo = 10;
17277 if (!foo) return 0;
17279 return !x[0] && !zero.x;
17280 #endif
17283 return 0;
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17288 (eval $ac_compile) 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest.$ac_objext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_c_const=yes
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ac_cv_c_const=no
17315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17317 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17318 echo "${ECHO_T}$ac_cv_c_const" >&6; }
17319 if test $ac_cv_c_const = no; then
17321 cat >>confdefs.h <<\_ACEOF
17322 #define const
17323 _ACEOF
17327 { echo "$as_me:$LINENO: checking for inline" >&5
17328 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
17329 if test "${ac_cv_c_inline+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332 ac_cv_c_inline=no
17333 for ac_kw in inline __inline__ __inline; do
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340 #ifndef __cplusplus
17341 typedef int foo_t;
17342 static $ac_kw foo_t static_foo () {return 0; }
17343 $ac_kw foo_t foo () {return 0; }
17344 #endif
17346 _ACEOF
17347 rm -f conftest.$ac_objext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349 (eval $ac_compile) 2>conftest.er1
17350 ac_status=$?
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_cv_c_inline=$ac_kw
17369 else
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17377 test "$ac_cv_c_inline" != no && break
17378 done
17381 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17382 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
17385 case $ac_cv_c_inline in
17386 inline | yes) ;;
17388 case $ac_cv_c_inline in
17389 no) ac_val=;;
17390 *) ac_val=$ac_cv_c_inline;;
17391 esac
17392 cat >>confdefs.h <<_ACEOF
17393 #ifndef __cplusplus
17394 #define inline $ac_val
17395 #endif
17396 _ACEOF
17398 esac
17400 { echo "$as_me:$LINENO: checking for mode_t" >&5
17401 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
17402 if test "${ac_cv_type_mode_t+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 else
17405 cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h. */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h. */
17411 $ac_includes_default
17412 typedef mode_t ac__type_new_;
17414 main ()
17416 if ((ac__type_new_ *) 0)
17417 return 0;
17418 if (sizeof (ac__type_new_))
17419 return 0;
17421 return 0;
17423 _ACEOF
17424 rm -f conftest.$ac_objext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17426 (eval $ac_compile) 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17436 ac_status=$?
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest.$ac_objext'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; }; then
17445 ac_cv_type_mode_t=yes
17446 else
17447 echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17450 ac_cv_type_mode_t=no
17453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17455 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17456 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
17457 if test $ac_cv_type_mode_t = yes; then
17459 cat >>confdefs.h <<_ACEOF
17460 #define HAVE_MODE_T 1
17461 _ACEOF
17465 { echo "$as_me:$LINENO: checking for off_t" >&5
17466 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
17467 if test "${ac_cv_type_off_t+set}" = set; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 else
17470 cat >conftest.$ac_ext <<_ACEOF
17471 /* confdefs.h. */
17472 _ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h. */
17476 $ac_includes_default
17477 typedef off_t ac__type_new_;
17479 main ()
17481 if ((ac__type_new_ *) 0)
17482 return 0;
17483 if (sizeof (ac__type_new_))
17484 return 0;
17486 return 0;
17488 _ACEOF
17489 rm -f conftest.$ac_objext
17490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17491 (eval $ac_compile) 2>conftest.er1
17492 ac_status=$?
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
17498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest.$ac_objext'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_type_off_t=yes
17511 else
17512 echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_cv_type_off_t=no
17518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17520 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17521 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
17522 if test $ac_cv_type_off_t = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_OFF_T 1
17526 _ACEOF
17530 { echo "$as_me:$LINENO: checking for pid_t" >&5
17531 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17532 if test "${ac_cv_type_pid_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17542 typedef pid_t ac__type_new_;
17544 main ()
17546 if ((ac__type_new_ *) 0)
17547 return 0;
17548 if (sizeof (ac__type_new_))
17549 return 0;
17551 return 0;
17553 _ACEOF
17554 rm -f conftest.$ac_objext
17555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17556 (eval $ac_compile) 2>conftest.er1
17557 ac_status=$?
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest.$ac_objext'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17575 ac_cv_type_pid_t=yes
17576 else
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 ac_cv_type_pid_t=no
17583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17585 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17586 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17587 if test $ac_cv_type_pid_t = yes; then
17589 cat >>confdefs.h <<_ACEOF
17590 #define HAVE_PID_T 1
17591 _ACEOF
17595 { echo "$as_me:$LINENO: checking for size_t" >&5
17596 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17597 if test "${ac_cv_type_size_t+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17599 else
17600 cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h. */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 $ac_includes_default
17607 typedef size_t ac__type_new_;
17609 main ()
17611 if ((ac__type_new_ *) 0)
17612 return 0;
17613 if (sizeof (ac__type_new_))
17614 return 0;
17616 return 0;
17618 _ACEOF
17619 rm -f conftest.$ac_objext
17620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17621 (eval $ac_compile) 2>conftest.er1
17622 ac_status=$?
17623 grep -v '^ *+' conftest.er1 >conftest.err
17624 rm -f conftest.er1
17625 cat conftest.err >&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
17628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest.$ac_objext'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 ac_cv_type_size_t=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_cv_type_size_t=no
17648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17650 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17651 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17652 if test $ac_cv_type_size_t = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define HAVE_SIZE_T 1
17656 _ACEOF
17660 { echo "$as_me:$LINENO: checking for ssize_t" >&5
17661 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
17662 if test "${ac_cv_type_ssize_t+set}" = set; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17664 else
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $ac_includes_default
17672 typedef ssize_t ac__type_new_;
17674 main ()
17676 if ((ac__type_new_ *) 0)
17677 return 0;
17678 if (sizeof (ac__type_new_))
17679 return 0;
17681 return 0;
17683 _ACEOF
17684 rm -f conftest.$ac_objext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17686 (eval $ac_compile) 2>conftest.er1
17687 ac_status=$?
17688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
17693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_type_ssize_t=yes
17706 else
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_type_ssize_t=no
17713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17715 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17716 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
17717 if test $ac_cv_type_ssize_t = yes; then
17719 cat >>confdefs.h <<_ACEOF
17720 #define HAVE_SSIZE_T 1
17721 _ACEOF
17725 { echo "$as_me:$LINENO: checking for long long" >&5
17726 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
17727 if test "${ac_cv_type_long_long+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730 cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h. */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17737 typedef long long ac__type_new_;
17739 main ()
17741 if ((ac__type_new_ *) 0)
17742 return 0;
17743 if (sizeof (ac__type_new_))
17744 return 0;
17746 return 0;
17748 _ACEOF
17749 rm -f conftest.$ac_objext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17751 (eval $ac_compile) 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; } &&
17764 { ac_try='test -s conftest.$ac_objext'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; }; then
17770 ac_cv_type_long_long=yes
17771 else
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_cv_type_long_long=no
17778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17780 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17781 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17782 if test $ac_cv_type_long_long = yes; then
17784 cat >>confdefs.h <<_ACEOF
17785 #define HAVE_LONG_LONG 1
17786 _ACEOF
17790 { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17791 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
17792 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795 cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h. */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17801 $ac_includes_default
17802 typedef fsblkcnt_t ac__type_new_;
17804 main ()
17806 if ((ac__type_new_ *) 0)
17807 return 0;
17808 if (sizeof (ac__type_new_))
17809 return 0;
17811 return 0;
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_type_fsblkcnt_t=yes
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_type_fsblkcnt_t=no
17843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17846 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
17847 if test $ac_cv_type_fsblkcnt_t = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_FSBLKCNT_T 1
17851 _ACEOF
17855 { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17856 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
17857 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860 cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h. */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 $ac_includes_default
17867 typedef fsfilcnt_t ac__type_new_;
17869 main ()
17871 if ((ac__type_new_ *) 0)
17872 return 0;
17873 if (sizeof (ac__type_new_))
17874 return 0;
17876 return 0;
17878 _ACEOF
17879 rm -f conftest.$ac_objext
17880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>conftest.er1
17882 ac_status=$?
17883 grep -v '^ *+' conftest.er1 >conftest.err
17884 rm -f conftest.er1
17885 cat conftest.err >&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; } &&
17894 { ac_try='test -s conftest.$ac_objext'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; }; then
17900 ac_cv_type_fsfilcnt_t=yes
17901 else
17902 echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 ac_cv_type_fsfilcnt_t=no
17908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17910 { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17911 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
17912 if test $ac_cv_type_fsfilcnt_t = yes; then
17914 cat >>confdefs.h <<_ACEOF
17915 #define HAVE_FSFILCNT_T 1
17916 _ACEOF
17921 { echo "$as_me:$LINENO: checking for sigset_t" >&5
17922 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
17923 if test "${ac_cv_type_sigset_t+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925 else
17926 cat >conftest.$ac_ext <<_ACEOF
17927 /* confdefs.h. */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 #include <signal.h>
17934 typedef sigset_t ac__type_new_;
17936 main ()
17938 if ((ac__type_new_ *) 0)
17939 return 0;
17940 if (sizeof (ac__type_new_))
17941 return 0;
17943 return 0;
17945 _ACEOF
17946 rm -f conftest.$ac_objext
17947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17948 (eval $ac_compile) 2>conftest.er1
17949 ac_status=$?
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
17955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_cv_type_sigset_t=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_cv_type_sigset_t=no
17975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17977 { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17978 echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
17979 if test $ac_cv_type_sigset_t = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define HAVE_SIGSET_T 1
17983 _ACEOF
17988 { echo "$as_me:$LINENO: checking for request_sense" >&5
17989 echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
17990 if test "${ac_cv_type_request_sense+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 #include <linux/cdrom.h>
18001 typedef request_sense ac__type_new_;
18003 main ()
18005 if ((ac__type_new_ *) 0)
18006 return 0;
18007 if (sizeof (ac__type_new_))
18008 return 0;
18010 return 0;
18012 _ACEOF
18013 rm -f conftest.$ac_objext
18014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18015 (eval $ac_compile) 2>conftest.er1
18016 ac_status=$?
18017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest.$ac_objext'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034 ac_cv_type_request_sense=yes
18035 else
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 ac_cv_type_request_sense=no
18042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18044 { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
18045 echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
18046 if test $ac_cv_type_request_sense = yes; then
18048 cat >>confdefs.h <<_ACEOF
18049 #define HAVE_REQUEST_SENSE 1
18050 _ACEOF
18056 { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
18057 echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
18058 if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
18059 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h. */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #ifdef HAVE_LINUX_INPUT_H
18068 #include <linux/input.h>
18069 #endif
18072 main ()
18074 static struct ff_effect ac_aggr;
18075 if (ac_aggr.direction)
18076 return 0;
18078 return 0;
18080 _ACEOF
18081 rm -f conftest.$ac_objext
18082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18083 (eval $ac_compile) 2>conftest.er1
18084 ac_status=$?
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
18090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_member_struct_ff_effect_direction=yes
18103 else
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 cat >conftest.$ac_ext <<_ACEOF
18108 /* confdefs.h. */
18109 _ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 #ifdef HAVE_LINUX_INPUT_H
18114 #include <linux/input.h>
18115 #endif
18118 main ()
18120 static struct ff_effect ac_aggr;
18121 if (sizeof ac_aggr.direction)
18122 return 0;
18124 return 0;
18126 _ACEOF
18127 rm -f conftest.$ac_objext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18129 (eval $ac_compile) 2>conftest.er1
18130 ac_status=$?
18131 grep -v '^ *+' conftest.er1 >conftest.err
18132 rm -f conftest.er1
18133 cat conftest.err >&5
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); } &&
18136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest.$ac_objext'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 ac_cv_member_struct_ff_effect_direction=yes
18149 else
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18153 ac_cv_member_struct_ff_effect_direction=no
18156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
18162 echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
18163 if test $ac_cv_member_struct_ff_effect_direction = yes; then
18165 cat >>confdefs.h <<_ACEOF
18166 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
18167 _ACEOF
18173 { echo "$as_me:$LINENO: checking for sigaddset" >&5
18174 echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
18175 if test "${wine_cv_have_sigaddset+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178 cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h. */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 #include <signal.h>
18186 main ()
18188 sigset_t set; sigaddset(&set,SIGTERM);
18190 return 0;
18192 _ACEOF
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18195 (eval $ac_link) 2>conftest.er1
18196 ac_status=$?
18197 grep -v '^ *+' conftest.er1 >conftest.err
18198 rm -f conftest.er1
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18205 ac_status=$?
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); }; } &&
18208 { ac_try='test -s conftest$ac_exeext'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
18214 wine_cv_have_sigaddset=yes
18215 else
18216 echo "$as_me: failed program was:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18219 wine_cv_have_sigaddset=no
18222 rm -f conftest.err conftest.$ac_objext \
18223 conftest$ac_exeext conftest.$ac_ext
18225 { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
18226 echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
18227 if test "$wine_cv_have_sigaddset" = "yes"
18228 then
18230 cat >>confdefs.h <<\_ACEOF
18231 #define HAVE_SIGADDSET 1
18232 _ACEOF
18237 { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18238 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
18239 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18249 #include <netdb.h>
18252 main ()
18255 char *name=NULL;
18256 struct hostent he;
18257 struct hostent *result;
18258 char *buf=NULL;
18259 int bufsize=0;
18260 int res,errnr;
18261 char *addr=NULL;
18262 int addrlen=0;
18263 int addrtype=0;
18264 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18265 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
18268 return 0;
18270 _ACEOF
18271 rm -f conftest.$ac_objext conftest$ac_exeext
18272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273 (eval $ac_link) 2>conftest.er1
18274 ac_status=$?
18275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } &&
18286 { ac_try='test -s conftest$ac_exeext'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 wine_cv_linux_gethostbyname_r_6=yes
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 wine_cv_linux_gethostbyname_r_6=no
18301 rm -f conftest.err conftest.$ac_objext \
18302 conftest$ac_exeext conftest.$ac_ext
18305 { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18306 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
18307 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18308 then
18310 cat >>confdefs.h <<\_ACEOF
18311 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18312 _ACEOF
18316 if test "$ac_cv_header_linux_joystick_h" = "yes"
18317 then
18318 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18319 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
18320 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 else
18323 cat >conftest.$ac_ext <<_ACEOF
18324 /* confdefs.h. */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18330 #include <sys/ioctl.h>
18331 #include <linux/joystick.h>
18333 struct js_event blub;
18334 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18335 #error "no 2.2 header"
18336 #endif
18339 main ()
18341 /*empty*/
18343 return 0;
18345 _ACEOF
18346 rm -f conftest.$ac_objext
18347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18348 (eval $ac_compile) 2>conftest.er1
18349 ac_status=$?
18350 grep -v '^ *+' conftest.er1 >conftest.err
18351 rm -f conftest.er1
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; } &&
18361 { ac_try='test -s conftest.$ac_objext'
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
18367 wine_cv_linux_joystick_22_api=yes
18368 else
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 wine_cv_linux_joystick_22_api=no
18375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18378 { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18379 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
18380 if test "$wine_cv_linux_joystick_22_api" = "yes"
18381 then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_LINUX_22_JOYSTICK_API 1
18385 _ACEOF
18391 { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18392 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
18393 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18395 else
18396 cat >conftest.$ac_ext <<_ACEOF
18397 /* confdefs.h. */
18398 _ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18402 #include <sys/types.h>
18403 #ifdef HAVE_SYS_PARAM_H
18404 # include <sys/param.h>
18405 #endif
18406 #ifdef HAVE_SYS_MOUNT_H
18407 # include <sys/mount.h>
18408 #endif
18409 #ifdef HAVE_SYS_VFS_H
18410 # include <sys/vfs.h>
18411 #endif
18412 #ifdef HAVE_SYS_STATFS_H
18413 # include <sys/statfs.h>
18414 #endif
18417 main ()
18419 static struct statfs ac_aggr;
18420 if (ac_aggr.f_bfree)
18421 return 0;
18423 return 0;
18425 _ACEOF
18426 rm -f conftest.$ac_objext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18428 (eval $ac_compile) 2>conftest.er1
18429 ac_status=$?
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443 (eval $ac_try) 2>&5
18444 ac_status=$?
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_member_struct_statfs_f_bfree=yes
18448 else
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 cat >conftest.$ac_ext <<_ACEOF
18453 /* confdefs.h. */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <sys/types.h>
18459 #ifdef HAVE_SYS_PARAM_H
18460 # include <sys/param.h>
18461 #endif
18462 #ifdef HAVE_SYS_MOUNT_H
18463 # include <sys/mount.h>
18464 #endif
18465 #ifdef HAVE_SYS_VFS_H
18466 # include <sys/vfs.h>
18467 #endif
18468 #ifdef HAVE_SYS_STATFS_H
18469 # include <sys/statfs.h>
18470 #endif
18473 main ()
18475 static struct statfs ac_aggr;
18476 if (sizeof ac_aggr.f_bfree)
18477 return 0;
18479 return 0;
18481 _ACEOF
18482 rm -f conftest.$ac_objext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18484 (eval $ac_compile) 2>conftest.er1
18485 ac_status=$?
18486 grep -v '^ *+' conftest.er1 >conftest.err
18487 rm -f conftest.er1
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 ac_cv_member_struct_statfs_f_bfree=yes
18504 else
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 ac_cv_member_struct_statfs_f_bfree=no
18511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18516 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18517 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
18518 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18520 cat >>confdefs.h <<_ACEOF
18521 #define HAVE_STRUCT_STATFS_F_BFREE 1
18522 _ACEOF
18526 { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18527 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
18528 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531 cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h. */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18537 #include <sys/types.h>
18538 #ifdef HAVE_SYS_PARAM_H
18539 # include <sys/param.h>
18540 #endif
18541 #ifdef HAVE_SYS_MOUNT_H
18542 # include <sys/mount.h>
18543 #endif
18544 #ifdef HAVE_SYS_VFS_H
18545 # include <sys/vfs.h>
18546 #endif
18547 #ifdef HAVE_SYS_STATFS_H
18548 # include <sys/statfs.h>
18549 #endif
18552 main ()
18554 static struct statfs ac_aggr;
18555 if (ac_aggr.f_bavail)
18556 return 0;
18558 return 0;
18560 _ACEOF
18561 rm -f conftest.$ac_objext
18562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18563 (eval $ac_compile) 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } &&
18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; } &&
18576 { ac_try='test -s conftest.$ac_objext'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 ac_cv_member_struct_statfs_f_bavail=yes
18583 else
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.$ac_ext >&5
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 #include <sys/types.h>
18594 #ifdef HAVE_SYS_PARAM_H
18595 # include <sys/param.h>
18596 #endif
18597 #ifdef HAVE_SYS_MOUNT_H
18598 # include <sys/mount.h>
18599 #endif
18600 #ifdef HAVE_SYS_VFS_H
18601 # include <sys/vfs.h>
18602 #endif
18603 #ifdef HAVE_SYS_STATFS_H
18604 # include <sys/statfs.h>
18605 #endif
18608 main ()
18610 static struct statfs ac_aggr;
18611 if (sizeof ac_aggr.f_bavail)
18612 return 0;
18614 return 0;
18616 _ACEOF
18617 rm -f conftest.$ac_objext
18618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619 (eval $ac_compile) 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; } &&
18632 { ac_try='test -s conftest.$ac_objext'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18638 ac_cv_member_struct_statfs_f_bavail=yes
18639 else
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 ac_cv_member_struct_statfs_f_bavail=no
18646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18651 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18652 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
18653 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18655 cat >>confdefs.h <<_ACEOF
18656 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18657 _ACEOF
18661 { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18662 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
18663 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 else
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672 #include <sys/types.h>
18673 #ifdef HAVE_SYS_PARAM_H
18674 # include <sys/param.h>
18675 #endif
18676 #ifdef HAVE_SYS_MOUNT_H
18677 # include <sys/mount.h>
18678 #endif
18679 #ifdef HAVE_SYS_VFS_H
18680 # include <sys/vfs.h>
18681 #endif
18682 #ifdef HAVE_SYS_STATFS_H
18683 # include <sys/statfs.h>
18684 #endif
18687 main ()
18689 static struct statfs ac_aggr;
18690 if (ac_aggr.f_frsize)
18691 return 0;
18693 return 0;
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698 (eval $ac_compile) 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
18705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; } &&
18711 { ac_try='test -s conftest.$ac_objext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_member_struct_statfs_f_frsize=yes
18718 else
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 #include <sys/types.h>
18729 #ifdef HAVE_SYS_PARAM_H
18730 # include <sys/param.h>
18731 #endif
18732 #ifdef HAVE_SYS_MOUNT_H
18733 # include <sys/mount.h>
18734 #endif
18735 #ifdef HAVE_SYS_VFS_H
18736 # include <sys/vfs.h>
18737 #endif
18738 #ifdef HAVE_SYS_STATFS_H
18739 # include <sys/statfs.h>
18740 #endif
18743 main ()
18745 static struct statfs ac_aggr;
18746 if (sizeof ac_aggr.f_frsize)
18747 return 0;
18749 return 0;
18751 _ACEOF
18752 rm -f conftest.$ac_objext
18753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18754 (eval $ac_compile) 2>conftest.er1
18755 ac_status=$?
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest.$ac_objext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_member_struct_statfs_f_frsize=yes
18774 else
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_cv_member_struct_statfs_f_frsize=no
18781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18787 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
18788 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18792 _ACEOF
18796 { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18797 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
18798 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801 cat >conftest.$ac_ext <<_ACEOF
18802 /* confdefs.h. */
18803 _ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #include <sys/types.h>
18808 #ifdef HAVE_SYS_PARAM_H
18809 # include <sys/param.h>
18810 #endif
18811 #ifdef HAVE_SYS_MOUNT_H
18812 # include <sys/mount.h>
18813 #endif
18814 #ifdef HAVE_SYS_VFS_H
18815 # include <sys/vfs.h>
18816 #endif
18817 #ifdef HAVE_SYS_STATFS_H
18818 # include <sys/statfs.h>
18819 #endif
18822 main ()
18824 static struct statfs ac_aggr;
18825 if (ac_aggr.f_ffree)
18826 return 0;
18828 return 0;
18830 _ACEOF
18831 rm -f conftest.$ac_objext
18832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18833 (eval $ac_compile) 2>conftest.er1
18834 ac_status=$?
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } &&
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18842 (eval $ac_try) 2>&5
18843 ac_status=$?
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); }; } &&
18846 { ac_try='test -s conftest.$ac_objext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_member_struct_statfs_f_ffree=yes
18853 else
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h. */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include <sys/types.h>
18864 #ifdef HAVE_SYS_PARAM_H
18865 # include <sys/param.h>
18866 #endif
18867 #ifdef HAVE_SYS_MOUNT_H
18868 # include <sys/mount.h>
18869 #endif
18870 #ifdef HAVE_SYS_VFS_H
18871 # include <sys/vfs.h>
18872 #endif
18873 #ifdef HAVE_SYS_STATFS_H
18874 # include <sys/statfs.h>
18875 #endif
18878 main ()
18880 static struct statfs ac_aggr;
18881 if (sizeof ac_aggr.f_ffree)
18882 return 0;
18884 return 0;
18886 _ACEOF
18887 rm -f conftest.$ac_objext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18889 (eval $ac_compile) 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } &&
18896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; } &&
18902 { ac_try='test -s conftest.$ac_objext'
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; }; then
18908 ac_cv_member_struct_statfs_f_ffree=yes
18909 else
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_cv_member_struct_statfs_f_ffree=no
18916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18921 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18922 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
18923 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18925 cat >>confdefs.h <<_ACEOF
18926 #define HAVE_STRUCT_STATFS_F_FFREE 1
18927 _ACEOF
18931 { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18932 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
18933 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936 cat >conftest.$ac_ext <<_ACEOF
18937 /* confdefs.h. */
18938 _ACEOF
18939 cat confdefs.h >>conftest.$ac_ext
18940 cat >>conftest.$ac_ext <<_ACEOF
18941 /* end confdefs.h. */
18942 #include <sys/types.h>
18943 #ifdef HAVE_SYS_PARAM_H
18944 # include <sys/param.h>
18945 #endif
18946 #ifdef HAVE_SYS_MOUNT_H
18947 # include <sys/mount.h>
18948 #endif
18949 #ifdef HAVE_SYS_VFS_H
18950 # include <sys/vfs.h>
18951 #endif
18952 #ifdef HAVE_SYS_STATFS_H
18953 # include <sys/statfs.h>
18954 #endif
18957 main ()
18959 static struct statfs ac_aggr;
18960 if (ac_aggr.f_favail)
18961 return 0;
18963 return 0;
18965 _ACEOF
18966 rm -f conftest.$ac_objext
18967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18968 (eval $ac_compile) 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_member_struct_statfs_f_favail=yes
18988 else
18989 echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 cat >conftest.$ac_ext <<_ACEOF
18993 /* confdefs.h. */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h. */
18998 #include <sys/types.h>
18999 #ifdef HAVE_SYS_PARAM_H
19000 # include <sys/param.h>
19001 #endif
19002 #ifdef HAVE_SYS_MOUNT_H
19003 # include <sys/mount.h>
19004 #endif
19005 #ifdef HAVE_SYS_VFS_H
19006 # include <sys/vfs.h>
19007 #endif
19008 #ifdef HAVE_SYS_STATFS_H
19009 # include <sys/statfs.h>
19010 #endif
19013 main ()
19015 static struct statfs ac_aggr;
19016 if (sizeof ac_aggr.f_favail)
19017 return 0;
19019 return 0;
19021 _ACEOF
19022 rm -f conftest.$ac_objext
19023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19024 (eval $ac_compile) 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } &&
19031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest.$ac_objext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_member_struct_statfs_f_favail=yes
19044 else
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_cv_member_struct_statfs_f_favail=no
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19056 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19057 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
19058 if test $ac_cv_member_struct_statfs_f_favail = yes; then
19060 cat >>confdefs.h <<_ACEOF
19061 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
19062 _ACEOF
19066 { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19067 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
19068 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19069 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 else
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 #include <sys/types.h>
19078 #ifdef HAVE_SYS_PARAM_H
19079 # include <sys/param.h>
19080 #endif
19081 #ifdef HAVE_SYS_MOUNT_H
19082 # include <sys/mount.h>
19083 #endif
19084 #ifdef HAVE_SYS_VFS_H
19085 # include <sys/vfs.h>
19086 #endif
19087 #ifdef HAVE_SYS_STATFS_H
19088 # include <sys/statfs.h>
19089 #endif
19092 main ()
19094 static struct statfs ac_aggr;
19095 if (ac_aggr.f_namelen)
19096 return 0;
19098 return 0;
19100 _ACEOF
19101 rm -f conftest.$ac_objext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103 (eval $ac_compile) 2>conftest.er1
19104 ac_status=$?
19105 grep -v '^ *+' conftest.er1 >conftest.err
19106 rm -f conftest.er1
19107 cat conftest.err >&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
19110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; } &&
19116 { ac_try='test -s conftest.$ac_objext'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19122 ac_cv_member_struct_statfs_f_namelen=yes
19123 else
19124 echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h. */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <sys/types.h>
19134 #ifdef HAVE_SYS_PARAM_H
19135 # include <sys/param.h>
19136 #endif
19137 #ifdef HAVE_SYS_MOUNT_H
19138 # include <sys/mount.h>
19139 #endif
19140 #ifdef HAVE_SYS_VFS_H
19141 # include <sys/vfs.h>
19142 #endif
19143 #ifdef HAVE_SYS_STATFS_H
19144 # include <sys/statfs.h>
19145 #endif
19148 main ()
19150 static struct statfs ac_aggr;
19151 if (sizeof ac_aggr.f_namelen)
19152 return 0;
19154 return 0;
19156 _ACEOF
19157 rm -f conftest.$ac_objext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_cv_member_struct_statfs_f_namelen=yes
19179 else
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19183 ac_cv_member_struct_statfs_f_namelen=no
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19191 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19192 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
19193 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19195 cat >>confdefs.h <<_ACEOF
19196 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19197 _ACEOF
19203 { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19204 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
19205 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h. */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 #ifdef HAVE_SYS_STATVFS_H
19215 #include <sys/statvfs.h>
19216 #endif
19219 main ()
19221 static struct statvfs ac_aggr;
19222 if (ac_aggr.f_blocks)
19223 return 0;
19225 return 0;
19227 _ACEOF
19228 rm -f conftest.$ac_objext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19230 (eval $ac_compile) 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
19237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest.$ac_objext'
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_member_struct_statvfs_f_blocks=yes
19250 else
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #ifdef HAVE_SYS_STATVFS_H
19261 #include <sys/statvfs.h>
19262 #endif
19265 main ()
19267 static struct statvfs ac_aggr;
19268 if (sizeof ac_aggr.f_blocks)
19269 return 0;
19271 return 0;
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19292 ac_status=$?
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_member_struct_statvfs_f_blocks=yes
19296 else
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_cv_member_struct_statvfs_f_blocks=no
19303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19309 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
19310 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19314 _ACEOF
19320 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19321 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
19322 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h. */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 #include <sys/types.h>
19332 #ifdef HAVE_SYS_SOCKET_H
19333 # include <sys/socket.h>
19334 #endif
19335 #ifdef HAVE_SYS_UN_H
19336 # include <sys/un.h>
19337 #endif
19340 main ()
19342 static struct msghdr ac_aggr;
19343 if (ac_aggr.msg_accrights)
19344 return 0;
19346 return 0;
19348 _ACEOF
19349 rm -f conftest.$ac_objext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19351 (eval $ac_compile) 2>conftest.er1
19352 ac_status=$?
19353 grep -v '^ *+' conftest.er1 >conftest.err
19354 rm -f conftest.er1
19355 cat conftest.err >&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } &&
19358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 ac_cv_member_struct_msghdr_msg_accrights=yes
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 cat >conftest.$ac_ext <<_ACEOF
19376 /* confdefs.h. */
19377 _ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 #include <sys/types.h>
19382 #ifdef HAVE_SYS_SOCKET_H
19383 # include <sys/socket.h>
19384 #endif
19385 #ifdef HAVE_SYS_UN_H
19386 # include <sys/un.h>
19387 #endif
19390 main ()
19392 static struct msghdr ac_aggr;
19393 if (sizeof ac_aggr.msg_accrights)
19394 return 0;
19396 return 0;
19398 _ACEOF
19399 rm -f conftest.$ac_objext
19400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19401 (eval $ac_compile) 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
19408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest.$ac_objext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_cv_member_struct_msghdr_msg_accrights=yes
19421 else
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_cv_member_struct_msghdr_msg_accrights=no
19428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19434 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
19435 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19437 cat >>confdefs.h <<_ACEOF
19438 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19439 _ACEOF
19443 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19444 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
19445 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 #include <sys/types.h>
19455 #ifdef HAVE_SYS_SOCKET_H
19456 # include <sys/socket.h>
19457 #endif
19458 #ifdef HAVE_SYS_UN_H
19459 # include <sys/un.h>
19460 #endif
19463 main ()
19465 static struct sockaddr ac_aggr;
19466 if (ac_aggr.sa_len)
19467 return 0;
19469 return 0;
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474 (eval $ac_compile) 2>conftest.er1
19475 ac_status=$?
19476 grep -v '^ *+' conftest.er1 >conftest.err
19477 rm -f conftest.er1
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; } &&
19487 { ac_try='test -s conftest.$ac_objext'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_cv_member_struct_sockaddr_sa_len=yes
19494 else
19495 echo "$as_me: failed program was:" >&5
19496 sed 's/^/| /' conftest.$ac_ext >&5
19498 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h. */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19504 #include <sys/types.h>
19505 #ifdef HAVE_SYS_SOCKET_H
19506 # include <sys/socket.h>
19507 #endif
19508 #ifdef HAVE_SYS_UN_H
19509 # include <sys/un.h>
19510 #endif
19513 main ()
19515 static struct sockaddr ac_aggr;
19516 if (sizeof ac_aggr.sa_len)
19517 return 0;
19519 return 0;
19521 _ACEOF
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest.$ac_objext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_member_struct_sockaddr_sa_len=yes
19544 else
19545 echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19548 ac_cv_member_struct_sockaddr_sa_len=no
19551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19557 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
19558 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19560 cat >>confdefs.h <<_ACEOF
19561 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19562 _ACEOF
19566 { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19567 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
19568 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 else
19571 cat >conftest.$ac_ext <<_ACEOF
19572 /* confdefs.h. */
19573 _ACEOF
19574 cat confdefs.h >>conftest.$ac_ext
19575 cat >>conftest.$ac_ext <<_ACEOF
19576 /* end confdefs.h. */
19577 #include <sys/types.h>
19578 #ifdef HAVE_SYS_SOCKET_H
19579 # include <sys/socket.h>
19580 #endif
19581 #ifdef HAVE_SYS_UN_H
19582 # include <sys/un.h>
19583 #endif
19586 main ()
19588 static struct sockaddr_un ac_aggr;
19589 if (ac_aggr.sun_len)
19590 return 0;
19592 return 0;
19594 _ACEOF
19595 rm -f conftest.$ac_objext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597 (eval $ac_compile) 2>conftest.er1
19598 ac_status=$?
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
19604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_cv_member_struct_sockaddr_un_sun_len=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <sys/types.h>
19628 #ifdef HAVE_SYS_SOCKET_H
19629 # include <sys/socket.h>
19630 #endif
19631 #ifdef HAVE_SYS_UN_H
19632 # include <sys/un.h>
19633 #endif
19636 main ()
19638 static struct sockaddr_un ac_aggr;
19639 if (sizeof ac_aggr.sun_len)
19640 return 0;
19642 return 0;
19644 _ACEOF
19645 rm -f conftest.$ac_objext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19647 (eval $ac_compile) 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; } &&
19660 { ac_try='test -s conftest.$ac_objext'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; }; then
19666 ac_cv_member_struct_sockaddr_un_sun_len=yes
19667 else
19668 echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_cv_member_struct_sockaddr_un_sun_len=no
19674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19680 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
19681 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19683 cat >>confdefs.h <<_ACEOF
19684 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19685 _ACEOF
19691 { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
19692 echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
19693 if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h. */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 #include <sys/types.h>
19703 #ifdef HAVE_SCSI_SG_H
19704 #include <scsi/sg.h>
19705 #endif
19708 main ()
19710 static scsireq_t ac_aggr;
19711 if (ac_aggr.cmd)
19712 return 0;
19714 return 0;
19716 _ACEOF
19717 rm -f conftest.$ac_objext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19719 (eval $ac_compile) 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 ac_cv_member_scsireq_t_cmd=yes
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19743 cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h. */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 #include <sys/types.h>
19750 #ifdef HAVE_SCSI_SG_H
19751 #include <scsi/sg.h>
19752 #endif
19755 main ()
19757 static scsireq_t ac_aggr;
19758 if (sizeof ac_aggr.cmd)
19759 return 0;
19761 return 0;
19763 _ACEOF
19764 rm -f conftest.$ac_objext
19765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766 (eval $ac_compile) 2>conftest.er1
19767 ac_status=$?
19768 grep -v '^ *+' conftest.er1 >conftest.err
19769 rm -f conftest.er1
19770 cat conftest.err >&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } &&
19773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try='test -s conftest.$ac_objext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_member_scsireq_t_cmd=yes
19786 else
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_member_scsireq_t_cmd=no
19793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798 { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19799 echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
19800 if test $ac_cv_member_scsireq_t_cmd = yes; then
19802 cat >>confdefs.h <<_ACEOF
19803 #define HAVE_SCSIREQ_T_CMD 1
19804 _ACEOF
19808 { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19809 echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
19810 if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19811 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 else
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h. */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 #include <sys/types.h>
19820 #ifdef HAVE_SCSI_SG_H
19821 #include <scsi/sg.h>
19822 #endif
19825 main ()
19827 static sg_io_hdr_t ac_aggr;
19828 if (ac_aggr.interface_id)
19829 return 0;
19831 return 0;
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
19843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; } &&
19849 { ac_try='test -s conftest.$ac_objext'
19850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19851 (eval $ac_try) 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 ac_cv_member_sg_io_hdr_t_interface_id=yes
19856 else
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h. */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h. */
19866 #include <sys/types.h>
19867 #ifdef HAVE_SCSI_SG_H
19868 #include <scsi/sg.h>
19869 #endif
19872 main ()
19874 static sg_io_hdr_t ac_aggr;
19875 if (sizeof ac_aggr.interface_id)
19876 return 0;
19878 return 0;
19880 _ACEOF
19881 rm -f conftest.$ac_objext
19882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19883 (eval $ac_compile) 2>conftest.er1
19884 ac_status=$?
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
19890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest.$ac_objext'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_cv_member_sg_io_hdr_t_interface_id=yes
19903 else
19904 echo "$as_me: failed program was:" >&5
19905 sed 's/^/| /' conftest.$ac_ext >&5
19907 ac_cv_member_sg_io_hdr_t_interface_id=no
19910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19915 { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19916 echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
19917 if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19921 _ACEOF
19927 { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19928 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
19929 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 else
19932 cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h. */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 #include <signal.h>
19941 main ()
19943 static siginfo_t ac_aggr;
19944 if (ac_aggr.si_fd)
19945 return 0;
19947 return 0;
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961 (eval $ac_try) 2>&5
19962 ac_status=$?
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; } &&
19965 { ac_try='test -s conftest.$ac_objext'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_member_siginfo_t_si_fd=yes
19972 else
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h. */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h. */
19982 #include <signal.h>
19985 main ()
19987 static siginfo_t ac_aggr;
19988 if (sizeof ac_aggr.si_fd)
19989 return 0;
19991 return 0;
19993 _ACEOF
19994 rm -f conftest.$ac_objext
19995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19996 (eval $ac_compile) 2>conftest.er1
19997 ac_status=$?
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } &&
20003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; } &&
20009 { ac_try='test -s conftest.$ac_objext'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 ac_cv_member_siginfo_t_si_fd=yes
20016 else
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20020 ac_cv_member_siginfo_t_si_fd=no
20023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
20029 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
20030 if test $ac_cv_member_siginfo_t_si_fd = yes; then
20032 cat >>confdefs.h <<_ACEOF
20033 #define HAVE_SIGINFO_T_SI_FD 1
20034 _ACEOF
20040 { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
20041 echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
20042 if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045 cat >conftest.$ac_ext <<_ACEOF
20046 /* confdefs.h. */
20047 _ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include <sys/types.h>
20052 #ifdef HAVE_SYS_MTIO_H
20053 #include <sys/mtio.h>
20054 #endif
20057 main ()
20059 static struct mtget ac_aggr;
20060 if (ac_aggr.mt_blksiz)
20061 return 0;
20063 return 0;
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20068 (eval $ac_compile) 2>conftest.er1
20069 ac_status=$?
20070 grep -v '^ *+' conftest.er1 >conftest.err
20071 rm -f conftest.er1
20072 cat conftest.err >&5
20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074 (exit $ac_status); } &&
20075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20077 (eval $ac_try) 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); }; } &&
20081 { ac_try='test -s conftest.$ac_objext'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; }; then
20087 ac_cv_member_struct_mtget_mt_blksiz=yes
20088 else
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 #include <sys/types.h>
20099 #ifdef HAVE_SYS_MTIO_H
20100 #include <sys/mtio.h>
20101 #endif
20104 main ()
20106 static struct mtget ac_aggr;
20107 if (sizeof ac_aggr.mt_blksiz)
20108 return 0;
20110 return 0;
20112 _ACEOF
20113 rm -f conftest.$ac_objext
20114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20115 (eval $ac_compile) 2>conftest.er1
20116 ac_status=$?
20117 grep -v '^ *+' conftest.er1 >conftest.err
20118 rm -f conftest.er1
20119 cat conftest.err >&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); } &&
20122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_member_struct_mtget_mt_blksiz=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_cv_member_struct_mtget_mt_blksiz=no
20142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20147 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
20148 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
20149 if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
20153 _ACEOF
20157 { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
20158 echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
20159 if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162 cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h. */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20168 #include <sys/types.h>
20169 #ifdef HAVE_SYS_MTIO_H
20170 #include <sys/mtio.h>
20171 #endif
20174 main ()
20176 static struct mtget ac_aggr;
20177 if (ac_aggr.mt_gstat)
20178 return 0;
20180 return 0;
20182 _ACEOF
20183 rm -f conftest.$ac_objext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20185 (eval $ac_compile) 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; } &&
20198 { ac_try='test -s conftest.$ac_objext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_cv_member_struct_mtget_mt_gstat=yes
20205 else
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 #include <sys/types.h>
20216 #ifdef HAVE_SYS_MTIO_H
20217 #include <sys/mtio.h>
20218 #endif
20221 main ()
20223 static struct mtget ac_aggr;
20224 if (sizeof ac_aggr.mt_gstat)
20225 return 0;
20227 return 0;
20229 _ACEOF
20230 rm -f conftest.$ac_objext
20231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20232 (eval $ac_compile) 2>conftest.er1
20233 ac_status=$?
20234 grep -v '^ *+' conftest.er1 >conftest.err
20235 rm -f conftest.er1
20236 cat conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; } &&
20245 { ac_try='test -s conftest.$ac_objext'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 ac_cv_member_struct_mtget_mt_gstat=yes
20252 else
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ac_cv_member_struct_mtget_mt_gstat=no
20259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
20265 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
20266 if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
20268 cat >>confdefs.h <<_ACEOF
20269 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
20270 _ACEOF
20274 { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
20275 echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
20276 if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 #include <sys/types.h>
20286 #ifdef HAVE_SYS_MTIO_H
20287 #include <sys/mtio.h>
20288 #endif
20291 main ()
20293 static struct mtget ac_aggr;
20294 if (ac_aggr.mt_blkno)
20295 return 0;
20297 return 0;
20299 _ACEOF
20300 rm -f conftest.$ac_objext
20301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20302 (eval $ac_compile) 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } &&
20309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311 (eval $ac_try) 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20321 ac_cv_member_struct_mtget_mt_blkno=yes
20322 else
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h. */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20332 #include <sys/types.h>
20333 #ifdef HAVE_SYS_MTIO_H
20334 #include <sys/mtio.h>
20335 #endif
20338 main ()
20340 static struct mtget ac_aggr;
20341 if (sizeof ac_aggr.mt_blkno)
20342 return 0;
20344 return 0;
20346 _ACEOF
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 ac_cv_member_struct_mtget_mt_blkno=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_cv_member_struct_mtget_mt_blkno=no
20376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
20382 echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
20383 if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
20385 cat >>confdefs.h <<_ACEOF
20386 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
20387 _ACEOF
20393 { echo "$as_me:$LINENO: checking for struct option.name" >&5
20394 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
20395 if test "${ac_cv_member_struct_option_name+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 #ifdef HAVE_GETOPT_H
20405 #include <getopt.h>
20406 #endif
20409 main ()
20411 static struct option ac_aggr;
20412 if (ac_aggr.name)
20413 return 0;
20415 return 0;
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420 (eval $ac_compile) 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; } &&
20433 { ac_try='test -s conftest.$ac_objext'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; }; then
20439 ac_cv_member_struct_option_name=yes
20440 else
20441 echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 #ifdef HAVE_GETOPT_H
20451 #include <getopt.h>
20452 #endif
20455 main ()
20457 static struct option ac_aggr;
20458 if (sizeof ac_aggr.name)
20459 return 0;
20461 return 0;
20463 _ACEOF
20464 rm -f conftest.$ac_objext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20466 (eval $ac_compile) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20475 (eval $ac_try) 2>&5
20476 ac_status=$?
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; } &&
20479 { ac_try='test -s conftest.$ac_objext'
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_cv_member_struct_option_name=yes
20486 else
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20490 ac_cv_member_struct_option_name=no
20493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
20499 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
20500 if test $ac_cv_member_struct_option_name = yes; then
20502 cat >>confdefs.h <<_ACEOF
20503 #define HAVE_STRUCT_OPTION_NAME 1
20504 _ACEOF
20510 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20511 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20512 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 cat >conftest.$ac_ext <<_ACEOF
20516 /* confdefs.h. */
20517 _ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20523 main ()
20525 static struct stat ac_aggr;
20526 if (ac_aggr.st_blocks)
20527 return 0;
20529 return 0;
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534 (eval $ac_compile) 2>conftest.er1
20535 ac_status=$?
20536 grep -v '^ *+' conftest.er1 >conftest.err
20537 rm -f conftest.er1
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20544 ac_status=$?
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; } &&
20547 { ac_try='test -s conftest.$ac_objext'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
20553 ac_cv_member_struct_stat_st_blocks=yes
20554 else
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 cat >conftest.$ac_ext <<_ACEOF
20559 /* confdefs.h. */
20560 _ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20564 $ac_includes_default
20566 main ()
20568 static struct stat ac_aggr;
20569 if (sizeof ac_aggr.st_blocks)
20570 return 0;
20572 return 0;
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20577 (eval $ac_compile) 2>conftest.er1
20578 ac_status=$?
20579 grep -v '^ *+' conftest.er1 >conftest.err
20580 rm -f conftest.er1
20581 cat conftest.err >&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } &&
20584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20586 (eval $ac_try) 2>&5
20587 ac_status=$?
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; } &&
20590 { ac_try='test -s conftest.$ac_objext'
20591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20592 (eval $ac_try) 2>&5
20593 ac_status=$?
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); }; }; then
20596 ac_cv_member_struct_stat_st_blocks=yes
20597 else
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_cv_member_struct_stat_st_blocks=no
20604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20609 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20610 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20611 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20615 _ACEOF
20621 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
20622 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
20623 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 else
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h. */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 #ifdef HAVE_SYS_TYPES_H
20633 #include <sys/types.h>
20634 #endif
20635 #ifdef HAVE_NETINET_IN_H
20636 #include <netinet/in.h>
20637 #endif
20640 main ()
20642 static struct sockaddr_in6 ac_aggr;
20643 if (ac_aggr.sin6_scope_id)
20644 return 0;
20646 return 0;
20648 _ACEOF
20649 rm -f conftest.$ac_objext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20651 (eval $ac_compile) 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } &&
20658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
20671 else
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 #ifdef HAVE_SYS_TYPES_H
20682 #include <sys/types.h>
20683 #endif
20684 #ifdef HAVE_NETINET_IN_H
20685 #include <netinet/in.h>
20686 #endif
20689 main ()
20691 static struct sockaddr_in6 ac_aggr;
20692 if (sizeof ac_aggr.sin6_scope_id)
20693 return 0;
20695 return 0;
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20700 (eval $ac_compile) 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20724 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
20727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20732 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
20733 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
20734 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
20738 _ACEOF
20744 { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
20745 echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
20746 if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749 cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h. */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 #ifdef HAVE_SYS_TYPES_H
20756 #include <sys/types.h>
20757 #endif
20758 #ifdef HAVE_NETINET_IN_H
20759 # include <netinet/in.h>
20760 #endif
20761 #ifdef HAVE_ARPA_NAMESER_H
20762 # include <arpa/nameser.h>
20763 #endif
20766 main ()
20768 static ns_msg ac_aggr;
20769 if (ac_aggr._msg_ptr)
20770 return 0;
20772 return 0;
20774 _ACEOF
20775 rm -f conftest.$ac_objext
20776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20777 (eval $ac_compile) 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } &&
20784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; } &&
20790 { ac_try='test -s conftest.$ac_objext'
20791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792 (eval $ac_try) 2>&5
20793 ac_status=$?
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); }; }; then
20796 ac_cv_member_ns_msg__msg_ptr=yes
20797 else
20798 echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20801 cat >conftest.$ac_ext <<_ACEOF
20802 /* confdefs.h. */
20803 _ACEOF
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 #ifdef HAVE_SYS_TYPES_H
20808 #include <sys/types.h>
20809 #endif
20810 #ifdef HAVE_NETINET_IN_H
20811 # include <netinet/in.h>
20812 #endif
20813 #ifdef HAVE_ARPA_NAMESER_H
20814 # include <arpa/nameser.h>
20815 #endif
20818 main ()
20820 static ns_msg ac_aggr;
20821 if (sizeof ac_aggr._msg_ptr)
20822 return 0;
20824 return 0;
20826 _ACEOF
20827 rm -f conftest.$ac_objext
20828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20829 (eval $ac_compile) 2>conftest.er1
20830 ac_status=$?
20831 grep -v '^ *+' conftest.er1 >conftest.err
20832 rm -f conftest.er1
20833 cat conftest.err >&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
20836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20838 (eval $ac_try) 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; } &&
20842 { ac_try='test -s conftest.$ac_objext'
20843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
20848 ac_cv_member_ns_msg__msg_ptr=yes
20849 else
20850 echo "$as_me: failed program was:" >&5
20851 sed 's/^/| /' conftest.$ac_ext >&5
20853 ac_cv_member_ns_msg__msg_ptr=no
20856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
20862 echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
20863 if test $ac_cv_member_ns_msg__msg_ptr = yes; then
20865 cat >>confdefs.h <<_ACEOF
20866 #define HAVE_NS_MSG__MSG_PTR 1
20867 _ACEOF
20873 { echo "$as_me:$LINENO: checking for timezone variable" >&5
20874 echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
20875 if test "${ac_cv_have_timezone+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 else
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <time.h>
20886 main ()
20888 timezone;
20890 return 0;
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
20902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; } &&
20908 { ac_try='test -s conftest$ac_exeext'
20909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910 (eval $ac_try) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; }; then
20914 ac_cv_have_timezone="yes"
20915 else
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_cv_have_timezone="no"
20922 rm -f conftest.err conftest.$ac_objext \
20923 conftest$ac_exeext conftest.$ac_ext
20925 { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
20926 echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
20927 if test "$ac_cv_have_timezone" = "yes"
20928 then
20930 cat >>confdefs.h <<\_ACEOF
20931 #define HAVE_TIMEZONE 1
20932 _ACEOF
20935 { echo "$as_me:$LINENO: checking for daylight variable" >&5
20936 echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
20937 if test "${ac_cv_have_daylight+set}" = set; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940 cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h. */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <time.h>
20948 main ()
20950 daylight;
20952 return 0;
20954 _ACEOF
20955 rm -f conftest.$ac_objext conftest$ac_exeext
20956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20957 (eval $ac_link) 2>conftest.er1
20958 ac_status=$?
20959 grep -v '^ *+' conftest.er1 >conftest.err
20960 rm -f conftest.er1
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } &&
20964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; } &&
20970 { ac_try='test -s conftest$ac_exeext'
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; }; then
20976 ac_cv_have_daylight="yes"
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ac_cv_have_daylight="no"
20984 rm -f conftest.err conftest.$ac_objext \
20985 conftest$ac_exeext conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20988 echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
20989 if test "$ac_cv_have_daylight" = "yes"
20990 then
20992 cat >>confdefs.h <<\_ACEOF
20993 #define HAVE_DAYLIGHT 1
20994 _ACEOF
20999 case $host_cpu in
21000 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
21001 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
21002 if test "${ac_cv_cpp_def___i386__+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005 cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h. */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 #ifndef __i386__
21013 #endif
21014 _ACEOF
21015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21016 $EGREP "yes" >/dev/null 2>&1; then
21017 ac_cv_cpp_def___i386__=yes
21018 else
21019 ac_cv_cpp_def___i386__=no
21021 rm -f conftest*
21024 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
21025 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
21026 if test $ac_cv_cpp_def___i386__ = yes; then
21027 CFLAGS="$CFLAGS -D__i386__"
21028 LINTFLAGS="$LINTFLAGS -D__i386__"
21031 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
21032 echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
21033 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h. */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 #ifndef __x86_64__
21044 #endif
21045 _ACEOF
21046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21047 $EGREP "yes" >/dev/null 2>&1; then
21048 ac_cv_cpp_def___x86_64__=yes
21049 else
21050 ac_cv_cpp_def___x86_64__=no
21052 rm -f conftest*
21055 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
21056 echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
21057 if test $ac_cv_cpp_def___x86_64__ = yes; then
21058 CFLAGS="$CFLAGS -D__x86_64__"
21059 LINTFLAGS="$LINTFLAGS -D__x86_64__"
21062 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
21063 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
21064 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067 cat >conftest.$ac_ext <<_ACEOF
21068 /* confdefs.h. */
21069 _ACEOF
21070 cat confdefs.h >>conftest.$ac_ext
21071 cat >>conftest.$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 #ifndef __ALPHA__
21075 #endif
21076 _ACEOF
21077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21078 $EGREP "yes" >/dev/null 2>&1; then
21079 ac_cv_cpp_def___ALPHA__=yes
21080 else
21081 ac_cv_cpp_def___ALPHA__=no
21083 rm -f conftest*
21086 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
21087 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
21088 if test $ac_cv_cpp_def___ALPHA__ = yes; then
21089 CFLAGS="$CFLAGS -D__ALPHA__"
21090 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
21093 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
21094 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
21095 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21098 cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h. */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21104 #ifndef __sparc__
21106 #endif
21107 _ACEOF
21108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21109 $EGREP "yes" >/dev/null 2>&1; then
21110 ac_cv_cpp_def___sparc__=yes
21111 else
21112 ac_cv_cpp_def___sparc__=no
21114 rm -f conftest*
21117 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
21118 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
21119 if test $ac_cv_cpp_def___sparc__ = yes; then
21120 CFLAGS="$CFLAGS -D__sparc__"
21121 LINTFLAGS="$LINTFLAGS -D__sparc__"
21124 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
21125 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
21126 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h. */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 #ifndef __powerpc__
21137 #endif
21138 _ACEOF
21139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21140 $EGREP "yes" >/dev/null 2>&1; then
21141 ac_cv_cpp_def___powerpc__=yes
21142 else
21143 ac_cv_cpp_def___powerpc__=no
21145 rm -f conftest*
21148 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
21149 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
21150 if test $ac_cv_cpp_def___powerpc__ = yes; then
21151 CFLAGS="$CFLAGS -D__powerpc__"
21152 LINTFLAGS="$LINTFLAGS -D__powerpc__"
21155 esac
21157 case $host_vendor in
21158 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
21159 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
21160 if test "${ac_cv_cpp_def___sun__+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163 cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h. */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 #ifndef __sun__
21171 #endif
21172 _ACEOF
21173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21174 $EGREP "yes" >/dev/null 2>&1; then
21175 ac_cv_cpp_def___sun__=yes
21176 else
21177 ac_cv_cpp_def___sun__=no
21179 rm -f conftest*
21182 { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
21183 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
21184 if test $ac_cv_cpp_def___sun__ = yes; then
21185 CFLAGS="$CFLAGS -D__sun__"
21186 LINTFLAGS="$LINTFLAGS -D__sun__"
21189 esac
21195 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
21197 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
21199 ac_config_commands="$ac_config_commands dlls/kernel/messages"
21201 ac_config_commands="$ac_config_commands dlls/user/resources"
21203 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
21205 ac_config_commands="$ac_config_commands include/wine"
21208 MAKE_RULES=Make.rules
21211 MAKE_DLL_RULES=dlls/Makedll.rules
21214 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
21217 MAKE_TEST_RULES=dlls/Maketest.rules
21220 MAKE_LIB_RULES=libs/Makelib.rules
21223 MAKE_PROG_RULES=programs/Makeprog.rules
21226 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/inseng/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
21229 cat >confcache <<\_ACEOF
21230 # This file is a shell script that caches the results of configure
21231 # tests run on this system so they can be shared between configure
21232 # scripts and configure runs, see configure's option --config-cache.
21233 # It is not useful on other systems. If it contains results you don't
21234 # want to keep, you may remove or edit it.
21236 # config.status only pays attention to the cache file if you give it
21237 # the --recheck option to rerun configure.
21239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21241 # following values.
21243 _ACEOF
21245 # The following way of writing the cache mishandles newlines in values,
21246 # but we know of no workaround that is simple, portable, and efficient.
21247 # So, we kill variables containing newlines.
21248 # Ultrix sh set writes to stderr and can't be redirected directly,
21249 # and sets the high bit in the cache file unless we assign to the vars.
21251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21252 eval ac_val=\$$ac_var
21253 case $ac_val in #(
21254 *${as_nl}*)
21255 case $ac_var in #(
21256 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21257 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21258 esac
21259 case $ac_var in #(
21260 _ | IFS | as_nl) ;; #(
21261 *) $as_unset $ac_var ;;
21262 esac ;;
21263 esac
21264 done
21266 (set) 2>&1 |
21267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21268 *${as_nl}ac_space=\ *)
21269 # `set' does not quote correctly, so add quotes (double-quote
21270 # substitution turns \\\\ into \\, and sed turns \\ into \).
21271 sed -n \
21272 "s/'/'\\\\''/g;
21273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21274 ;; #(
21276 # `set' quotes correctly as required by POSIX, so do not add quotes.
21277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21279 esac |
21280 sort
21282 sed '
21283 /^ac_cv_env_/b end
21284 t clear
21285 :clear
21286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21287 t end
21288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21289 :end' >>confcache
21290 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21291 if test -w $cache_file; then
21292 test "x$cache_file" != "x/dev/null" &&
21293 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21294 echo "$as_me: updating cache $cache_file" >&6;}
21295 cat confcache >$cache_file
21296 else
21297 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21298 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21301 rm -f confcache
21303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21304 # Let make expand exec_prefix.
21305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21307 DEFS=-DHAVE_CONFIG_H
21309 ac_libobjs=
21310 ac_ltlibobjs=
21311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21312 # 1. Remove the extension, and $U if already installed.
21313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21314 ac_i=`echo "$ac_i" | sed "$ac_script"`
21315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21316 # will be set to the directory where LIBOBJS objects are built.
21317 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21318 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21319 done
21320 LIBOBJS=$ac_libobjs
21322 LTLIBOBJS=$ac_ltlibobjs
21326 : ${CONFIG_STATUS=./config.status}
21327 ac_clean_files_save=$ac_clean_files
21328 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21329 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21330 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21331 cat >$CONFIG_STATUS <<_ACEOF
21332 #! $SHELL
21333 # Generated by $as_me.
21334 # Run this file to recreate the current configuration.
21335 # Compiler output produced by configure, useful for debugging
21336 # configure, is in config.log if it exists.
21338 debug=false
21339 ac_cs_recheck=false
21340 ac_cs_silent=false
21341 SHELL=\${CONFIG_SHELL-$SHELL}
21342 _ACEOF
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 ## --------------------- ##
21346 ## M4sh Initialization. ##
21347 ## --------------------- ##
21349 # Be Bourne compatible
21350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21351 emulate sh
21352 NULLCMD=:
21353 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21354 # is contrary to our usage. Disable this feature.
21355 alias -g '${1+"$@"}'='"$@"'
21356 setopt NO_GLOB_SUBST
21357 else
21358 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21360 BIN_SH=xpg4; export BIN_SH # for Tru64
21361 DUALCASE=1; export DUALCASE # for MKS sh
21364 # PATH needs CR
21365 # Avoid depending upon Character Ranges.
21366 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21367 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21368 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21369 as_cr_digits='0123456789'
21370 as_cr_alnum=$as_cr_Letters$as_cr_digits
21372 # The user is always right.
21373 if test "${PATH_SEPARATOR+set}" != set; then
21374 echo "#! /bin/sh" >conf$$.sh
21375 echo "exit 0" >>conf$$.sh
21376 chmod +x conf$$.sh
21377 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21378 PATH_SEPARATOR=';'
21379 else
21380 PATH_SEPARATOR=:
21382 rm -f conf$$.sh
21385 # Support unset when possible.
21386 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21387 as_unset=unset
21388 else
21389 as_unset=false
21393 # IFS
21394 # We need space, tab and new line, in precisely that order. Quoting is
21395 # there to prevent editors from complaining about space-tab.
21396 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21397 # splitting by setting IFS to empty value.)
21398 as_nl='
21400 IFS=" "" $as_nl"
21402 # Find who we are. Look in the path if we contain no directory separator.
21403 case $0 in
21404 *[\\/]* ) as_myself=$0 ;;
21405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21406 for as_dir in $PATH
21408 IFS=$as_save_IFS
21409 test -z "$as_dir" && as_dir=.
21410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21411 done
21412 IFS=$as_save_IFS
21415 esac
21416 # We did not find ourselves, most probably we were run as `sh COMMAND'
21417 # in which case we are not to be found in the path.
21418 if test "x$as_myself" = x; then
21419 as_myself=$0
21421 if test ! -f "$as_myself"; then
21422 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21423 { (exit 1); exit 1; }
21426 # Work around bugs in pre-3.0 UWIN ksh.
21427 for as_var in ENV MAIL MAILPATH
21428 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21429 done
21430 PS1='$ '
21431 PS2='> '
21432 PS4='+ '
21434 # NLS nuisances.
21435 for as_var in \
21436 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21437 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21438 LC_TELEPHONE LC_TIME
21440 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21441 eval $as_var=C; export $as_var
21442 else
21443 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21445 done
21447 # Required to use basename.
21448 if expr a : '\(a\)' >/dev/null 2>&1 &&
21449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21450 as_expr=expr
21451 else
21452 as_expr=false
21455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21456 as_basename=basename
21457 else
21458 as_basename=false
21462 # Name of the executable.
21463 as_me=`$as_basename -- "$0" ||
21464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21465 X"$0" : 'X\(//\)$' \| \
21466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21467 echo X/"$0" |
21468 sed '/^.*\/\([^/][^/]*\)\/*$/{
21469 s//\1/
21472 /^X\/\(\/\/\)$/{
21473 s//\1/
21476 /^X\/\(\/\).*/{
21477 s//\1/
21480 s/.*/./; q'`
21482 # CDPATH.
21483 $as_unset CDPATH
21487 as_lineno_1=$LINENO
21488 as_lineno_2=$LINENO
21489 test "x$as_lineno_1" != "x$as_lineno_2" &&
21490 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21492 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21493 # uniformly replaced by the line number. The first 'sed' inserts a
21494 # line-number line after each line using $LINENO; the second 'sed'
21495 # does the real work. The second script uses 'N' to pair each
21496 # line-number line with the line containing $LINENO, and appends
21497 # trailing '-' during substitution so that $LINENO is not a special
21498 # case at line end.
21499 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21500 # scripts with optimization help from Paolo Bonzini. Blame Lee
21501 # E. McMahon (1931-1989) for sed's syntax. :-)
21502 sed -n '
21504 /[$]LINENO/=
21505 ' <$as_myself |
21506 sed '
21507 s/[$]LINENO.*/&-/
21508 t lineno
21510 :lineno
21512 :loop
21513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21514 t loop
21515 s/-\n.*//
21516 ' >$as_me.lineno &&
21517 chmod +x "$as_me.lineno" ||
21518 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21519 { (exit 1); exit 1; }; }
21521 # Don't try to exec as it changes $[0], causing all sort of problems
21522 # (the dirname of $[0] is not the place where we might find the
21523 # original and so on. Autoconf is especially sensitive to this).
21524 . "./$as_me.lineno"
21525 # Exit status is that of the last command.
21526 exit
21530 if (dirname -- /) >/dev/null 2>&1; then
21531 as_dirname=dirname
21532 else
21533 as_dirname=false
21536 ECHO_C= ECHO_N= ECHO_T=
21537 case `echo -n x` in
21538 -n*)
21539 case `echo 'x\c'` in
21540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21541 *) ECHO_C='\c';;
21542 esac;;
21544 ECHO_N='-n';;
21545 esac
21547 if expr a : '\(a\)' >/dev/null 2>&1 &&
21548 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21549 as_expr=expr
21550 else
21551 as_expr=false
21554 rm -f conf$$ conf$$.exe conf$$.file
21555 if test -d conf$$.dir; then
21556 rm -f conf$$.dir/conf$$.file
21557 else
21558 rm -f conf$$.dir
21559 mkdir conf$$.dir
21561 echo >conf$$.file
21562 if ln -s conf$$.file conf$$ 2>/dev/null; then
21563 as_ln_s='ln -s'
21564 # ... but there are two gotchas:
21565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21567 # In both cases, we have to default to `cp -p'.
21568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21569 as_ln_s='cp -p'
21570 elif ln conf$$.file conf$$ 2>/dev/null; then
21571 as_ln_s=ln
21572 else
21573 as_ln_s='cp -p'
21575 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21576 rmdir conf$$.dir 2>/dev/null
21578 if mkdir -p . 2>/dev/null; then
21579 as_mkdir_p=:
21580 else
21581 test -d ./-p && rmdir ./-p
21582 as_mkdir_p=false
21585 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21586 # systems may use methods other than mode bits to determine executability.
21587 cat >conf$$.file <<_ASEOF
21588 #! /bin/sh
21589 exit 0
21590 _ASEOF
21591 chmod +x conf$$.file
21592 if test -x conf$$.file >/dev/null 2>&1; then
21593 as_executable_p="test -x"
21594 else
21595 as_executable_p=:
21597 rm -f conf$$.file
21599 # Sed expression to map a string onto a valid CPP name.
21600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21602 # Sed expression to map a string onto a valid variable name.
21603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21606 exec 6>&1
21608 # Save the log message, to keep $[0] and so on meaningful, and to
21609 # report actual input values of CONFIG_FILES etc. instead of their
21610 # values after options handling.
21611 ac_log="
21612 This file was extended by Wine $as_me 0.9.15, which was
21613 generated by GNU Autoconf 2.59d. Invocation command line was
21615 CONFIG_FILES = $CONFIG_FILES
21616 CONFIG_HEADERS = $CONFIG_HEADERS
21617 CONFIG_LINKS = $CONFIG_LINKS
21618 CONFIG_COMMANDS = $CONFIG_COMMANDS
21619 $ $0 $@
21621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21624 _ACEOF
21626 cat >>$CONFIG_STATUS <<_ACEOF
21627 # Files that config.status was made for.
21628 config_files="$ac_config_files"
21629 config_headers="$ac_config_headers"
21630 config_commands="$ac_config_commands"
21632 _ACEOF
21634 cat >>$CONFIG_STATUS <<\_ACEOF
21635 ac_cs_usage="\
21636 \`$as_me' instantiates files from templates according to the
21637 current configuration.
21639 Usage: $0 [OPTIONS] [FILE]...
21641 -h, --help print this help, then exit
21642 -V, --version print version number, then exit
21643 -q, --quiet do not print progress messages
21644 -d, --debug don't remove temporary files
21645 --recheck update $as_me by reconfiguring in the same conditions
21646 --file=FILE[:TEMPLATE]
21647 instantiate the configuration file FILE
21648 --header=FILE[:TEMPLATE]
21649 instantiate the configuration header FILE
21651 Configuration files:
21652 $config_files
21654 Configuration headers:
21655 $config_headers
21657 Configuration commands:
21658 $config_commands
21660 Report bugs to <bug-autoconf@gnu.org>."
21662 _ACEOF
21663 cat >>$CONFIG_STATUS <<_ACEOF
21664 ac_cs_version="\\
21665 Wine config.status 0.9.15
21666 configured by $0, generated by GNU Autoconf 2.59d,
21667 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21669 Copyright (C) 2006 Free Software Foundation, Inc.
21670 This config.status script is free software; the Free Software Foundation
21671 gives unlimited permission to copy, distribute and modify it."
21673 ac_pwd='$ac_pwd'
21674 srcdir='$srcdir'
21675 INSTALL='$INSTALL'
21676 _ACEOF
21678 cat >>$CONFIG_STATUS <<\_ACEOF
21679 # If no file are specified by the user, then we need to provide default
21680 # value. By we need to know if files were specified by the user.
21681 ac_need_defaults=:
21682 while test $# != 0
21684 case $1 in
21685 --*=*)
21686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21688 ac_shift=:
21691 ac_option=$1
21692 ac_optarg=$2
21693 ac_shift=shift
21695 esac
21697 case $ac_option in
21698 # Handling of the options.
21699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21700 ac_cs_recheck=: ;;
21701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21702 echo "$ac_cs_version"; exit ;;
21703 --debug | --debu | --deb | --de | --d | -d )
21704 debug=: ;;
21705 --file | --fil | --fi | --f )
21706 $ac_shift
21707 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21708 ac_need_defaults=false;;
21709 --header | --heade | --head | --hea )
21710 $ac_shift
21711 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21712 ac_need_defaults=false;;
21713 --he | --h)
21714 # Conflict between --help and --header
21715 { echo "$as_me: error: ambiguous option: $1
21716 Try \`$0 --help' for more information." >&2
21717 { (exit 1); exit 1; }; };;
21718 --help | --hel | -h )
21719 echo "$ac_cs_usage"; exit ;;
21720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21721 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21722 ac_cs_silent=: ;;
21724 # This is an error.
21725 -*) { echo "$as_me: error: unrecognized option: $1
21726 Try \`$0 --help' for more information." >&2
21727 { (exit 1); exit 1; }; } ;;
21729 *) ac_config_targets="$ac_config_targets $1"
21730 ac_need_defaults=false ;;
21732 esac
21733 shift
21734 done
21736 ac_configure_extra_args=
21738 if $ac_cs_silent; then
21739 exec 6>/dev/null
21740 ac_configure_extra_args="$ac_configure_extra_args --silent"
21743 _ACEOF
21744 cat >>$CONFIG_STATUS <<_ACEOF
21745 if \$ac_cs_recheck; then
21746 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21747 CONFIG_SHELL=$SHELL
21748 export CONFIG_SHELL
21749 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21752 _ACEOF
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 exec 5>>config.log
21756 echo
21757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21758 ## Running $as_me. ##
21759 _ASBOX
21760 echo "$ac_log"
21761 } >&5
21763 _ACEOF
21764 cat >>$CONFIG_STATUS <<_ACEOF
21765 _ACEOF
21767 cat >>$CONFIG_STATUS <<\_ACEOF
21769 # Handling of arguments.
21770 for ac_config_target in $ac_config_targets
21772 case $ac_config_target in
21773 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21774 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21775 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
21776 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21777 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21778 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21779 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21780 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21781 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21782 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21783 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21784 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
21785 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21786 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21787 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21788 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21789 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21790 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21791 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21792 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21793 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21794 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21795 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21796 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21797 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21798 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21799 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21800 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21801 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21802 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21803 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21804 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21805 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21806 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21807 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21808 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21809 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21810 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21811 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21812 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21813 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21814 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21815 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21816 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21817 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21818 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21819 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21820 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21821 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21822 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21823 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21824 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21825 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21826 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21827 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21828 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21829 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21830 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21831 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21832 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21833 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21834 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21835 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21836 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21837 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21838 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21839 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21840 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21841 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21842 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21843 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21844 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21845 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21846 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21847 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21848 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21849 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
21850 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
21851 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21852 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
21853 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21854 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
21855 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
21856 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21857 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21858 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21859 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
21860 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21861 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21862 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21863 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21864 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21865 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21866 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
21867 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
21868 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21869 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21870 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21871 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21872 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21873 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21874 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21875 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21876 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21877 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21878 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21879 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21880 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21881 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21882 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21883 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21884 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21885 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21886 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21887 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21888 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21889 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21890 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21891 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21892 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21893 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21894 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21895 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21896 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21897 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21898 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21899 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21900 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21901 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21902 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21903 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21904 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21905 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21906 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21907 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21908 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21909 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21910 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21911 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21912 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21913 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21914 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21915 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21916 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21917 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21918 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21919 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21920 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21921 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21922 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21923 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21924 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21925 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21926 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21927 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21928 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21929 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21930 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21931 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21932 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21933 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21934 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21935 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21936 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21937 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21938 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21939 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21940 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21941 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21942 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21943 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21944 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21945 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21946 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21947 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21948 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21949 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21950 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21951 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21952 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21953 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21954 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21955 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21956 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21957 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21958 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21959 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21960 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21961 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21962 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21963 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21964 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21965 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21966 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21967 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21968 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21969 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21970 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21971 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21972 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21973 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21974 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
21975 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
21976 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
21977 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21978 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21979 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21980 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
21981 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
21982 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21983 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21984 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21985 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21986 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21987 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21988 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21989 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21990 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21991 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21992 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21993 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21994 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21995 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21996 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
21997 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
21998 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21999 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
22000 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
22001 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
22002 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
22003 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
22004 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
22005 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
22006 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
22007 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
22008 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
22009 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
22010 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
22011 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
22012 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
22013 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
22014 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
22015 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
22016 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
22017 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
22018 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
22019 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
22020 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
22021 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
22022 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
22023 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
22024 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
22025 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22026 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
22027 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
22028 "libs/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
22029 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
22030 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
22031 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
22032 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
22033 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
22034 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
22035 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
22036 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
22037 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
22038 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
22039 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
22040 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
22041 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
22042 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
22043 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
22044 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
22045 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
22046 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
22047 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
22048 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
22049 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
22050 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
22051 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
22052 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
22053 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
22054 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
22055 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
22056 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
22057 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
22058 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
22059 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
22060 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
22061 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
22062 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
22063 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
22064 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
22065 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
22066 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
22067 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
22068 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
22069 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22070 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
22071 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
22072 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
22073 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
22074 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
22075 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
22076 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
22078 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22079 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22080 { (exit 1); exit 1; }; };;
22081 esac
22082 done
22085 # If the user did not use the arguments to specify the items to instantiate,
22086 # then the envvar interface is used. Set only those that are not.
22087 # We use the long form for the default assignment because of an extremely
22088 # bizarre bug on SunOS 4.1.3.
22089 if $ac_need_defaults; then
22090 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22091 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22092 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22095 # Have a temporary directory for convenience. Make it in the build tree
22096 # simply because there is no reason against having it here, and in addition,
22097 # creating and moving files from /tmp can sometimes cause problems.
22098 # Hook for its removal unless debugging.
22099 # Note that there is a small window in which the directory will not be cleaned:
22100 # after its creation but before its name has been assigned to `$tmp'.
22101 $debug ||
22103 tmp=
22104 trap 'exit_status=$?
22105 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22107 trap '{ (exit 1); exit 1; }' 1 2 13 15
22109 # Create a (secure) tmp directory for tmp files.
22112 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22113 test -n "$tmp" && test -d "$tmp"
22114 } ||
22116 tmp=./conf$$-$RANDOM
22117 (umask 077 && mkdir "$tmp")
22118 } ||
22120 echo "$me: cannot create a temporary directory in ." >&2
22121 { (exit 1); exit 1; }
22125 # Set up the sed scripts for CONFIG_FILES section.
22128 # No need to generate the scripts if there are no CONFIG_FILES.
22129 # This happens for instance when ./config.status config.h
22130 if test -n "$CONFIG_FILES"; then
22132 _ACEOF
22134 # Create sed commands to just substitute file output variables.
22136 # Remaining file output variables are in a fragment that also has non-file
22137 # output varibles.
22141 ac_delim='%!_!# '
22142 for ac_last_try in false false false false false :; do
22143 cat >conf$$subs.sed <<_ACEOF
22144 SHELL!$SHELL$ac_delim
22145 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22146 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22147 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22148 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22149 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22150 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22151 exec_prefix!$exec_prefix$ac_delim
22152 prefix!$prefix$ac_delim
22153 program_transform_name!$program_transform_name$ac_delim
22154 bindir!$bindir$ac_delim
22155 sbindir!$sbindir$ac_delim
22156 libexecdir!$libexecdir$ac_delim
22157 datarootdir!$datarootdir$ac_delim
22158 datadir!$datadir$ac_delim
22159 sysconfdir!$sysconfdir$ac_delim
22160 sharedstatedir!$sharedstatedir$ac_delim
22161 localstatedir!$localstatedir$ac_delim
22162 includedir!$includedir$ac_delim
22163 oldincludedir!$oldincludedir$ac_delim
22164 docdir!$docdir$ac_delim
22165 infodir!$infodir$ac_delim
22166 htmldir!$htmldir$ac_delim
22167 dvidir!$dvidir$ac_delim
22168 pdfdir!$pdfdir$ac_delim
22169 psdir!$psdir$ac_delim
22170 libdir!$libdir$ac_delim
22171 localedir!$localedir$ac_delim
22172 mandir!$mandir$ac_delim
22173 DEFS!$DEFS$ac_delim
22174 ECHO_C!$ECHO_C$ac_delim
22175 ECHO_N!$ECHO_N$ac_delim
22176 ECHO_T!$ECHO_T$ac_delim
22177 LIBS!$LIBS$ac_delim
22178 build_alias!$build_alias$ac_delim
22179 host_alias!$host_alias$ac_delim
22180 target_alias!$target_alias$ac_delim
22181 build!$build$ac_delim
22182 build_cpu!$build_cpu$ac_delim
22183 build_vendor!$build_vendor$ac_delim
22184 build_os!$build_os$ac_delim
22185 host!$host$ac_delim
22186 host_cpu!$host_cpu$ac_delim
22187 host_vendor!$host_vendor$ac_delim
22188 host_os!$host_os$ac_delim
22189 WIN16_FILES!$WIN16_FILES$ac_delim
22190 WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22191 SET_MAKE!$SET_MAKE$ac_delim
22192 CC!$CC$ac_delim
22193 CFLAGS!$CFLAGS$ac_delim
22194 LDFLAGS!$LDFLAGS$ac_delim
22195 CPPFLAGS!$CPPFLAGS$ac_delim
22196 ac_ct_CC!$ac_ct_CC$ac_delim
22197 EXEEXT!$EXEEXT$ac_delim
22198 OBJEXT!$OBJEXT$ac_delim
22199 CXX!$CXX$ac_delim
22200 CXXFLAGS!$CXXFLAGS$ac_delim
22201 ac_ct_CXX!$ac_ct_CXX$ac_delim
22202 CPPBIN!$CPPBIN$ac_delim
22203 TOOLSDIR!$TOOLSDIR$ac_delim
22204 XMKMF!$XMKMF$ac_delim
22205 CPP!$CPP$ac_delim
22206 X_CFLAGS!$X_CFLAGS$ac_delim
22207 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22208 X_LIBS!$X_LIBS$ac_delim
22209 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22210 LEX!$LEX$ac_delim
22211 LEXLIB!$LEXLIB$ac_delim
22212 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
22213 XLEX!$XLEX$ac_delim
22214 BISON!$BISON$ac_delim
22215 AS!$AS$ac_delim
22216 ac_ct_AS!$ac_ct_AS$ac_delim
22217 LD!$LD$ac_delim
22218 AR!$AR$ac_delim
22219 RANLIB!$RANLIB$ac_delim
22220 STRIP!$STRIP$ac_delim
22221 WINDRES!$WINDRES$ac_delim
22222 LN_S!$LN_S$ac_delim
22223 _ACEOF
22225 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then
22226 break
22227 elif $ac_last_try; then
22228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22230 { (exit 1); exit 1; }; }
22231 else
22232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22234 done
22236 ac_eof=
22237 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
22238 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
22239 ac_eof=`expr 0$ac_eof + 1`
22242 cat >>$CONFIG_STATUS <<_ACEOF
22243 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22245 /^[ ]*@MAKE_RULES@[ ]*$/{
22246 r $MAKE_RULES
22249 /^[ ]*@MAKE_DLL_RULES@[ ]*$/{
22250 r $MAKE_DLL_RULES
22253 /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
22254 r $MAKE_IMPLIB_RULES
22257 /^[ ]*@MAKE_TEST_RULES@[ ]*$/{
22258 r $MAKE_TEST_RULES
22261 /^[ ]*@MAKE_LIB_RULES@[ ]*$/{
22262 r $MAKE_LIB_RULES
22265 /^[ ]*@MAKE_PROG_RULES@[ ]*$/{
22266 r $MAKE_PROG_RULES
22269 _ACEOF
22270 sed '
22271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22272 s/^/s,@/; s/!/@,|#_!!_#|/
22275 s/'"$ac_delim"'$/,g/; t
22276 s/$/\\/; p
22277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22278 ' >>$CONFIG_STATUS <conf$$subs.sed
22279 rm -f conf$$subs.sed
22280 cat >>$CONFIG_STATUS <<_ACEOF
22281 CEOF$ac_eof
22282 _ACEOF
22285 ac_delim='%!_!# '
22286 for ac_last_try in false false false false false :; do
22287 cat >conf$$subs.sed <<_ACEOF
22288 LN!$LN$ac_delim
22289 GREP!$GREP$ac_delim
22290 EGREP!$EGREP$ac_delim
22291 LDCONFIG!$LDCONFIG$ac_delim
22292 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22293 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22294 INSTALL_DATA!$INSTALL_DATA$ac_delim
22295 LINT!$LINT$ac_delim
22296 LINTFLAGS!$LINTFLAGS$ac_delim
22297 FONTFORGE!$FONTFORGE$ac_delim
22298 PKG_CONFIG!$PKG_CONFIG$ac_delim
22299 PRELINK!$PRELINK$ac_delim
22300 LIBPTHREAD!$LIBPTHREAD$ac_delim
22301 XLIB!$XLIB$ac_delim
22302 XFILES!$XFILES$ac_delim
22303 OPENGLFILES!$OPENGLFILES$ac_delim
22304 GLU32FILES!$GLU32FILES$ac_delim
22305 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22306 GLUT_LIBS!$GLUT_LIBS$ac_delim
22307 GLUT32FILES!$GLUT32FILES$ac_delim
22308 NASLIBS!$NASLIBS$ac_delim
22309 XML2LIBS!$XML2LIBS$ac_delim
22310 XML2INCL!$XML2INCL$ac_delim
22311 XSLTLIBS!$XSLTLIBS$ac_delim
22312 XSLTINCL!$XSLTINCL$ac_delim
22313 HALINCL!$HALINCL$ac_delim
22314 CURSESLIBS!$CURSESLIBS$ac_delim
22315 sane_devel!$sane_devel$ac_delim
22316 SANELIBS!$SANELIBS$ac_delim
22317 SANEINCL!$SANEINCL$ac_delim
22318 gphoto2_devel!$gphoto2_devel$ac_delim
22319 gphoto2port_devel!$gphoto2port_devel$ac_delim
22320 GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22321 GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22322 ICULIBS!$ICULIBS$ac_delim
22323 RESOLVLIBS!$RESOLVLIBS$ac_delim
22324 LCMSLIBS!$LCMSLIBS$ac_delim
22325 LDAPLIBS!$LDAPLIBS$ac_delim
22326 FREETYPELIBS!$FREETYPELIBS$ac_delim
22327 FREETYPEINCL!$FREETYPEINCL$ac_delim
22328 ft_devel!$ft_devel$ac_delim
22329 ft_devel2!$ft_devel2$ac_delim
22330 FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22331 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
22332 ARTSLIBS!$ARTSLIBS$ac_delim
22333 ARTSINCL!$ARTSINCL$ac_delim
22334 ESDCONFIG!$ESDCONFIG$ac_delim
22335 ESDLIBS!$ESDLIBS$ac_delim
22336 ESDINCL!$ESDINCL$ac_delim
22337 ALSALIBS!$ALSALIBS$ac_delim
22338 AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22339 EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22340 BUILTINFLAG!$BUILTINFLAG$ac_delim
22341 DLLEXT!$DLLEXT$ac_delim
22342 DLLFLAGS!$DLLFLAGS$ac_delim
22343 DLLIBS!$DLLIBS$ac_delim
22344 LDSHARED!$LDSHARED$ac_delim
22345 LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22346 LIBEXT!$LIBEXT$ac_delim
22347 IMPLIBEXT!$IMPLIBEXT$ac_delim
22348 DLLTOOL!$DLLTOOL$ac_delim
22349 DLLWRAP!$DLLWRAP$ac_delim
22350 LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22351 LDEXERPATH!$LDEXERPATH$ac_delim
22352 LDDLLRPATH!$LDDLLRPATH$ac_delim
22353 COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22354 IOKITLIB!$IOKITLIB$ac_delim
22355 COREAUDIO!$COREAUDIO$ac_delim
22356 CROSSTEST!$CROSSTEST$ac_delim
22357 CROSSCC!$CROSSCC$ac_delim
22358 CROSSWINDRES!$CROSSWINDRES$ac_delim
22359 LDPATH!$LDPATH$ac_delim
22360 CRTLIBS!$CRTLIBS$ac_delim
22361 SOCKETLIBS!$SOCKETLIBS$ac_delim
22362 MAIN_BINARY!$MAIN_BINARY$ac_delim
22363 EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22364 LDD!$LDD$ac_delim
22365 LIBOBJS!$LIBOBJS$ac_delim
22366 LTLIBOBJS!$LTLIBOBJS$ac_delim
22367 _ACEOF
22369 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then
22370 break
22371 elif $ac_last_try; then
22372 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22373 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22374 { (exit 1); exit 1; }; }
22375 else
22376 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22378 done
22380 ac_eof=
22381 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
22382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
22383 ac_eof=`expr 0$ac_eof + 1`
22386 cat >>$CONFIG_STATUS <<_ACEOF
22387 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22388 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22389 _ACEOF
22390 sed '
22391 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22392 s/^/s,@/; s/!/@,|#_!!_#|/
22395 s/'"$ac_delim"'$/,g/; t
22396 s/$/\\/; p
22397 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22398 ' >>$CONFIG_STATUS <conf$$subs.sed
22399 rm -f conf$$subs.sed
22400 cat >>$CONFIG_STATUS <<_ACEOF
22401 :end
22402 s/|#_!!_#|//g
22403 CEOF$ac_eof
22404 _ACEOF
22407 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22408 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22409 # trailing colons and then remove the whole line if VPATH becomes empty
22410 # (actually we leave an empty line to preserve line numbers).
22411 if test "x$srcdir" = x.; then
22412 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22413 s/:*\$(srcdir):*/:/
22414 s/:*\${srcdir}:*/:/
22415 s/:*@srcdir@:*/:/
22416 s/^\([^=]*=[ ]*\):*/\1/
22417 s/:*$//
22418 s/^[^=]*=[ ]*$//
22422 cat >>$CONFIG_STATUS <<\_ACEOF
22423 fi # test -n "$CONFIG_FILES"
22426 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22428 case $ac_tag in
22429 :[FHLC]) ac_mode=$ac_tag; continue;;
22430 esac
22431 case $ac_mode$ac_tag in
22432 :[FHL]*:*);;
22433 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22434 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22435 { (exit 1); exit 1; }; };;
22436 :[FH]-) ac_tag=-:-;;
22437 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22438 esac
22439 ac_save_IFS=$IFS
22440 IFS=:
22441 set x $ac_tag
22442 IFS=$ac_save_IFS
22443 shift
22444 ac_file=$1
22445 shift
22447 case $ac_mode in
22448 :L) ac_source=$1;;
22449 :[FH])
22450 ac_file_inputs=
22451 for ac_f
22453 case $ac_f in
22454 -) ac_f="$tmp/stdin";;
22455 *) # Look for the file first in the build tree, then in the source tree
22456 # (if the path is not absolute). The absolute path cannot be DOS-style,
22457 # because $ac_f cannot contain `:'.
22458 test -f "$ac_f" ||
22459 case $ac_f in
22460 [\\/$]*) false;;
22461 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22462 esac ||
22463 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22464 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22465 { (exit 1); exit 1; }; };;
22466 esac
22467 ac_file_inputs="$ac_file_inputs $ac_f"
22468 done
22470 # Let's still pretend it is `configure' which instantiates (i.e., don't
22471 # use $as_me), people would be surprised to read:
22472 # /* config.h. Generated by config.status. */
22473 configure_input="Generated from "`IFS=:
22474 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22475 if test x"$ac_file" != x-; then
22476 configure_input="$ac_file. $configure_input"
22477 { echo "$as_me:$LINENO: creating $ac_file" >&5
22478 echo "$as_me: creating $ac_file" >&6;}
22481 case $ac_tag in
22482 *:-:* | *:-) cat >"$tmp/stdin";;
22483 esac
22485 esac
22487 ac_dir=`$as_dirname -- "$ac_file" ||
22488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22489 X"$ac_file" : 'X\(//\)[^/]' \| \
22490 X"$ac_file" : 'X\(//\)$' \| \
22491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22492 echo X"$ac_file" |
22493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22494 s//\1/
22497 /^X\(\/\/\)[^/].*/{
22498 s//\1/
22501 /^X\(\/\/\)$/{
22502 s//\1/
22505 /^X\(\/\).*/{
22506 s//\1/
22509 s/.*/./; q'`
22510 { as_dir="$ac_dir"
22511 case $as_dir in #(
22512 -*) as_dir=./$as_dir;;
22513 esac
22514 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22515 as_dirs=
22516 while :; do
22517 case $as_dir in #(
22518 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22519 *) as_qdir=$as_dir;;
22520 esac
22521 as_dirs="'$as_qdir' $as_dirs"
22522 as_dir=`$as_dirname -- "$as_dir" ||
22523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22524 X"$as_dir" : 'X\(//\)[^/]' \| \
22525 X"$as_dir" : 'X\(//\)$' \| \
22526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22527 echo X"$as_dir" |
22528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22529 s//\1/
22532 /^X\(\/\/\)[^/].*/{
22533 s//\1/
22536 /^X\(\/\/\)$/{
22537 s//\1/
22540 /^X\(\/\).*/{
22541 s//\1/
22544 s/.*/./; q'`
22545 test -d "$as_dir" && break
22546 done
22547 test -z "$as_dirs" || eval "mkdir $as_dirs"
22548 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22549 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22550 { (exit 1); exit 1; }; }; }
22551 ac_builddir=.
22553 case "$ac_dir" in
22554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22557 # A ".." for each directory in $ac_dir_suffix.
22558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22559 case $ac_top_builddir_sub in
22560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22562 esac ;;
22563 esac
22564 ac_abs_top_builddir=$ac_pwd
22565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22566 # for backward compatibility:
22567 ac_top_builddir=$ac_top_build_prefix
22569 case $srcdir in
22570 .) # We are building in place.
22571 ac_srcdir=.
22572 ac_top_srcdir=$ac_top_builddir_sub
22573 ac_abs_top_srcdir=$ac_pwd ;;
22574 [\\/]* | ?:[\\/]* ) # Absolute name.
22575 ac_srcdir=$srcdir$ac_dir_suffix;
22576 ac_top_srcdir=$srcdir
22577 ac_abs_top_srcdir=$srcdir ;;
22578 *) # Relative name.
22579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22580 ac_top_srcdir=$ac_top_build_prefix$srcdir
22581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22582 esac
22583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22586 case $ac_mode in
22589 # CONFIG_FILE
22592 case $INSTALL in
22593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22595 esac
22596 _ACEOF
22598 cat >>$CONFIG_STATUS <<\_ACEOF
22599 # If the template does not know about datarootdir, expand it.
22600 # FIXME: This hack should be removed a few years after 2.60.
22601 ac_datarootdir_hack=
22603 case `sed -n '/datarootdir/ {
22607 /@datadir@/p
22608 /@docdir@/p
22609 /@infodir@/p
22610 /@localedir@/p
22611 /@mandir@/p
22612 ' $ac_file_inputs` in
22613 *datarootdir*) ;;
22614 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22615 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22616 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22617 _ACEOF
22618 cat >>$CONFIG_STATUS <<_ACEOF
22619 ac_datarootdir_hack='
22620 s&@datadir@&$datadir&g
22621 s&@docdir@&$docdir&g
22622 s&@infodir@&$infodir&g
22623 s&@localedir@&$localedir&g
22624 s&@mandir@&$mandir&g
22625 s&\\\${datarootdir}&$datarootdir&g' ;;
22626 esac
22627 _ACEOF
22629 # Neutralize VPATH when `$srcdir' = `.'.
22630 # Shell code in configure.ac might set extrasub.
22631 # FIXME: do we really want to maintain this feature?
22632 cat >>$CONFIG_STATUS <<_ACEOF
22633 sed "$ac_vpsub
22634 $extrasub
22635 _ACEOF
22636 cat >>$CONFIG_STATUS <<\_ACEOF
22638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22639 s&@configure_input@&$configure_input&;t t
22640 s&@top_builddir@&$ac_top_builddir_sub&;t t
22641 s&@srcdir@&$ac_srcdir&;t t
22642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22643 s&@top_srcdir@&$ac_top_srcdir&;t t
22644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22645 s&@builddir@&$ac_builddir&;t t
22646 s&@abs_builddir@&$ac_abs_builddir&;t t
22647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22648 s&@INSTALL@&$ac_INSTALL&;t t
22649 $ac_datarootdir_hack
22650 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22652 rm -f "$tmp/stdin"
22653 case $ac_file in
22654 -) cat "$tmp/out"; rm -f "$tmp/out";;
22655 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22656 esac
22660 # CONFIG_HEADER
22663 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22664 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22665 # PARAMS is the parameter list in the macro definition--in most cases, it's
22666 # just an empty string.
22668 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
22669 ac_dB='\)[ (].*$,\1define\2'
22670 ac_dC=' '
22671 ac_dD=' ,'
22673 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
22674 _ACEOF
22676 # Transform confdefs.h into a sed script `conftest.defines', that
22677 # substitutes the proper values into config.h.in to produce config.h.
22678 rm -f conftest.defines conftest.tail
22679 # First, append a space to every undef/define line, to ease matching.
22680 echo 's/$/ /' >conftest.defines
22681 # Then, protect against being on the right side of a sed subst, or in
22682 # an unquoted here document, in config.status. If some macros were
22683 # called several times there might be several #defines for the same
22684 # symbol, which is useless. But do not sort them, since the last
22685 # AC_DEFINE must be honored.
22686 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22687 uniq confdefs.h |
22688 sed -n '
22689 t rset
22690 :rset
22691 s/^[ ]*#[ ]*define[ ][ ]*//
22692 t ok
22695 s/[\\&,]/\\&/g
22696 s/[\\$`]/\\&/g
22697 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
22698 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
22699 ' >>conftest.defines
22701 # Remove the space that was appended to ease matching.
22702 # Then replace #undef with comments. This is necessary, for
22703 # example, in the case of _POSIX_SOURCE, which is predefined and required
22704 # on some systems where configure will not decide to define it.
22705 # (The regexp can be short, since the line contains either #define or #undef.)
22706 echo 's/ $//
22707 s,^[ #]*u.*,/* & */,' >>conftest.defines
22709 # Break up conftest.defines:
22710 ac_max_sed_lines=96
22712 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22713 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22714 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22715 # et cetera.
22716 ac_in='$ac_file_inputs'
22717 ac_out='"$tmp/out1"'
22718 ac_nxt='"$tmp/out2"'
22720 while :
22722 # Write a here document:
22723 echo ' # First, check the format of the line:
22724 cat >"$tmp/defines.sed" <<CEOF
22725 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
22726 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
22728 :def' >>$CONFIG_STATUS
22729 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22730 echo 'CEOF
22731 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22732 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22733 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22734 grep . conftest.tail >/dev/null || break
22735 rm -f conftest.defines
22736 mv conftest.tail conftest.defines
22737 done
22738 rm -f conftest.defines conftest.tail
22740 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22741 cat >>$CONFIG_STATUS <<\_ACEOF
22742 if test x"$ac_file" != x-; then
22743 echo "/* $configure_input */" >"$tmp/config.h"
22744 cat "$ac_result" >>"$tmp/config.h"
22745 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22746 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22747 echo "$as_me: $ac_file is unchanged" >&6;}
22748 else
22749 rm -f $ac_file
22750 mv "$tmp/config.h" $ac_file
22752 else
22753 echo "/* $configure_input */"
22754 cat "$ac_result"
22756 rm -f "$tmp/out12"
22759 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22760 echo "$as_me: executing $ac_file commands" >&6;}
22762 esac
22765 case $ac_file$ac_mode in
22766 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
22767 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
22768 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
22769 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
22770 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
22771 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
22772 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
22773 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
22774 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22775 echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22776 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22777 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22779 esac
22780 done # for ac_tag
22783 { (exit 0); exit 0; }
22784 _ACEOF
22785 chmod +x $CONFIG_STATUS
22786 ac_clean_files=$ac_clean_files_save
22789 # configure is writing to config.log, and then calls config.status.
22790 # config.status does its own redirection, appending to config.log.
22791 # Unfortunately, on DOS this fails, as config.log is still kept open
22792 # by configure, so config.status won't be able to write to it; its
22793 # output is simply discarded. So we exec the FD to /dev/null,
22794 # effectively closing config.log, so it can be properly (re)opened and
22795 # appended to by config.status. When coming back to configure, we
22796 # need to make the FD available again.
22797 if test "$no_create" != yes; then
22798 ac_cs_success=:
22799 ac_config_status_args=
22800 test "$silent" = yes &&
22801 ac_config_status_args="$ac_config_status_args --quiet"
22802 exec 5>/dev/null
22803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22804 exec 5>>config.log
22805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22806 # would make configure fail if this is the last instruction.
22807 $ac_cs_success || { (exit 1); exit 1; }
22811 exitcode=0
22812 if test "$have_x" = "no"
22813 then
22814 echo >&2
22815 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22816 echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22817 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22818 echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22819 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22820 echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22821 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
22822 echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
22823 exitcode=1
22826 if test "$wine_cv_opengl_version_OK" = "no"
22827 then
22828 echo >&2
22829 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
22830 echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
22831 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22832 echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
22833 exitcode=1
22836 if test "$wine_cv_msg_freetype" = "yes"
22837 then
22838 echo >&2
22839 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22840 echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22841 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22842 echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22844 echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22845 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22846 echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
22847 exitcode=1
22850 if test -z "$FONTSSUBDIRS"
22851 then
22852 echo >&2
22853 if test "$FONTFORGE" = "false"
22854 then
22855 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22856 echo "$as_me: WARNING: FontForge is missing." >&2;}
22857 else
22858 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22859 echo "$as_me: WARNING: FreeType is missing." >&2;}
22861 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22862 echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
22863 exitcode=1
22866 if test -z "$ALSALIBS" -a \
22867 -z "$ARTSC_LIBS" -a \
22868 -z "$AUDIOIOLIBS" -a \
22869 -z "$NASLIBS" -a \
22870 -z "$ESD_LIBS" -a \
22871 -z "$ac_cv_lib_soname_jack" -a \
22872 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22873 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22874 "$ac_cv_header_soundcard_h" != "yes"
22875 then
22876 echo >&2
22877 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22878 echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22879 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22880 echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22881 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22882 echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
22883 exitcode=1
22886 echo
22887 echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
22888 echo
22890 exit $exitcode