1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Wine 1.1.14.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='Wine'
598 PACKAGE_TARNAME='wine'
599 PACKAGE_VERSION='1.1.14'
600 PACKAGE_STRING='Wine 1.1.14'
601 PACKAGE_BUGREPORT='wine-devel@winehq.org'
602
603 ac_unique_file="server/atom.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 LIBOBJS
642 ALL_WINETEST_DEPENDS
643 ALL_PROGRAM_BIN_INSTALL_DIRS
644 ALL_PROGRAM_INSTALL_DIRS
645 ALL_PROGRAM_DIRS
646 ALL_TEST_DIRS
647 ALL_IMPLIB_DIRS
648 ALL_DLL_DIRS
649 ALL_TOP_DIRS
650 ALL_MAKEFILE_DEPENDS
651 ALL_MAKEFILES
652 ALL_MAKERULES
653 DEPENDENCIES
654 LDAPLIBS
655 LIBPOLL
656 LIBDL
657 EXTRA_BINARIES
658 MAIN_BINARY
659 SOCKETLIBS
660 CRTLIBS
661 LDPATH
662 BUILTINFLAG
663 EXTRACFLAGS
664 FONTCONFIGINCL
665 CUPSINCL
666 AUDIOIOLIBS
667 ALSALIBS
668 ESDLIBS
669 ESDINCL
670 ESDCONFIG
671 FREETYPEINCL
672 FREETYPELIBS
673 ft_devel
674 LCMSLIBS
675 RESOLVLIBS
676 GPHOTO2INCL
677 GPHOTO2LIBS
678 gphoto2port_devel
679 gphoto2_devel
680 SANEINCL
681 sane_devel
682 GNUTLSINCL
683 HALINCL
684 XSLTINCL
685 XML2INCL
686 XML2LIBS
687 NASLIBS
688 CROSSTEST
689 CROSSWINDRES
690 CROSSCC
691 CARBONLIB
692 COREAUDIO
693 DISKARBITRATIONLIB
694 LDEXECFLAGS
695 IOKITLIB
696 COREFOUNDATIONLIB
697 SECURITYLIB
698 MINGWAR
699 DLLWRAP
700 DLLTOOL
701 LDD
702 LDRPATH_LOCAL
703 LDRPATH_INSTALL
704 IMPLIBEXT
705 LIBEXT
706 LDDLLFLAGS
707 LDSHARED
708 DLLFLAGS
709 DLLEXT
710 OPENGL_LIBS
711 XLIB
712 LIBPTHREAD
713 PRELINK
714 ICOTOOL
715 RSVG
716 PKG_CONFIG
717 FONTFORGE
718 LINTFLAGS
719 LINT
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 LDCONFIG
724 EGREP
725 GREP
726 LN
727 LN_S
728 WINDRES
729 STRIP
730 RANLIB
731 ARFLAGS
732 ac_ct_AR
733 AR
734 ac_ct_NM
735 NM
736 ac_ct_LD
737 LD
738 ac_ct_AS
739 AS
740 BISON
741 FLEX
742 X_EXTRA_LIBS
743 X_LIBS
744 X_PRE_LIBS
745 X_CFLAGS
746 CPP
747 XMKMF
748 TOOLSDIR
749 WIN16_INSTALL
750 WIN16_FILES
751 TARGETFLAGS
752 CPPBIN
753 ac_ct_CXX
754 CXXFLAGS
755 CXX
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 SET_MAKE
764 host_os
765 host_vendor
766 host_cpu
767 host
768 build_os
769 build_vendor
770 build_cpu
771 build
772 MAINTAINER_MODE
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files='MAKE_RULES
811 MAKE_DLL_RULES
812 MAKE_IMPLIB_RULES
813 MAKE_TEST_RULES
814 MAKE_PROG_RULES'
815 ac_user_opts='
816 enable_option_checking
817 enable_win16
818 enable_win64
819 enable_tests
820 enable_maintainer_mode
821 with_alsa
822 with_audioio
823 with_capi
824 with_cms
825 with_coreaudio
826 with_cups
827 with_curses
828 with_esd
829 with_fontconfig
830 with_freetype
831 with_gphoto
832 with_glu
833 with_gnutls
834 with_hal
835 with_jack
836 with_jpeg
837 with_ldap
838 with_nas
839 with_opengl
840 with_openssl
841 with_oss
842 with_png
843 with_sane
844 with_xcomposite
845 with_xcursor
846 with_xinerama
847 with_xinput
848 with_xml
849 with_xrandr
850 with_xrender
851 with_xshape
852 with_xshm
853 with_xslt
854 with_xxf86vm
855 with_wine_tools
856 with_x
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CXX
867 CXXFLAGS
868 CCC
869 XMKMF
870 CPP'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
928 ac_prev=
929 continue
930 fi
931
932 case $ac_option in
933 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *) ac_optarg=yes ;;
935 esac
936
937 # Accept the important Cygnus configure options, so we can diagnose typos.
938
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
947
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
962
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
967
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
980 { (exit 1); exit 1; }; }
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
991
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
996
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1001
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1007 { (exit 1); exit 1; }; }
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1038
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1043
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1073
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1090
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1111
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1147
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1223
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1258
1259 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261 { (exit 1); exit 1; }; }
1262 ;;
1263
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269 { (exit 1); exit 1; }; }
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1272
1273 *)
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 ;;
1280
1281 esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1287 { (exit 1); exit 1; }; }
1288 fi
1289
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1294 { (exit 1); exit 1; }; } ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318 { (exit 1); exit 1; }; }
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1349 { (exit 1); exit 1; }; }
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1352 { (exit 1); exit 1; }; }
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)[^/].*/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\/\)$/{
1374 s//\1/
1375 q
1376 }
1377 /^X\(\/\).*/{
1378 s//\1/
1379 q
1380 }
1381 s/.*/./; q'`
1382 srcdir=$ac_confdir
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 srcdir=..
1385 fi
1386 else
1387 ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1392 { (exit 1); exit 1; }; }
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1397 { (exit 1); exit 1; }; }
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures Wine 1.1.14 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1476 _ACEOF
1477
1478 cat <<\_ACEOF
1479
1480 X features:
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of Wine 1.1.14:";;
1493 esac
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --disable-win16 do not include Win16 support
1501 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1502 binaries)
1503 --disable-tests do not build the regression tests
1504 --enable-maintainer-mode
1505 enable maintainer-specific build rules
1506
1507 Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --without-alsa do not use the Alsa sound support
1511 --without-audioio do not use the AudioIO sound support
1512 --without-capi do not use CAPI (ISDN support)
1513 --without-cms do not use CMS (color management support)
1514 --without-coreaudio do not use the CoreAudio sound support
1515 --without-cups do not use CUPS
1516 --without-curses do not use (n)curses
1517 --without-esd do not use the EsounD sound support
1518 --without-fontconfig do not use fontconfig
1519 --without-freetype do not use the FreeType library
1520 --without-gphoto do not use gphoto (Digital Camera support)
1521 --without-glu do not use the GLU library
1522 --without-gnutls do not use GnuTLS (schannel support)
1523 --without-hal do not use HAL (dynamic device support)
1524 --without-jack do not use the Jack sound support
1525 --without-jpeg do not use JPEG
1526 --without-ldap do not use LDAP
1527 --without-nas do not use the NAS sound support
1528 --without-opengl do not use OpenGL
1529 --without-openssl do not use OpenSSL
1530 --without-oss do not use the OSS sound support
1531 --without-png do not use PNG
1532 --without-sane do not use SANE (scanner support)
1533 --without-xcomposite do not use the Xcomposite extension
1534 --without-xcursor do not use the Xcursor extension
1535 --without-xinerama do not use Xinerama (multi-monitor support)
1536 --without-xinput do not use the Xinput extension
1537 --without-xml do not use XML
1538 --without-xrandr do not use Xrandr (resolution changes)
1539 --without-xrender do not use the Xrender extension
1540 --without-xshape do not use the Xshape extension
1541 --without-xshm do not use XShm (shared memory extension)
1542 --without-xslt do not use XSLT
1543 --without-xxf86vm do not use XFree video mode extension
1544 --with-wine-tools=DIR use Wine tools from directory DIR
1545 --with-x use the X Window System
1546
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 CXX C++ compiler command
1556 CXXFLAGS C++ compiler flags
1557 XMKMF Path to xmkmf, Makefile generator for X Window System
1558 CPP C preprocessor
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <wine-devel@winehq.org>.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625 cat <<\_ACEOF
1626 Wine configure 1.1.14
1627 generated by GNU Autoconf 2.63
1628
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634 exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by Wine $as_me 1.1.14, which was
1641 generated by GNU Autoconf 2.63. Invocation command line was
1642
1643 $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1661
1662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 $as_echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704 for ac_arg
1705 do
1706 case $ac_arg in
1707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709 | -silent | --silent | --silen | --sile | --sil)
1710 continue ;;
1711 *\'*)
1712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 esac
1714 case $ac_pass in
1715 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716 2)
1717 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718 if test $ac_must_keep_next = true; then
1719 ac_must_keep_next=false # Got value, back to normal.
1720 else
1721 case $ac_arg in
1722 *=* | --config-cache | -C | -disable-* | --disable-* \
1723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725 | -with-* | --with-* | -without-* | --without-* | --x)
1726 case "$ac_configure_args0 " in
1727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728 esac
1729 ;;
1730 -* ) ac_must_keep_next=true ;;
1731 esac
1732 fi
1733 ac_configure_args="$ac_configure_args '$ac_arg'"
1734 ;;
1735 esac
1736 done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log. We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747 # Save into config.log some information that might help in debugging.
1748 {
1749 echo
1750
1751 cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756 echo
1757 # The following way of writing the cache mishandles newlines in values,
1758 (
1759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 eval ac_val=\$$ac_var
1761 case $ac_val in #(
1762 *${as_nl}*)
1763 case $ac_var in #(
1764 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1766 esac
1767 case $ac_var in #(
1768 _ | IFS | as_nl) ;; #(
1769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770 *) $as_unset $ac_var ;;
1771 esac ;;
1772 esac
1773 done
1774 (set) 2>&1 |
1775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776 *${as_nl}ac_space=\ *)
1777 sed -n \
1778 "s/'\''/'\''\\\\'\'''\''/g;
1779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1780 ;; #(
1781 *)
1782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783 ;;
1784 esac |
1785 sort
1786 )
1787 echo
1788
1789 cat <<\_ASBOX
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1793 _ASBOX
1794 echo
1795 for ac_var in $ac_subst_vars
1796 do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in
1799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800 esac
1801 $as_echo "$ac_var='\''$ac_val'\''"
1802 done | sort
1803 echo
1804
1805 if test -n "$ac_subst_files"; then
1806 cat <<\_ASBOX
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1810 _ASBOX
1811 echo
1812 for ac_var in $ac_subst_files
1813 do
1814 eval ac_val=\$$ac_var
1815 case $ac_val in
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 esac
1818 $as_echo "$ac_var='\''$ac_val'\''"
1819 done | sort
1820 echo
1821 fi
1822
1823 if test -s confdefs.h; then
1824 cat <<\_ASBOX
1825 ## ----------- ##
1826 ## confdefs.h. ##
1827 ## ----------- ##
1828 _ASBOX
1829 echo
1830 cat confdefs.h
1831 echo
1832 fi
1833 test "$ac_signal" != 0 &&
1834 $as_echo "$as_me: caught signal $ac_signal"
1835 $as_echo "$as_me: exit $exit_status"
1836 } >&5
1837 rm -f core *.core core.conftest.* &&
1838 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1839 exit $exit_status
1840 ' 0
1841 for ac_signal in 1 2 13 15; do
1842 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 done
1844 ac_signal=0
1845
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1848
1849 # Predefined preprocessor variables.
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 _ACEOF
1874
1875
1876 # Let the site file select an alternate cache file if it wants to.
1877 # Prefer an explicitly selected file to automatically selected ones.
1878 ac_site_file1=NONE
1879 ac_site_file2=NONE
1880 if test -n "$CONFIG_SITE"; then
1881 ac_site_file1=$CONFIG_SITE
1882 elif test "x$prefix" != xNONE; then
1883 ac_site_file1=$prefix/share/config.site
1884 ac_site_file2=$prefix/etc/config.site
1885 else
1886 ac_site_file1=$ac_default_prefix/share/config.site
1887 ac_site_file2=$ac_default_prefix/etc/config.site
1888 fi
1889 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1890 do
1891 test "x$ac_site_file" = xNONE && continue
1892 if test -r "$ac_site_file"; then
1893 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895 sed 's/^/| /' "$ac_site_file" >&5
1896 . "$ac_site_file"
1897 fi
1898 done
1899
1900 if test -r "$cache_file"; then
1901 # Some versions of bash will fail to source /dev/null (special
1902 # files actually), so we avoid doing that.
1903 if test -f "$cache_file"; then
1904 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 $as_echo "$as_me: loading cache $cache_file" >&6;}
1906 case $cache_file in
1907 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908 *) . "./$cache_file";;
1909 esac
1910 fi
1911 else
1912 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 $as_echo "$as_me: creating cache $cache_file" >&6;}
1914 >$cache_file
1915 fi
1916
1917 # Check that the precious variables saved in the cache have kept the same
1918 # value.
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922 eval ac_new_set=\$ac_env_${ac_var}_set
1923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924 eval ac_new_val=\$ac_env_${ac_var}_value
1925 case $ac_old_set,$ac_new_set in
1926 set,)
1927 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1930 ,set)
1931 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1934 ,);;
1935 *)
1936 if test "x$ac_old_val" != "x$ac_new_val"; then
1937 # differences in whitespace do not lead to failure.
1938 ac_old_val_w=`echo x $ac_old_val`
1939 ac_new_val_w=`echo x $ac_new_val`
1940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 ac_cache_corrupted=:
1944 else
1945 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947 eval $ac_var=\$ac_old_val
1948 fi
1949 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1950 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1951 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1952 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1953 fi;;
1954 esac
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1957 case $ac_new_val in
1958 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1960 esac
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964 esac
1965 fi
1966 done
1967 if $ac_cache_corrupted; then
1968 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974 { (exit 1); exit 1; }; }
1975 fi
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006
2007
2008
2009 ac_config_headers="$ac_config_headers include/config.h"
2010
2011 ac_aux_dir=
2012 for ac_dir in tools "$srcdir"/tools; do
2013 if test -f "$ac_dir/install-sh"; then
2014 ac_aux_dir=$ac_dir
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2016 break
2017 elif test -f "$ac_dir/install.sh"; then
2018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2020 break
2021 elif test -f "$ac_dir/shtool"; then
2022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2024 break
2025 fi
2026 done
2027 if test -z "$ac_aux_dir"; then
2028 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
2029 $as_echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
2030 { (exit 1); exit 1; }; }
2031 fi
2032
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2040
2041
2042
2043
2044 # Check whether --enable-win16 was given.
2045 if test "${enable_win16+set}" = set; then
2046 enableval=$enable_win16;
2047 fi
2048
2049 # Check whether --enable-win64 was given.
2050 if test "${enable_win64+set}" = set; then
2051 enableval=$enable_win64;
2052 fi
2053
2054 # Check whether --enable-tests was given.
2055 if test "${enable_tests+set}" = set; then
2056 enableval=$enable_tests;
2057 fi
2058
2059 # Check whether --enable-maintainer-mode was given.
2060 if test "${enable_maintainer_mode+set}" = set; then
2061 enableval=$enable_maintainer_mode;
2062 else
2063 MAINTAINER_MODE=\#
2064
2065 fi
2066
2067
2068
2069 # Check whether --with-alsa was given.
2070 if test "${with_alsa+set}" = set; then
2071 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2072 fi
2073
2074
2075 # Check whether --with-audioio was given.
2076 if test "${with_audioio+set}" = set; then
2077 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2078 fi
2079
2080
2081 # Check whether --with-capi was given.
2082 if test "${with_capi+set}" = set; then
2083 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2084 fi
2085
2086
2087 # Check whether --with-cms was given.
2088 if test "${with_cms+set}" = set; then
2089 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2090 fi
2091
2092
2093 # Check whether --with-coreaudio was given.
2094 if test "${with_coreaudio+set}" = set; then
2095 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2096 fi
2097
2098
2099 # Check whether --with-cups was given.
2100 if test "${with_cups+set}" = set; then
2101 withval=$with_cups;
2102 fi
2103
2104
2105 # Check whether --with-curses was given.
2106 if test "${with_curses+set}" = set; then
2107 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2108 fi
2109
2110
2111 # Check whether --with-esd was given.
2112 if test "${with_esd+set}" = set; then
2113 withval=$with_esd;
2114 fi
2115
2116
2117 # Check whether --with-fontconfig was given.
2118 if test "${with_fontconfig+set}" = set; then
2119 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2120 fi
2121
2122
2123 # Check whether --with-freetype was given.
2124 if test "${with_freetype+set}" = set; then
2125 withval=$with_freetype;
2126 fi
2127
2128
2129 # Check whether --with-gphoto was given.
2130 if test "${with_gphoto+set}" = set; then
2131 withval=$with_gphoto;
2132 fi
2133
2134
2135 # Check whether --with-glu was given.
2136 if test "${with_glu+set}" = set; then
2137 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2138 fi
2139
2140
2141 # Check whether --with-gnutls was given.
2142 if test "${with_gnutls+set}" = set; then
2143 withval=$with_gnutls;
2144 fi
2145
2146
2147 # Check whether --with-hal was given.
2148 if test "${with_hal+set}" = set; then
2149 withval=$with_hal;
2150 fi
2151
2152
2153 # Check whether --with-jack was given.
2154 if test "${with_jack+set}" = set; then
2155 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2156 fi
2157
2158
2159 # Check whether --with-jpeg was given.
2160 if test "${with_jpeg+set}" = set; then
2161 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2162 fi
2163
2164
2165 # Check whether --with-ldap was given.
2166 if test "${with_ldap+set}" = set; then
2167 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2168 fi
2169
2170
2171 # Check whether --with-nas was given.
2172 if test "${with_nas+set}" = set; then
2173 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2174 fi
2175
2176
2177 # Check whether --with-opengl was given.
2178 if test "${with_opengl+set}" = set; then
2179 withval=$with_opengl;
2180 fi
2181
2182
2183 # Check whether --with-openssl was given.
2184 if test "${with_openssl+set}" = set; then
2185 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2186 fi
2187
2188
2189 # Check whether --with-oss was given.
2190 if test "${with_oss+set}" = set; then
2191 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2192 fi
2193
2194
2195 # Check whether --with-png was given.
2196 if test "${with_png+set}" = set; then
2197 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2198 fi
2199
2200
2201 # Check whether --with-sane was given.
2202 if test "${with_sane+set}" = set; then
2203 withval=$with_sane;
2204 fi
2205
2206
2207 # Check whether --with-xcomposite was given.
2208 if test "${with_xcomposite+set}" = set; then
2209 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2210 fi
2211
2212
2213 # Check whether --with-xcursor was given.
2214 if test "${with_xcursor+set}" = set; then
2215 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2216 fi
2217
2218
2219 # Check whether --with-xinerama was given.
2220 if test "${with_xinerama+set}" = set; then
2221 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2222 fi
2223
2224
2225 # Check whether --with-xinput was given.
2226 if test "${with_xinput+set}" = set; then
2227 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2228 fi
2229
2230
2231 # Check whether --with-xml was given.
2232 if test "${with_xml+set}" = set; then
2233 withval=$with_xml;
2234 fi
2235
2236
2237 # Check whether --with-xrandr was given.
2238 if test "${with_xrandr+set}" = set; then
2239 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2240 fi
2241
2242
2243 # Check whether --with-xrender was given.
2244 if test "${with_xrender+set}" = set; then
2245 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2246 fi
2247
2248
2249 # Check whether --with-xshape was given.
2250 if test "${with_xshape+set}" = set; then
2251 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2252 fi
2253
2254
2255 # Check whether --with-xshm was given.
2256 if test "${with_xshm+set}" = set; then
2257 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2258 fi
2259
2260
2261 # Check whether --with-xslt was given.
2262 if test "${with_xslt+set}" = set; then
2263 withval=$with_xslt;
2264 fi
2265
2266
2267 # Check whether --with-xxf86vm was given.
2268 if test "${with_xxf86vm+set}" = set; then
2269 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; fi
2270 fi
2271
2272
2273
2274 # Check whether --with-wine-tools was given.
2275 if test "${with_wine_tools+set}" = set; then
2276 withval=$with_wine_tools;
2277 fi
2278
2279
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2283 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2284 { (exit 1); exit 1; }; }
2285
2286 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2287 $as_echo_n "checking build system type... " >&6; }
2288 if test "${ac_cv_build+set}" = set; then
2289 $as_echo_n "(cached) " >&6
2290 else
2291 ac_build_alias=$build_alias
2292 test "x$ac_build_alias" = x &&
2293 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x &&
2295 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2296 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2297 { (exit 1); exit 1; }; }
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2300 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2301 { (exit 1); exit 1; }; }
2302
2303 fi
2304 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2305 $as_echo "$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2307 *-*-*) ;;
2308 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2309 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2310 { (exit 1); exit 1; }; };;
2311 esac
2312 build=$ac_cv_build
2313 ac_save_IFS=$IFS; IFS='-'
2314 set x $ac_cv_build
2315 shift
2316 build_cpu=$1
2317 build_vendor=$2
2318 shift; shift
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2321 build_os=$*
2322 IFS=$ac_save_IFS
2323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2327 $as_echo_n "checking host system type... " >&6; }
2328 if test "${ac_cv_host+set}" = set; then
2329 $as_echo_n "(cached) " >&6
2330 else
2331 if test "x$host_alias" = x; then
2332 ac_cv_host=$ac_cv_build
2333 else
2334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2336 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339
2340 fi
2341 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 $as_echo "$ac_cv_host" >&6; }
2343 case $ac_cv_host in
2344 *-*-*) ;;
2345 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2346 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2347 { (exit 1); exit 1; }; };;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2361
2362
2363
2364 case "$srcdir" in
2365 .) ;;
2366 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2367 { { $as_echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2368 You need to run 'make distclean' in the source tree first." >&5
2369 $as_echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2370 You need to run 'make distclean' in the source tree first." >&2;}
2371 { (exit 1); exit 1; }; }
2372 fi ;;
2373 esac
2374
2375
2376 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2377 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2378 set x ${MAKE-make}
2379 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2380 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2381 $as_echo_n "(cached) " >&6
2382 else
2383 cat >conftest.make <<\_ACEOF
2384 SHELL = /bin/sh
2385 all:
2386 @echo '@@@%%%=$(MAKE)=@@@%%%'
2387 _ACEOF
2388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2389 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2390 *@@@%%%=?*=@@@%%%*)
2391 eval ac_cv_prog_make_${ac_make}_set=yes;;
2392 *)
2393 eval ac_cv_prog_make_${ac_make}_set=no;;
2394 esac
2395 rm -f conftest.make
2396 fi
2397 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2398 { $as_echo "$as_me:$LINENO: result: yes" >&5
2399 $as_echo "yes" >&6; }
2400 SET_MAKE=
2401 else
2402 { $as_echo "$as_me:$LINENO: result: no" >&5
2403 $as_echo "no" >&6; }
2404 SET_MAKE="MAKE=${MAKE-make}"
2405 fi
2406
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2415 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2443 $as_echo "$CC" >&6; }
2444 else
2445 { $as_echo "$as_me:$LINENO: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc; ac_word=$2
2455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC="gcc"
2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483 $as_echo "$ac_ct_CC" >&6; }
2484 else
2485 { $as_echo "$as_me:$LINENO: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2499 fi
2500 else
2501 CC="$ac_cv_prog_CC"
2502 fi
2503
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2536 $as_echo "$CC" >&6; }
2537 else
2538 { $as_echo "$as_me:$LINENO: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 fi
2545 if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 ac_prog_rejected=no
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587 fi
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595 { $as_echo "$as_me:$LINENO: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2635 $as_echo "$CC" >&6; }
2636 else
2637 { $as_echo "$as_me:$LINENO: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642 test -n "$CC" && break
2643 done
2644 fi
2645 if test -z "$CC"; then
2646 ac_ct_CC=$CC
2647 for ac_prog in cl.exe
2648 do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679 $as_echo "$ac_ct_CC" >&6; }
2680 else
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 test -n "$ac_ct_CC" && break
2687 done
2688
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698 CC=$ac_ct_CC
2699 fi
2700 fi
2701
2702 fi
2703
2704
2705 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2708 See \`config.log' for more details." >&5
2709 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2710 See \`config.log' for more details." >&2;}
2711 { (exit 1); exit 1; }; }; }
2712
2713 # Provide some information about the compiler.
2714 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2715 set X $ac_compile
2716 ac_compiler=$2
2717 { (ac_try="$ac_compiler --version >&5"
2718 case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721 esac
2722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2723 $as_echo "$ac_try_echo") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
2725 ac_status=$?
2726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728 { (ac_try="$ac_compiler -v >&5"
2729 case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732 esac
2733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2734 $as_echo "$ac_try_echo") >&5
2735 (eval "$ac_compiler -v >&5") 2>&5
2736 ac_status=$?
2737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (ac_try="$ac_compiler -V >&5"
2740 case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2743 esac
2744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2745 $as_echo "$ac_try_echo") >&5
2746 (eval "$ac_compiler -V >&5") 2>&5
2747 ac_status=$?
2748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h. */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2757
2758 int
2759 main ()
2760 {
2761
2762 ;
2763 return 0;
2764 }
2765 _ACEOF
2766 ac_clean_files_save=$ac_clean_files
2767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2768 # Try to create an executable without -o first, disregard a.out.
2769 # It will help us diagnose broken compilers, and finding out an intuition
2770 # of exeext.
2771 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772 $as_echo_n "checking for C compiler default output file name... " >&6; }
2773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2774
2775 # The possible output files:
2776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2777
2778 ac_rmfiles=
2779 for ac_file in $ac_files
2780 do
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2784 esac
2785 done
2786 rm -f $ac_rmfiles
2787
2788 if { (ac_try="$ac_link_default"
2789 case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792 esac
2793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2794 $as_echo "$ac_try_echo") >&5
2795 (eval "$ac_link_default") 2>&5
2796 ac_status=$?
2797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; then
2799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2802 # so that the user can short-circuit this test for compilers unknown to
2803 # Autoconf.
2804 for ac_file in $ac_files ''
2805 do
2806 test -f "$ac_file" || continue
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2809 ;;
2810 [ab].out )
2811 # We found the default executable, but exeext='' is most
2812 # certainly right.
2813 break;;
2814 *.* )
2815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2816 then :; else
2817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818 fi
2819 # We set ac_cv_exeext here because the later test for it is not
2820 # safe: cross compilers may not add the suffix if given an `-o'
2821 # argument, so we may need to know it at that point already.
2822 # Even if this section looks crufty: it has the advantage of
2823 # actually working.
2824 break;;
2825 * )
2826 break;;
2827 esac
2828 done
2829 test "$ac_cv_exeext" = no && ac_cv_exeext=
2830
2831 else
2832 ac_file=''
2833 fi
2834
2835 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2836 $as_echo "$ac_file" >&6; }
2837 if test -z "$ac_file"; then
2838 $as_echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2843 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2844 See \`config.log' for more details." >&5
2845 $as_echo "$as_me: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&2;}
2847 { (exit 77); exit 77; }; }; }
2848 fi
2849
2850 ac_exeext=$ac_cv_exeext
2851
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855 $as_echo_n "checking whether the C compiler works... " >&6; }
2856 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857 # If not cross compiling, check that we can run a simple program.
2858 if test "$cross_compiling" != yes; then
2859 if { ac_try='./$ac_file'
2860 { (case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2865 $as_echo "$ac_try_echo") >&5
2866 (eval "$ac_try") 2>&5
2867 ac_status=$?
2868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 cross_compiling=no
2871 else
2872 if test "$cross_compiling" = maybe; then
2873 cross_compiling=yes
2874 else
2875 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2878 If you meant to cross compile, use \`--host'.
2879 See \`config.log' for more details." >&5
2880 $as_echo "$as_me: error: cannot run C compiled programs.
2881 If you meant to cross compile, use \`--host'.
2882 See \`config.log' for more details." >&2;}
2883 { (exit 1); exit 1; }; }; }
2884 fi
2885 fi
2886 fi
2887 { $as_echo "$as_me:$LINENO: result: yes" >&5
2888 $as_echo "yes" >&6; }
2889
2890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2891 ac_clean_files=$ac_clean_files_save
2892 # Check that the compiler produces executables we can run. If not, either
2893 # the compiler is broken, or we cross compile.
2894 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2895 $as_echo_n "checking whether we are cross compiling... " >&6; }
2896 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2897 $as_echo "$cross_compiling" >&6; }
2898
2899 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2900 $as_echo_n "checking for suffix of executables... " >&6; }
2901 if { (ac_try="$ac_link"
2902 case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905 esac
2906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2907 $as_echo "$ac_try_echo") >&5
2908 (eval "$ac_link") 2>&5
2909 ac_status=$?
2910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2914 # work properly (i.e., refer to `conftest.exe'), while it won't with
2915 # `rm'.
2916 for ac_file in conftest.exe conftest conftest.*; do
2917 test -f "$ac_file" || continue
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2921 break;;
2922 * ) break;;
2923 esac
2924 done
2925 else
2926 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2929 See \`config.log' for more details." >&5
2930 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2931 See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }; }
2933 fi
2934
2935 rm -f conftest$ac_cv_exeext
2936 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2937 $as_echo "$ac_cv_exeext" >&6; }
2938
2939 rm -f conftest.$ac_ext
2940 EXEEXT=$ac_cv_exeext
2941 ac_exeext=$EXEEXT
2942 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2943 $as_echo_n "checking for suffix of object files... " >&6; }
2944 if test "${ac_cv_objext+set}" = set; then
2945 $as_echo_n "(cached) " >&6
2946 else
2947 cat >conftest.$ac_ext <<_ACEOF
2948 /* confdefs.h. */
2949 _ACEOF
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953
2954 int
2955 main ()
2956 {
2957
2958 ;
2959 return 0;
2960 }
2961 _ACEOF
2962 rm -f conftest.o conftest.obj
2963 if { (ac_try="$ac_compile"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2969 $as_echo "$ac_try_echo") >&5
2970 (eval "$ac_compile") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; then
2974 for ac_file in conftest.o conftest.obj conftest.*; do
2975 test -f "$ac_file" || continue;
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2979 break;;
2980 esac
2981 done
2982 else
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2985
2986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2989 See \`config.log' for more details." >&5
2990 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&2;}
2992 { (exit 1); exit 1; }; }; }
2993 fi
2994
2995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2996 fi
2997 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2998 $as_echo "$ac_cv_objext" >&6; }
2999 OBJEXT=$ac_cv_objext
3000 ac_objext=$OBJEXT
3001 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3003 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3004 $as_echo_n "(cached) " >&6
3005 else
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012
3013 int
3014 main ()
3015 {
3016 #ifndef __GNUC__
3017 choke me
3018 #endif
3019
3020 ;
3021 return 0;
3022 }
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3031 $as_echo "$ac_try_echo") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.$ac_objext; then
3042 ac_compiler_gnu=yes
3043 else
3044 $as_echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 ac_compiler_gnu=no
3048 fi
3049
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3052
3053 fi
3054 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3055 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3056 if test $ac_compiler_gnu = yes; then
3057 GCC=yes
3058 else
3059 GCC=
3060 fi
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066 $as_echo_n "(cached) " >&6
3067 else
3068 ac_save_c_werror_flag=$ac_c_werror_flag
3069 ac_c_werror_flag=yes
3070 ac_cv_prog_cc_g=no
3071 CFLAGS="-g"
3072 cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h. */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3078
3079 int
3080 main ()
3081 {
3082
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3105 ac_cv_prog_cc_g=yes
3106 else
3107 $as_echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 CFLAGS=""
3111 cat >conftest.$ac_ext <<_ACEOF
3112 /* confdefs.h. */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133 $as_echo "$ac_try_echo") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 :
3145 else
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 ac_c_werror_flag=$ac_save_c_werror_flag
3150 CFLAGS="-g"
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173 $as_echo "$ac_try_echo") >&5
3174 (eval "$ac_compile") 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } && {
3181 test -z "$ac_c_werror_flag" ||
3182 test ! -s conftest.err
3183 } && test -s conftest.$ac_objext; then
3184 ac_cv_prog_cc_g=yes
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200 fi
3201 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 $as_echo "$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
3208 else
3209 CFLAGS="-g"
3210 fi
3211 else
3212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
3214 else
3215 CFLAGS=
3216 fi
3217 fi
3218 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221 $as_echo_n "(cached) " >&6
3222 else
3223 ac_cv_prog_cc_c89=no
3224 ac_save_CC=$CC
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239 char **p;
3240 int i;
3241 {
3242 return p[i];
3243 }
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3245 {
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3252 }
3253
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3274 int
3275 main ()
3276 {
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 do
3285 CC="$ac_save_CC $ac_arg"
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compile") 2>conftest.er1
3295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } && {
3301 test -z "$ac_c_werror_flag" ||
3302 test ! -s conftest.err
3303 } && test -s conftest.$ac_objext; then
3304 ac_cv_prog_cc_c89=$ac_arg
3305 else
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309
3310 fi
3311
3312 rm -f core conftest.err conftest.$ac_objext
3313 test "x$ac_cv_prog_cc_c89" != "xno" && break
3314 done
3315 rm -f conftest.$ac_ext
3316 CC=$ac_save_CC
3317
3318 fi
3319 # AC_CACHE_VAL
3320 case "x$ac_cv_prog_cc_c89" in
3321 x)
3322 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3323 $as_echo "none needed" >&6; } ;;
3324 xno)
3325 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3326 $as_echo "unsupported" >&6; } ;;
3327 *)
3328 CC="$CC $ac_cv_prog_cc_c89"
3329 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3331 esac
3332
3333
3334 ac_ext=c
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339
3340 ac_ext=cpp
3341 ac_cpp='$CXXCPP $CPPFLAGS'
3342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3345 if test -z "$CXX"; then
3346 if test -n "$CCC"; then
3347 CXX=$CCC
3348 else
3349 if test -n "$ac_tool_prefix"; then
3350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3351 do
3352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CXX+set}" = set; then
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$CXX"; then
3360 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CXX=$ac_cv_prog_CXX
3380 if test -n "$CXX"; then
3381 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3382 $as_echo "$CXX" >&6; }
3383 else
3384 { $as_echo "$as_me:$LINENO: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$CXX" && break
3390 done
3391 fi
3392 if test -z "$CXX"; then
3393 ac_ct_CXX=$CXX
3394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3395 do
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$ac_ct_CXX"; then
3404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_ac_ct_CXX="$ac_prog"
3414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 fi
3422 fi
3423 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3424 if test -n "$ac_ct_CXX"; then
3425 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3426 $as_echo "$ac_ct_CXX" >&6; }
3427 else
3428 { $as_echo "$as_me:$LINENO: result: no" >&5
3429 $as_echo "no" >&6; }
3430 fi
3431
3432
3433 test -n "$ac_ct_CXX" && break
3434 done
3435
3436 if test "x$ac_ct_CXX" = x; then
3437 CXX="g++"
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 CXX=$ac_ct_CXX
3446 fi
3447 fi
3448
3449 fi
3450 fi
3451 # Provide some information about the compiler.
3452 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3453 set X $ac_compile
3454 ac_compiler=$2
3455 { (ac_try="$ac_compiler --version >&5"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461 $as_echo "$ac_try_echo") >&5
3462 (eval "$ac_compiler --version >&5") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }
3466 { (ac_try="$ac_compiler -v >&5"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3472 $as_echo "$ac_try_echo") >&5
3473 (eval "$ac_compiler -v >&5") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }
3477 { (ac_try="$ac_compiler -V >&5"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3483 $as_echo "$ac_try_echo") >&5
3484 (eval "$ac_compiler -V >&5") 2>&5
3485 ac_status=$?
3486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }
3488
3489 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3490 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3491 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3492 $as_echo_n "(cached) " >&6
3493 else
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505 choke me
3506 #endif
3507
3508 ;
3509 return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } && {
3527 test -z "$ac_cxx_werror_flag" ||
3528 test ! -s conftest.err
3529 } && test -s conftest.$ac_objext; then
3530 ac_compiler_gnu=yes
3531 else
3532 $as_echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_compiler_gnu=no
3536 fi
3537
3538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3540
3541 fi
3542 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3543 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3544 if test $ac_compiler_gnu = yes; then
3545 GXX=yes
3546 else
3547 GXX=
3548 fi
3549 ac_test_CXXFLAGS=${CXXFLAGS+set}
3550 ac_save_CXXFLAGS=$CXXFLAGS
3551 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3552 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3553 if test "${ac_cv_prog_cxx_g+set}" = set; then
3554 $as_echo_n "(cached) " >&6
3555 else
3556 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3557 ac_cxx_werror_flag=yes
3558 ac_cv_prog_cxx_g=no
3559 CXXFLAGS="-g"
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3566
3567 int
3568 main ()
3569 {
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_cxx_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cxx_g=yes
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 CXXFLAGS=""
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605
3606 int
3607 main ()
3608 {
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_cxx_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 :
3633 else
3634 $as_echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3638 CXXFLAGS="-g"
3639 cat >conftest.$ac_ext <<_ACEOF
3640 /* confdefs.h. */
3641 _ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645
3646 int
3647 main ()
3648 {
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext
3655 if { (ac_try="$ac_compile"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3661 $as_echo "$ac_try_echo") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } && {
3669 test -z "$ac_cxx_werror_flag" ||
3670 test ! -s conftest.err
3671 } && test -s conftest.$ac_objext; then
3672 ac_cv_prog_cxx_g=yes
3673 else
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677
3678 fi
3679
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 fi
3685
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3688 fi
3689 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3690 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3691 if test "$ac_test_CXXFLAGS" = set; then
3692 CXXFLAGS=$ac_save_CXXFLAGS
3693 elif test $ac_cv_prog_cxx_g = yes; then
3694 if test "$GXX" = yes; then
3695 CXXFLAGS="-g -O2"
3696 else
3697 CXXFLAGS="-g"
3698 fi
3699 else
3700 if test "$GXX" = yes; then
3701 CXXFLAGS="-O2"
3702 else
3703 CXXFLAGS=
3704 fi
3705 fi
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -n "$CPPBIN"; then
3721 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3722 else
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH
3725 do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 fi
3739 fi
3740 CPPBIN=$ac_cv_prog_CPPBIN
3741 if test -n "$CPPBIN"; then
3742 { $as_echo "$as_me:$LINENO: result: $CPPBIN" >&5
3743 $as_echo "$CPPBIN" >&6; }
3744 else
3745 { $as_echo "$as_me:$LINENO: result: no" >&5
3746 $as_echo "no" >&6; }
3747 fi
3748
3749
3750 fi
3751 if test -z "$ac_cv_prog_CPPBIN"; then
3752 ac_ct_CPPBIN=$CPPBIN
3753 # Extract the first word of "cpp", so it can be a program name with args.
3754 set dummy cpp; ac_word=$2
3755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$ac_ct_CPPBIN"; then
3761 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_ac_ct_CPPBIN="cpp"
3771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3781 if test -n "$ac_ct_CPPBIN"; then
3782 { $as_echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3783 $as_echo "$ac_ct_CPPBIN" >&6; }
3784 else
3785 { $as_echo "$as_me:$LINENO: result: no" >&5
3786 $as_echo "no" >&6; }
3787 fi
3788
3789 if test "x$ac_ct_CPPBIN" = x; then
3790 CPPBIN="cpp"
3791 else
3792 case $cross_compiling:$ac_tool_warned in
3793 yes:)
3794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3797 esac
3798 CPPBIN=$ac_ct_CPPBIN
3799 fi
3800 else
3801 CPPBIN="$ac_cv_prog_CPPBIN"
3802 fi
3803
3804
3805 case $host in
3806 x86_64*)
3807 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
3808 then
3809 CC="$CC -m32"
3810 CXX="$CXX -m32"
3811 { $as_echo "$as_me:$LINENO: checking whether $CC works" >&5
3812 $as_echo_n "checking whether $CC works... " >&6; }
3813
3814 cat >conftest.$ac_ext <<_ACEOF
3815 /* confdefs.h. */
3816 _ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820
3821 int
3822 main ()
3823 {
3824
3825 ;
3826 return 0;
3827 }
3828 _ACEOF
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (ac_try="$ac_link"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3836 $as_echo "$ac_try_echo") >&5
3837 (eval "$ac_link") 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } && {
3844 test -z "$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3846 } && test -s conftest$ac_exeext && {
3847 test "$cross_compiling" = yes ||
3848 $as_test_x conftest$ac_exeext
3849 }; then
3850 { $as_echo "$as_me:$LINENO: result: yes" >&5
3851 $as_echo "yes" >&6; }
3852 else
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856 { $as_echo "$as_me:$LINENO: result: no" >&5
3857 $as_echo "no" >&6; }
3858 { { $as_echo "$as_me:$LINENO: error: Cannot build a 32-bit program, you need to install 32-bit development libraries." >&5
3859 $as_echo "$as_me: error: Cannot build a 32-bit program, you need to install 32-bit development libraries." >&2;}
3860 { (exit 1); exit 1; }; }
3861 fi
3862
3863 rm -rf conftest.dSYM
3864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3865 conftest$ac_exeext conftest.$ac_ext
3866 LD="${LD:-ld} -m elf_i386"
3867 AS="${AS:-as} --32"
3868 host_cpu="i386"
3869 notice_platform="32-bit "
3870 TARGETFLAGS="-m32"
3871
3872 else
3873 TARGETFLAGS="-m64"
3874
3875 fi
3876 ;;
3877 esac
3878
3879 case $host_cpu in
3880 *i[3456789]86*)
3881 enable_win16=${enable_win16:-yes}
3882 ;;
3883 *)
3884 enable_win16=${enable_win16:-no}
3885 enable_ifsmgr_vxd=${enable_ifsmgr_vxd:-no}
3886 enable_mmdevldr_vxd=${enable_mmdevldr_vxd:-no}
3887 enable_monodebg_vxd=${enable_monodebg_vxd:-no}
3888 enable_vdhcp_vxd=${enable_vdhcp_vxd:-no}
3889 enable_vmm_vxd=${enable_vmm_vxd:-no}
3890 enable_vnbt_vxd=${enable_vnbt_vxd:-no}
3891 enable_vnetbios_vxd=${enable_vnetbios_vxd:-no}
3892 enable_vtdapi_vxd=${enable_vtdapi_vxd:-no}
3893 enable_vwin32_vxd=${enable_vwin32_vxd:-no}
3894 enable_w32skrnl=${enable_w32skrnl:-no}
3895 enable_winedos=${enable_winedos:-no}
3896 enable_winevdm=${enable_winevdm:-no}
3897 ;;
3898 esac
3899
3900 WIN16_FILES="\$(WIN16_FILES)"
3901
3902 WIN16_INSTALL="\$(WIN16_INSTALL)"
3903
3904 if test "x$enable_win16" != "xyes"
3905 then
3906 WIN16_FILES=""
3907 WIN16_INSTALL=""
3908 fi
3909
3910 { $as_echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3911 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
3912 if test "${wine_cv_toolsdir+set}" = set; then
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -z "$with_wine_tools"; then
3916 if test "$cross_compiling" = "yes"; then
3917 { { $as_echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3918 $as_echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3919 { (exit 1); exit 1; }; }
3920 else
3921 wine_cv_toolsdir="\$(TOPOBJDIR)"
3922 fi
3923 elif test -d "$with_wine_tools/tools/winebuild"; then
3924 case $with_wine_tools in
3925 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3926 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3927 esac
3928 else
3929 { { $as_echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3930 $as_echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3931 { (exit 1); exit 1; }; }
3932 fi
3933 fi
3934 { $as_echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3935 $as_echo "$wine_cv_toolsdir" >&6; }
3936 TOOLSDIR=$wine_cv_toolsdir
3937
3938 if test "$cross_compiling" = "yes"
3939 then
3940 TARGETFLAGS="-b $host_alias"
3941
3942 fi
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3953 CPP=
3954 fi
3955 if test -z "$CPP"; then
3956 if test "${ac_cv_prog_CPP+set}" = set; then
3957 $as_echo_n "(cached) " >&6
3958 else
3959 # Double quotes because CPP needs to be expanded
3960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3961 do
3962 ac_preproc_ok=false
3963 for ac_c_preproc_warn_flag in '' yes
3964 do
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #ifdef __STDC__
3978 # include <limits.h>
3979 #else
3980 # include <assert.h>
3981 #endif
3982 Syntax error
3983 _ACEOF
3984 if { (ac_try="$ac_cpp conftest.$ac_ext"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3990 $as_echo "$ac_try_echo") >&5
3991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } >/dev/null && {
3998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 }; then
4001 :
4002 else
4003 $as_echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 # Broken: fails on valid input.
4007 continue
4008 fi
4009
4010 rm -f conftest.err conftest.$ac_ext
4011
4012 # OK, works on sane cases. Now check whether nonexistent headers
4013 # can be detected and how.
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. */
4020 #include <ac_nonexistent.h>
4021 _ACEOF
4022 if { (ac_try="$ac_cpp conftest.$ac_ext"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 }; then
4039 # Broken: success on invalid input.
4040 continue
4041 else
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045 # Passes both tests.
4046 ac_preproc_ok=:
4047 break
4048 fi
4049
4050 rm -f conftest.err conftest.$ac_ext
4051
4052 done
4053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4054 rm -f conftest.err conftest.$ac_ext
4055 if $ac_preproc_ok; then
4056 break
4057 fi
4058
4059 done
4060 ac_cv_prog_CPP=$CPP
4061
4062 fi
4063 CPP=$ac_cv_prog_CPP
4064 else
4065 ac_cv_prog_CPP=$CPP
4066 fi
4067 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4068 $as_echo "$CPP" >&6; }
4069 ac_preproc_ok=false
4070 for ac_c_preproc_warn_flag in '' yes
4071 do
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error" is here to catch this case.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #ifdef __STDC__
4085 # include <limits.h>
4086 #else
4087 # include <assert.h>
4088 #endif
4089 Syntax error
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } >/dev/null && {
4105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 }; then
4108 :
4109 else
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 # Broken: fails on valid input.
4114 continue
4115 fi
4116
4117 rm -f conftest.err conftest.$ac_ext
4118
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4128 _ACEOF
4129 if { (ac_try="$ac_cpp conftest.$ac_ext"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } >/dev/null && {
4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 }; then
4146 # Broken: success on invalid input.
4147 continue
4148 else
4149 $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152 # Passes both tests.
4153 ac_preproc_ok=:
4154 break
4155 fi
4156
4157 rm -f conftest.err conftest.$ac_ext
4158
4159 done
4160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161 rm -f conftest.err conftest.$ac_ext
4162 if $ac_preproc_ok; then
4163 :
4164 else
4165 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4168 See \`config.log' for more details." >&5
4169 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4170 See \`config.log' for more details." >&2;}
4171 { (exit 1); exit 1; }; }; }
4172 fi
4173
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
4180
4181 { $as_echo "$as_me:$LINENO: checking for X" >&5
4182 $as_echo_n "checking for X... " >&6; }
4183
4184
4185 # Check whether --with-x was given.
4186 if test "${with_x+set}" = set; then
4187 withval=$with_x;
4188 fi
4189
4190 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4191 if test "x$with_x" = xno; then
4192 # The user explicitly disabled X.
4193 have_x=disabled
4194 else
4195 case $x_includes,$x_libraries in #(
4196 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
4197 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
4198 { (exit 1); exit 1; }; };; #(
4199 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4201 else
4202 # One or both of the vars are not set, and there is no cached value.
4203 ac_x_includes=no ac_x_libraries=no
4204 rm -f -r conftest.dir
4205 if mkdir conftest.dir; then
4206 cd conftest.dir
4207 cat >Imakefile <<'_ACEOF'
4208 incroot:
4209 @echo incroot='${INCROOT}'
4210 usrlibdir:
4211 @echo usrlibdir='${USRLIBDIR}'
4212 libdir:
4213 @echo libdir='${LIBDIR}'
4214 _ACEOF
4215 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4217 for ac_var in incroot usrlibdir libdir; do
4218 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4219 done
4220 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4221 for ac_extension in a so sl dylib la dll; do
4222 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4223 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4224 ac_im_usrlibdir=$ac_im_libdir; break
4225 fi
4226 done
4227 # Screen out bogus values from the imake configuration. They are
4228 # bogus both because they are the default anyway, and because
4229 # using them would break gcc on systems where it needs fixed includes.
4230 case $ac_im_incroot in
4231 /usr/include) ac_x_includes= ;;
4232 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4233 esac
4234 case $ac_im_usrlibdir in
4235 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4236 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4237 esac
4238 fi
4239 cd ..
4240 rm -f -r conftest.dir
4241 fi
4242
4243 # Standard set of common directories for X headers.
4244 # Check X11 before X11Rn because it is often a symlink to the current release.
4245 ac_x_header_dirs='
4246 /usr/X11/include
4247 /usr/X11R6/include
4248 /usr/X11R5/include
4249 /usr/X11R4/include
4250
4251 /usr/include/X11
4252 /usr/include/X11R6
4253 /usr/include/X11R5
4254 /usr/include/X11R4
4255
4256 /usr/local/X11/include
4257 /usr/local/X11R6/include
4258 /usr/local/X11R5/include
4259 /usr/local/X11R4/include
4260
4261 /usr/local/include/X11
4262 /usr/local/include/X11R6
4263 /usr/local/include/X11R5
4264 /usr/local/include/X11R4
4265
4266 /usr/X386/include
4267 /usr/x386/include
4268 /usr/XFree86/include/X11
4269
4270 /usr/include
4271 /usr/local/include
4272 /usr/unsupported/include
4273 /usr/athena/include
4274 /usr/local/x11r5/include
4275 /usr/lpp/Xamples/include
4276
4277 /usr/openwin/include
4278 /usr/openwin/share/include'
4279
4280 if test "$ac_x_includes" = no; then
4281 # Guess where to find include files, by looking for Xlib.h.
4282 # First, try using that file with no special directory specified.
4283 cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h. */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h. */
4289 #include <X11/Xlib.h>
4290 _ACEOF
4291 if { (ac_try="$ac_cpp conftest.$ac_ext"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4297 $as_echo "$ac_try_echo") >&5
4298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } >/dev/null && {
4305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4306 test ! -s conftest.err
4307 }; then
4308 # We can compile using X headers with no special include directory.
4309 ac_x_includes=
4310 else
4311 $as_echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 for ac_dir in $ac_x_header_dirs; do
4315 if test -r "$ac_dir/X11/Xlib.h"; then
4316 ac_x_includes=$ac_dir
4317 break
4318 fi
4319 done
4320 fi
4321
4322 rm -f conftest.err conftest.$ac_ext
4323 fi # $ac_x_includes = no
4324
4325 if test "$ac_x_libraries" = no; then
4326 # Check for the libraries.
4327 # See if we find them without any special options.
4328 # Don't add to $LIBS permanently.
4329 ac_save_LIBS=$LIBS
4330 LIBS="-lX11 $LIBS"
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <X11/Xlib.h>
4338 int
4339 main ()
4340 {
4341 XrmInitialize ()
4342 ;
4343 return 0;
4344 }
4345 _ACEOF
4346 rm -f conftest.$ac_objext conftest$ac_exeext
4347 if { (ac_try="$ac_link"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4353 $as_echo "$ac_try_echo") >&5
4354 (eval "$ac_link") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } && {
4361 test -z "$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 } && test -s conftest$ac_exeext && {
4364 test "$cross_compiling" = yes ||
4365 $as_test_x conftest$ac_exeext
4366 }; then
4367 LIBS=$ac_save_LIBS
4368 # We can link X programs with no special library path.
4369 ac_x_libraries=
4370 else
4371 $as_echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 LIBS=$ac_save_LIBS
4375 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4376 do
4377 # Don't even attempt the hair of trying to link an X program!
4378 for ac_extension in a so sl dylib la dll; do
4379 if test -r "$ac_dir/libX11.$ac_extension"; then
4380 ac_x_libraries=$ac_dir
4381 break 2
4382 fi
4383 done
4384 done
4385 fi
4386
4387 rm -rf conftest.dSYM
4388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4389 conftest$ac_exeext conftest.$ac_ext
4390 fi # $ac_x_libraries = no
4391
4392 case $ac_x_includes,$ac_x_libraries in #(
4393 no,* | *,no | *\'*)
4394 # Didn't find X, or a directory has "'" in its name.
4395 ac_cv_have_x="have_x=no";; #(
4396 *)
4397 # Record where we found X for the cache.
4398 ac_cv_have_x="have_x=yes\
4399 ac_x_includes='$ac_x_includes'\
4400 ac_x_libraries='$ac_x_libraries'"
4401 esac
4402 fi
4403 ;; #(
4404 *) have_x=yes;;
4405 esac
4406 eval "$ac_cv_have_x"
4407 fi # $with_x != no
4408
4409 if test "$have_x" != yes; then
4410 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
4411 $as_echo "$have_x" >&6; }
4412 no_x=yes
4413 else
4414 # If each of the values was on the command line, it overrides each guess.
4415 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4416 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4417 # Update the cache value to reflect the command line values.
4418 ac_cv_have_x="have_x=yes\
4419 ac_x_includes='$x_includes'\
4420 ac_x_libraries='$x_libraries'"
4421 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4422 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4423 fi
4424
4425 if test "$no_x" = yes; then
4426 # Not all programs may use this symbol, but it does not hurt to define it.
4427
4428 cat >>confdefs.h <<\_ACEOF
4429 #define X_DISPLAY_MISSING 1
4430 _ACEOF
4431
4432 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4433 else
4434 if test -n "$x_includes"; then
4435 X_CFLAGS="$X_CFLAGS -I$x_includes"
4436 fi
4437
4438 # It would also be nice to do this for all -L options, not just this one.
4439 if test -n "$x_libraries"; then
4440 X_LIBS="$X_LIBS -L$x_libraries"
4441 # For Solaris; some versions of Sun CC require a space after -R and
4442 # others require no space. Words are not sufficient . . . .
4443 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4444 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4445 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4446 ac_xsave_c_werror_flag=$ac_c_werror_flag
4447 ac_c_werror_flag=yes
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454
4455 int
4456 main ()
4457 {
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (ac_try="$ac_link"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4470 $as_echo "$ac_try_echo") >&5
4471 (eval "$ac_link") 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } && {
4478 test -z "$ac_c_werror_flag" ||
4479 test ! -s conftest.err
4480 } && test -s conftest$ac_exeext && {
4481 test "$cross_compiling" = yes ||
4482 $as_test_x conftest$ac_exeext
4483 }; then
4484 { $as_echo "$as_me:$LINENO: result: no" >&5
4485 $as_echo "no" >&6; }
4486 X_LIBS="$X_LIBS -R$x_libraries"
4487 else
4488 $as_echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 LIBS="$ac_xsave_LIBS -R $x_libraries"
4492 cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498
4499 int
4500 main ()
4501 {
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 rm -f conftest.$ac_objext conftest$ac_exeext
4508 if { (ac_try="$ac_link"
4509 case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4514 $as_echo "$ac_try_echo") >&5
4515 (eval "$ac_link") 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } && {
4522 test -z "$ac_c_werror_flag" ||
4523 test ! -s conftest.err
4524 } && test -s conftest$ac_exeext && {
4525 test "$cross_compiling" = yes ||
4526 $as_test_x conftest$ac_exeext
4527 }; then
4528 { $as_echo "$as_me:$LINENO: result: yes" >&5
4529 $as_echo "yes" >&6; }
4530 X_LIBS="$X_LIBS -R $x_libraries"
4531 else
4532 $as_echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4534
4535 { $as_echo "$as_me:$LINENO: result: neither works" >&5
4536 $as_echo "neither works" >&6; }
4537 fi
4538
4539 rm -rf conftest.dSYM
4540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4541 conftest$ac_exeext conftest.$ac_ext
4542 fi
4543
4544 rm -rf conftest.dSYM
4545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4546 conftest$ac_exeext conftest.$ac_ext
4547 ac_c_werror_flag=$ac_xsave_c_werror_flag
4548 LIBS=$ac_xsave_LIBS
4549 fi
4550
4551 # Check for system-dependent libraries X programs must link with.
4552 # Do this before checking for the system-independent R6 libraries
4553 # (-lICE), since we may need -lsocket or whatever for X linking.
4554
4555 if test "$ISC" = yes; then
4556 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4557 else
4558 # Martyn Johnson says this is needed for Ultrix, if the X
4559 # libraries were built with DECnet support. And Karl Berry says
4560 # the Alpha needs dnet_stub (dnet does not exist).
4561 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568
4569 /* Override any GCC internal prototype to avoid an error.
4570 Use char because int might match the return type of a GCC
4571 builtin and then its argument prototype would still apply. */
4572 #ifdef __cplusplus
4573 extern "C"
4574 #endif
4575 char XOpenDisplay ();
4576 int
4577 main ()
4578 {
4579 return XOpenDisplay ();
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext conftest$ac_exeext
4585 if { (ac_try="$ac_link"
4586 case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589 esac
4590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4591 $as_echo "$ac_try_echo") >&5
4592 (eval "$ac_link") 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } && {
4599 test -z "$ac_c_werror_flag" ||
4600 test ! -s conftest.err
4601 } && test -s conftest$ac_exeext && {
4602 test "$cross_compiling" = yes ||
4603 $as_test_x conftest$ac_exeext
4604 }; then
4605 :
4606 else
4607 $as_echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4611 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4612 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4613 $as_echo_n "(cached) " >&6
4614 else
4615 ac_check_lib_save_LIBS=$LIBS
4616 LIBS="-ldnet $LIBS"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623
4624 /* Override any GCC internal prototype to avoid an error.
4625 Use char because int might match the return type of a GCC
4626 builtin and then its argument prototype would still apply. */
4627 #ifdef __cplusplus
4628 extern "C"
4629 #endif
4630 char dnet_ntoa ();
4631 int
4632 main ()
4633 {
4634 return dnet_ntoa ();
4635 ;
4636 return 0;
4637 }
4638 _ACEOF
4639 rm -f conftest.$ac_objext conftest$ac_exeext
4640 if { (ac_try="$ac_link"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4646 $as_echo "$ac_try_echo") >&5
4647 (eval "$ac_link") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest$ac_exeext && {
4657 test "$cross_compiling" = yes ||
4658 $as_test_x conftest$ac_exeext
4659 }; then
4660 ac_cv_lib_dnet_dnet_ntoa=yes
4661 else
4662 $as_echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665 ac_cv_lib_dnet_dnet_ntoa=no
4666 fi
4667
4668 rm -rf conftest.dSYM
4669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4670 conftest$ac_exeext conftest.$ac_ext
4671 LIBS=$ac_check_lib_save_LIBS
4672 fi
4673 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4674 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4675 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
4676 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4677 fi
4678
4679 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4680 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4681 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4682 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4683 $as_echo_n "(cached) " >&6
4684 else
4685 ac_check_lib_save_LIBS=$LIBS
4686 LIBS="-ldnet_stub $LIBS"
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h. */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693
4694 /* Override any GCC internal prototype to avoid an error.
4695 Use char because int might match the return type of a GCC
4696 builtin and then its argument prototype would still apply. */
4697 #ifdef __cplusplus
4698 extern "C"
4699 #endif
4700 char dnet_ntoa ();
4701 int
4702 main ()
4703 {
4704 return dnet_ntoa ();
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (ac_try="$ac_link"
4711 case "(($ac_try" in
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_link") 2>conftest.er1
4718 ac_status=$?
4719 grep -v '^ *+' conftest.er1 >conftest.err
4720 rm -f conftest.er1
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest$ac_exeext && {
4727 test "$cross_compiling" = yes ||
4728 $as_test_x conftest$ac_exeext
4729 }; then
4730 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4731 else
4732 $as_echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_cv_lib_dnet_stub_dnet_ntoa=no
4736 fi
4737
4738 rm -rf conftest.dSYM
4739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4740 conftest$ac_exeext conftest.$ac_ext
4741 LIBS=$ac_check_lib_save_LIBS
4742 fi
4743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4744 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4745 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
4746 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4747 fi
4748
4749 fi
4750 fi
4751
4752 rm -rf conftest.dSYM
4753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4754 conftest$ac_exeext conftest.$ac_ext
4755 LIBS="$ac_xsave_LIBS"
4756
4757 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4758 # to get the SysV transport functions.
4759 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4760 # needs -lnsl.
4761 # The nsl library prevents programs from opening the X display
4762 # on Irix 5.2, according to T.E. Dickey.
4763 # The functions gethostbyname, getservbyname, and inet_addr are
4764 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4765 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
4766 $as_echo_n "checking for gethostbyname... " >&6; }
4767 if test "${ac_cv_func_gethostbyname+set}" = set; then
4768 $as_echo_n "(cached) " >&6
4769 else
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h. */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4778 #define gethostbyname innocuous_gethostbyname
4779
4780 /* System header to define __stub macros and hopefully few prototypes,
4781 which can conflict with char gethostbyname (); below.
4782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783 <limits.h> exists even on freestanding compilers. */
4784
4785 #ifdef __STDC__
4786 # include <limits.h>
4787 #else
4788 # include <assert.h>
4789 #endif
4790
4791 #undef gethostbyname
4792
4793 /* Override any GCC internal prototype to avoid an error.
4794 Use char because int might match the return type of a GCC
4795 builtin and then its argument prototype would still apply. */
4796 #ifdef __cplusplus
4797 extern "C"
4798 #endif
4799 char gethostbyname ();
4800 /* The GNU C library defines this for functions which it implements
4801 to always fail with ENOSYS. Some functions are actually named
4802 something starting with __ and the normal name is an alias. */
4803 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4804 choke me
4805 #endif
4806
4807 int
4808 main ()
4809 {
4810 return gethostbyname ();
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext conftest$ac_exeext
4816 if { (ac_try="$ac_link"
4817 case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820 esac
4821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822 $as_echo "$ac_try_echo") >&5
4823 (eval "$ac_link") 2>conftest.er1
4824 ac_status=$?
4825 grep -v '^ *+' conftest.er1 >conftest.err
4826 rm -f conftest.er1
4827 cat conftest.err >&5
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest$ac_exeext && {
4833 test "$cross_compiling" = yes ||
4834 $as_test_x conftest$ac_exeext
4835 }; then
4836 ac_cv_func_gethostbyname=yes
4837 else
4838 $as_echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_cv_func_gethostbyname=no
4842 fi
4843
4844 rm -rf conftest.dSYM
4845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4846 conftest$ac_exeext conftest.$ac_ext
4847 fi
4848 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4849 $as_echo "$ac_cv_func_gethostbyname" >&6; }
4850
4851 if test $ac_cv_func_gethostbyname = no; then
4852 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4853 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4854 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4855 $as_echo_n "(cached) " >&6
4856 else
4857 ac_check_lib_save_LIBS=$LIBS
4858 LIBS="-lnsl $LIBS"
4859 cat >conftest.$ac_ext <<_ACEOF
4860 /* confdefs.h. */
4861 _ACEOF
4862 cat confdefs.h >>conftest.$ac_ext
4863 cat >>conftest.$ac_ext <<_ACEOF
4864 /* end confdefs.h. */
4865
4866 /* Override any GCC internal prototype to avoid an error.
4867 Use char because int might match the return type of a GCC
4868 builtin and then its argument prototype would still apply. */
4869 #ifdef __cplusplus
4870 extern "C"
4871 #endif
4872 char gethostbyname ();
4873 int
4874 main ()
4875 {
4876 return gethostbyname ();
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest.$ac_objext conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4888 $as_echo "$ac_try_echo") >&5
4889 (eval "$ac_link") 2>conftest.er1
4890 ac_status=$?
4891 grep -v '^ *+' conftest.er1 >conftest.err
4892 rm -f conftest.er1
4893 cat conftest.err >&5
4894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } && {
4896 test -z "$ac_c_werror_flag" ||
4897 test ! -s conftest.err
4898 } && test -s conftest$ac_exeext && {
4899 test "$cross_compiling" = yes ||
4900 $as_test_x conftest$ac_exeext
4901 }; then
4902 ac_cv_lib_nsl_gethostbyname=yes
4903 else
4904 $as_echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ac_cv_lib_nsl_gethostbyname=no
4908 fi
4909
4910 rm -rf conftest.dSYM
4911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4912 conftest$ac_exeext conftest.$ac_ext
4913 LIBS=$ac_check_lib_save_LIBS
4914 fi
4915 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4916 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4917 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
4918 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4919 fi
4920
4921 if test $ac_cv_lib_nsl_gethostbyname = no; then
4922 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4923 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4924 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4925 $as_echo_n "(cached) " >&6
4926 else
4927 ac_check_lib_save_LIBS=$LIBS
4928 LIBS="-lbsd $LIBS"
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935
4936 /* Override any GCC internal prototype to avoid an error.
4937 Use char because int might match the return type of a GCC
4938 builtin and then its argument prototype would still apply. */
4939 #ifdef __cplusplus
4940 extern "C"
4941 #endif
4942 char gethostbyname ();
4943 int
4944 main ()
4945 {
4946 return gethostbyname ();
4947 ;
4948 return 0;
4949 }
4950 _ACEOF
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4953 case "(($ac_try" in
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4956 esac
4957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4958 $as_echo "$ac_try_echo") >&5
4959 (eval "$ac_link") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && {
4966 test -z "$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 } && test -s conftest$ac_exeext && {
4969 test "$cross_compiling" = yes ||
4970 $as_test_x conftest$ac_exeext
4971 }; then
4972 ac_cv_lib_bsd_gethostbyname=yes
4973 else
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 ac_cv_lib_bsd_gethostbyname=no
4978 fi
4979
4980 rm -rf conftest.dSYM
4981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4982 conftest$ac_exeext conftest.$ac_ext
4983 LIBS=$ac_check_lib_save_LIBS
4984 fi
4985 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4986 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4987 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
4988 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4989 fi
4990
4991 fi
4992 fi
4993
4994 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4995 # socket/setsockopt and other routines are undefined under SCO ODT
4996 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4997 # on later versions), says Simon Leinen: it contains gethostby*
4998 # variants that don't use the name server (or something). -lsocket
4999 # must be given before -lnsl if both are needed. We assume that
5000 # if connect needs -lnsl, so does gethostbyname.
5001 { $as_echo "$as_me:$LINENO: checking for connect" >&5
5002 $as_echo_n "checking for connect... " >&6; }
5003 if test "${ac_cv_func_connect+set}" = set; then
5004 $as_echo_n "(cached) " >&6
5005 else
5006 cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5014 #define connect innocuous_connect
5015
5016 /* System header to define __stub macros and hopefully few prototypes,
5017 which can conflict with char connect (); below.
5018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 <limits.h> exists even on freestanding compilers. */
5020
5021 #ifdef __STDC__
5022 # include <limits.h>
5023 #else
5024 # include <assert.h>
5025 #endif
5026
5027 #undef connect
5028
5029 /* Override any GCC internal prototype to avoid an error.
5030 Use char because int might match the return type of a GCC
5031 builtin and then its argument prototype would still apply. */
5032 #ifdef __cplusplus
5033 extern "C"
5034 #endif
5035 char connect ();
5036 /* The GNU C library defines this for functions which it implements
5037 to always fail with ENOSYS. Some functions are actually named
5038 something starting with __ and the normal name is an alias. */
5039 #if defined __stub_connect || defined __stub___connect
5040 choke me
5041 #endif
5042
5043 int
5044 main ()
5045 {
5046 return connect ();
5047 ;
5048 return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058 $as_echo "$ac_try_echo") >&5
5059 (eval "$ac_link") 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest$ac_exeext && {
5069 test "$cross_compiling" = yes ||
5070 $as_test_x conftest$ac_exeext
5071 }; then
5072 ac_cv_func_connect=yes
5073 else
5074 $as_echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 ac_cv_func_connect=no
5078 fi
5079
5080 rm -rf conftest.dSYM
5081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5082 conftest$ac_exeext conftest.$ac_ext
5083 fi
5084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5085 $as_echo "$ac_cv_func_connect" >&6; }
5086
5087 if test $ac_cv_func_connect = no; then
5088 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5089 $as_echo_n "checking for connect in -lsocket... " >&6; }
5090 if test "${ac_cv_lib_socket_connect+set}" = set; then
5091 $as_echo_n "(cached) " >&6
5092 else
5093 ac_check_lib_save_LIBS=$LIBS
5094 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101
5102 /* Override any GCC internal prototype to avoid an error.
5103 Use char because int might match the return type of a GCC
5104 builtin and then its argument prototype would still apply. */
5105 #ifdef __cplusplus
5106 extern "C"
5107 #endif
5108 char connect ();
5109 int
5110 main ()
5111 {
5112 return connect ();
5113 ;
5114 return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (ac_try="$ac_link"
5119 case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122 esac
5123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5124 $as_echo "$ac_try_echo") >&5
5125 (eval "$ac_link") 2>conftest.er1
5126 ac_status=$?
5127 grep -v '^ *+' conftest.er1 >conftest.err
5128 rm -f conftest.er1
5129 cat conftest.err >&5
5130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } && {
5132 test -z "$ac_c_werror_flag" ||
5133 test ! -s conftest.err
5134 } && test -s conftest$ac_exeext && {
5135 test "$cross_compiling" = yes ||
5136 $as_test_x conftest$ac_exeext
5137 }; then
5138 ac_cv_lib_socket_connect=yes
5139 else
5140 $as_echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 ac_cv_lib_socket_connect=no
5144 fi
5145
5146 rm -rf conftest.dSYM
5147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5148 conftest$ac_exeext conftest.$ac_ext
5149 LIBS=$ac_check_lib_save_LIBS
5150 fi
5151 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5152 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5153 if test "x$ac_cv_lib_socket_connect" = x""yes; then
5154 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5155 fi
5156
5157 fi
5158
5159 # Guillermo Gomez says -lposix is necessary on A/UX.
5160 { $as_echo "$as_me:$LINENO: checking for remove" >&5
5161 $as_echo_n "checking for remove... " >&6; }
5162 if test "${ac_cv_func_remove+set}" = set; then
5163 $as_echo_n "(cached) " >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5173 #define remove innocuous_remove
5174
5175 /* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char remove (); below.
5177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5178 <limits.h> exists even on freestanding compilers. */
5179
5180 #ifdef __STDC__
5181 # include <limits.h>
5182 #else
5183 # include <assert.h>
5184 #endif
5185
5186 #undef remove
5187
5188 /* Override any GCC internal prototype to avoid an error.
5189 Use char because int might match the return type of a GCC
5190 builtin and then its argument prototype would still apply. */
5191 #ifdef __cplusplus
5192 extern "C"
5193 #endif
5194 char remove ();
5195 /* The GNU C library defines this for functions which it implements
5196 to always fail with ENOSYS. Some functions are actually named
5197 something starting with __ and the normal name is an alias. */
5198 #if defined __stub_remove || defined __stub___remove
5199 choke me
5200 #endif
5201
5202 int
5203 main ()
5204 {
5205 return remove ();
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 rm -f conftest.$ac_objext conftest$ac_exeext
5211 if { (ac_try="$ac_link"
5212 case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5217 $as_echo "$ac_try_echo") >&5
5218 (eval "$ac_link") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } && {
5225 test -z "$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 } && test -s conftest$ac_exeext && {
5228 test "$cross_compiling" = yes ||
5229 $as_test_x conftest$ac_exeext
5230 }; then
5231 ac_cv_func_remove=yes
5232 else
5233 $as_echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236 ac_cv_func_remove=no
5237 fi
5238
5239 rm -rf conftest.dSYM
5240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5241 conftest$ac_exeext conftest.$ac_ext
5242 fi
5243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5244 $as_echo "$ac_cv_func_remove" >&6; }
5245
5246 if test $ac_cv_func_remove = no; then
5247 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5248 $as_echo_n "checking for remove in -lposix... " >&6; }
5249 if test "${ac_cv_lib_posix_remove+set}" = set; then
5250 $as_echo_n "(cached) " >&6
5251 else
5252 ac_check_lib_save_LIBS=$LIBS
5253 LIBS="-lposix $LIBS"
5254 cat >conftest.$ac_ext <<_ACEOF
5255 /* confdefs.h. */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5260
5261 /* Override any GCC internal prototype to avoid an error.
5262 Use char because int might match the return type of a GCC
5263 builtin and then its argument prototype would still apply. */
5264 #ifdef __cplusplus
5265 extern "C"
5266 #endif
5267 char remove ();
5268 int
5269 main ()
5270 {
5271 return remove ();
5272 ;
5273 return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (ac_try="$ac_link"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5283 $as_echo "$ac_try_echo") >&5
5284 (eval "$ac_link") 2>conftest.er1
5285 ac_status=$?
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
5289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } && {
5291 test -z "$ac_c_werror_flag" ||
5292 test ! -s conftest.err
5293 } && test -s conftest$ac_exeext && {
5294 test "$cross_compiling" = yes ||
5295 $as_test_x conftest$ac_exeext
5296 }; then
5297 ac_cv_lib_posix_remove=yes
5298 else
5299 $as_echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302 ac_cv_lib_posix_remove=no
5303 fi
5304
5305 rm -rf conftest.dSYM
5306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5307 conftest$ac_exeext conftest.$ac_ext
5308 LIBS=$ac_check_lib_save_LIBS
5309 fi
5310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5311 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5312 if test "x$ac_cv_lib_posix_remove" = x""yes; then
5313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5314 fi
5315
5316 fi
5317
5318 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5319 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
5320 $as_echo_n "checking for shmat... " >&6; }
5321 if test "${ac_cv_func_shmat+set}" = set; then
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5332 #define shmat innocuous_shmat
5333
5334 /* System header to define __stub macros and hopefully few prototypes,
5335 which can conflict with char shmat (); below.
5336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5337 <limits.h> exists even on freestanding compilers. */
5338
5339 #ifdef __STDC__
5340 # include <limits.h>
5341 #else
5342 # include <assert.h>
5343 #endif
5344
5345 #undef shmat
5346
5347 /* Override any GCC internal prototype to avoid an error.
5348 Use char because int might match the return type of a GCC
5349 builtin and then its argument prototype would still apply. */
5350 #ifdef __cplusplus
5351 extern "C"
5352 #endif
5353 char shmat ();
5354 /* The GNU C library defines this for functions which it implements
5355 to always fail with ENOSYS. Some functions are actually named
5356 something starting with __ and the normal name is an alias. */
5357 #if defined __stub_shmat || defined __stub___shmat
5358 choke me
5359 #endif
5360
5361 int
5362 main ()
5363 {
5364 return shmat ();
5365 ;
5366 return 0;
5367 }
5368 _ACEOF
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (ac_try="$ac_link"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5376 $as_echo "$ac_try_echo") >&5
5377 (eval "$ac_link") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_c_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest$ac_exeext && {
5387 test "$cross_compiling" = yes ||
5388 $as_test_x conftest$ac_exeext
5389 }; then
5390 ac_cv_func_shmat=yes
5391 else
5392 $as_echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 ac_cv_func_shmat=no
5396 fi
5397
5398 rm -rf conftest.dSYM
5399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5400 conftest$ac_exeext conftest.$ac_ext
5401 fi
5402 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5403 $as_echo "$ac_cv_func_shmat" >&6; }
5404
5405 if test $ac_cv_func_shmat = no; then
5406 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5407 $as_echo_n "checking for shmat in -lipc... " >&6; }
5408 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5409 $as_echo_n "(cached) " >&6
5410 else
5411 ac_check_lib_save_LIBS=$LIBS
5412 LIBS="-lipc $LIBS"
5413 cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h. */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5419
5420 /* Override any GCC internal prototype to avoid an error.
5421 Use char because int mig