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