Add support for :winpos
[MacVim.git] / src / auto / configure
blob75e773afb18cda6378bbc278dcdeec2024d5d20d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 SET_MAKE
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
662 GREP
663 EGREP
665 STRIP
666 CPP_MM
667 OS_EXTRA_SRC
668 OS_EXTRA_OBJ
669 VIMNAME
670 EXNAME
671 VIEWNAME
672 line_break
673 dovimdiff
674 dogvimdiff
675 compiledby
676 vi_cv_path_mzscheme
677 MZSCHEME_SRC
678 MZSCHEME_OBJ
679 MZSCHEME_PRO
680 MZSCHEME_LIBS
681 MZSCHEME_CFLAGS
682 MZSCHEME_EXTRA
683 MZSCHEME_MZC
684 vi_cv_path_perl
685 vi_cv_perllib
686 shrpenv
687 PERL_SRC
688 PERL_OBJ
689 PERL_PRO
690 PERL_CFLAGS
691 PERL_LIBS
692 vi_cv_path_python
693 PYTHON_CONFDIR
694 PYTHON_LIBS
695 PYTHON_GETPATH_CFLAGS
696 PYTHON_CFLAGS
697 PYTHON_SRC
698 PYTHON_OBJ
699 vi_cv_path_tcl
700 TCL_SRC
701 TCL_OBJ
702 TCL_PRO
703 TCL_CFLAGS
704 TCL_LIBS
705 vi_cv_path_ruby
706 RUBY_SRC
707 RUBY_OBJ
708 RUBY_PRO
709 RUBY_CFLAGS
710 RUBY_LIBS
711 WORKSHOP_SRC
712 WORKSHOP_OBJ
713 NETBEANS_SRC
714 NETBEANS_OBJ
715 SNIFF_SRC
716 SNIFF_OBJ
717 xmkmfpath
718 XMKMF
719 X_CFLAGS
720 X_PRE_LIBS
721 X_LIBS
722 X_EXTRA_LIBS
723 X_LIB
724 GTK_CONFIG
725 GTK12_CONFIG
726 PKG_CONFIG
727 GTK_CFLAGS
728 GTK_LIBS
729 GTK_LIBNAME
730 GNOME_LIBS
731 GNOME_LIBDIR
732 GNOME_INCLUDEDIR
733 GNOME_CONFIG
734 MOTIF_LIBNAME
735 NARROW_PROTO
736 GUI_INC_LOC
737 GUI_LIB_LOC
738 GUITYPE
739 GUI_X_LIBS
740 HANGULIN_SRC
741 HANGULIN_OBJ
742 TAGPRG
743 INSTALL_LANGS
744 INSTALL_TOOL_LANGS
745 MSGFMT
746 MAKEMO
747 XCODEFLAGS
748 DEPEND_CFLAGS_FILTER
749 LIBOBJS
750 LTLIBOBJS'
751 ac_subst_files=''
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
761 XMKMF'
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
810 ac_prev=
811 ac_dashdash=
812 for ac_option
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
821 case $ac_option in
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *) ac_optarg=yes ;;
824 esac
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
830 ac_dashdash=yes ;;
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
849 --config-cache | -C)
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
874 ac_prev=docdir ;;
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 docdir=$ac_optarg ;;
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 ac_prev=dvidir ;;
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 dvidir=$ac_optarg ;;
883 -enable-* | --enable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=\$ac_optarg ;;
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
899 exec_prefix=$ac_optarg ;;
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
903 with_gas=yes ;;
905 -help | --help | --hel | --he | -h)
906 ac_init_help=long ;;
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
912 -host | --host | --hos | --ho)
913 ac_prev=host_alias ;;
914 -host=* | --host=* | --hos=* | --ho=*)
915 host_alias=$ac_optarg ;;
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 ac_prev=htmldir ;;
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 | --ht=*)
921 htmldir=$ac_optarg ;;
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
928 includedir=$ac_optarg ;;
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 ac_prev=infodir ;;
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933 infodir=$ac_optarg ;;
935 -libdir | --libdir | --libdi | --libd)
936 ac_prev=libdir ;;
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 libdir=$ac_optarg ;;
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
945 libexecdir=$ac_optarg ;;
947 -localedir | --localedir | --localedi | --localed | --locale)
948 ac_prev=localedir ;;
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
952 -localstatedir | --localstatedir | --localstatedi | --localstated \
953 | --localstate | --localstat | --localsta | --localst | --locals)
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957 localstatedir=$ac_optarg ;;
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 ac_prev=mandir ;;
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962 mandir=$ac_optarg ;;
964 -nfp | --nfp | --nf)
965 # Obsolete; use --without-fp.
966 with_fp=no ;;
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n)
970 no_create=yes ;;
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 no_recursion=yes ;;
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983 oldincludedir=$ac_optarg ;;
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 ac_prev=prefix ;;
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 prefix=$ac_optarg ;;
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995 program_prefix=$ac_optarg ;;
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002 program_suffix=$ac_optarg ;;
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1019 program_transform_name=$ac_optarg ;;
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 ac_prev=pdfdir ;;
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1026 -psdir | --psdir | --psdi | --psd | --ps)
1027 ac_prev=psdir ;;
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 psdir=$ac_optarg ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 silent=yes ;;
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1039 sbindir=$ac_optarg ;;
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1050 sharedstatedir=$ac_optarg ;;
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1055 site=$ac_optarg ;;
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1080 -with-* | --with-*)
1081 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=\$ac_optarg ;;
1089 -without-* | --without-*)
1090 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 { echo "$as_me: error: invalid package name: $ac_package" >&2
1094 { (exit 1); exit 1; }; }
1095 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1096 eval with_$ac_package=no ;;
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1116 -*) { echo "$as_me: error: unrecognized option: $ac_option
1117 Try \`$0 --help' for more information." >&2
1118 { (exit 1); exit 1; }; }
1121 *=*)
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126 { (exit 1); exit 1; }; }
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1131 # FIXME: should be removed in autoconf 3.0.
1132 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 esac
1139 done
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 { echo "$as_me: error: missing argument to $ac_option" >&2
1144 { (exit 1); exit 1; }; }
1147 # Be sure to have absolute directory names.
1148 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
1153 eval ac_val=\$$ac_var
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159 { (exit 1); exit 1; }; }
1160 done
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1165 build=$build_alias
1166 host=$host_alias
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 { echo "$as_me: error: Working directory cannot be determined" >&2
1190 { (exit 1); exit 1; }; }
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 { echo "$as_me: error: pwd does not report name of working directory" >&2
1193 { (exit 1); exit 1; }; }
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir=`$as_dirname -- "$0" ||
1201 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$0" : 'X\(//\)[^/]' \| \
1203 X"$0" : 'X\(//\)$' \| \
1204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1205 echo X"$0" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 s//\1/
1210 /^X\(\/\/\)[^/].*/{
1211 s//\1/
1214 /^X\(\/\/\)$/{
1215 s//\1/
1218 /^X\(\/\).*/{
1219 s//\1/
1222 s/.*/./; q'`
1223 srcdir=$ac_confdir
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 srcdir=..
1227 else
1228 ac_srcdir_defaulted=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1233 { (exit 1); exit 1; }; }
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1238 { (exit 1); exit 1; }; }
1239 pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 done
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1273 Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 [PREFIX]
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1317 _ACEOF
1319 cat <<\_ACEOF
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324 _ACEOF
1327 if test -n "$ac_init_help"; then
1329 cat <<\_ACEOF
1331 Optional Features:
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --disable-darwin Disable Darwin (Mac OS X) support.
1335 --disable-selinux Don't check for SELinux support.
1336 --disable-xsmp Disable XSMP session management
1337 --disable-xsmp-interact Disable XSMP interaction
1338 --enable-mzschemeinterp Include MzScheme interpreter.
1339 --enable-perlinterp Include Perl interpreter.
1340 --enable-pythoninterp Include Python interpreter.
1341 --enable-tclinterp Include Tcl interpreter.
1342 --enable-rubyinterp Include Ruby interpreter.
1343 --enable-cscope Include cscope interface.
1344 --enable-workshop Include Sun Visual Workshop support.
1345 --disable-netbeans Disable NetBeans integration support.
1346 --enable-sniff Include Sniff interface.
1347 --enable-multibyte Include multibyte editing support.
1348 --enable-hangulinput Include Hangul input support.
1349 --enable-xim Include XIM input support.
1350 --enable-fontset Include X fontset output support.
1351 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1352 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1353 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1354 --enable-gnome-check If GTK GUI, check for GNOME default=no
1355 --enable-motif-check If auto-select GUI, check for Motif default=yes
1356 --enable-athena-check If auto-select GUI, check for Athena default=yes
1357 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1358 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1359 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1360 --disable-gtktest Do not try to compile and run a test GTK program
1361 --disable-acl Don't check for ACL support.
1362 --disable-gpm Don't use gpm (Linux mouse daemon).
1363 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1364 --disable-nls Don't support NLS (gettext()).
1366 Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-macsdk=SDK SDK version (10.4, 10.5, 10.6, ...)
1370 --with-macarchs=ARCHS space separated list of archs (i386 x86_64 ppc ...)
1371 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1372 --without-local-dir do not search /usr/local for local libraries.
1373 --with-vim-name=NAME what to call the Vim executable
1374 --with-ex-name=NAME what to call the Ex executable
1375 --with-view-name=NAME what to call the View executable
1376 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1377 --with-modified-by=NAME name of who modified a release version
1378 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1379 --with-compiledby=NAME name to show in :version message
1380 --with-plthome=PLTHOME Use PLTHOME.
1381 --with-python-config-dir=PATH Python's config directory
1382 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1383 --with-x use the X Window System
1384 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1385 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1386 --with-gnome-includes=DIR Specify location of GNOME headers
1387 --with-gnome-libs=DIR Specify location of GNOME libs
1388 --with-gnome Specify prefix for GNOME files
1389 --with-motif-lib=STRING Library for Motif
1390 --with-tlib=library terminal library to be used
1391 --with-xcodecfg=CFG Debug, Release (default: Release)
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CPP C preprocessor
1402 XMKMF Path to xmkmf, Makefile generator for X Window System
1404 Use these variables to override the choices made by `configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1407 _ACEOF
1408 ac_status=$?
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" || continue
1415 ac_builddir=.
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1433 case $srcdir in
1434 .) # We are building in place.
1435 ac_srcdir=.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1457 else
1458 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1461 done
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466 cat <<\_ACEOF
1467 configure
1468 generated by GNU Autoconf 2.61
1470 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1471 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475 exit
1477 cat >auto/config.log <<_ACEOF
1478 This file contains any messages produced by compilers while
1479 running configure, to aid debugging if configure makes a mistake.
1481 It was created by $as_me, which was
1482 generated by GNU Autoconf 2.61. Invocation command line was
1484 $ $0 $@
1486 _ACEOF
1487 exec 5>>auto/config.log
1489 cat <<_ASUNAME
1490 ## --------- ##
1491 ## Platform. ##
1492 ## --------- ##
1494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1503 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1504 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1506 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1507 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1508 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1509 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1511 _ASUNAME
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 echo "PATH: $as_dir"
1519 done
1520 IFS=$as_save_IFS
1522 } >&5
1524 cat >&5 <<_ACEOF
1527 ## ----------- ##
1528 ## Core tests. ##
1529 ## ----------- ##
1531 _ACEOF
1534 # Keep a trace of the command line.
1535 # Strip out --no-create and --no-recursion so they do not pile up.
1536 # Strip out --silent because we don't want to record it for future runs.
1537 # Also quote any args containing shell meta-characters.
1538 # Make two passes to allow for proper duplicate-argument suppression.
1539 ac_configure_args=
1540 ac_configure_args0=
1541 ac_configure_args1=
1542 ac_must_keep_next=false
1543 for ac_pass in 1 2
1545 for ac_arg
1547 case $ac_arg in
1548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550 | -silent | --silent | --silen | --sile | --sil)
1551 continue ;;
1552 *\'*)
1553 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1554 esac
1555 case $ac_pass in
1556 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1558 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559 if test $ac_must_keep_next = true; then
1560 ac_must_keep_next=false # Got value, back to normal.
1561 else
1562 case $ac_arg in
1563 *=* | --config-cache | -C | -disable-* | --disable-* \
1564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566 | -with-* | --with-* | -without-* | --without-* | --x)
1567 case "$ac_configure_args0 " in
1568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569 esac
1571 -* ) ac_must_keep_next=true ;;
1572 esac
1574 ac_configure_args="$ac_configure_args '$ac_arg'"
1576 esac
1577 done
1578 done
1579 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1582 # When interrupted or exit'd, cleanup temporary files, and complete
1583 # config.log. We remove comments because anyway the quotes in there
1584 # would cause problems or look ugly.
1585 # WARNING: Use '\'' to represent an apostrophe within the trap.
1586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1587 trap 'exit_status=$?
1588 # Save into config.log some information that might help in debugging.
1590 echo
1592 cat <<\_ASBOX
1593 ## ---------------- ##
1594 ## Cache variables. ##
1595 ## ---------------- ##
1596 _ASBOX
1597 echo
1598 # The following way of writing the cache mishandles newlines in values,
1600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601 eval ac_val=\$$ac_var
1602 case $ac_val in #(
1603 *${as_nl}*)
1604 case $ac_var in #(
1605 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1606 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607 esac
1608 case $ac_var in #(
1609 _ | IFS | as_nl) ;; #(
1610 *) $as_unset $ac_var ;;
1611 esac ;;
1612 esac
1613 done
1614 (set) 2>&1 |
1615 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1616 *${as_nl}ac_space=\ *)
1617 sed -n \
1618 "s/'\''/'\''\\\\'\'''\''/g;
1619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620 ;; #(
1622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1624 esac |
1625 sort
1627 echo
1629 cat <<\_ASBOX
1630 ## ----------------- ##
1631 ## Output variables. ##
1632 ## ----------------- ##
1633 _ASBOX
1634 echo
1635 for ac_var in $ac_subst_vars
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1645 if test -n "$ac_subst_files"; then
1646 cat <<\_ASBOX
1647 ## ------------------- ##
1648 ## File substitutions. ##
1649 ## ------------------- ##
1650 _ASBOX
1651 echo
1652 for ac_var in $ac_subst_files
1654 eval ac_val=\$$ac_var
1655 case $ac_val in
1656 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657 esac
1658 echo "$ac_var='\''$ac_val'\''"
1659 done | sort
1660 echo
1663 if test -s confdefs.h; then
1664 cat <<\_ASBOX
1665 ## ----------- ##
1666 ## confdefs.h. ##
1667 ## ----------- ##
1668 _ASBOX
1669 echo
1670 cat confdefs.h
1671 echo
1673 test "$ac_signal" != 0 &&
1674 echo "$as_me: caught signal $ac_signal"
1675 echo "$as_me: exit $exit_status"
1676 } >&5
1677 rm -f core *.core core.conftest.* &&
1678 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679 exit $exit_status
1681 for ac_signal in 1 2 13 15; do
1682 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1683 done
1684 ac_signal=0
1686 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1687 rm -f -r conftest* confdefs.h
1689 # Predefined preprocessor variables.
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_NAME "$PACKAGE_NAME"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1698 _ACEOF
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1703 _ACEOF
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_STRING "$PACKAGE_STRING"
1708 _ACEOF
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1713 _ACEOF
1716 # Let the site file select an alternate cache file if it wants to.
1717 # Prefer explicitly selected file to automatically selected ones.
1718 if test -n "$CONFIG_SITE"; then
1719 set x "$CONFIG_SITE"
1720 elif test "x$prefix" != xNONE; then
1721 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1722 else
1723 set x "$ac_default_prefix/share/config.site" \
1724 "$ac_default_prefix/etc/config.site"
1726 shift
1727 for ac_site_file
1729 if test -r "$ac_site_file"; then
1730 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1731 echo "$as_me: loading site script $ac_site_file" >&6;}
1732 sed 's/^/| /' "$ac_site_file" >&5
1733 . "$ac_site_file"
1735 done
1737 if test -r "$cache_file"; then
1738 # Some versions of bash will fail to source /dev/null (special
1739 # files actually), so we avoid doing that.
1740 if test -f "$cache_file"; then
1741 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1742 echo "$as_me: loading cache $cache_file" >&6;}
1743 case $cache_file in
1744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745 *) . "./$cache_file";;
1746 esac
1748 else
1749 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750 echo "$as_me: creating cache $cache_file" >&6;}
1751 >$cache_file
1754 # Check that the precious variables saved in the cache have kept the same
1755 # value.
1756 ac_cache_corrupted=false
1757 for ac_var in $ac_precious_vars; do
1758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1759 eval ac_new_set=\$ac_env_${ac_var}_set
1760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1761 eval ac_new_val=\$ac_env_${ac_var}_value
1762 case $ac_old_set,$ac_new_set in
1763 set,)
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1765 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1767 ,set)
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,);;
1773 if test "x$ac_old_val" != "x$ac_new_val"; then
1774 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1775 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1776 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1777 echo "$as_me: former value: $ac_old_val" >&2;}
1778 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1779 echo "$as_me: current value: $ac_new_val" >&2;}
1780 ac_cache_corrupted=:
1781 fi;;
1782 esac
1783 # Pass precious variables to config.status.
1784 if test "$ac_new_set" = set; then
1785 case $ac_new_val in
1786 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1787 *) ac_arg=$ac_var=$ac_new_val ;;
1788 esac
1789 case " $ac_configure_args " in
1790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1791 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1792 esac
1794 done
1795 if $ac_cache_corrupted; then
1796 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1797 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1798 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1799 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1800 { (exit 1); exit 1; }; }
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1829 cat >>confdefs.h <<\_ACEOF
1830 #define UNIX 1
1831 _ACEOF
1833 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1834 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1835 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1836 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 cat >conftest.make <<\_ACEOF
1840 SHELL = /bin/sh
1841 all:
1842 @echo '@@@%%%=$(MAKE)=@@@%%%'
1843 _ACEOF
1844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1845 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1846 *@@@%%%=?*=@@@%%%*)
1847 eval ac_cv_prog_make_${ac_make}_set=yes;;
1849 eval ac_cv_prog_make_${ac_make}_set=no;;
1850 esac
1851 rm -f conftest.make
1853 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1854 { echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6; }
1856 SET_MAKE=
1857 else
1858 { echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6; }
1860 SET_MAKE="MAKE=${MAKE-make}"
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 if test -n "$ac_tool_prefix"; then
1870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1891 done
1892 done
1893 IFS=$as_save_IFS
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899 { echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6; }
1901 else
1902 { echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6; }
1908 if test -z "$ac_cv_prog_CC"; then
1909 ac_ct_CC=$CC
1910 # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc; ac_word=$2
1912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_prog_ac_ct_CC="gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1931 done
1932 done
1933 IFS=$as_save_IFS
1937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938 if test -n "$ac_ct_CC"; then
1939 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940 echo "${ECHO_T}$ac_ct_CC" >&6; }
1941 else
1942 { echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6; }
1946 if test "x$ac_ct_CC" = x; then
1947 CC=""
1948 else
1949 case $cross_compiling:$ac_tool_warned in
1950 yes:)
1951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet. If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&5
1954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1955 whose name does not start with the host triplet. If you think this
1956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1957 ac_tool_warned=yes ;;
1958 esac
1959 CC=$ac_ct_CC
1961 else
1962 CC="$ac_cv_prog_CC"
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="${ac_tool_prefix}cc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1988 done
1989 done
1990 IFS=$as_save_IFS
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996 { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1998 else
1999 { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2027 continue
2029 ac_cv_prog_CC="cc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2033 done
2034 done
2035 IFS=$as_save_IFS
2037 if test $ac_prog_rejected = yes; then
2038 # We found a bogon in the path, so make sure we never use it.
2039 set dummy $ac_cv_prog_CC
2040 shift
2041 if test $# != 0; then
2042 # We chose a different compiler from the bogus one.
2043 # However, it has the same basename, so the bogon will be chosen
2044 # first if we set CC to just the basename; use the full file name.
2045 shift
2046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2051 CC=$ac_cv_prog_CC
2052 if test -n "$CC"; then
2053 { echo "$as_me:$LINENO: result: $CC" >&5
2054 echo "${ECHO_T}$CC" >&6; }
2055 else
2056 { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2062 if test -z "$CC"; then
2063 if test -n "$ac_tool_prefix"; then
2064 for ac_prog in cl.exe
2066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2089 IFS=$as_save_IFS
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 { echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6; }
2097 else
2098 { echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6; }
2103 test -n "$CC" && break
2104 done
2106 if test -z "$CC"; then
2107 ac_ct_CC=$CC
2108 for ac_prog in cl.exe
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_ac_ct_CC="$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2147 test -n "$ac_ct_CC" && break
2148 done
2150 if test "x$ac_ct_CC" = x; then
2151 CC=""
2152 else
2153 case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet. If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&5
2158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2161 ac_tool_warned=yes ;;
2162 esac
2163 CC=$ac_ct_CC
2170 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: no acceptable C compiler found in \$PATH
2173 See \`config.log' for more details." >&2;}
2174 { (exit 1); exit 1; }; }
2176 # Provide some information about the compiler.
2177 echo "$as_me:$LINENO: checking for C compiler version" >&5
2178 ac_compiler=`set X $ac_compile; echo $2`
2179 { (ac_try="$ac_compiler --version >&5"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2185 (eval "$ac_compiler --version >&5") 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195 (eval "$ac_compiler -v >&5") 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (ac_try="$ac_compiler -V >&5"
2200 case "(($ac_try" in
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2203 esac
2204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2205 (eval "$ac_compiler -V >&5") 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2218 main ()
2222 return 0;
2224 _ACEOF
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2229 # of exeext.
2230 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 # List of possible output files, starting from the most likely.
2235 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2236 # only as a last resort. b.out is created by i960 compilers.
2237 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2239 # The IRIX 6 linker writes into existing files which may not be
2240 # executable, retaining their permissions. Remove them first so a
2241 # subsequent execution test works.
2242 ac_rmfiles=
2243 for ac_file in $ac_files
2245 case $ac_file in
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2248 esac
2249 done
2250 rm -f $ac_rmfiles
2252 if { (ac_try="$ac_link_default"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_link_default") 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2264 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2265 # so that the user can short-circuit this test for compilers unknown to
2266 # Autoconf.
2267 for ac_file in $ac_files ''
2269 test -f "$ac_file" || continue
2270 case $ac_file in
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 [ab].out )
2274 # We found the default executable, but exeext='' is most
2275 # certainly right.
2276 break;;
2277 *.* )
2278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 then :; else
2280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 # We set ac_cv_exeext here because the later test for it is not
2283 # safe: cross compilers may not add the suffix if given an `-o'
2284 # argument, so we may need to know it at that point already.
2285 # Even if this section looks crufty: it has the advantage of
2286 # actually working.
2287 break;;
2289 break;;
2290 esac
2291 done
2292 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 else
2295 ac_file=''
2298 { echo "$as_me:$LINENO: result: $ac_file" >&5
2299 echo "${ECHO_T}$ac_file" >&6; }
2300 if test -z "$ac_file"; then
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308 { (exit 77); exit 77; }; }
2311 ac_exeext=$ac_cv_exeext
2313 # Check that the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320 if { ac_try='./$ac_file'
2321 { (case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_try") 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 cross_compiling=no
2331 else
2332 if test "$cross_compiling" = maybe; then
2333 cross_compiling=yes
2334 else
2335 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2345 { echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6; }
2348 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2349 ac_clean_files=$ac_clean_files_save
2350 # Check that the compiler produces executables we can run. If not, either
2351 # the compiler is broken, or we cross compile.
2352 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2353 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2354 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2355 echo "${ECHO_T}$cross_compiling" >&6; }
2357 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2358 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2359 if { (ac_try="$ac_link"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_link") 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2370 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2371 # work properly (i.e., refer to `conftest.exe'), while it won't with
2372 # `rm'.
2373 for ac_file in conftest.exe conftest conftest.*; do
2374 test -f "$ac_file" || continue
2375 case $ac_file in
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 break;;
2379 * ) break;;
2380 esac
2381 done
2382 else
2383 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }
2390 rm -f conftest$ac_cv_exeext
2391 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2396 ac_exeext=$EXEEXT
2397 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2399 if test "${ac_cv_objext+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 cat >conftest.$ac_ext <<_ACEOF
2403 /* confdefs.h. */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2410 main ()
2414 return 0;
2416 _ACEOF
2417 rm -f conftest.o conftest.obj
2418 if { (ac_try="$ac_compile"
2419 case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 for ac_file in conftest.o conftest.obj conftest.*; do
2429 test -f "$ac_file" || continue;
2430 case $ac_file in
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2433 break;;
2434 esac
2435 done
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2443 See \`config.log' for more details." >&2;}
2444 { (exit 1); exit 1; }; }
2447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2449 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2450 echo "${ECHO_T}$ac_cv_objext" >&6; }
2451 OBJEXT=$ac_cv_objext
2452 ac_objext=$OBJEXT
2453 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2455 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2466 main ()
2468 #ifndef __GNUC__
2469 choke me
2470 #endif
2473 return 0;
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (ac_try="$ac_compile"
2478 case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_compile") 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } && {
2490 test -z "$ac_c_werror_flag" ||
2491 test ! -s conftest.err
2492 } && test -s conftest.$ac_objext; then
2493 ac_compiler_gnu=yes
2494 else
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 ac_compiler_gnu=no
2501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2505 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2506 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2507 GCC=`test $ac_compiler_gnu = yes && echo yes`
2508 ac_test_CFLAGS=${CFLAGS+set}
2509 ac_save_CFLAGS=$CFLAGS
2510 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2511 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_cc_g+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 ac_save_c_werror_flag=$ac_c_werror_flag
2516 ac_c_werror_flag=yes
2517 ac_cv_prog_cc_g=no
2518 CFLAGS="-g"
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2527 main ()
2531 return 0;
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.$ac_objext; then
2551 ac_cv_prog_cc_g=yes
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 CFLAGS=""
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2595 CFLAGS="-g"
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2604 main ()
2608 return 0;
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>conftest.er1
2619 ac_status=$?
2620 grep -v '^ *+' conftest.er1 >conftest.err
2621 rm -f conftest.er1
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } && {
2625 test -z "$ac_c_werror_flag" ||
2626 test ! -s conftest.err
2627 } && test -s conftest.$ac_objext; then
2628 ac_cv_prog_cc_g=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_c_werror_flag=$ac_save_c_werror_flag
2645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2646 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2647 if test "$ac_test_CFLAGS" = set; then
2648 CFLAGS=$ac_save_CFLAGS
2649 elif test $ac_cv_prog_cc_g = yes; then
2650 if test "$GCC" = yes; then
2651 CFLAGS="-g -O2"
2652 else
2653 CFLAGS="-g"
2655 else
2656 if test "$GCC" = yes; then
2657 CFLAGS="-O2"
2658 else
2659 CFLAGS=
2662 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2663 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_cc_c89+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 ac_cv_prog_cc_c89=no
2668 ac_save_CC=$CC
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <stdarg.h>
2676 #include <stdio.h>
2677 #include <sys/types.h>
2678 #include <sys/stat.h>
2679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2680 struct buf { int x; };
2681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2682 static char *e (p, i)
2683 char **p;
2684 int i;
2686 return p[i];
2688 static char *f (char * (*g) (char **, int), char **p, ...)
2690 char *s;
2691 va_list v;
2692 va_start (v,p);
2693 s = g (p, va_arg (v,int));
2694 va_end (v);
2695 return s;
2698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2699 function prototypes and stuff, but not '\xHH' hex character constants.
2700 These don't provoke an error unfortunately, instead are silently treated
2701 as 'x'. The following induces an error, until -std is added to get
2702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2703 array size at least. It's necessary to write '\x00'==0 to get something
2704 that's true only with -std. */
2705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2708 inside strings and character constants. */
2709 #define FOO(x) 'x'
2710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712 int test (int i, double x);
2713 struct s1 {int (*f) (int a);};
2714 struct s2 {int (*f) (double a);};
2715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 int argc;
2717 char **argv;
2719 main ()
2721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 return 0;
2725 _ACEOF
2726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 CC="$ac_save_CC $ac_arg"
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } && {
2744 test -z "$ac_c_werror_flag" ||
2745 test ! -s conftest.err
2746 } && test -s conftest.$ac_objext; then
2747 ac_cv_prog_cc_c89=$ac_arg
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2755 rm -f core conftest.err conftest.$ac_objext
2756 test "x$ac_cv_prog_cc_c89" != "xno" && break
2757 done
2758 rm -f conftest.$ac_ext
2759 CC=$ac_save_CC
2762 # AC_CACHE_VAL
2763 case "x$ac_cv_prog_cc_c89" in
2765 { echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6; } ;;
2767 xno)
2768 { echo "$as_me:$LINENO: result: unsupported" >&5
2769 echo "${ECHO_T}unsupported" >&6; } ;;
2771 CC="$CC $ac_cv_prog_cc_c89"
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2774 esac
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2789 # On Suns, sometimes $CPP names a directory.
2790 if test -n "$CPP" && test -d "$CPP"; then
2791 CPP=
2793 if test -z "$CPP"; then
2794 if test "${ac_cv_prog_CPP+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 # Double quotes because CPP needs to be expanded
2798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2800 ac_preproc_ok=false
2801 for ac_c_preproc_warn_flag in '' yes
2803 # Use a header file that comes with gcc, so configuring glibc
2804 # with a fresh cross-compiler works.
2805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2806 # <limits.h> exists even on freestanding compilers.
2807 # On the NeXT, cc -E runs the code through the compiler's parser,
2808 # not just through cpp. "Syntax error" is here to catch this case.
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2820 Syntax error
2821 _ACEOF
2822 if { (ac_try="$ac_cpp conftest.$ac_ext"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null && {
2835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2836 test ! -s conftest.err
2837 }; then
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # Broken: fails on valid input.
2844 continue
2847 rm -f conftest.err conftest.$ac_ext
2849 # OK, works on sane cases. Now check whether nonexistent headers
2850 # can be detected and how.
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h. */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 #include <ac_nonexistent.h>
2858 _ACEOF
2859 if { (ac_try="$ac_cpp conftest.$ac_ext"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } >/dev/null && {
2872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2873 test ! -s conftest.err
2874 }; then
2875 # Broken: success on invalid input.
2876 continue
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 # Passes both tests.
2882 ac_preproc_ok=:
2883 break
2886 rm -f conftest.err conftest.$ac_ext
2888 done
2889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2890 rm -f conftest.err conftest.$ac_ext
2891 if $ac_preproc_ok; then
2892 break
2895 done
2896 ac_cv_prog_CPP=$CPP
2899 CPP=$ac_cv_prog_CPP
2900 else
2901 ac_cv_prog_CPP=$CPP
2903 { echo "$as_me:$LINENO: result: $CPP" >&5
2904 echo "${ECHO_T}$CPP" >&6; }
2905 ac_preproc_ok=false
2906 for ac_c_preproc_warn_flag in '' yes
2908 # Use a header file that comes with gcc, so configuring glibc
2909 # with a fresh cross-compiler works.
2910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2911 # <limits.h> exists even on freestanding compilers.
2912 # On the NeXT, cc -E runs the code through the compiler's parser,
2913 # not just through cpp. "Syntax error" is here to catch this case.
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #ifdef __STDC__
2921 # include <limits.h>
2922 #else
2923 # include <assert.h>
2924 #endif
2925 Syntax error
2926 _ACEOF
2927 if { (ac_try="$ac_cpp conftest.$ac_ext"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } >/dev/null && {
2940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 }; then
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Broken: fails on valid input.
2949 continue
2952 rm -f conftest.err conftest.$ac_ext
2954 # OK, works on sane cases. Now check whether nonexistent headers
2955 # can be detected and how.
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include <ac_nonexistent.h>
2963 _ACEOF
2964 if { (ac_try="$ac_cpp conftest.$ac_ext"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null && {
2977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2978 test ! -s conftest.err
2979 }; then
2980 # Broken: success on invalid input.
2981 continue
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 # Passes both tests.
2987 ac_preproc_ok=:
2988 break
2991 rm -f conftest.err conftest.$ac_ext
2993 done
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2998 else
2999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3014 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3015 if test "${ac_cv_path_GREP+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 # Extract the first word of "grep ggrep" to use in msg output
3019 if test -z "$GREP"; then
3020 set dummy grep ggrep; ac_prog_name=$2
3021 if test "${ac_cv_path_GREP+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 ac_path_GREP_found=false
3025 # Loop through the user's path and test for each of PROGNAME-LIST
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in grep ggrep; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3034 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3035 # Check for GNU ac_path_GREP and select it if it is found.
3036 # Check for GNU $ac_path_GREP
3037 case `"$ac_path_GREP" --version 2>&1` in
3038 *GNU*)
3039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3041 ac_count=0
3042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3043 while :
3045 cat "conftest.in" "conftest.in" >"conftest.tmp"
3046 mv "conftest.tmp" "conftest.in"
3047 cp "conftest.in" "conftest.nl"
3048 echo 'GREP' >> "conftest.nl"
3049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3051 ac_count=`expr $ac_count + 1`
3052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3053 # Best one so far, save it but keep looking for a better one
3054 ac_cv_path_GREP="$ac_path_GREP"
3055 ac_path_GREP_max=$ac_count
3057 # 10*(2^10) chars as input seems more than enough
3058 test $ac_count -gt 10 && break
3059 done
3060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3061 esac
3064 $ac_path_GREP_found && break 3
3065 done
3066 done
3068 done
3069 IFS=$as_save_IFS
3074 GREP="$ac_cv_path_GREP"
3075 if test -z "$GREP"; then
3076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3078 { (exit 1); exit 1; }; }
3081 else
3082 ac_cv_path_GREP=$GREP
3087 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3088 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3089 GREP="$ac_cv_path_GREP"
3092 { echo "$as_me:$LINENO: checking for egrep" >&5
3093 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3094 if test "${ac_cv_path_EGREP+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3098 then ac_cv_path_EGREP="$GREP -E"
3099 else
3100 # Extract the first word of "egrep" to use in msg output
3101 if test -z "$EGREP"; then
3102 set dummy egrep; ac_prog_name=$2
3103 if test "${ac_cv_path_EGREP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 ac_path_EGREP_found=false
3107 # Loop through the user's path and test for each of PROGNAME-LIST
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in egrep; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3116 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3117 # Check for GNU ac_path_EGREP and select it if it is found.
3118 # Check for GNU $ac_path_EGREP
3119 case `"$ac_path_EGREP" --version 2>&1` in
3120 *GNU*)
3121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3123 ac_count=0
3124 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3125 while :
3127 cat "conftest.in" "conftest.in" >"conftest.tmp"
3128 mv "conftest.tmp" "conftest.in"
3129 cp "conftest.in" "conftest.nl"
3130 echo 'EGREP' >> "conftest.nl"
3131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3133 ac_count=`expr $ac_count + 1`
3134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3135 # Best one so far, save it but keep looking for a better one
3136 ac_cv_path_EGREP="$ac_path_EGREP"
3137 ac_path_EGREP_max=$ac_count
3139 # 10*(2^10) chars as input seems more than enough
3140 test $ac_count -gt 10 && break
3141 done
3142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3143 esac
3146 $ac_path_EGREP_found && break 3
3147 done
3148 done
3150 done
3151 IFS=$as_save_IFS
3156 EGREP="$ac_cv_path_EGREP"
3157 if test -z "$EGREP"; then
3158 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3159 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3160 { (exit 1); exit 1; }; }
3163 else
3164 ac_cv_path_EGREP=$EGREP
3170 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3171 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3172 EGREP="$ac_cv_path_EGREP"
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3182 _ACEOF
3183 rm -f -r conftest*
3184 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3185 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3186 if test "${ac_cv_search_strerror+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 ac_func_search_save_LIBS=$LIBS
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3197 /* Override any GCC internal prototype to avoid an error.
3198 Use char because int might match the return type of a GCC
3199 builtin and then its argument prototype would still apply. */
3200 #ifdef __cplusplus
3201 extern "C"
3202 #endif
3203 char strerror ();
3205 main ()
3207 return strerror ();
3209 return 0;
3211 _ACEOF
3212 for ac_lib in '' cposix; do
3213 if test -z "$ac_lib"; then
3214 ac_res="none required"
3215 else
3216 ac_res=-l$ac_lib
3217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3219 rm -f conftest.$ac_objext conftest$ac_exeext
3220 if { (ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_link") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest$ac_exeext &&
3236 $as_test_x conftest$ac_exeext; then
3237 ac_cv_search_strerror=$ac_res
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3246 conftest$ac_exeext
3247 if test "${ac_cv_search_strerror+set}" = set; then
3248 break
3250 done
3251 if test "${ac_cv_search_strerror+set}" = set; then
3253 else
3254 ac_cv_search_strerror=no
3256 rm conftest.$ac_ext
3257 LIBS=$ac_func_search_save_LIBS
3259 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3260 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3261 ac_res=$ac_cv_search_strerror
3262 if test "$ac_res" != no; then
3263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3266 for ac_prog in gawk mawk nawk awk
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_AWK+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_AWK="$ac_prog"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3291 IFS=$as_save_IFS
3295 AWK=$ac_cv_prog_AWK
3296 if test -n "$AWK"; then
3297 { echo "$as_me:$LINENO: result: $AWK" >&5
3298 echo "${ECHO_T}$AWK" >&6; }
3299 else
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3305 test -n "$AWK" && break
3306 done
3308 # Extract the first word of "strip", so it can be a program name with args.
3309 set dummy strip; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_STRIP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$STRIP"; then
3316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_STRIP="strip"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3333 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3336 STRIP=$ac_cv_prog_STRIP
3337 if test -n "$STRIP"; then
3338 { echo "$as_me:$LINENO: result: $STRIP" >&5
3339 echo "${ECHO_T}$STRIP" >&6; }
3340 else
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
3349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdlib.h>
3361 #include <stdarg.h>
3362 #include <string.h>
3363 #include <float.h>
3366 main ()
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_header_stdc=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 ac_cv_header_stdc=no
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 if test $ac_cv_header_stdc = yes; then
3401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <string.h>
3410 _ACEOF
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 $EGREP "memchr" >/dev/null 2>&1; then
3414 else
3415 ac_cv_header_stdc=no
3417 rm -f -r conftest*
3421 if test $ac_cv_header_stdc = yes; then
3422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include <stdlib.h>
3431 _ACEOF
3432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433 $EGREP "free" >/dev/null 2>&1; then
3435 else
3436 ac_cv_header_stdc=no
3438 rm -f -r conftest*
3442 if test $ac_cv_header_stdc = yes; then
3443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3444 if test "$cross_compiling" = yes; then
3446 else
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include <ctype.h>
3454 #include <stdlib.h>
3455 #if ((' ' & 0x0FF) == 0x020)
3456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3458 #else
3459 # define ISLOWER(c) \
3460 (('a' <= (c) && (c) <= 'i') \
3461 || ('j' <= (c) && (c) <= 'r') \
3462 || ('s' <= (c) && (c) <= 'z'))
3463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3464 #endif
3466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3468 main ()
3470 int i;
3471 for (i = 0; i < 256; i++)
3472 if (XOR (islower (i), ISLOWER (i))
3473 || toupper (i) != TOUPPER (i))
3474 return 2;
3475 return 0;
3477 _ACEOF
3478 rm -f conftest$ac_exeext
3479 if { (ac_try="$ac_link"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_link") 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3489 { (case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3499 else
3500 echo "$as_me: program exited with status $ac_status" >&5
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 ( exit $ac_status )
3505 ac_cv_header_stdc=no
3507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3515 if test $ac_cv_header_stdc = yes; then
3517 cat >>confdefs.h <<\_ACEOF
3518 #define STDC_HEADERS 1
3519 _ACEOF
3523 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3524 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3525 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 #include <sys/wait.h>
3536 #ifndef WEXITSTATUS
3537 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3538 #endif
3539 #ifndef WIFEXITED
3540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3541 #endif
3544 main ()
3546 int s;
3547 wait (&s);
3548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3550 return 0;
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (ac_try="$ac_compile"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_cv_header_sys_wait_h=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 ac_cv_header_sys_wait_h=no
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3582 if test $ac_cv_header_sys_wait_h = yes; then
3584 cat >>confdefs.h <<\_ACEOF
3585 #define HAVE_SYS_WAIT_H 1
3586 _ACEOF
3591 if test -z "$CFLAGS"; then
3592 CFLAGS="-O"
3593 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3595 if test "$GCC" = yes; then
3596 gccversion=`"$CC" -dumpversion`
3597 if test "x$gccversion" = "x"; then
3598 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3600 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3601 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3602 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3603 else
3604 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3605 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3606 CFLAGS="$CFLAGS -fno-strength-reduce"
3611 if test "$cross_compiling" = yes; then
3612 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3613 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3616 test "$GCC" = yes && CPP_MM=M;
3618 if test -f ./toolcheck; then
3619 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3620 echo "$as_me: checking for buggy tools..." >&6;}
3621 sh ./toolcheck 1>&6
3624 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3626 { echo "$as_me:$LINENO: checking for BeOS" >&5
3627 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3628 case `uname` in
3629 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3630 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3631 echo "${ECHO_T}yes" >&6; };;
3632 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6; };;
3634 esac
3636 { echo "$as_me:$LINENO: checking for QNX" >&5
3637 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3638 case `uname` in
3639 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3640 test -z "$with_x" && with_x=no
3641 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6; };;
3643 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6; };;
3645 esac
3647 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3648 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3649 if test "`(uname) 2>/dev/null`" = Darwin; then
3650 { echo "$as_me:$LINENO: result: yes" >&5
3651 echo "${ECHO_T}yes" >&6; }
3653 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3654 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3655 # Check whether --enable-darwin was given.
3656 if test "${enable_darwin+set}" = set; then
3657 enableval=$enable_darwin;
3658 else
3659 enable_darwin="yes"
3662 if test "$enable_darwin" = "yes"; then
3663 { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3665 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3666 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3667 if test -f os_macosx.c; then
3668 { echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6; }
3670 else
3671 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3672 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3673 enable_darwin=no
3675 else
3676 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3677 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3681 { echo "$as_me:$LINENO: checking --with-macsdk argument" >&5
3682 echo $ECHO_N "checking --with-macsdk argument... $ECHO_C" >&6; }
3684 # Check whether --with-macsdk was given.
3685 if test "${with_macsdk+set}" = set; then
3686 withval=$with_macsdk; MACSDK="$withval"; { echo "$as_me:$LINENO: result: $MACSDK" >&5
3687 echo "${ECHO_T}$MACSDK" >&6; }
3688 else
3689 MACSDK=""; { echo "$as_me:$LINENO: result: using default" >&5
3690 echo "${ECHO_T}using default" >&6; }
3694 if test -n "$MACSDK"; then
3695 { echo "$as_me:$LINENO: checking if SDK is supported" >&5
3696 echo $ECHO_N "checking if SDK is supported... $ECHO_C" >&6; }
3697 save_cflags="$CFLAGS"
3698 save_ldflags="$LDFLAGS"
3699 sdkflags="/Developer/SDKs/MacOSX$MACSDK"
3700 if test "x$MACSDK" = "x10.4"; then
3701 sdkflags="$sdkflags""u"
3703 sdkflags="$sdkflags.sdk -mmacosx-version-min=$MACSDK"
3704 CFLAGS="$CFLAGS -isysroot $sdkflags"
3705 LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags"
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h. */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 rm -f conftest.$ac_objext conftest$ac_exeext
3722 if { (ac_try="$ac_link"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_link") 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && {
3735 test -z "$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 } && test -s conftest$ac_exeext &&
3738 $as_test_x conftest$ac_exeext; then
3739 { echo "$as_me:$LINENO: result: yes" >&5
3740 echo "${ECHO_T}yes" >&6; }
3741 XCODEFLAGS="$XCODEFLAGS -sdk macosx$MACSDK MACOSX_DEPLOYMENT_TARGET=$MACSDK"
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 { echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6; }
3748 MACSDK=""
3749 CFLAGS="$save_cflags"
3750 LDFLAGS="$save_ldflags"
3753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3754 conftest$ac_exeext conftest.$ac_ext
3758 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3759 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3761 # Check whether --with-macarchs was given.
3762 if test "${with_macarchs+set}" = set; then
3763 withval=$with_macarchs; ARCHS="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3764 echo "${ECHO_T}$ARCHS" >&6; }
3765 else
3766 ARCHS=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3767 echo "${ECHO_T}defaulting to native arch" >&6; }
3771 if test -n "$ARCHS"; then
3772 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3773 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3774 save_cflags="$CFLAGS"
3775 save_ldflags="$LDFLAGS"
3776 archflags=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3777 CFLAGS="$CFLAGS $archflags"
3778 LDFLAGS="$LDFLAGS $archflags"
3779 cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h. */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3787 main ()
3791 return 0;
3793 _ACEOF
3794 rm -f conftest.$ac_objext conftest$ac_exeext
3795 if { (ac_try="$ac_link"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_link") 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest$ac_exeext &&
3811 $as_test_x conftest$ac_exeext; then
3812 { echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6; }
3814 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3820 echo "${ECHO_T}no, will build for native arch only" >&6; }
3821 ARCHS=""
3822 CFLAGS="$save_cflags"
3823 LDFLAGS="$save_ldflags"
3826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3827 conftest$ac_exeext conftest.$ac_ext
3831 if test "$enable_darwin" = "yes"; then
3832 MACOSX=yes
3833 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3834 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3835 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 else
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h. */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862 $ac_includes_default
3864 #include <$ac_header>
3865 _ACEOF
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3883 eval "$as_ac_Header=yes"
3884 else
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3888 eval "$as_ac_Header=no"
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_res=`eval echo '${'$as_ac_Header'}'`
3894 { echo "$as_me:$LINENO: result: $ac_res" >&5
3895 echo "${ECHO_T}$ac_res" >&6; }
3896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3897 cat >>confdefs.h <<_ACEOF
3898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3899 _ACEOF
3903 done
3906 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3907 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3908 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3909 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3913 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3914 else
3915 # Is the header compilable?
3916 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3917 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h. */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 $ac_includes_default
3925 #include <Carbon/Carbon.h>
3926 _ACEOF
3927 rm -f conftest.$ac_objext
3928 if { (ac_try="$ac_compile"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 ac_header_compiler=yes
3945 else
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_header_compiler=no
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3954 echo "${ECHO_T}$ac_header_compiler" >&6; }
3956 # Is the header present?
3957 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3958 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
3959 cat >conftest.$ac_ext <<_ACEOF
3960 /* confdefs.h. */
3961 _ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965 #include <Carbon/Carbon.h>
3966 _ACEOF
3967 if { (ac_try="$ac_cpp conftest.$ac_ext"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3974 ac_status=$?
3975 grep -v '^ *+' conftest.er1 >conftest.err
3976 rm -f conftest.er1
3977 cat conftest.err >&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } >/dev/null && {
3980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3982 }; then
3983 ac_header_preproc=yes
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 ac_header_preproc=no
3991 rm -f conftest.err conftest.$ac_ext
3992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3993 echo "${ECHO_T}$ac_header_preproc" >&6; }
3995 # So? What about this header?
3996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3997 yes:no: )
3998 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3999 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4000 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4001 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4002 ac_header_preproc=yes
4004 no:yes:* )
4005 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4006 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4008 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4010 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4011 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4012 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4013 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4014 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4015 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4016 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4019 esac
4020 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4021 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4022 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4027 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4028 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4031 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4032 CARBON=yes
4037 SAVE_CPPFLAGS=$CPPFLAGS
4038 SAVE_CFLAGS=$CFLAGS
4039 CPPFLAGS="$CPPFLAGS -ObjC"
4040 CFLAGS="$CFLAGS -ObjC"
4041 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4042 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4043 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4044 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4048 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4049 else
4050 # Is the header compilable?
4051 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4052 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 $ac_includes_default
4060 #include <Cocoa/Cocoa.h>
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && {
4076 test -z "$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 } && test -s conftest.$ac_objext; then
4079 ac_header_compiler=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ac_header_compiler=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4089 echo "${ECHO_T}$ac_header_compiler" >&6; }
4091 # Is the header present?
4092 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4093 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <Cocoa/Cocoa.h>
4101 _ACEOF
4102 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null && {
4115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 }; then
4118 ac_header_preproc=yes
4119 else
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 ac_header_preproc=no
4126 rm -f conftest.err conftest.$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128 echo "${ECHO_T}$ac_header_preproc" >&6; }
4130 # So? What about this header?
4131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4132 yes:no: )
4133 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4134 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4136 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4137 ac_header_preproc=yes
4139 no:yes:* )
4140 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4141 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4143 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4145 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4147 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4149 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4151 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4154 esac
4155 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4156 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4157 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
4162 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4163 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4166 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4167 COCOA=yes
4171 CPPFLAGS=$SAVE_CPPFLAGS
4172 CFLAGS=$SAVE_CFLAGS
4174 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4175 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
4176 with_x=no
4180 else
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4188 if test "$cross_compiling" = no; then
4189 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4190 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4191 have_local_include=''
4192 have_local_lib=''
4194 # Check whether --with-local-dir was given.
4195 if test "${with_local_dir+set}" = set; then
4196 withval=$with_local_dir;
4197 local_dir="$withval"
4198 case "$withval" in
4199 */*) ;;
4201 # avoid adding local dir to LDFLAGS and CPPFLAGS
4202 have_local_dir=yes
4203 have_local_lib=yes
4205 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4206 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4207 { (exit 1); exit 1; }; } ;;
4208 esac
4209 { echo "$as_me:$LINENO: result: $local_dir" >&5
4210 echo "${ECHO_T}$local_dir" >&6; }
4212 else
4214 local_dir=/usr/local
4215 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4216 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4220 if test "$GCC" = yes -a "$local_dir" != no; then
4221 echo 'void f(){}' > conftest.c
4222 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4223 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4224 rm -f conftest.c conftest.o
4226 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4227 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4228 if test "$tt" = "$LDFLAGS"; then
4229 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4232 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4233 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4234 if test "$tt" = "$CPPFLAGS"; then
4235 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4240 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4241 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4243 # Check whether --with-vim-name was given.
4244 if test "${with_vim_name+set}" = set; then
4245 withval=$with_vim_name; VIMNAME="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4246 echo "${ECHO_T}$VIMNAME" >&6; }
4247 else
4248 VIMNAME="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4249 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4253 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4254 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4256 # Check whether --with-ex-name was given.
4257 if test "${with_ex_name+set}" = set; then
4258 withval=$with_ex_name; EXNAME="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4259 echo "${ECHO_T}$EXNAME" >&6; }
4260 else
4261 EXNAME="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4262 echo "${ECHO_T}Defaulting to ex" >&6; }
4266 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4267 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4269 # Check whether --with-view-name was given.
4270 if test "${with_view_name+set}" = set; then
4271 withval=$with_view_name; VIEWNAME="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4272 echo "${ECHO_T}$VIEWNAME" >&6; }
4273 else
4274 VIEWNAME="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4275 echo "${ECHO_T}Defaulting to view" >&6; }
4280 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4281 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4283 # Check whether --with-global-runtime was given.
4284 if test "${with_global_runtime+set}" = set; then
4285 withval=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4286 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4287 #define RUNTIME_GLOBAL "$withval"
4288 _ACEOF
4290 else
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4296 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4297 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4299 # Check whether --with-modified-by was given.
4300 if test "${with_modified_by+set}" = set; then
4301 withval=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4302 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4303 #define MODIFIED_BY "$withval"
4304 _ACEOF
4306 else
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4313 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h. */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4322 main ()
4324 /* TryCompile function for CharSet.
4325 Treat any failure as ASCII for compatibility with existing art.
4326 Use compile-time rather than run-time tests for cross-compiler
4327 tolerance. */
4328 #if '0'!=240
4329 make an error "Character set is not EBCDIC"
4330 #endif
4332 return 0;
4334 _ACEOF
4335 rm -f conftest.$ac_objext
4336 if { (ac_try="$ac_compile"
4337 case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340 esac
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_compile") 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && {
4349 test -z "$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 } && test -s conftest.$ac_objext; then
4352 # TryCompile action if true
4353 cf_cv_ebcdic=yes
4354 else
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # TryCompile action if false
4359 cf_cv_ebcdic=no
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 # end of TryCompile ])
4364 # end of CacheVal CvEbcdic
4365 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4366 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4367 case "$cf_cv_ebcdic" in #(vi
4368 yes) cat >>confdefs.h <<\_ACEOF
4369 #define EBCDIC 1
4370 _ACEOF
4372 line_break='"\\n"'
4374 *) line_break='"\\012"';;
4375 esac
4378 if test "$cf_cv_ebcdic" = "yes"; then
4379 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4380 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4381 case `uname` in
4382 OS/390) OS390Unix="yes";
4383 if test "$CC" = "cc"; then
4384 ccm="$_CC_CCMODE"
4385 ccn="CC"
4386 else
4387 if test "$CC" = "c89"; then
4388 ccm="$_CC_C89MODE"
4389 ccn="C89"
4390 else
4391 ccm=1
4394 if test "$ccm" != "1"; then
4395 echo ""
4396 echo "------------------------------------------"
4397 echo " On OS/390 Unix, the environment variable"
4398 echo " __CC_${ccn}MODE must be set to \"1\"!"
4399 echo " Do:"
4400 echo " export _CC_${ccn}MODE=1"
4401 echo " and then call configure again."
4402 echo "------------------------------------------"
4403 exit 1
4405 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4406 { echo "$as_me:$LINENO: result: yes" >&5
4407 echo "${ECHO_T}yes" >&6; }
4409 *) OS390Unix="no";
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4413 esac
4416 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4417 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4418 # Check whether --enable-selinux was given.
4419 if test "${enable_selinux+set}" = set; then
4420 enableval=$enable_selinux;
4421 else
4422 enable_selinux="yes"
4425 if test "$enable_selinux" = "yes"; then
4426 { echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6; }
4428 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4429 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4430 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 ac_check_lib_save_LIBS=$LIBS
4434 LIBS="-lselinux $LIBS"
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4442 /* Override any GCC internal prototype to avoid an error.
4443 Use char because int might match the return type of a GCC
4444 builtin and then its argument prototype would still apply. */
4445 #ifdef __cplusplus
4446 extern "C"
4447 #endif
4448 char is_selinux_enabled ();
4450 main ()
4452 return is_selinux_enabled ();
4454 return 0;
4456 _ACEOF
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (ac_try="$ac_link"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_link") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && {
4471 test -z "$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 } && test -s conftest$ac_exeext &&
4474 $as_test_x conftest$ac_exeext; then
4475 ac_cv_lib_selinux_is_selinux_enabled=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_lib_selinux_is_selinux_enabled=no
4483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4484 conftest$ac_exeext conftest.$ac_ext
4485 LIBS=$ac_check_lib_save_LIBS
4487 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4488 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4489 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4490 LIBS="$LIBS -lselinux"
4491 cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_SELINUX 1
4493 _ACEOF
4497 else
4498 { echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6; }
4503 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4504 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4506 # Check whether --with-features was given.
4507 if test "${with_features+set}" = set; then
4508 withval=$with_features; features="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4509 echo "${ECHO_T}$features" >&6; }
4510 else
4511 features="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4512 echo "${ECHO_T}Defaulting to normal" >&6; }
4516 dovimdiff=""
4517 dogvimdiff=""
4518 case "$features" in
4519 tiny) cat >>confdefs.h <<\_ACEOF
4520 #define FEAT_TINY 1
4521 _ACEOF
4523 small) cat >>confdefs.h <<\_ACEOF
4524 #define FEAT_SMALL 1
4525 _ACEOF
4527 normal) cat >>confdefs.h <<\_ACEOF
4528 #define FEAT_NORMAL 1
4529 _ACEOF
4530 dovimdiff="installvimdiff";
4531 dogvimdiff="installgvimdiff" ;;
4532 big) cat >>confdefs.h <<\_ACEOF
4533 #define FEAT_BIG 1
4534 _ACEOF
4535 dovimdiff="installvimdiff";
4536 dogvimdiff="installgvimdiff" ;;
4537 huge) cat >>confdefs.h <<\_ACEOF
4538 #define FEAT_HUGE 1
4539 _ACEOF
4540 dovimdiff="installvimdiff";
4541 dogvimdiff="installgvimdiff" ;;
4542 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4543 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4544 esac
4549 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4550 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4552 # Check whether --with-compiledby was given.
4553 if test "${with_compiledby+set}" = set; then
4554 withval=$with_compiledby; compiledby="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4555 echo "${ECHO_T}$withval" >&6; }
4556 else
4557 compiledby=""; { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4563 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4564 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4565 # Check whether --enable-xsmp was given.
4566 if test "${enable_xsmp+set}" = set; then
4567 enableval=$enable_xsmp;
4568 else
4569 enable_xsmp="yes"
4573 if test "$enable_xsmp" = "yes"; then
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4577 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4578 # Check whether --enable-xsmp-interact was given.
4579 if test "${enable_xsmp_interact+set}" = set; then
4580 enableval=$enable_xsmp_interact;
4581 else
4582 enable_xsmp_interact="yes"
4585 if test "$enable_xsmp_interact" = "yes"; then
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 cat >>confdefs.h <<\_ACEOF
4589 #define USE_XSMP_INTERACT 1
4590 _ACEOF
4592 else
4593 { echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6; }
4596 else
4597 { echo "$as_me:$LINENO: result: yes" >&5
4598 echo "${ECHO_T}yes" >&6; }
4601 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4602 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4603 # Check whether --enable-mzschemeinterp was given.
4604 if test "${enable_mzschemeinterp+set}" = set; then
4605 enableval=$enable_mzschemeinterp;
4606 else
4607 enable_mzschemeinterp="no"
4610 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4611 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4613 if test "$enable_mzschemeinterp" = "yes"; then
4616 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4617 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4619 # Check whether --with-plthome was given.
4620 if test "${with_plthome+set}" = set; then
4621 withval=$with_plthome; with_plthome="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4622 echo "${ECHO_T}$with_plthome" >&6; }
4623 else
4624 with_plthome="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4625 echo "${ECHO_T}\"no\"" >&6; }
4629 if test "X$with_plthome" != "X"; then
4630 vi_cv_path_mzscheme_pfx="$with_plthome"
4631 else
4632 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4633 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4634 if test "X$PLTHOME" != "X"; then
4635 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4636 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4637 vi_cv_path_mzscheme_pfx="$PLTHOME"
4638 else
4639 { echo "$as_me:$LINENO: result: not set" >&5
4640 echo "${ECHO_T}not set" >&6; }
4641 # Extract the first word of "mzscheme", so it can be a program name with args.
4642 set dummy mzscheme; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648 case $vi_cv_path_mzscheme in
4649 [\\/]* | ?:[\\/]*)
4650 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4669 esac
4671 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4672 if test -n "$vi_cv_path_mzscheme"; then
4673 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4674 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4675 else
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4682 if test "X$vi_cv_path_mzscheme" != "X"; then
4683 lsout=`ls -l $vi_cv_path_mzscheme`
4684 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4685 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4689 if test "X$vi_cv_path_mzscheme" != "X"; then
4690 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4691 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4692 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 echo "(display (simplify-path \
4696 (build-path (call-with-values \
4697 (lambda () (split-path (find-system-path (quote exec-file)))) \
4698 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4699 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4700 sed -e 's+/$++'`
4702 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4703 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4704 rm -f mzdirs.scm
4709 SCHEME_INC=
4710 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4711 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4712 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4713 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4714 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4715 { echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6; }
4717 else
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4720 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4721 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4722 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4723 { echo "$as_me:$LINENO: result: yes" >&5
4724 echo "${ECHO_T}yes" >&6; }
4725 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4726 else
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4730 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4731 if test -f /usr/include/plt/scheme.h; then
4732 { echo "$as_me:$LINENO: result: yes" >&5
4733 echo "${ECHO_T}yes" >&6; }
4734 SCHEME_INC=/usr/include/plt
4735 else
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4738 vi_cv_path_mzscheme_pfx=
4744 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4745 if test "x$MACOSX" = "xyes"; then
4746 MZSCHEME_LIBS="-framework PLT_MzScheme"
4747 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4748 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4749 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4750 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4751 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4752 else
4753 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4754 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4755 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4756 else
4757 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4759 if test "$GCC" = yes; then
4760 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4761 elif test "`(uname) 2>/dev/null`" = SunOS &&
4762 uname -r | grep '^5' >/dev/null; then
4763 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4766 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4767 SCHEME_COLLECTS=lib/plt/
4769 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4770 MZSCHEME_EXTRA="mzscheme_base.c"
4771 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4772 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4774 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4775 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4776 MZSCHEME_SRC="if_mzsch.c"
4777 MZSCHEME_OBJ="objects/if_mzsch.o"
4778 MZSCHEME_PRO="if_mzsch.pro"
4779 cat >>confdefs.h <<\_ACEOF
4780 #define FEAT_MZSCHEME 1
4781 _ACEOF
4794 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4795 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4796 # Check whether --enable-perlinterp was given.
4797 if test "${enable_perlinterp+set}" = set; then
4798 enableval=$enable_perlinterp;
4799 else
4800 enable_perlinterp="no"
4803 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4804 echo "${ECHO_T}$enable_perlinterp" >&6; }
4805 if test "$enable_perlinterp" = "yes"; then
4807 # Extract the first word of "perl", so it can be a program name with args.
4808 set dummy perl; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 case $vi_cv_path_perl in
4815 [\\/]* | ?:[\\/]*)
4816 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4830 done
4831 done
4832 IFS=$as_save_IFS
4835 esac
4837 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4838 if test -n "$vi_cv_path_perl"; then
4839 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4840 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4841 else
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 if test "X$vi_cv_path_perl" != "X"; then
4848 { echo "$as_me:$LINENO: checking Perl version" >&5
4849 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4850 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4851 eval `$vi_cv_path_perl -V:usethreads`
4852 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4853 badthreads=no
4854 else
4855 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4856 eval `$vi_cv_path_perl -V:use5005threads`
4857 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4858 badthreads=no
4859 else
4860 badthreads=yes
4861 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4862 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4864 else
4865 badthreads=yes
4866 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4867 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4870 if test $badthreads = no; then
4871 { echo "$as_me:$LINENO: result: OK" >&5
4872 echo "${ECHO_T}OK" >&6; }
4873 eval `$vi_cv_path_perl -V:shrpenv`
4874 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4875 shrpenv=""
4877 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4879 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4880 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4881 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4882 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4883 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4884 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4885 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4887 if test "x$MACOSX" = "xyes"; then
4888 perllibs=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4889 perlcppflags=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4892 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4893 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4894 cflags_save=$CFLAGS
4895 libs_save=$LIBS
4896 ldflags_save=$LDFLAGS
4897 CFLAGS="$CFLAGS $perlcppflags"
4898 LIBS="$LIBS $perllibs"
4899 LDFLAGS="$perlldflags $LDFLAGS"
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4908 main ()
4912 return 0;
4914 _ACEOF
4915 rm -f conftest.$ac_objext conftest$ac_exeext
4916 if { (ac_try="$ac_link"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_link") 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } && {
4929 test -z "$ac_c_werror_flag" ||
4930 test ! -s conftest.err
4931 } && test -s conftest$ac_exeext &&
4932 $as_test_x conftest$ac_exeext; then
4933 { echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4940 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
4943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4944 conftest$ac_exeext conftest.$ac_ext
4945 CFLAGS=$cflags_save
4946 LIBS=$libs_save
4947 LDFLAGS=$ldflags_save
4948 if test $perl_ok = yes; then
4949 if test "X$perlcppflags" != "X"; then
4950 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4952 if test "X$perlldflags" != "X"; then
4953 LDFLAGS="$perlldflags $LDFLAGS"
4955 PERL_LIBS=$perllibs
4956 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4957 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4958 PERL_PRO="if_perl.pro if_perlsfio.pro"
4959 cat >>confdefs.h <<\_ACEOF
4960 #define FEAT_PERL 1
4961 _ACEOF
4965 else
4966 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4967 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4971 if test "x$MACOSX" = "xyes"; then
4972 dir=/System/Library/Perl
4973 darwindir=$dir/darwin
4974 if test -d $darwindir; then
4975 PERL=/usr/bin/perl
4976 else
4977 dir=/System/Library/Perl/5.8.1
4978 darwindir=$dir/darwin-thread-multi-2level
4979 if test -d $darwindir; then
4980 PERL=/usr/bin/perl
4983 if test -n "$PERL"; then
4984 PERL_DIR="$dir"
4985 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4986 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4987 PERL_LIBS="-L$darwindir/CORE -lperl"
4998 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4999 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
5000 # Check whether --enable-pythoninterp was given.
5001 if test "${enable_pythoninterp+set}" = set; then
5002 enableval=$enable_pythoninterp;
5003 else
5004 enable_pythoninterp="no"
5007 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5008 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5009 if test "$enable_pythoninterp" = "yes"; then
5010 # Extract the first word of "python", so it can be a program name with args.
5011 set dummy python; ac_word=$2
5012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5014 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 case $vi_cv_path_python in
5018 [\\/]* | ?:[\\/]*)
5019 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5033 done
5034 done
5035 IFS=$as_save_IFS
5038 esac
5040 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5041 if test -n "$vi_cv_path_python"; then
5042 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5043 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5044 else
5045 { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5050 if test "X$vi_cv_path_python" != "X"; then
5052 { echo "$as_me:$LINENO: checking Python version" >&5
5053 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5054 if test "${vi_cv_var_python_version+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 vi_cv_var_python_version=`
5058 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5061 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5062 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5064 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5065 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5066 if ${vi_cv_path_python} -c \
5067 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5068 then
5069 { echo "$as_me:$LINENO: result: yep" >&5
5070 echo "${ECHO_T}yep" >&6; }
5072 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5073 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5074 if test "${vi_cv_path_python_pfx+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 vi_cv_path_python_pfx=`
5078 ${vi_cv_path_python} -c \
5079 "import sys; print sys.prefix"`
5081 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5082 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5084 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5085 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5086 if test "${vi_cv_path_python_epfx+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089 vi_cv_path_python_epfx=`
5090 ${vi_cv_path_python} -c \
5091 "import sys; print sys.exec_prefix"`
5093 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5094 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5097 if test "${vi_cv_path_pythonpath+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 else
5100 vi_cv_path_pythonpath=`
5101 unset PYTHONPATH;
5102 ${vi_cv_path_python} -c \
5103 "import sys, string; print string.join(sys.path,':')"`
5109 # Check whether --with-python-config-dir was given.
5110 if test "${with_python_config_dir+set}" = set; then
5111 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5115 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5116 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5117 if test "${vi_cv_path_python_conf+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5121 vi_cv_path_python_conf=
5122 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5123 for subdir in lib64 lib share; do
5124 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5125 if test -d "$d" && test -f "$d/config.c"; then
5126 vi_cv_path_python_conf="$d"
5128 done
5129 done
5132 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5133 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5135 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5137 if test "X$PYTHON_CONFDIR" = "X"; then
5138 { echo "$as_me:$LINENO: result: can't find it!" >&5
5139 echo "${ECHO_T}can't find it!" >&6; }
5140 else
5142 if test "${vi_cv_path_python_plibs+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5146 pwd=`pwd`
5147 tmp_mkf="$pwd/config-PyMake$$"
5148 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5150 @echo "python_MODLIBS='$(MODLIBS)'"
5151 @echo "python_LIBS='$(LIBS)'"
5152 @echo "python_SYSLIBS='$(SYSLIBS)'"
5153 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5155 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5156 rm -f -- "${tmp_mkf}"
5157 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5158 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5159 vi_cv_path_python_plibs="-framework Python"
5160 else
5161 if test "${vi_cv_var_python_version}" = "1.4"; then
5162 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5163 else
5164 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5166 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5167 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5173 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5174 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5175 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5176 else
5177 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
5179 PYTHON_SRC="if_python.c"
5180 if test "x$MACOSX" = "xyes"; then
5181 PYTHON_OBJ="objects/if_python.o"
5182 else
5183 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5185 if test "${vi_cv_var_python_version}" = "1.4"; then
5186 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5188 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5190 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5191 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5192 threadsafe_flag=
5193 thread_lib=
5194 if test "`(uname) 2>/dev/null`" != Darwin; then
5195 test "$GCC" = yes && threadsafe_flag="-pthread"
5196 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5197 threadsafe_flag="-D_THREAD_SAFE"
5198 thread_lib="-pthread"
5201 libs_save_old=$LIBS
5202 if test -n "$threadsafe_flag"; then
5203 cflags_save=$CFLAGS
5204 CFLAGS="$CFLAGS $threadsafe_flag"
5205 LIBS="$LIBS $thread_lib"
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h. */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5214 main ()
5218 return 0;
5220 _ACEOF
5221 rm -f conftest.$ac_objext conftest$ac_exeext
5222 if { (ac_try="$ac_link"
5223 case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_link") 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } && {
5235 test -z "$ac_c_werror_flag" ||
5236 test ! -s conftest.err
5237 } && test -s conftest$ac_exeext &&
5238 $as_test_x conftest$ac_exeext; then
5239 { echo "$as_me:$LINENO: result: yes" >&5
5240 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }; LIBS=$libs_save_old
5250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5251 conftest$ac_exeext conftest.$ac_ext
5252 CFLAGS=$cflags_save
5253 else
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5258 if test -n "$MACSDK"; then
5259 PYTHON_CFLAGS=
5260 PYTHON_LIBS=-framework Python
5261 PYTHON_CONFDIR=
5262 PYTHON_GETPATH_CFLAGS=
5265 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5266 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5267 cflags_save=$CFLAGS
5268 libs_save=$LIBS
5269 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5270 LIBS="$LIBS $PYTHON_LIBS"
5271 cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h. */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5279 main ()
5283 return 0;
5285 _ACEOF
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (ac_try="$ac_link"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_link") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && {
5300 test -z "$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 } && test -s conftest$ac_exeext &&
5303 $as_test_x conftest$ac_exeext; then
5304 { echo "$as_me:$LINENO: result: yes" >&5
5305 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5306 else
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5311 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5315 conftest$ac_exeext conftest.$ac_ext
5316 CFLAGS=$cflags_save
5317 LIBS=$libs_save
5318 if test $python_ok = yes; then
5319 cat >>confdefs.h <<\_ACEOF
5320 #define FEAT_PYTHON 1
5321 _ACEOF
5323 else
5324 LIBS=$libs_save_old
5325 PYTHON_SRC=
5326 PYTHON_OBJ=
5327 PYTHON_LIBS=
5328 PYTHON_CFLAGS=
5332 else
5333 { echo "$as_me:$LINENO: result: too old" >&5
5334 echo "${ECHO_T}too old" >&6; }
5345 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5346 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5347 # Check whether --enable-tclinterp was given.
5348 if test "${enable_tclinterp+set}" = set; then
5349 enableval=$enable_tclinterp;
5350 else
5351 enable_tclinterp="no"
5354 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5355 echo "${ECHO_T}$enable_tclinterp" >&6; }
5357 if test "$enable_tclinterp" = "yes"; then
5359 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5360 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5362 # Check whether --with-tclsh was given.
5363 if test "${with_tclsh+set}" = set; then
5364 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5365 echo "${ECHO_T}$tclsh_name" >&6; }
5366 else
5367 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5371 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5372 set dummy $tclsh_name; ac_word=$2
5373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5375 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378 case $vi_cv_path_tcl in
5379 [\\/]* | ?:[\\/]*)
5380 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5394 done
5395 done
5396 IFS=$as_save_IFS
5399 esac
5401 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5402 if test -n "$vi_cv_path_tcl"; then
5403 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5404 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5405 else
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5413 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5414 tclsh_name="tclsh8.4"
5415 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5416 set dummy $tclsh_name; ac_word=$2
5417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422 case $vi_cv_path_tcl in
5423 [\\/]* | ?:[\\/]*)
5424 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 break 2
5438 done
5439 done
5440 IFS=$as_save_IFS
5443 esac
5445 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5446 if test -n "$vi_cv_path_tcl"; then
5447 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5448 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5449 else
5450 { echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6; }
5456 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5457 tclsh_name="tclsh8.2"
5458 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5459 set dummy $tclsh_name; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 else
5465 case $vi_cv_path_tcl in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5486 esac
5488 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5489 if test -n "$vi_cv_path_tcl"; then
5490 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5491 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5492 else
5493 { echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6; }
5499 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5500 tclsh_name="tclsh8.0"
5501 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5502 set dummy $tclsh_name; ac_word=$2
5503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508 case $vi_cv_path_tcl in
5509 [\\/]* | ?:[\\/]*)
5510 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 break 2
5524 done
5525 done
5526 IFS=$as_save_IFS
5529 esac
5531 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5532 if test -n "$vi_cv_path_tcl"; then
5533 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5534 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5535 else
5536 { echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6; }
5542 if test "X$vi_cv_path_tcl" = "X"; then
5543 tclsh_name="tclsh"
5544 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5545 set dummy $tclsh_name; ac_word=$2
5546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5548 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 case $vi_cv_path_tcl in
5552 [\\/]* | ?:[\\/]*)
5553 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5567 done
5568 done
5569 IFS=$as_save_IFS
5572 esac
5574 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5575 if test -n "$vi_cv_path_tcl"; then
5576 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5577 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5578 else
5579 { echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6; }
5585 if test "X$vi_cv_path_tcl" != "X"; then
5586 { echo "$as_me:$LINENO: checking Tcl version" >&5
5587 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5588 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5589 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5590 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5591 echo "${ECHO_T}$tclver - OK" >&6; };
5592 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
5594 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5595 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5596 if test "x$MACOSX" != "xyes"; then
5597 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5598 else
5599 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5601 TCL_INC=
5602 for try in $tclinc; do
5603 if test -f "$try/tcl.h"; then
5604 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5605 echo "${ECHO_T}$try/tcl.h" >&6; }
5606 TCL_INC=$try
5607 break
5609 done
5610 if test -z "$TCL_INC"; then
5611 { echo "$as_me:$LINENO: result: <not found>" >&5
5612 echo "${ECHO_T}<not found>" >&6; }
5613 SKIP_TCL=YES
5615 if test -z "$SKIP_TCL"; then
5616 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5617 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5618 if test "x$MACOSX" != "xyes"; then
5619 tclcnf=`echo $tclinc | sed s/include/lib/g`
5620 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5621 else
5622 tclcnf="/System/Library/Frameworks/Tcl.framework"
5624 for try in $tclcnf; do
5625 if test -f $try/tclConfig.sh; then
5626 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5627 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5628 . $try/tclConfig.sh
5629 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5630 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
5631 break
5633 done
5634 if test -z "$TCL_LIBS"; then
5635 { echo "$as_me:$LINENO: result: <not found>" >&5
5636 echo "${ECHO_T}<not found>" >&6; }
5637 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5638 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5639 tcllib=`echo $tclinc | sed s/include/lib/g`
5640 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5641 for ext in .so .a ; do
5642 for ver in "" $tclver ; do
5643 for try in $tcllib ; do
5644 trylib=tcl$ver$ext
5645 if test -f $try/lib$trylib ; then
5646 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5647 echo "${ECHO_T}$try/lib$trylib" >&6; }
5648 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5649 if test "`(uname) 2>/dev/null`" = SunOS &&
5650 uname -r | grep '^5' >/dev/null; then
5651 TCL_LIBS="$TCL_LIBS -R $try"
5653 break 3
5655 done
5656 done
5657 done
5658 if test -z "$TCL_LIBS"; then
5659 { echo "$as_me:$LINENO: result: <not found>" >&5
5660 echo "${ECHO_T}<not found>" >&6; }
5661 SKIP_TCL=YES
5664 if test -z "$SKIP_TCL"; then
5665 cat >>confdefs.h <<\_ACEOF
5666 #define FEAT_TCL 1
5667 _ACEOF
5669 TCL_SRC=if_tcl.c
5670 TCL_OBJ=objects/if_tcl.o
5671 TCL_PRO=if_tcl.pro
5672 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5675 else
5676 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5677 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5687 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5688 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5689 # Check whether --enable-rubyinterp was given.
5690 if test "${enable_rubyinterp+set}" = set; then
5691 enableval=$enable_rubyinterp;
5692 else
5693 enable_rubyinterp="no"
5696 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5697 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5698 if test "$enable_rubyinterp" = "yes"; then
5700 # Extract the first word of "ruby", so it can be a program name with args.
5701 set dummy ruby; ac_word=$2
5702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5704 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 else
5707 case $vi_cv_path_ruby in
5708 [\\/]* | ?:[\\/]*)
5709 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5723 done
5724 done
5725 IFS=$as_save_IFS
5728 esac
5730 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5731 if test -n "$vi_cv_path_ruby"; then
5732 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5733 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5734 else
5735 { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5740 if test "X$vi_cv_path_ruby" != "X"; then
5741 { echo "$as_me:$LINENO: checking Ruby version" >&5
5742 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5743 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5744 { echo "$as_me:$LINENO: result: OK" >&5
5745 echo "${ECHO_T}OK" >&6; }
5746 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5747 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5748 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5749 if test "X$rubyhdrdir" != "X"; then
5750 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5751 echo "${ECHO_T}$rubyhdrdir" >&6; }
5752 RUBY_CFLAGS="-I$rubyhdrdir"
5753 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5754 if test "X$rubylibs" != "X"; then
5755 RUBY_LIBS="$rubylibs"
5757 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5758 if test -f "$rubyhdrdir/$librubyarg"; then
5759 librubyarg="$rubyhdrdir/$librubyarg"
5760 else
5761 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5762 if test -d "/System/Library/Frameworks/Ruby.framework"; then
5763 RUBY_LIBS="-framework Ruby"
5764 RUBY_CFLAGS=
5765 librubyarg=
5766 elif test -f "$rubylibdir/$librubyarg"; then
5767 librubyarg="$rubylibdir/$librubyarg"
5768 elif test "$librubyarg" = "libruby.a"; then
5769 librubyarg="-lruby"
5770 else
5771 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5775 if test "X$librubyarg" != "X"; then
5776 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5778 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5779 if test "x$MACOSX" = "xyes"; then
5780 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch[^-]*//g'`
5782 if test "X$rubyldflags" != "X"; then
5783 LDFLAGS="$rubyldflags $LDFLAGS"
5785 RUBY_SRC="if_ruby.c"
5786 RUBY_OBJ="objects/if_ruby.o"
5787 RUBY_PRO="if_ruby.pro"
5789 cat >>confdefs.h <<\_ACEOF
5790 #define FEAT_RUBY 1
5791 _ACEOF
5793 else
5794 { echo "$as_me:$LINENO: result: not found" >&5
5795 echo "${ECHO_T}not found" >&6; }
5797 else
5798 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5799 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5809 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5810 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5811 # Check whether --enable-cscope was given.
5812 if test "${enable_cscope+set}" = set; then
5813 enableval=$enable_cscope;
5814 else
5815 enable_cscope="no"
5818 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5819 echo "${ECHO_T}$enable_cscope" >&6; }
5820 if test "$enable_cscope" = "yes"; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define FEAT_CSCOPE 1
5823 _ACEOF
5827 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5828 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5829 # Check whether --enable-workshop was given.
5830 if test "${enable_workshop+set}" = set; then
5831 enableval=$enable_workshop;
5832 else
5833 enable_workshop="no"
5836 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5837 echo "${ECHO_T}$enable_workshop" >&6; }
5838 if test "$enable_workshop" = "yes"; then
5839 cat >>confdefs.h <<\_ACEOF
5840 #define FEAT_SUN_WORKSHOP 1
5841 _ACEOF
5843 WORKSHOP_SRC="workshop.c integration.c"
5845 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5847 if test "${enable_gui-xxx}" = xxx; then
5848 enable_gui=motif
5852 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5853 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5854 # Check whether --enable-netbeans was given.
5855 if test "${enable_netbeans+set}" = set; then
5856 enableval=$enable_netbeans;
5857 else
5858 enable_netbeans="yes"
5861 if test "$enable_netbeans" = "yes"; then
5862 { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5865 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5866 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5867 if test "${ac_cv_lib_socket_socket+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870 ac_check_lib_save_LIBS=$LIBS
5871 LIBS="-lsocket $LIBS"
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5879 /* Override any GCC internal prototype to avoid an error.
5880 Use char because int might match the return type of a GCC
5881 builtin and then its argument prototype would still apply. */
5882 #ifdef __cplusplus
5883 extern "C"
5884 #endif
5885 char socket ();
5887 main ()
5889 return socket ();
5891 return 0;
5893 _ACEOF
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (ac_try="$ac_link"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_link") 2>conftest.er1
5902 ac_status=$?
5903 grep -v '^ *+' conftest.er1 >conftest.err
5904 rm -f conftest.er1
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest$ac_exeext &&
5911 $as_test_x conftest$ac_exeext; then
5912 ac_cv_lib_socket_socket=yes
5913 else
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cv_lib_socket_socket=no
5920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5921 conftest$ac_exeext conftest.$ac_ext
5922 LIBS=$ac_check_lib_save_LIBS
5924 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5925 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5926 if test $ac_cv_lib_socket_socket = yes; then
5927 cat >>confdefs.h <<_ACEOF
5928 #define HAVE_LIBSOCKET 1
5929 _ACEOF
5931 LIBS="-lsocket $LIBS"
5936 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5937 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5938 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941 ac_check_lib_save_LIBS=$LIBS
5942 LIBS="-lnsl $LIBS"
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5953 #ifdef __cplusplus
5954 extern "C"
5955 #endif
5956 char gethostbyname ();
5958 main ()
5960 return gethostbyname ();
5962 return 0;
5964 _ACEOF
5965 rm -f conftest.$ac_objext conftest$ac_exeext
5966 if { (ac_try="$ac_link"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_link") 2>conftest.er1
5973 ac_status=$?
5974 grep -v '^ *+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && {
5979 test -z "$ac_c_werror_flag" ||
5980 test ! -s conftest.err
5981 } && test -s conftest$ac_exeext &&
5982 $as_test_x conftest$ac_exeext; then
5983 ac_cv_lib_nsl_gethostbyname=yes
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_cv_lib_nsl_gethostbyname=no
5991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5992 conftest$ac_exeext conftest.$ac_ext
5993 LIBS=$ac_check_lib_save_LIBS
5995 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5996 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5997 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define HAVE_LIBNSL 1
6000 _ACEOF
6002 LIBS="-lnsl $LIBS"
6006 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6007 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6015 #include <stdio.h>
6016 #include <stdlib.h>
6017 #include <stdarg.h>
6018 #include <fcntl.h>
6019 #include <netdb.h>
6020 #include <netinet/in.h>
6021 #include <errno.h>
6022 #include <sys/types.h>
6023 #include <sys/socket.h>
6024 /* Check bitfields */
6025 struct nbbuf {
6026 unsigned int initDone:1;
6027 ushort signmaplen;
6031 main ()
6034 /* Check creating a socket. */
6035 struct sockaddr_in server;
6036 (void)socket(AF_INET, SOCK_STREAM, 0);
6037 (void)htons(100);
6038 (void)gethostbyname("microsoft.com");
6039 if (errno == ECONNREFUSED)
6040 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6043 return 0;
6045 _ACEOF
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6048 case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_link") 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest$ac_exeext &&
6063 $as_test_x conftest$ac_exeext; then
6064 { echo "$as_me:$LINENO: result: yes" >&5
6065 echo "${ECHO_T}yes" >&6; }
6066 else
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }; enable_netbeans="no"
6074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6075 conftest$ac_exeext conftest.$ac_ext
6076 else
6077 { echo "$as_me:$LINENO: result: yes" >&5
6078 echo "${ECHO_T}yes" >&6; }
6080 if test "$enable_netbeans" = "yes"; then
6081 cat >>confdefs.h <<\_ACEOF
6082 #define FEAT_NETBEANS_INTG 1
6083 _ACEOF
6085 NETBEANS_SRC="netbeans.c"
6087 NETBEANS_OBJ="objects/netbeans.o"
6091 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6092 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6093 # Check whether --enable-sniff was given.
6094 if test "${enable_sniff+set}" = set; then
6095 enableval=$enable_sniff;
6096 else
6097 enable_sniff="no"
6100 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6101 echo "${ECHO_T}$enable_sniff" >&6; }
6102 if test "$enable_sniff" = "yes"; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define FEAT_SNIFF 1
6105 _ACEOF
6107 SNIFF_SRC="if_sniff.c"
6109 SNIFF_OBJ="objects/if_sniff.o"
6113 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6114 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6115 # Check whether --enable-multibyte was given.
6116 if test "${enable_multibyte+set}" = set; then
6117 enableval=$enable_multibyte;
6118 else
6119 enable_multibyte="no"
6122 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6123 echo "${ECHO_T}$enable_multibyte" >&6; }
6124 if test "$enable_multibyte" = "yes"; then
6125 cat >>confdefs.h <<\_ACEOF
6126 #define FEAT_MBYTE 1
6127 _ACEOF
6131 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6132 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6133 # Check whether --enable-hangulinput was given.
6134 if test "${enable_hangulinput+set}" = set; then
6135 enableval=$enable_hangulinput;
6136 else
6137 enable_hangulinput="no"
6140 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6141 echo "${ECHO_T}$enable_hangulinput" >&6; }
6143 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6144 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6145 # Check whether --enable-xim was given.
6146 if test "${enable_xim+set}" = set; then
6147 enableval=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6148 echo "${ECHO_T}$enable_xim" >&6; }
6149 else
6150 enable_xim="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6151 echo "${ECHO_T}defaulting to auto" >&6; }
6155 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6156 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6157 # Check whether --enable-fontset was given.
6158 if test "${enable_fontset+set}" = set; then
6159 enableval=$enable_fontset;
6160 else
6161 enable_fontset="no"
6164 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6165 echo "${ECHO_T}$enable_fontset" >&6; }
6167 test -z "$with_x" && with_x=yes
6168 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6169 if test "$with_x" = no; then
6170 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6171 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6172 else
6174 # Extract the first word of "xmkmf", so it can be a program name with args.
6175 set dummy xmkmf; ac_word=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 case $xmkmfpath in
6182 [\\/]* | ?:[\\/]*)
6183 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6197 done
6198 done
6199 IFS=$as_save_IFS
6202 esac
6204 xmkmfpath=$ac_cv_path_xmkmfpath
6205 if test -n "$xmkmfpath"; then
6206 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6207 echo "${ECHO_T}$xmkmfpath" >&6; }
6208 else
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6215 { echo "$as_me:$LINENO: checking for X" >&5
6216 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6219 # Check whether --with-x was given.
6220 if test "${with_x+set}" = set; then
6221 withval=$with_x;
6224 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6225 if test "x$with_x" = xno; then
6226 # The user explicitly disabled X.
6227 have_x=disabled
6228 else
6229 case $x_includes,$x_libraries in #(
6230 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6231 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6232 { (exit 1); exit 1; }; };; #(
6233 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236 # One or both of the vars are not set, and there is no cached value.
6237 ac_x_includes=no ac_x_libraries=no
6238 rm -f -r conftest.dir
6239 if mkdir conftest.dir; then
6240 cd conftest.dir
6241 cat >Imakefile <<'_ACEOF'
6242 incroot:
6243 @echo incroot='${INCROOT}'
6244 usrlibdir:
6245 @echo usrlibdir='${USRLIBDIR}'
6246 libdir:
6247 @echo libdir='${LIBDIR}'
6248 _ACEOF
6249 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6251 for ac_var in incroot usrlibdir libdir; do
6252 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6253 done
6254 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6255 for ac_extension in a so sl dylib la dll; do
6256 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6257 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6258 ac_im_usrlibdir=$ac_im_libdir; break
6260 done
6261 # Screen out bogus values from the imake configuration. They are
6262 # bogus both because they are the default anyway, and because
6263 # using them would break gcc on systems where it needs fixed includes.
6264 case $ac_im_incroot in
6265 /usr/include) ac_x_includes= ;;
6266 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6267 esac
6268 case $ac_im_usrlibdir in
6269 /usr/lib | /lib) ;;
6270 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6271 esac
6273 cd ..
6274 rm -f -r conftest.dir
6277 # Standard set of common directories for X headers.
6278 # Check X11 before X11Rn because it is often a symlink to the current release.
6279 ac_x_header_dirs='
6280 /usr/X11/include
6281 /usr/X11R6/include
6282 /usr/X11R5/include
6283 /usr/X11R4/include
6285 /usr/include/X11
6286 /usr/include/X11R6
6287 /usr/include/X11R5
6288 /usr/include/X11R4
6290 /usr/local/X11/include
6291 /usr/local/X11R6/include
6292 /usr/local/X11R5/include
6293 /usr/local/X11R4/include
6295 /usr/local/include/X11
6296 /usr/local/include/X11R6
6297 /usr/local/include/X11R5
6298 /usr/local/include/X11R4
6300 /usr/X386/include
6301 /usr/x386/include
6302 /usr/XFree86/include/X11
6304 /usr/include
6305 /usr/local/include
6306 /usr/unsupported/include
6307 /usr/athena/include
6308 /usr/local/x11r5/include
6309 /usr/lpp/Xamples/include
6311 /usr/openwin/include
6312 /usr/openwin/share/include'
6314 if test "$ac_x_includes" = no; then
6315 # Guess where to find include files, by looking for Xlib.h.
6316 # First, try using that file with no special directory specified.
6317 cat >conftest.$ac_ext <<_ACEOF
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <X11/Xlib.h>
6324 _ACEOF
6325 if { (ac_try="$ac_cpp conftest.$ac_ext"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev/null && {
6338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 }; then
6341 # We can compile using X headers with no special include directory.
6342 ac_x_includes=
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 for ac_dir in $ac_x_header_dirs; do
6348 if test -r "$ac_dir/X11/Xlib.h"; then
6349 ac_x_includes=$ac_dir
6350 break
6352 done
6355 rm -f conftest.err conftest.$ac_ext
6356 fi # $ac_x_includes = no
6358 if test "$ac_x_libraries" = no; then
6359 # Check for the libraries.
6360 # See if we find them without any special options.
6361 # Don't add to $LIBS permanently.
6362 ac_save_LIBS=$LIBS
6363 LIBS="-lX11 $LIBS"
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <X11/Xlib.h>
6372 main ()
6374 XrmInitialize ()
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (ac_try="$ac_link"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_link") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest$ac_exeext &&
6396 $as_test_x conftest$ac_exeext; then
6397 LIBS=$ac_save_LIBS
6398 # We can link X programs with no special library path.
6399 ac_x_libraries=
6400 else
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6404 LIBS=$ac_save_LIBS
6405 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6407 # Don't even attempt the hair of trying to link an X program!
6408 for ac_extension in a so sl dylib la dll; do
6409 if test -r "$ac_dir/libX11.$ac_extension"; then
6410 ac_x_libraries=$ac_dir
6411 break 2
6413 done
6414 done
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418 conftest$ac_exeext conftest.$ac_ext
6419 fi # $ac_x_libraries = no
6421 case $ac_x_includes,$ac_x_libraries in #(
6422 no,* | *,no | *\'*)
6423 # Didn't find X, or a directory has "'" in its name.
6424 ac_cv_have_x="have_x=no";; #(
6426 # Record where we found X for the cache.
6427 ac_cv_have_x="have_x=yes\
6428 ac_x_includes='$ac_x_includes'\
6429 ac_x_libraries='$ac_x_libraries'"
6430 esac
6432 ;; #(
6433 *) have_x=yes;;
6434 esac
6435 eval "$ac_cv_have_x"
6436 fi # $with_x != no
6438 if test "$have_x" != yes; then
6439 { echo "$as_me:$LINENO: result: $have_x" >&5
6440 echo "${ECHO_T}$have_x" >&6; }
6441 no_x=yes
6442 else
6443 # If each of the values was on the command line, it overrides each guess.
6444 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6445 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6446 # Update the cache value to reflect the command line values.
6447 ac_cv_have_x="have_x=yes\
6448 ac_x_includes='$x_includes'\
6449 ac_x_libraries='$x_libraries'"
6450 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6451 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6454 if test "$no_x" = yes; then
6455 # Not all programs may use this symbol, but it does not hurt to define it.
6457 cat >>confdefs.h <<\_ACEOF
6458 #define X_DISPLAY_MISSING 1
6459 _ACEOF
6461 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6462 else
6463 if test -n "$x_includes"; then
6464 X_CFLAGS="$X_CFLAGS -I$x_includes"
6467 # It would also be nice to do this for all -L options, not just this one.
6468 if test -n "$x_libraries"; then
6469 X_LIBS="$X_LIBS -L$x_libraries"
6470 # For Solaris; some versions of Sun CC require a space after -R and
6471 # others require no space. Words are not sufficient . . . .
6472 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6473 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6474 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6475 ac_xsave_c_werror_flag=$ac_c_werror_flag
6476 ac_c_werror_flag=yes
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6485 main ()
6489 return 0;
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (ac_try="$ac_link"
6494 case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_link") 2>conftest.er1
6500 ac_status=$?
6501 grep -v '^ *+' conftest.er1 >conftest.err
6502 rm -f conftest.er1
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest$ac_exeext &&
6509 $as_test_x conftest$ac_exeext; then
6510 { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6512 X_LIBS="$X_LIBS -R$x_libraries"
6513 else
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 LIBS="$ac_xsave_LIBS -R $x_libraries"
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6526 main ()
6530 return 0;
6532 _ACEOF
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6535 case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
6551 { echo "$as_me:$LINENO: result: yes" >&5
6552 echo "${ECHO_T}yes" >&6; }
6553 X_LIBS="$X_LIBS -R $x_libraries"
6554 else
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 { echo "$as_me:$LINENO: result: neither works" >&5
6559 echo "${ECHO_T}neither works" >&6; }
6562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6563 conftest$ac_exeext conftest.$ac_ext
6566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6567 conftest$ac_exeext conftest.$ac_ext
6568 ac_c_werror_flag=$ac_xsave_c_werror_flag
6569 LIBS=$ac_xsave_LIBS
6572 # Check for system-dependent libraries X programs must link with.
6573 # Do this before checking for the system-independent R6 libraries
6574 # (-lICE), since we may need -lsocket or whatever for X linking.
6576 if test "$ISC" = yes; then
6577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6578 else
6579 # Martyn Johnson says this is needed for Ultrix, if the X
6580 # libraries were built with DECnet support. And Karl Berry says
6581 # the Alpha needs dnet_stub (dnet does not exist).
6582 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h. */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 /* Override any GCC internal prototype to avoid an error.
6591 Use char because int might match the return type of a GCC
6592 builtin and then its argument prototype would still apply. */
6593 #ifdef __cplusplus
6594 extern "C"
6595 #endif
6596 char XOpenDisplay ();
6598 main ()
6600 return XOpenDisplay ();
6602 return 0;
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (ac_try="$ac_link"
6607 case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6629 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6630 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 ac_check_lib_save_LIBS=$LIBS
6634 LIBS="-ldnet $LIBS"
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 char dnet_ntoa ();
6650 main ()
6652 return dnet_ntoa ();
6654 return 0;
6656 _ACEOF
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest$ac_exeext &&
6674 $as_test_x conftest$ac_exeext; then
6675 ac_cv_lib_dnet_dnet_ntoa=yes
6676 else
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_cv_lib_dnet_dnet_ntoa=no
6683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6684 conftest$ac_exeext conftest.$ac_ext
6685 LIBS=$ac_check_lib_save_LIBS
6687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6688 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6689 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6690 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6693 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6694 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6695 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6696 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 ac_check_lib_save_LIBS=$LIBS
6700 LIBS="-ldnet_stub $LIBS"
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6708 /* Override any GCC internal prototype to avoid an error.
6709 Use char because int might match the return type of a GCC
6710 builtin and then its argument prototype would still apply. */
6711 #ifdef __cplusplus
6712 extern "C"
6713 #endif
6714 char dnet_ntoa ();
6716 main ()
6718 return dnet_ntoa ();
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (ac_try="$ac_link"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_link") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest$ac_exeext &&
6740 $as_test_x conftest$ac_exeext; then
6741 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6742 else
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 ac_cv_lib_dnet_stub_dnet_ntoa=no
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6754 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6763 conftest$ac_exeext conftest.$ac_ext
6764 LIBS="$ac_xsave_LIBS"
6766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6767 # to get the SysV transport functions.
6768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6769 # needs -lnsl.
6770 # The nsl library prevents programs from opening the X display
6771 # on Irix 5.2, according to T.E. Dickey.
6772 # The functions gethostbyname, getservbyname, and inet_addr are
6773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6774 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6775 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6776 if test "${ac_cv_func_gethostbyname+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6787 #define gethostbyname innocuous_gethostbyname
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char gethostbyname (); below.
6791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6792 <limits.h> exists even on freestanding compilers. */
6794 #ifdef __STDC__
6795 # include <limits.h>
6796 #else
6797 # include <assert.h>
6798 #endif
6800 #undef gethostbyname
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6805 #ifdef __cplusplus
6806 extern "C"
6807 #endif
6808 char gethostbyname ();
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6813 choke me
6814 #endif
6817 main ()
6819 return gethostbyname ();
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (ac_try="$ac_link"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_link") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest$ac_exeext &&
6841 $as_test_x conftest$ac_exeext; then
6842 ac_cv_func_gethostbyname=yes
6843 else
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6847 ac_cv_func_gethostbyname=no
6850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6851 conftest$ac_exeext conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6854 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6856 if test $ac_cv_func_gethostbyname = no; then
6857 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6858 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6859 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 ac_check_lib_save_LIBS=$LIBS
6863 LIBS="-lnsl $LIBS"
6864 cat >conftest.$ac_ext <<_ACEOF
6865 /* confdefs.h. */
6866 _ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6871 /* Override any GCC internal prototype to avoid an error.
6872 Use char because int might match the return type of a GCC
6873 builtin and then its argument prototype would still apply. */
6874 #ifdef __cplusplus
6875 extern "C"
6876 #endif
6877 char gethostbyname ();
6879 main ()
6881 return gethostbyname ();
6883 return 0;
6885 _ACEOF
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (ac_try="$ac_link"
6888 case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891 esac
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_link") 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext &&
6903 $as_test_x conftest$ac_exeext; then
6904 ac_cv_lib_nsl_gethostbyname=yes
6905 else
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_lib_nsl_gethostbyname=no
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6913 conftest$ac_exeext conftest.$ac_ext
6914 LIBS=$ac_check_lib_save_LIBS
6916 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6918 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6922 if test $ac_cv_lib_nsl_gethostbyname = no; then
6923 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 ac_check_lib_save_LIBS=$LIBS
6929 LIBS="-lbsd $LIBS"
6930 cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h. */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6937 /* Override any GCC internal prototype to avoid an error.
6938 Use char because int might match the return type of a GCC
6939 builtin and then its argument prototype would still apply. */
6940 #ifdef __cplusplus
6941 extern "C"
6942 #endif
6943 char gethostbyname ();
6945 main ()
6947 return gethostbyname ();
6949 return 0;
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6954 case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957 esac
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_link") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest$ac_exeext &&
6969 $as_test_x conftest$ac_exeext; then
6970 ac_cv_lib_bsd_gethostbyname=yes
6971 else
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_lib_bsd_gethostbyname=no
6978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6979 conftest$ac_exeext conftest.$ac_ext
6980 LIBS=$ac_check_lib_save_LIBS
6982 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6983 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6984 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6985 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6992 # socket/setsockopt and other routines are undefined under SCO ODT
6993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6994 # on later versions), says Simon Leinen: it contains gethostby*
6995 # variants that don't use the name server (or something). -lsocket
6996 # must be given before -lnsl if both are needed. We assume that
6997 # if connect needs -lnsl, so does gethostbyname.
6998 { echo "$as_me:$LINENO: checking for connect" >&5
6999 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7000 if test "${ac_cv_func_connect+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7011 #define connect innocuous_connect
7013 /* System header to define __stub macros and hopefully few prototypes,
7014 which can conflict with char connect (); below.
7015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7016 <limits.h> exists even on freestanding compilers. */
7018 #ifdef __STDC__
7019 # include <limits.h>
7020 #else
7021 # include <assert.h>
7022 #endif
7024 #undef connect
7026 /* Override any GCC internal prototype to avoid an error.
7027 Use char because int might match the return type of a GCC
7028 builtin and then its argument prototype would still apply. */
7029 #ifdef __cplusplus
7030 extern "C"
7031 #endif
7032 char connect ();
7033 /* The GNU C library defines this for functions which it implements
7034 to always fail with ENOSYS. Some functions are actually named
7035 something starting with __ and the normal name is an alias. */
7036 #if defined __stub_connect || defined __stub___connect
7037 choke me
7038 #endif
7041 main ()
7043 return connect ();
7045 return 0;
7047 _ACEOF
7048 rm -f conftest.$ac_objext conftest$ac_exeext
7049 if { (ac_try="$ac_link"
7050 case "(($ac_try" in
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7053 esac
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_link") 2>conftest.er1
7056 ac_status=$?
7057 grep -v '^ *+' conftest.er1 >conftest.err
7058 rm -f conftest.er1
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && {
7062 test -z "$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7064 } && test -s conftest$ac_exeext &&
7065 $as_test_x conftest$ac_exeext; then
7066 ac_cv_func_connect=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 ac_cv_func_connect=no
7074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7075 conftest$ac_exeext conftest.$ac_ext
7077 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7078 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7080 if test $ac_cv_func_connect = no; then
7081 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7082 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7083 if test "${ac_cv_lib_socket_connect+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 /* Override any GCC internal prototype to avoid an error.
7096 Use char because int might match the return type of a GCC
7097 builtin and then its argument prototype would still apply. */
7098 #ifdef __cplusplus
7099 extern "C"
7100 #endif
7101 char connect ();
7103 main ()
7105 return connect ();
7107 return 0;
7109 _ACEOF
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (ac_try="$ac_link"
7112 case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115 esac
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_link") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest$ac_exeext &&
7127 $as_test_x conftest$ac_exeext; then
7128 ac_cv_lib_socket_connect=yes
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 ac_cv_lib_socket_connect=no
7136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7137 conftest$ac_exeext conftest.$ac_ext
7138 LIBS=$ac_check_lib_save_LIBS
7140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7141 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7142 if test $ac_cv_lib_socket_connect = yes; then
7143 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7148 # Guillermo Gomez says -lposix is necessary on A/UX.
7149 { echo "$as_me:$LINENO: checking for remove" >&5
7150 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7151 if test "${ac_cv_func_remove+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154 cat >conftest.$ac_ext <<_ACEOF
7155 /* confdefs.h. */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7162 #define remove innocuous_remove
7164 /* System header to define __stub macros and hopefully few prototypes,
7165 which can conflict with char remove (); below.
7166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167 <limits.h> exists even on freestanding compilers. */
7169 #ifdef __STDC__
7170 # include <limits.h>
7171 #else
7172 # include <assert.h>
7173 #endif
7175 #undef remove
7177 /* Override any GCC internal prototype to avoid an error.
7178 Use char because int might match the return type of a GCC
7179 builtin and then its argument prototype would still apply. */
7180 #ifdef __cplusplus
7181 extern "C"
7182 #endif
7183 char remove ();
7184 /* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187 #if defined __stub_remove || defined __stub___remove
7188 choke me
7189 #endif
7192 main ()
7194 return remove ();
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext conftest$ac_exeext
7200 if { (ac_try="$ac_link"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_link") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest$ac_exeext &&
7216 $as_test_x conftest$ac_exeext; then
7217 ac_cv_func_remove=yes
7218 else
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_func_remove=no
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7229 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7231 if test $ac_cv_func_remove = no; then
7232 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7233 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7234 if test "${ac_cv_lib_posix_remove+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 ac_check_lib_save_LIBS=$LIBS
7238 LIBS="-lposix $LIBS"
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7246 /* Override any GCC internal prototype to avoid an error.
7247 Use char because int might match the return type of a GCC
7248 builtin and then its argument prototype would still apply. */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
7252 char remove ();
7254 main ()
7256 return remove ();
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (ac_try="$ac_link"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_link") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest$ac_exeext &&
7278 $as_test_x conftest$ac_exeext; then
7279 ac_cv_lib_posix_remove=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_cv_lib_posix_remove=no
7287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7288 conftest$ac_exeext conftest.$ac_ext
7289 LIBS=$ac_check_lib_save_LIBS
7291 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7292 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7293 if test $ac_cv_lib_posix_remove = yes; then
7294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7299 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7300 { echo "$as_me:$LINENO: checking for shmat" >&5
7301 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7302 if test "${ac_cv_func_shmat+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313 #define shmat innocuous_shmat
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char shmat (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7320 #ifdef __STDC__
7321 # include <limits.h>
7322 #else
7323 # include <assert.h>
7324 #endif
7326 #undef shmat
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7331 #ifdef __cplusplus
7332 extern "C"
7333 #endif
7334 char shmat ();
7335 /* The GNU C library defines this for functions which it implements
7336 to always fail with ENOSYS. Some functions are actually named
7337 something starting with __ and the normal name is an alias. */
7338 #if defined __stub_shmat || defined __stub___shmat
7339 choke me
7340 #endif
7343 main ()
7345 return shmat ();
7347 return 0;
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7352 case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 ac_cv_func_shmat=yes
7369 else
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7373 ac_cv_func_shmat=no
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7380 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7382 if test $ac_cv_func_shmat = no; then
7383 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7384 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7385 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-lipc $LIBS"
7390 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7397 /* Override any GCC internal prototype to avoid an error.
7398 Use char because int might match the return type of a GCC
7399 builtin and then its argument prototype would still apply. */
7400 #ifdef __cplusplus
7401 extern "C"
7402 #endif
7403 char shmat ();
7405 main ()
7407 return shmat ();
7409 return 0;
7411 _ACEOF
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (ac_try="$ac_link"
7414 case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_link") 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest$ac_exeext &&
7429 $as_test_x conftest$ac_exeext; then
7430 ac_cv_lib_ipc_shmat=yes
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_lib_ipc_shmat=no
7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7440 LIBS=$ac_check_lib_save_LIBS
7442 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7443 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7444 if test $ac_cv_lib_ipc_shmat = yes; then
7445 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7451 # Check for libraries that X11R6 Xt/Xaw programs need.
7452 ac_save_LDFLAGS=$LDFLAGS
7453 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7454 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7455 # check for ICE first), but we must link in the order -lSM -lICE or
7456 # we get undefined symbols. So assume we have SM if we have ICE.
7457 # These have to be linked with before -lX11, unlike the other
7458 # libraries we check for below, so use a different variable.
7459 # John Interrante, Karl Berry
7460 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7461 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7462 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 ac_check_lib_save_LIBS=$LIBS
7466 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7467 cat >conftest.$ac_ext <<_ACEOF
7468 /* confdefs.h. */
7469 _ACEOF
7470 cat confdefs.h >>conftest.$ac_ext
7471 cat >>conftest.$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7474 /* Override any GCC internal prototype to avoid an error.
7475 Use char because int might match the return type of a GCC
7476 builtin and then its argument prototype would still apply. */
7477 #ifdef __cplusplus
7478 extern "C"
7479 #endif
7480 char IceConnectionNumber ();
7482 main ()
7484 return IceConnectionNumber ();
7486 return 0;
7488 _ACEOF
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7491 case "(($ac_try" in
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_link") 2>conftest.er1
7497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest$ac_exeext &&
7506 $as_test_x conftest$ac_exeext; then
7507 ac_cv_lib_ICE_IceConnectionNumber=yes
7508 else
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_cv_lib_ICE_IceConnectionNumber=no
7515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7516 conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7519 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7525 LDFLAGS=$ac_save_LDFLAGS
7530 if test "$OS390Unix" = "yes"; then
7531 CFLAGS="$CFLAGS -W c,dll"
7532 LDFLAGS="$LDFLAGS -W l,dll"
7533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7537 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7538 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7539 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7540 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7541 X_LIBS="$X_LIBS -L$x_libraries"
7542 if test "`(uname) 2>/dev/null`" = SunOS &&
7543 uname -r | grep '^5' >/dev/null; then
7544 X_LIBS="$X_LIBS -R $x_libraries"
7548 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7549 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7550 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7551 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7552 X_CFLAGS="$X_CFLAGS -I$x_includes"
7555 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7556 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7557 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7560 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7561 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7562 cflags_save=$CFLAGS
7563 CFLAGS="$CFLAGS $X_CFLAGS"
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h. */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <X11/Xlib.h>
7571 #include <X11/Intrinsic.h>
7573 main ()
7577 return 0;
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7582 case "(($ac_try" in
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7585 esac
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7588 ac_status=$?
7589 grep -v '^ *+' conftest.er1 >conftest.err
7590 rm -f conftest.er1
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && {
7594 test -z "$ac_c_werror_flag" ||
7595 test ! -s conftest.err
7596 } && test -s conftest.$ac_objext; then
7597 { echo "$as_me:$LINENO: result: yes" >&5
7598 echo "${ECHO_T}yes" >&6; }
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }; no_x=yes
7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 CFLAGS=$cflags_save
7610 if test "${no_x-no}" = yes; then
7611 with_x=no
7612 else
7613 cat >>confdefs.h <<\_ACEOF
7614 #define HAVE_X11 1
7615 _ACEOF
7617 X_LIB="-lXt -lX11";
7620 ac_save_LDFLAGS="$LDFLAGS"
7621 LDFLAGS="-L$x_libraries $LDFLAGS"
7623 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7624 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7625 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628 ac_check_lib_save_LIBS=$LIBS
7629 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char _XdmcpAuthDoIt ();
7645 main ()
7647 return _XdmcpAuthDoIt ();
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_link") 2>conftest.er1
7660 ac_status=$?
7661 grep -v '^ *+' conftest.er1 >conftest.err
7662 rm -f conftest.er1
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest$ac_exeext &&
7669 $as_test_x conftest$ac_exeext; then
7670 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7671 else
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7679 conftest$ac_exeext conftest.$ac_ext
7680 LIBS=$ac_check_lib_save_LIBS
7682 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7683 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7684 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7689 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7690 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7691 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 else
7694 ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 char IceOpenConnection ();
7711 main ()
7713 return IceOpenConnection ();
7715 return 0;
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7720 case "(($ac_try" in
7721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7723 esac
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_link") 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest$ac_exeext &&
7735 $as_test_x conftest$ac_exeext; then
7736 ac_cv_lib_ICE_IceOpenConnection=yes
7737 else
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_cv_lib_ICE_IceOpenConnection=no
7744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7745 conftest$ac_exeext conftest.$ac_ext
7746 LIBS=$ac_check_lib_save_LIBS
7748 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7749 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7750 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7755 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7756 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7757 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7758 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761 ac_check_lib_save_LIBS=$LIBS
7762 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 /* Override any GCC internal prototype to avoid an error.
7771 Use char because int might match the return type of a GCC
7772 builtin and then its argument prototype would still apply. */
7773 #ifdef __cplusplus
7774 extern "C"
7775 #endif
7776 char XpmCreatePixmapFromData ();
7778 main ()
7780 return XpmCreatePixmapFromData ();
7782 return 0;
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (ac_try="$ac_link"
7787 case "(($ac_try" in
7788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7790 esac
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_link") 2>conftest.er1
7793 ac_status=$?
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest$ac_exeext &&
7802 $as_test_x conftest$ac_exeext; then
7803 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7804 else
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7812 conftest$ac_exeext conftest.$ac_ext
7813 LIBS=$ac_check_lib_save_LIBS
7815 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7816 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7817 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7818 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7822 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7823 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7824 cflags_save=$CFLAGS
7825 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7826 cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h. */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 #include <X11/Xlib.h>
7834 main ()
7838 return 0;
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.$ac_objext; then
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7860 else
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 CFLAGS="$CFLAGS -Wno-implicit-int"
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <X11/Xlib.h>
7873 main ()
7877 return 0;
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7888 ac_status=$?
7889 grep -v '^ *+' conftest.er1 >conftest.err
7890 rm -f conftest.er1
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 { echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7899 else
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 { echo "$as_me:$LINENO: result: test failed" >&5
7904 echo "${ECHO_T}test failed" >&6; }
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7913 CFLAGS=$cflags_save
7915 LDFLAGS="$ac_save_LDFLAGS"
7917 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
7918 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
7919 if test "${ac_cv_small_wchar_t+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 if test "$cross_compiling" = yes; then
7923 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
7924 echo "$as_me: error: failed to compile test program" >&2;}
7925 { (exit 1); exit 1; }; }
7926 else
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7934 #include <X11/Xlib.h>
7935 #if STDC_HEADERS
7936 # include <stdlib.h>
7937 # include <stddef.h>
7938 #endif
7939 main()
7941 if (sizeof(wchar_t) <= 2)
7942 exit(1);
7943 exit(0);
7945 _ACEOF
7946 rm -f conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7957 { (case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_try") 2>&5
7963 ac_status=$?
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_small_wchar_t="no"
7967 else
7968 echo "$as_me: program exited with status $ac_status" >&5
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ( exit $ac_status )
7973 ac_cv_small_wchar_t="yes"
7975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
7982 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
7983 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
7984 cat >>confdefs.h <<\_ACEOF
7985 #define SMALL_WCHAR_T 1
7986 _ACEOF
7993 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7995 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7996 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
7997 # Check whether --enable-gui was given.
7998 if test "${enable_gui+set}" = set; then
7999 enableval=$enable_gui;
8000 else
8001 enable_gui="auto"
8005 enable_gui_canon=`echo "_$enable_gui" | \
8006 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8008 SKIP_GTK=YES
8009 SKIP_GTK2=YES
8010 SKIP_GNOME=YES
8011 SKIP_MOTIF=YES
8012 SKIP_ATHENA=YES
8013 SKIP_NEXTAW=YES
8014 SKIP_PHOTON=YES
8015 SKIP_CARBON=YES
8016 SKIP_MACVIM=YES
8017 GUITYPE=NONE
8019 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8020 SKIP_PHOTON=
8021 case "$enable_gui_canon" in
8022 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8023 echo "${ECHO_T}no GUI support" >&6; }
8024 SKIP_PHOTON=YES ;;
8025 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8026 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8027 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8028 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8029 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8030 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8031 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8032 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8033 SKIP_PHOTON=YES ;;
8034 esac
8036 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8037 SKIP_CARBON=
8038 SKIP_MACVIM=
8039 case "$enable_gui_canon" in
8040 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8041 echo "${ECHO_T}no GUI support" >&6; }
8042 SKIP_CARBON=YES
8043 SKIP_MACVIM=YES ;;
8044 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8045 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8046 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8047 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8048 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8049 echo "${ECHO_T}Carbon GUI support" >&6; }
8050 SKIP_MACVIM=YES ;;
8051 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8052 echo "${ECHO_T}MacVim GUI support" >&6; }
8053 SKIP_CARBON=YES ;;
8054 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8055 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8056 SKIP_CARBON=YES
8057 SKIP_MACVIM=YES ;;
8058 esac
8060 else
8062 case "$enable_gui_canon" in
8063 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8064 echo "${ECHO_T}no GUI support" >&6; } ;;
8065 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8066 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8067 SKIP_GTK=
8068 SKIP_GTK2=
8069 SKIP_GNOME=
8070 SKIP_MOTIF=
8071 SKIP_ATHENA=
8072 SKIP_NEXTAW=
8073 SKIP_MACVIM=
8074 SKIP_CARBON=;;
8075 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8076 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8077 SKIP_GTK=;;
8078 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8079 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8080 SKIP_GTK=
8081 SKIP_GTK2=;;
8082 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8083 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8084 SKIP_GNOME=
8085 SKIP_GTK=;;
8086 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8087 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8088 SKIP_GNOME=
8089 SKIP_GTK=
8090 SKIP_GTK2=;;
8091 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8092 echo "${ECHO_T}Motif GUI support" >&6; }
8093 SKIP_MOTIF=;;
8094 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8095 echo "${ECHO_T}Athena GUI support" >&6; }
8096 SKIP_ATHENA=;;
8097 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8098 echo "${ECHO_T}neXtaw GUI support" >&6; }
8099 SKIP_NEXTAW=;;
8100 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8101 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8102 esac
8106 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8107 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8108 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8109 # Check whether --enable-gtk-check was given.
8110 if test "${enable_gtk_check+set}" = set; then
8111 enableval=$enable_gtk_check;
8112 else
8113 enable_gtk_check="yes"
8116 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8117 echo "${ECHO_T}$enable_gtk_check" >&6; }
8118 if test "x$enable_gtk_check" = "xno"; then
8119 SKIP_GTK=YES
8120 SKIP_GNOME=YES
8124 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8125 -a "$enable_gui_canon" != "gnome2"; then
8126 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8127 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8128 # Check whether --enable-gtk2-check was given.
8129 if test "${enable_gtk2_check+set}" = set; then
8130 enableval=$enable_gtk2_check;
8131 else
8132 enable_gtk2_check="yes"
8135 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8136 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8137 if test "x$enable_gtk2_check" = "xno"; then
8138 SKIP_GTK2=YES
8142 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8143 -a "$enable_gui_canon" != "gnome2"; then
8144 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8145 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8146 # Check whether --enable-gnome-check was given.
8147 if test "${enable_gnome_check+set}" = set; then
8148 enableval=$enable_gnome_check;
8149 else
8150 enable_gnome_check="no"
8153 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8154 echo "${ECHO_T}$enable_gnome_check" >&6; }
8155 if test "x$enable_gnome_check" = "xno"; then
8156 SKIP_GNOME=YES
8160 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8161 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8162 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8163 # Check whether --enable-motif-check was given.
8164 if test "${enable_motif_check+set}" = set; then
8165 enableval=$enable_motif_check;
8166 else
8167 enable_motif_check="yes"
8170 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8171 echo "${ECHO_T}$enable_motif_check" >&6; }
8172 if test "x$enable_motif_check" = "xno"; then
8173 SKIP_MOTIF=YES
8177 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8178 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8179 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8180 # Check whether --enable-athena-check was given.
8181 if test "${enable_athena_check+set}" = set; then
8182 enableval=$enable_athena_check;
8183 else
8184 enable_athena_check="yes"
8187 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8188 echo "${ECHO_T}$enable_athena_check" >&6; }
8189 if test "x$enable_athena_check" = "xno"; then
8190 SKIP_ATHENA=YES
8194 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8195 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8196 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8197 # Check whether --enable-nextaw-check was given.
8198 if test "${enable_nextaw_check+set}" = set; then
8199 enableval=$enable_nextaw_check;
8200 else
8201 enable_nextaw_check="yes"
8204 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8205 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8206 if test "x$enable_nextaw_check" = "xno"; then
8207 SKIP_NEXTAW=YES
8211 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8212 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8213 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8214 # Check whether --enable-carbon-check was given.
8215 if test "${enable_carbon_check+set}" = set; then
8216 enableval=$enable_carbon_check;
8217 else
8218 enable_carbon_check="yes"
8221 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8222 echo "${ECHO_T}$enable_carbon_check" >&6; };
8223 if test "x$enable_carbon_check" = "xno"; then
8224 SKIP_CARBON=YES
8228 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8229 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8230 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8231 # Check whether --enable-macvim-check was given.
8232 if test "${enable_macvim_check+set}" = set; then
8233 enableval=$enable_macvim_check;
8234 else
8235 enable_macvim_check="yes"
8238 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8239 echo "${ECHO_T}$enable_macvim_check" >&6; };
8240 if test "x$enable_macvim_check" = "xno"; then
8241 SKIP_MACVIM=YES
8245 if test "x$MACOSX" = "xyes"; then
8246 if test x$prefix = xNONE; then
8247 prefix=/Applications
8250 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8251 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8252 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8253 { echo "$as_me:$LINENO: result: yes" >&5
8254 echo "${ECHO_T}yes" >&6; };
8255 GUITYPE=MACVIMGUI
8256 datadir='${prefix}/MacVim.app/Contents/Resources'
8257 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8258 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8259 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8260 { echo "$as_me:$LINENO: result: yes" >&5
8261 echo "${ECHO_T}yes" >&6; };
8262 GUITYPE=CARBONGUI
8263 datadir='${prefix}/Vim.app/Contents/Resources'
8265 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
8268 if test "$VIMNAME" = "vim"; then
8269 VIMNAME=Vim
8272 SKIP_GTK=YES;
8273 SKIP_GTK2=YES;
8274 SKIP_GNOME=YES;
8275 SKIP_MOTIF=YES;
8276 SKIP_ATHENA=YES;
8277 SKIP_NEXTAW=YES;
8278 SKIP_PHOTON=YES;
8279 SKIP_MACVIM=YES;
8280 SKIP_CARBON=YES
8291 if test -z "$SKIP_GTK"; then
8293 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8294 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8296 # Check whether --with-gtk-prefix was given.
8297 if test "${with_gtk_prefix+set}" = set; then
8298 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8299 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8300 else
8301 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8306 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8307 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8309 # Check whether --with-gtk-exec-prefix was given.
8310 if test "${with_gtk_exec_prefix+set}" = set; then
8311 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8312 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8313 else
8314 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8319 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8320 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8321 # Check whether --enable-gtktest was given.
8322 if test "${enable_gtktest+set}" = set; then
8323 enableval=$enable_gtktest;
8324 else
8325 enable_gtktest=yes
8328 if test "x$enable_gtktest" = "xyes" ; then
8329 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8330 echo "${ECHO_T}gtk test enabled" >&6; }
8331 else
8332 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8333 echo "${ECHO_T}gtk test disabled" >&6; }
8336 if test "x$gtk_config_prefix" != "x" ; then
8337 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8338 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8340 if test "x$gtk_config_exec_prefix" != "x" ; then
8341 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8342 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8344 if test "X$GTK_CONFIG" = "X"; then
8345 # Extract the first word of "gtk-config", so it can be a program name with args.
8346 set dummy gtk-config; ac_word=$2
8347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8349 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 case $GTK_CONFIG in
8353 [\\/]* | ?:[\\/]*)
8354 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8368 done
8369 done
8370 IFS=$as_save_IFS
8372 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8374 esac
8376 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8377 if test -n "$GTK_CONFIG"; then
8378 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8379 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8380 else
8381 { echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6; }
8386 if test "X$GTK_CONFIG" = "Xno"; then
8387 # Extract the first word of "gtk12-config", so it can be a program name with args.
8388 set dummy gtk12-config; ac_word=$2
8389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8391 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394 case $GTK12_CONFIG in
8395 [\\/]* | ?:[\\/]*)
8396 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8410 done
8411 done
8412 IFS=$as_save_IFS
8414 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8416 esac
8418 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8419 if test -n "$GTK12_CONFIG"; then
8420 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8421 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8422 else
8423 { echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6; }
8428 GTK_CONFIG="$GTK12_CONFIG"
8430 else
8431 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8432 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8434 if test "X$PKG_CONFIG" = "X"; then
8435 # Extract the first word of "pkg-config", so it can be a program name with args.
8436 set dummy pkg-config; ac_word=$2
8437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442 case $PKG_CONFIG in
8443 [\\/]* | ?:[\\/]*)
8444 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 break 2
8458 done
8459 done
8460 IFS=$as_save_IFS
8462 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8464 esac
8466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8467 if test -n "$PKG_CONFIG"; then
8468 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8469 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8470 else
8471 { echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6; }
8478 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8479 if test "X$SKIP_GTK2" != "XYES"; then
8481 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8483 min_gtk_version=2.2.0
8484 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8485 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8486 no_gtk=""
8487 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8488 && $PKG_CONFIG --exists gtk+-2.0; then
8490 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8491 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8492 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8493 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8494 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8495 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8496 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8497 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8498 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8500 elif test "X$GTK_CONFIG" != "Xno"; then
8502 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8503 GTK_LIBDIR=
8504 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8505 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8506 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8507 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8508 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8509 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8510 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8512 else
8513 no_gtk=yes
8516 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8518 ac_save_CFLAGS="$CFLAGS"
8519 ac_save_LIBS="$LIBS"
8520 CFLAGS="$CFLAGS $GTK_CFLAGS"
8521 LIBS="$LIBS $GTK_LIBS"
8523 rm -f conf.gtktest
8524 if test "$cross_compiling" = yes; then
8525 echo $ac_n "cross compiling; assumed OK... $ac_c"
8526 else
8527 cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8534 #include <gtk/gtk.h>
8535 #include <stdio.h>
8536 #if STDC_HEADERS
8537 # include <stdlib.h>
8538 # include <stddef.h>
8539 #endif
8542 main ()
8544 int major, minor, micro;
8545 char *tmp_version;
8547 system ("touch conf.gtktest");
8549 /* HP/UX 9 (%@#!) writes to sscanf strings */
8550 tmp_version = g_strdup("$min_gtk_version");
8551 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8552 printf("%s, bad version string\n", "$min_gtk_version");
8553 exit(1);
8556 if ((gtk_major_version > major) ||
8557 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8558 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8559 (gtk_micro_version >= micro)))
8561 return 0;
8563 return 1;
8566 _ACEOF
8567 rm -f conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_link") 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8578 { (case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581 esac
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_try") 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8588 else
8589 echo "$as_me: program exited with status $ac_status" >&5
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8593 ( exit $ac_status )
8594 no_gtk=yes
8596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8600 CFLAGS="$ac_save_CFLAGS"
8601 LIBS="$ac_save_LIBS"
8604 if test "x$no_gtk" = x ; then
8605 if test "x$enable_gtktest" = "xyes"; then
8606 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8607 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8608 else
8609 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8610 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8612 GUI_LIB_LOC="$GTK_LIBDIR"
8613 GTK_LIBNAME="$GTK_LIBS"
8614 GUI_INC_LOC="$GTK_CFLAGS"
8615 else
8617 { echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6; }
8619 GTK_CFLAGS=""
8620 GTK_LIBS=""
8625 else
8626 GTK_CFLAGS=""
8627 GTK_LIBS=""
8632 rm -f conf.gtktest
8634 if test "x$GTK_CFLAGS" != "x"; then
8635 SKIP_ATHENA=YES
8636 SKIP_NEXTAW=YES
8637 SKIP_MOTIF=YES
8638 GUITYPE=GTK
8643 if test "x$GUITYPE" != "xGTK"; then
8644 SKIP_GTK2=YES
8646 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8648 min_gtk_version=1.1.16
8649 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8650 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8651 no_gtk=""
8652 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8653 && $PKG_CONFIG --exists gtk+-2.0; then
8655 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8656 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8657 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8658 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8659 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8660 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8661 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8662 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8663 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8665 elif test "X$GTK_CONFIG" != "Xno"; then
8667 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8668 GTK_LIBDIR=
8669 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8670 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8671 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8672 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8673 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8674 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8675 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8677 else
8678 no_gtk=yes
8681 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8683 ac_save_CFLAGS="$CFLAGS"
8684 ac_save_LIBS="$LIBS"
8685 CFLAGS="$CFLAGS $GTK_CFLAGS"
8686 LIBS="$LIBS $GTK_LIBS"
8688 rm -f conf.gtktest
8689 if test "$cross_compiling" = yes; then
8690 echo $ac_n "cross compiling; assumed OK... $ac_c"
8691 else
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 #include <gtk/gtk.h>
8700 #include <stdio.h>
8701 #if STDC_HEADERS
8702 # include <stdlib.h>
8703 # include <stddef.h>
8704 #endif
8707 main ()
8709 int major, minor, micro;
8710 char *tmp_version;
8712 system ("touch conf.gtktest");
8714 /* HP/UX 9 (%@#!) writes to sscanf strings */
8715 tmp_version = g_strdup("$min_gtk_version");
8716 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8717 printf("%s, bad version string\n", "$min_gtk_version");
8718 exit(1);
8721 if ((gtk_major_version > major) ||
8722 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8723 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8724 (gtk_micro_version >= micro)))
8726 return 0;
8728 return 1;
8731 _ACEOF
8732 rm -f conftest$ac_exeext
8733 if { (ac_try="$ac_link"
8734 case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_link") 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8743 { (case "(($ac_try" in
8744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_try") 2>&5
8749 ac_status=$?
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8753 else
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ( exit $ac_status )
8759 no_gtk=yes
8761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8765 CFLAGS="$ac_save_CFLAGS"
8766 LIBS="$ac_save_LIBS"
8769 if test "x$no_gtk" = x ; then
8770 if test "x$enable_gtktest" = "xyes"; then
8771 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8772 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8773 else
8774 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8775 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8777 GTK_LIBNAME="$GTK_LIBS"
8778 GUI_INC_LOC="$GTK_CFLAGS"
8779 else
8781 { echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6; }
8783 GTK_CFLAGS=""
8784 GTK_LIBS=""
8789 else
8790 GTK_CFLAGS=""
8791 GTK_LIBS=""
8796 rm -f conf.gtktest
8798 if test "x$GTK_CFLAGS" != "x"; then
8799 SKIP_ATHENA=YES
8800 SKIP_NEXTAW=YES
8801 SKIP_MOTIF=YES
8802 GUITYPE=GTK
8807 if test "x$GUITYPE" = "xGTK"; then
8808 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8809 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8810 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8811 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8812 else
8814 if test "0$gtk_major_version" -ge 2; then
8815 cat >>confdefs.h <<\_ACEOF
8816 #define HAVE_GTK2 1
8817 _ACEOF
8819 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8820 || test "0$gtk_minor_version" -ge 2 \
8821 || test "0$gtk_major_version" -gt 2; then
8822 cat >>confdefs.h <<\_ACEOF
8823 #define HAVE_GTK_MULTIHEAD 1
8824 _ACEOF
8828 if test -z "$SKIP_GNOME"; then
8836 # Check whether --with-gnome-includes was given.
8837 if test "${with_gnome_includes+set}" = set; then
8838 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8844 # Check whether --with-gnome-libs was given.
8845 if test "${with_gnome_libs+set}" = set; then
8846 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8852 # Check whether --with-gnome was given.
8853 if test "${with_gnome+set}" = set; then
8854 withval=$with_gnome; if test x$withval = xyes; then
8855 want_gnome=yes
8856 have_gnome=yes
8857 else
8858 if test "x$withval" = xno; then
8859 want_gnome=no
8860 else
8861 want_gnome=yes
8862 LDFLAGS="$LDFLAGS -L$withval/lib"
8863 CFLAGS="$CFLAGS -I$withval/include"
8864 gnome_prefix=$withval/lib
8867 else
8868 want_gnome=yes
8872 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8874 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8875 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8876 if $PKG_CONFIG --exists libgnomeui-2.0; then
8877 { echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6; }
8879 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8880 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8881 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8883 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8884 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8885 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8886 { echo "$as_me:$LINENO: result: yes" >&5
8887 echo "${ECHO_T}yes" >&6; }
8888 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8889 GNOME_LIBS="$GNOME_LIBS -pthread"
8890 else
8891 { echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6; }
8894 have_gnome=yes
8895 else
8896 { echo "$as_me:$LINENO: result: not found" >&5
8897 echo "${ECHO_T}not found" >&6; }
8898 if test "x" = xfail; then
8899 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8900 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8901 { (exit 1); exit 1; }; }
8905 elif test "x$want_gnome" = xyes; then
8907 # Extract the first word of "gnome-config", so it can be a program name with args.
8908 set dummy gnome-config; ac_word=$2
8909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8911 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 else
8914 case $GNOME_CONFIG in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8926 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8930 done
8931 done
8932 IFS=$as_save_IFS
8934 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8936 esac
8938 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8939 if test -n "$GNOME_CONFIG"; then
8940 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8941 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
8942 else
8943 { echo "$as_me:$LINENO: result: no" >&5
8944 echo "${ECHO_T}no" >&6; }
8948 if test "$GNOME_CONFIG" = "no"; then
8949 no_gnome_config="yes"
8950 else
8951 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8952 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
8953 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8954 { echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6; }
8956 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8957 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8958 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8959 have_gnome=yes
8960 else
8961 { echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6; }
8963 no_gnome_config="yes"
8967 if test x$exec_prefix = xNONE; then
8968 if test x$prefix = xNONE; then
8969 gnome_prefix=$ac_default_prefix/lib
8970 else
8971 gnome_prefix=$prefix/lib
8973 else
8974 gnome_prefix=`eval echo \`echo $libdir\``
8977 if test "$no_gnome_config" = "yes"; then
8978 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8979 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
8980 if test -f $gnome_prefix/gnomeConf.sh; then
8981 { echo "$as_me:$LINENO: result: found" >&5
8982 echo "${ECHO_T}found" >&6; }
8983 echo "loading gnome configuration from" \
8984 "$gnome_prefix/gnomeConf.sh"
8985 . $gnome_prefix/gnomeConf.sh
8986 have_gnome=yes
8987 else
8988 { echo "$as_me:$LINENO: result: not found" >&5
8989 echo "${ECHO_T}not found" >&6; }
8990 if test x = xfail; then
8991 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8992 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8993 { (exit 1); exit 1; }; }
9000 if test x$have_gnome = xyes ; then
9001 cat >>confdefs.h <<\_ACEOF
9002 #define FEAT_GUI_GNOME 1
9003 _ACEOF
9005 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9006 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9016 if test -z "$SKIP_MOTIF"; then
9017 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
9018 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9020 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9021 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9022 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9023 GUI_INC_LOC=
9024 for try in $gui_includes; do
9025 if test -f "$try/Xm/Xm.h"; then
9026 GUI_INC_LOC=$try
9028 done
9029 if test -n "$GUI_INC_LOC"; then
9030 if test "$GUI_INC_LOC" = /usr/include; then
9031 GUI_INC_LOC=
9032 { echo "$as_me:$LINENO: result: in default path" >&5
9033 echo "${ECHO_T}in default path" >&6; }
9034 else
9035 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9036 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9038 else
9039 { echo "$as_me:$LINENO: result: <not found>" >&5
9040 echo "${ECHO_T}<not found>" >&6; }
9041 SKIP_MOTIF=YES
9046 if test -z "$SKIP_MOTIF"; then
9047 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9048 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9050 # Check whether --with-motif-lib was given.
9051 if test "${with_motif_lib+set}" = set; then
9052 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9056 if test -n "$MOTIF_LIBNAME"; then
9057 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9058 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9059 GUI_LIB_LOC=
9060 else
9061 { echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6; }
9064 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9066 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9067 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9068 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
9069 GUI_LIB_LOC=
9070 for try in $gui_libs; do
9071 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9072 if test -f "$libtry"; then
9073 GUI_LIB_LOC=$try
9075 done
9076 done
9077 if test -n "$GUI_LIB_LOC"; then
9078 if test "$GUI_LIB_LOC" = /usr/lib; then
9079 GUI_LIB_LOC=
9080 { echo "$as_me:$LINENO: result: in default path" >&5
9081 echo "${ECHO_T}in default path" >&6; }
9082 else
9083 if test -n "$GUI_LIB_LOC"; then
9084 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9085 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9086 if test "`(uname) 2>/dev/null`" = SunOS &&
9087 uname -r | grep '^5' >/dev/null; then
9088 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9092 MOTIF_LIBNAME=-lXm
9093 else
9094 { echo "$as_me:$LINENO: result: <not found>" >&5
9095 echo "${ECHO_T}<not found>" >&6; }
9096 SKIP_MOTIF=YES
9101 if test -z "$SKIP_MOTIF"; then
9102 SKIP_ATHENA=YES
9103 SKIP_NEXTAW=YES
9104 GUITYPE=MOTIF
9109 GUI_X_LIBS=
9111 if test -z "$SKIP_ATHENA"; then
9112 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9113 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9114 cflags_save=$CFLAGS
9115 CFLAGS="$CFLAGS $X_CFLAGS"
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 #include <X11/Intrinsic.h>
9124 #include <X11/Xaw/Paned.h>
9126 main ()
9130 return 0;
9132 _ACEOF
9133 rm -f conftest.$ac_objext
9134 if { (ac_try="$ac_compile"
9135 case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138 esac
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_compile") 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } && {
9147 test -z "$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9149 } && test -s conftest.$ac_objext; then
9150 { echo "$as_me:$LINENO: result: yes" >&5
9151 echo "${ECHO_T}yes" >&6; }
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 { echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA=YES
9160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 CFLAGS=$cflags_save
9164 if test -z "$SKIP_ATHENA"; then
9165 GUITYPE=ATHENA
9168 if test -z "$SKIP_NEXTAW"; then
9169 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9170 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9171 cflags_save=$CFLAGS
9172 CFLAGS="$CFLAGS $X_CFLAGS"
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9180 #include <X11/Intrinsic.h>
9181 #include <X11/neXtaw/Paned.h>
9183 main ()
9187 return 0;
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (ac_try="$ac_compile"
9192 case "(($ac_try" in
9193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9195 esac
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_compile") 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest.$ac_objext; then
9207 { echo "$as_me:$LINENO: result: yes" >&5
9208 echo "${ECHO_T}yes" >&6; }
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 { echo "$as_me:$LINENO: result: no" >&5
9214 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 CFLAGS=$cflags_save
9221 if test -z "$SKIP_NEXTAW"; then
9222 GUITYPE=NEXTAW
9225 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9226 if test -n "$GUI_INC_LOC"; then
9227 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9229 if test -n "$GUI_LIB_LOC"; then
9230 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9233 ldflags_save=$LDFLAGS
9234 LDFLAGS="$X_LIBS $LDFLAGS"
9235 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9236 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9237 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h. */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9252 #ifdef __cplusplus
9253 extern "C"
9254 #endif
9255 char XShapeQueryExtension ();
9257 main ()
9259 return XShapeQueryExtension ();
9261 return 0;
9263 _ACEOF
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9266 case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_link") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest$ac_exeext &&
9281 $as_test_x conftest$ac_exeext; then
9282 ac_cv_lib_Xext_XShapeQueryExtension=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_cv_lib_Xext_XShapeQueryExtension=no
9290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9291 conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9294 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9295 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9296 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9297 GUI_X_LIBS="-lXext"
9300 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9301 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9302 if test "${ac_cv_lib_w_wslen+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305 ac_check_lib_save_LIBS=$LIBS
9306 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h. */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char wslen ();
9322 main ()
9324 return wslen ();
9326 return 0;
9328 _ACEOF
9329 rm -f conftest.$ac_objext conftest$ac_exeext
9330 if { (ac_try="$ac_link"
9331 case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334 esac
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_link") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest$ac_exeext &&
9346 $as_test_x conftest$ac_exeext; then
9347 ac_cv_lib_w_wslen=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_lib_w_wslen=no
9355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9356 conftest$ac_exeext conftest.$ac_ext
9357 LIBS=$ac_check_lib_save_LIBS
9359 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9360 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9361 if test $ac_cv_lib_w_wslen = yes; then
9362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9365 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9366 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9367 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 else
9370 ac_check_lib_save_LIBS=$LIBS
9371 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 char dlsym ();
9387 main ()
9389 return dlsym ();
9391 return 0;
9393 _ACEOF
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (ac_try="$ac_link"
9396 case "(($ac_try" in
9397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9399 esac
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest$ac_exeext &&
9411 $as_test_x conftest$ac_exeext; then
9412 ac_cv_lib_dl_dlsym=yes
9413 else
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_cv_lib_dl_dlsym=no
9420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9421 conftest$ac_exeext conftest.$ac_ext
9422 LIBS=$ac_check_lib_save_LIBS
9424 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9425 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9426 if test $ac_cv_lib_dl_dlsym = yes; then
9427 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9430 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9431 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9432 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435 ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h. */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char XmuCreateStippledPixmap ();
9452 main ()
9454 return XmuCreateStippledPixmap ();
9456 return 0;
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_link") 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && {
9473 test -z "$ac_c_werror_flag" ||
9474 test ! -s conftest.err
9475 } && test -s conftest$ac_exeext &&
9476 $as_test_x conftest$ac_exeext; then
9477 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9478 else
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9489 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9490 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9491 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9492 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9495 if test -z "$SKIP_MOTIF"; then
9496 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9497 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9498 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 ac_check_lib_save_LIBS=$LIBS
9502 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9513 #ifdef __cplusplus
9514 extern "C"
9515 #endif
9516 char XpEndJob ();
9518 main ()
9520 return XpEndJob ();
9522 return 0;
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_lib_Xp_XpEndJob=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_cv_lib_Xp_XpEndJob=no
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9556 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9557 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9558 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9562 LDFLAGS=$ldflags_save
9564 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9565 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9566 NARROW_PROTO=
9567 rm -fr conftestdir
9568 if mkdir conftestdir; then
9569 cd conftestdir
9570 cat > Imakefile <<'EOF'
9571 acfindx:
9572 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9574 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9575 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9577 cd ..
9578 rm -fr conftestdir
9580 if test -z "$NARROW_PROTO"; then
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9583 else
9584 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9585 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9590 if test "$enable_xsmp" = "yes"; then
9591 cppflags_save=$CPPFLAGS
9592 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9594 for ac_header in X11/SM/SMlib.h
9596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9606 else
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.$ac_ext <<_ACEOF
9611 /* confdefs.h. */
9612 _ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9621 case "(($ac_try" in
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9624 esac
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9637 else
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9652 /* confdefs.h. */
9653 _ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9658 _ACEOF
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev/null && {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 }; then
9675 ac_header_preproc=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_header_preproc=no
9683 rm -f conftest.err conftest.$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 yes:no: )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc=yes
9696 no:yes:* )
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 esac
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h <<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 _ACEOF
9731 done
9733 CPPFLAGS=$cppflags_save
9737 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9738 cppflags_save=$CPPFLAGS
9739 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9742 for ac_header in X11/xpm.h X11/Sunkeysym.h
9744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 ac_res=`eval echo '${'$as_ac_Header'}'`
9752 { echo "$as_me:$LINENO: result: $ac_res" >&5
9753 echo "${ECHO_T}$ac_res" >&6; }
9754 else
9755 # Is the header compilable?
9756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 $ac_includes_default
9765 #include <$ac_header>
9766 _ACEOF
9767 rm -f conftest.$ac_objext
9768 if { (ac_try="$ac_compile"
9769 case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772 esac
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_compile") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest.$ac_objext; then
9784 ac_header_compiler=yes
9785 else
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_header_compiler=no
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9794 echo "${ECHO_T}$ac_header_compiler" >&6; }
9796 # Is the header present?
9797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #include <$ac_header>
9806 _ACEOF
9807 if { (ac_try="$ac_cpp conftest.$ac_ext"
9808 case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } >/dev/null && {
9820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 }; then
9823 ac_header_preproc=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9828 ac_header_preproc=no
9831 rm -f conftest.err conftest.$ac_ext
9832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9833 echo "${ECHO_T}$ac_header_preproc" >&6; }
9835 # So? What about this header?
9836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9837 yes:no: )
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9842 ac_header_preproc=yes
9844 no:yes:* )
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9859 esac
9860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 eval "$as_ac_Header=\$ac_header_preproc"
9867 ac_res=`eval echo '${'$as_ac_Header'}'`
9868 { echo "$as_me:$LINENO: result: $ac_res" >&5
9869 echo "${ECHO_T}$ac_res" >&6; }
9872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9873 cat >>confdefs.h <<_ACEOF
9874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9875 _ACEOF
9879 done
9882 if test ! "$enable_xim" = "no"; then
9883 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9884 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <X11/Xlib.h>
9892 _ACEOF
9893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9894 $EGREP "XIMText" >/dev/null 2>&1; then
9895 { echo "$as_me:$LINENO: result: yes" >&5
9896 echo "${ECHO_T}yes" >&6; }
9897 else
9898 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9899 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim = "no"
9901 rm -f -r conftest*
9904 CPPFLAGS=$cppflags_save
9906 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9907 -a "x$GUITYPE" != "xNONE" ; then
9908 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9909 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9910 enable_xim="yes"
9914 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9915 cppflags_save=$CPPFLAGS
9916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9917 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9918 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9926 #include <X11/Intrinsic.h>
9927 #include <X11/Xmu/Editres.h>
9929 main ()
9931 int i; i = 0;
9933 return 0;
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9944 ac_status=$?
9945 grep -v '^ *+' conftest.er1 >conftest.err
9946 rm -f conftest.er1
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9953 { echo "$as_me:$LINENO: result: yes" >&5
9954 echo "${ECHO_T}yes" >&6; }
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_X11_XMU_EDITRES_H 1
9957 _ACEOF
9959 else
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 { echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6; }
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 CPPFLAGS=$cppflags_save
9971 if test -z "$SKIP_MOTIF"; then
9972 cppflags_save=$CPPFLAGS
9973 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9981 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9982 Xm/UnhighlightT.h Xm/Notebook.h
9984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_res=`eval echo '${'$as_ac_Header'}'`
9992 { echo "$as_me:$LINENO: result: $ac_res" >&5
9993 echo "${ECHO_T}$ac_res" >&6; }
9994 else
9995 # Is the header compilable?
9996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9998 cat >conftest.$ac_ext <<_ACEOF
9999 /* confdefs.h. */
10000 _ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 $ac_includes_default
10005 #include <$ac_header>
10006 _ACEOF
10007 rm -f conftest.$ac_objext
10008 if { (ac_try="$ac_compile"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10012 esac
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_compile") 2>conftest.er1
10015 ac_status=$?
10016 grep -v '^ *+' conftest.er1 >conftest.err
10017 rm -f conftest.er1
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } && {
10021 test -z "$ac_c_werror_flag" ||
10022 test ! -s conftest.err
10023 } && test -s conftest.$ac_objext; then
10024 ac_header_compiler=yes
10025 else
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.$ac_ext >&5
10029 ac_header_compiler=no
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10034 echo "${ECHO_T}$ac_header_compiler" >&6; }
10036 # Is the header present?
10037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #include <$ac_header>
10046 _ACEOF
10047 if { (ac_try="$ac_cpp conftest.$ac_ext"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10054 ac_status=$?
10055 grep -v '^ *+' conftest.er1 >conftest.err
10056 rm -f conftest.er1
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } >/dev/null && {
10060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 }; then
10063 ac_header_preproc=yes
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_preproc=no
10071 rm -f conftest.err conftest.$ac_ext
10072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10073 echo "${ECHO_T}$ac_header_preproc" >&6; }
10075 # So? What about this header?
10076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10077 yes:no: )
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10082 ac_header_preproc=yes
10084 no:yes:* )
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10099 esac
10100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 eval "$as_ac_Header=\$ac_header_preproc"
10107 ac_res=`eval echo '${'$as_ac_Header'}'`
10108 { echo "$as_me:$LINENO: result: $ac_res" >&5
10109 echo "${ECHO_T}$ac_res" >&6; }
10112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10113 cat >>confdefs.h <<_ACEOF
10114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115 _ACEOF
10119 done
10122 if test $ac_cv_header_Xm_XpmP_h = yes; then
10123 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10124 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h. */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <Xm/XpmP.h>
10133 main ()
10135 XpmAttributes_21 attr;
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10145 esac
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 { echo "$as_me:$LINENO: result: yes" >&5
10158 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10159 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10160 _ACEOF
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 { echo "$as_me:$LINENO: result: no" >&5
10167 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h <<\_ACEOF
10168 #define XPMATTRIBUTES_TYPE XpmAttributes
10169 _ACEOF
10174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175 else
10176 cat >>confdefs.h <<\_ACEOF
10177 #define XPMATTRIBUTES_TYPE XpmAttributes
10178 _ACEOF
10181 CPPFLAGS=$cppflags_save
10184 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10185 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10186 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10187 enable_xim="no"
10189 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10190 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10191 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10192 enable_fontset="no"
10194 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10195 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10196 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10197 enable_fontset="no"
10200 if test -z "$SKIP_PHOTON"; then
10201 GUITYPE=PHOTONGUI
10209 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10210 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10211 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10212 { (exit 1); exit 1; }; }
10215 if test "$enable_xim" = "yes"; then
10216 cat >>confdefs.h <<\_ACEOF
10217 #define FEAT_XIM 1
10218 _ACEOF
10221 if test "$enable_fontset" = "yes"; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define FEAT_XFONTSET 1
10224 _ACEOF
10231 if test "$enable_hangulinput" = "yes"; then
10232 if test "x$GUITYPE" = "xNONE"; then
10233 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10234 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10235 enable_hangulinput=no
10236 else
10237 cat >>confdefs.h <<\_ACEOF
10238 #define FEAT_HANGULIN 1
10239 _ACEOF
10241 HANGULIN_SRC=hangulin.c
10243 HANGULIN_OBJ=objects/hangulin.o
10249 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10250 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10251 if test "${vim_cv_toupper_broken+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10255 if test "$cross_compiling" = yes; then
10257 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10258 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10259 { (exit 1); exit 1; }; }
10261 else
10262 cat >conftest.$ac_ext <<_ACEOF
10264 #include "confdefs.h"
10265 #include <ctype.h>
10266 #if STDC_HEADERS
10267 # include <stdlib.h>
10268 # include <stddef.h>
10269 #endif
10270 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (ac_try="$ac_link"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_link") 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10294 vim_cv_toupper_broken=yes
10296 else
10297 echo "$as_me: program exited with status $ac_status" >&5
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ( exit $ac_status )
10303 vim_cv_toupper_broken=no
10306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10312 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10314 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define BROKEN_TOUPPER 1
10317 _ACEOF
10321 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10322 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10323 cat >conftest.$ac_ext <<_ACEOF
10324 /* confdefs.h. */
10325 _ACEOF
10326 cat confdefs.h >>conftest.$ac_ext
10327 cat >>conftest.$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 #include <stdio.h>
10331 main ()
10333 printf("(" __DATE__ " " __TIME__ ")");
10335 return 0;
10337 _ACEOF
10338 rm -f conftest.$ac_objext
10339 if { (ac_try="$ac_compile"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343 esac
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 { echo "$as_me:$LINENO: result: yes" >&5
10356 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DATE_TIME 1
10358 _ACEOF
10360 else
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10371 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10372 cat >conftest.$ac_ext <<_ACEOF
10373 /* confdefs.h. */
10374 _ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 #include <stdio.h>
10380 main ()
10382 int x __attribute__((unused));
10384 return 0;
10386 _ACEOF
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392 esac
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 { echo "$as_me:$LINENO: result: yes" >&5
10405 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10406 #define HAVE_ATTRIBUTE_UNUSED 1
10407 _ACEOF
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 { echo "$as_me:$LINENO: result: no" >&5
10414 echo "${ECHO_T}no" >&6; }
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419 if test "${ac_cv_header_elf_h+set}" = set; then
10420 { echo "$as_me:$LINENO: checking for elf.h" >&5
10421 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10422 if test "${ac_cv_header_elf_h+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10426 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10427 else
10428 # Is the header compilable?
10429 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10430 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 $ac_includes_default
10438 #include <elf.h>
10439 _ACEOF
10440 rm -f conftest.$ac_objext
10441 if { (ac_try="$ac_compile"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_compile") 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest.$ac_objext; then
10457 ac_header_compiler=yes
10458 else
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_header_compiler=no
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10467 echo "${ECHO_T}$ac_header_compiler" >&6; }
10469 # Is the header present?
10470 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10471 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 #include <elf.h>
10479 _ACEOF
10480 if { (ac_try="$ac_cpp conftest.$ac_ext"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } >/dev/null && {
10493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 }; then
10496 ac_header_preproc=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_header_preproc=no
10504 rm -f conftest.err conftest.$ac_ext
10505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10506 echo "${ECHO_T}$ac_header_preproc" >&6; }
10508 # So? What about this header?
10509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10510 yes:no: )
10511 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10512 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10514 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10515 ac_header_preproc=yes
10517 no:yes:* )
10518 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10519 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10521 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10523 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10524 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10525 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10527 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10528 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10529 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10532 esac
10533 { echo "$as_me:$LINENO: checking for elf.h" >&5
10534 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10535 if test "${ac_cv_header_elf_h+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 else
10538 ac_cv_header_elf_h=$ac_header_preproc
10540 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10541 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10544 if test $ac_cv_header_elf_h = yes; then
10545 HAS_ELF=1
10549 if test "$HAS_ELF" = 1; then
10551 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10552 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10553 if test "${ac_cv_lib_elf_main+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556 ac_check_lib_save_LIBS=$LIBS
10557 LIBS="-lelf $LIBS"
10558 cat >conftest.$ac_ext <<_ACEOF
10559 /* confdefs.h. */
10560 _ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10567 main ()
10569 return main ();
10571 return 0;
10573 _ACEOF
10574 rm -f conftest.$ac_objext conftest$ac_exeext
10575 if { (ac_try="$ac_link"
10576 case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579 esac
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_link") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest$ac_exeext &&
10591 $as_test_x conftest$ac_exeext; then
10592 ac_cv_lib_elf_main=yes
10593 else
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_cv_lib_elf_main=no
10600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10605 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10606 if test $ac_cv_lib_elf_main = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_LIBELF 1
10609 _ACEOF
10611 LIBS="-lelf $LIBS"
10622 ac_header_dirent=no
10623 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10624 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10625 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10626 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10637 #include <$ac_hdr>
10640 main ()
10642 if ((DIR *) 0)
10643 return 0;
10645 return 0;
10647 _ACEOF
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
10665 eval "$as_ac_Header=yes"
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 eval "$as_ac_Header=no"
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679 cat >>confdefs.h <<_ACEOF
10680 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10681 _ACEOF
10683 ac_header_dirent=$ac_hdr; break
10686 done
10687 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10688 if test $ac_header_dirent = dirent.h; then
10689 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10691 if test "${ac_cv_search_opendir+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 ac_func_search_save_LIBS=$LIBS
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char opendir ();
10710 main ()
10712 return opendir ();
10714 return 0;
10716 _ACEOF
10717 for ac_lib in '' dir; do
10718 if test -z "$ac_lib"; then
10719 ac_res="none required"
10720 else
10721 ac_res=-l$ac_lib
10722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_link") 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest$ac_exeext &&
10741 $as_test_x conftest$ac_exeext; then
10742 ac_cv_search_opendir=$ac_res
10743 else
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10751 conftest$ac_exeext
10752 if test "${ac_cv_search_opendir+set}" = set; then
10753 break
10755 done
10756 if test "${ac_cv_search_opendir+set}" = set; then
10758 else
10759 ac_cv_search_opendir=no
10761 rm conftest.$ac_ext
10762 LIBS=$ac_func_search_save_LIBS
10764 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10765 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10766 ac_res=$ac_cv_search_opendir
10767 if test "$ac_res" != no; then
10768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10772 else
10773 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10775 if test "${ac_cv_search_opendir+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778 ac_func_search_save_LIBS=$LIBS
10779 cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h. */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char opendir ();
10794 main ()
10796 return opendir ();
10798 return 0;
10800 _ACEOF
10801 for ac_lib in '' x; do
10802 if test -z "$ac_lib"; then
10803 ac_res="none required"
10804 else
10805 ac_res=-l$ac_lib
10806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest$ac_exeext &&
10825 $as_test_x conftest$ac_exeext; then
10826 ac_cv_search_opendir=$ac_res
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10835 conftest$ac_exeext
10836 if test "${ac_cv_search_opendir+set}" = set; then
10837 break
10839 done
10840 if test "${ac_cv_search_opendir+set}" = set; then
10842 else
10843 ac_cv_search_opendir=no
10845 rm conftest.$ac_ext
10846 LIBS=$ac_func_search_save_LIBS
10848 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10849 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10850 ac_res=$ac_cv_search_opendir
10851 if test "$ac_res" != no; then
10852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10859 if test $ac_cv_header_sys_wait_h = no; then
10860 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10861 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h. */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <sys/wait.h>
10870 main ()
10872 union wait xx, yy; xx = yy
10874 return 0;
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (ac_try="$ac_compile"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_compile") 2>conftest.er1
10885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest.$ac_objext; then
10894 { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_SYS_WAIT_H 1
10898 _ACEOF
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_UNION_WAIT 1
10902 _ACEOF
10904 else
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10956 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10957 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10958 sys/resource.h sys/systeminfo.h locale.h \
10959 sys/stream.h termios.h libc.h sys/statfs.h \
10960 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10961 libgen.h util/debug.h util/msg18n.h frame.h \
10962 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
10964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 ac_res=`eval echo '${'$as_ac_Header'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 else
10975 # Is the header compilable?
10976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 #include <$ac_header>
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10995 ac_status=$?
10996 grep -v '^ *+' conftest.er1 >conftest.err
10997 rm -f conftest.er1
10998 cat conftest.err >&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.$ac_objext; then
11004 ac_header_compiler=yes
11005 else
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_header_compiler=no
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11014 echo "${ECHO_T}$ac_header_compiler" >&6; }
11016 # Is the header present?
11017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h. */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <$ac_header>
11026 _ACEOF
11027 if { (ac_try="$ac_cpp conftest.$ac_ext"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11031 esac
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11034 ac_status=$?
11035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } >/dev/null && {
11040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 }; then
11043 ac_header_preproc=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_header_preproc=no
11051 rm -f conftest.err conftest.$ac_ext
11052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11053 echo "${ECHO_T}$ac_header_preproc" >&6; }
11055 # So? What about this header?
11056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11057 yes:no: )
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11062 ac_header_preproc=yes
11064 no:yes:* )
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11079 esac
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 else
11085 eval "$as_ac_Header=\$ac_header_preproc"
11087 ac_res=`eval echo '${'$as_ac_Header'}'`
11088 { echo "$as_me:$LINENO: result: $ac_res" >&5
11089 echo "${ECHO_T}$ac_res" >&6; }
11092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11093 cat >>confdefs.h <<_ACEOF
11094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11095 _ACEOF
11099 done
11103 for ac_header in sys/ptem.h
11105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111 cat >conftest.$ac_ext <<_ACEOF
11112 /* confdefs.h. */
11113 _ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #if defined HAVE_SYS_STREAM_H
11118 # include <sys/stream.h>
11119 #endif
11121 #include <$ac_header>
11122 _ACEOF
11123 rm -f conftest.$ac_objext
11124 if { (ac_try="$ac_compile"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128 esac
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_compile") 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_c_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest.$ac_objext; then
11140 eval "$as_ac_Header=yes"
11141 else
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 eval "$as_ac_Header=no"
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 ac_res=`eval echo '${'$as_ac_Header'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11154 cat >>confdefs.h <<_ACEOF
11155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11156 _ACEOF
11160 done
11164 for ac_header in sys/sysctl.h
11166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 #if defined HAVE_SYS_PARAM_H
11179 # include <sys/param.h>
11180 #endif
11182 #include <$ac_header>
11183 _ACEOF
11184 rm -f conftest.$ac_objext
11185 if { (ac_try="$ac_compile"
11186 case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189 esac
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_compile") 2>conftest.er1
11192 ac_status=$?
11193 grep -v '^ *+' conftest.er1 >conftest.err
11194 rm -f conftest.er1
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest.$ac_objext; then
11201 eval "$as_ac_Header=yes"
11202 else
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 eval "$as_ac_Header=no"
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217 _ACEOF
11221 done
11225 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11226 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11234 #include <pthread.h>
11235 #include <pthread_np.h>
11237 main ()
11239 int i; i = 0;
11241 return 0;
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248 *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11252 ac_status=$?
11253 grep -v '^ *+' conftest.er1 >conftest.err
11254 rm -f conftest.er1
11255 cat conftest.err >&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && {
11258 test -z "$ac_c_werror_flag" ||
11259 test ! -s conftest.err
11260 } && test -s conftest.$ac_objext; then
11261 { echo "$as_me:$LINENO: result: yes" >&5
11262 echo "${ECHO_T}yes" >&6; }
11263 cat >>confdefs.h <<\_ACEOF
11264 #define HAVE_PTHREAD_NP_H 1
11265 _ACEOF
11267 else
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 { echo "$as_me:$LINENO: result: no" >&5
11272 echo "${ECHO_T}no" >&6; }
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 for ac_header in strings.h
11280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 ac_res=`eval echo '${'$as_ac_Header'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290 else
11291 # Is the header compilable?
11292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 #include <$ac_header>
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (ac_try="$ac_compile"
11305 case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308 esac
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_compile") 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } && {
11317 test -z "$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11319 } && test -s conftest.$ac_objext; then
11320 ac_header_compiler=yes
11321 else
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_compiler=no
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6; }
11332 # Is the header present?
11333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 #include <$ac_header>
11342 _ACEOF
11343 if { (ac_try="$ac_cpp conftest.$ac_ext"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev/null && {
11356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 }; then
11359 ac_header_preproc=yes
11360 else
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_header_preproc=no
11367 rm -f conftest.err conftest.$ac_ext
11368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11369 echo "${ECHO_T}$ac_header_preproc" >&6; }
11371 # So? What about this header?
11372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11373 yes:no: )
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11378 ac_header_preproc=yes
11380 no:yes:* )
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395 esac
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 eval "$as_ac_Header=\$ac_header_preproc"
11403 ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h <<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 _ACEOF
11415 done
11417 if test "x$MACOSX" = "xyes"; then
11418 cat >>confdefs.h <<\_ACEOF
11419 #define NO_STRINGS_WITH_STRING_H 1
11420 _ACEOF
11422 else
11424 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11425 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11426 cppflags_save=$CPPFLAGS
11427 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h. */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11435 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11436 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11437 /* but don't do it on AIX 5.1 (Uribarri) */
11438 #endif
11439 #ifdef HAVE_XM_XM_H
11440 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11441 #endif
11442 #ifdef HAVE_STRING_H
11443 # include <string.h>
11444 #endif
11445 #if defined(HAVE_STRINGS_H)
11446 # include <strings.h>
11447 #endif
11450 main ()
11452 int i; i = 0;
11454 return 0;
11456 _ACEOF
11457 rm -f conftest.$ac_objext
11458 if { (ac_try="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11465 ac_status=$?
11466 grep -v '^ *+' conftest.er1 >conftest.err
11467 rm -f conftest.er1
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 { echo "$as_me:$LINENO: result: yes" >&5
11475 echo "${ECHO_T}yes" >&6; }
11476 else
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 cat >>confdefs.h <<\_ACEOF
11481 #define NO_STRINGS_WITH_STRING_H 1
11482 _ACEOF
11484 { echo "$as_me:$LINENO: result: no" >&5
11485 echo "${ECHO_T}no" >&6; }
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 CPPFLAGS=$cppflags_save
11492 if test $ac_cv_c_compiler_gnu = yes; then
11493 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11494 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11495 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498 ac_pattern="Autoconf.*'x'"
11499 cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h. */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 #include <sgtty.h>
11506 Autoconf TIOCGETP
11507 _ACEOF
11508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11509 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11510 ac_cv_prog_gcc_traditional=yes
11511 else
11512 ac_cv_prog_gcc_traditional=no
11514 rm -f -r conftest*
11517 if test $ac_cv_prog_gcc_traditional = no; then
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <termio.h>
11525 Autoconf TCGETA
11526 _ACEOF
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11529 ac_cv_prog_gcc_traditional=yes
11531 rm -f -r conftest*
11535 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11536 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11537 if test $ac_cv_prog_gcc_traditional = yes; then
11538 CC="$CC -traditional"
11542 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11544 if test "${ac_cv_c_const+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h. */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11555 main ()
11557 /* FIXME: Include the comments suggested by Paul. */
11558 #ifndef __cplusplus
11559 /* Ultrix mips cc rejects this. */
11560 typedef int charset[2];
11561 const charset cs;
11562 /* SunOS 4.1.1 cc rejects this. */
11563 char const *const *pcpcc;
11564 char **ppc;
11565 /* NEC SVR4.0.2 mips cc rejects this. */
11566 struct point {int x, y;};
11567 static struct point const zero = {0,0};
11568 /* AIX XL C 1.02.0.0 rejects this.
11569 It does not let you subtract one const X* pointer from another in
11570 an arm of an if-expression whose if-part is not a constant
11571 expression */
11572 const char *g = "string";
11573 pcpcc = &g + (g ? g-g : 0);
11574 /* HPUX 7.0 cc rejects these. */
11575 ++pcpcc;
11576 ppc = (char**) pcpcc;
11577 pcpcc = (char const *const *) ppc;
11578 { /* SCO 3.2v4 cc rejects this. */
11579 char *t;
11580 char const *s = 0 ? (char *) 0 : (char const *) 0;
11582 *t++ = 0;
11583 if (s) return 0;
11585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11586 int x[] = {25, 17};
11587 const int *foo = &x[0];
11588 ++foo;
11590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11591 typedef const int *iptr;
11592 iptr p = 0;
11593 ++p;
11595 { /* AIX XL C 1.02.0.0 rejects this saying
11596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11597 struct s { int j; const int *ap[3]; };
11598 struct s *b; b->j = 5;
11600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11601 const int foo = 10;
11602 if (!foo) return 0;
11604 return !cs[0] && !zero.x;
11605 #endif
11608 return 0;
11610 _ACEOF
11611 rm -f conftest.$ac_objext
11612 if { (ac_try="$ac_compile"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 ac_cv_c_const=yes
11629 else
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_cv_c_const=no
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11639 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11640 if test $ac_cv_c_const = no; then
11642 cat >>confdefs.h <<\_ACEOF
11643 #define const
11644 _ACEOF
11648 { echo "$as_me:$LINENO: checking for working volatile" >&5
11649 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11650 if test "${ac_cv_c_volatile+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h. */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11661 main ()
11664 volatile int x;
11665 int * volatile y = (int *) 0;
11666 return !x && !y;
11668 return 0;
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11688 ac_cv_c_volatile=yes
11689 else
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_cv_c_volatile=no
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11699 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11700 if test $ac_cv_c_volatile = no; then
11702 cat >>confdefs.h <<\_ACEOF
11703 #define volatile
11704 _ACEOF
11708 { echo "$as_me:$LINENO: checking for mode_t" >&5
11709 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11710 if test "${ac_cv_type_mode_t+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 $ac_includes_default
11720 typedef mode_t ac__type_new_;
11722 main ()
11724 if ((ac__type_new_ *) 0)
11725 return 0;
11726 if (sizeof (ac__type_new_))
11727 return 0;
11729 return 0;
11731 _ACEOF
11732 rm -f conftest.$ac_objext
11733 if { (ac_try="$ac_compile"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_compile") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest.$ac_objext; then
11749 ac_cv_type_mode_t=yes
11750 else
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 ac_cv_type_mode_t=no
11757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11760 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11761 if test $ac_cv_type_mode_t = yes; then
11763 else
11765 cat >>confdefs.h <<_ACEOF
11766 #define mode_t int
11767 _ACEOF
11771 { echo "$as_me:$LINENO: checking for off_t" >&5
11772 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11773 if test "${ac_cv_type_off_t+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h. */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 typedef off_t ac__type_new_;
11785 main ()
11787 if ((ac__type_new_ *) 0)
11788 return 0;
11789 if (sizeof (ac__type_new_))
11790 return 0;
11792 return 0;
11794 _ACEOF
11795 rm -f conftest.$ac_objext
11796 if { (ac_try="$ac_compile"
11797 case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_compile") 2>conftest.er1
11803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest.$ac_objext; then
11812 ac_cv_type_off_t=yes
11813 else
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ac_cv_type_off_t=no
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11823 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11824 if test $ac_cv_type_off_t = yes; then
11826 else
11828 cat >>confdefs.h <<_ACEOF
11829 #define off_t long int
11830 _ACEOF
11834 { echo "$as_me:$LINENO: checking for pid_t" >&5
11835 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11836 if test "${ac_cv_type_pid_t+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 else
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h. */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 typedef pid_t ac__type_new_;
11848 main ()
11850 if ((ac__type_new_ *) 0)
11851 return 0;
11852 if (sizeof (ac__type_new_))
11853 return 0;
11855 return 0;
11857 _ACEOF
11858 rm -f conftest.$ac_objext
11859 if { (ac_try="$ac_compile"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_compile") 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } && {
11872 test -z "$ac_c_werror_flag" ||
11873 test ! -s conftest.err
11874 } && test -s conftest.$ac_objext; then
11875 ac_cv_type_pid_t=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_cv_type_pid_t=no
11883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11886 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11887 if test $ac_cv_type_pid_t = yes; then
11889 else
11891 cat >>confdefs.h <<_ACEOF
11892 #define pid_t int
11893 _ACEOF
11897 { echo "$as_me:$LINENO: checking for size_t" >&5
11898 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11899 if test "${ac_cv_type_size_t+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 typedef size_t ac__type_new_;
11911 main ()
11913 if ((ac__type_new_ *) 0)
11914 return 0;
11915 if (sizeof (ac__type_new_))
11916 return 0;
11918 return 0;
11920 _ACEOF
11921 rm -f conftest.$ac_objext
11922 if { (ac_try="$ac_compile"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_compile") 2>conftest.er1
11929 ac_status=$?
11930 grep -v '^ *+' conftest.er1 >conftest.err
11931 rm -f conftest.er1
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest.$ac_objext; then
11938 ac_cv_type_size_t=yes
11939 else
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_type_size_t=no
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11949 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11950 if test $ac_cv_type_size_t = yes; then
11952 else
11954 cat >>confdefs.h <<_ACEOF
11955 #define size_t unsigned int
11956 _ACEOF
11960 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11961 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11962 if test "${ac_cv_type_uid_t+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 #include <sys/types.h>
11973 _ACEOF
11974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11975 $EGREP "uid_t" >/dev/null 2>&1; then
11976 ac_cv_type_uid_t=yes
11977 else
11978 ac_cv_type_uid_t=no
11980 rm -f -r conftest*
11983 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11984 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11985 if test $ac_cv_type_uid_t = no; then
11987 cat >>confdefs.h <<\_ACEOF
11988 #define uid_t int
11989 _ACEOF
11992 cat >>confdefs.h <<\_ACEOF
11993 #define gid_t int
11994 _ACEOF
11998 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11999 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12000 if test "${ac_cv_header_time+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h. */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <sys/types.h>
12010 #include <sys/time.h>
12011 #include <time.h>
12014 main ()
12016 if ((struct tm *) 0)
12017 return 0;
12019 return 0;
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027 esac
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
12039 ac_cv_header_time=yes
12040 else
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_cv_header_time=no
12047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12050 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12051 if test $ac_cv_header_time = yes; then
12053 cat >>confdefs.h <<\_ACEOF
12054 #define TIME_WITH_SYS_TIME 1
12055 _ACEOF
12059 { echo "$as_me:$LINENO: checking for ino_t" >&5
12060 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12061 if test "${ac_cv_type_ino_t+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 else
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h. */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 typedef ino_t ac__type_new_;
12073 main ()
12075 if ((ac__type_new_ *) 0)
12076 return 0;
12077 if (sizeof (ac__type_new_))
12078 return 0;
12080 return 0;
12082 _ACEOF
12083 rm -f conftest.$ac_objext
12084 if { (ac_try="$ac_compile"
12085 case "(($ac_try" in
12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12088 esac
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_compile") 2>conftest.er1
12091 ac_status=$?
12092 grep -v '^ *+' conftest.er1 >conftest.err
12093 rm -f conftest.er1
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } && {
12097 test -z "$ac_c_werror_flag" ||
12098 test ! -s conftest.err
12099 } && test -s conftest.$ac_objext; then
12100 ac_cv_type_ino_t=yes
12101 else
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_type_ino_t=no
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12111 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12112 if test $ac_cv_type_ino_t = yes; then
12114 else
12116 cat >>confdefs.h <<_ACEOF
12117 #define ino_t long
12118 _ACEOF
12122 { echo "$as_me:$LINENO: checking for dev_t" >&5
12123 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12124 if test "${ac_cv_type_dev_t+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127 cat >conftest.$ac_ext <<_ACEOF
12128 /* confdefs.h. */
12129 _ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 typedef dev_t ac__type_new_;
12136 main ()
12138 if ((ac__type_new_ *) 0)
12139 return 0;
12140 if (sizeof (ac__type_new_))
12141 return 0;
12143 return 0;
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.$ac_objext; then
12163 ac_cv_type_dev_t=yes
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 ac_cv_type_dev_t=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12174 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12175 if test $ac_cv_type_dev_t = yes; then
12177 else
12179 cat >>confdefs.h <<_ACEOF
12180 #define dev_t unsigned
12181 _ACEOF
12186 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12187 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12188 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12189 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12190 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12191 else
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 #include <sys/types.h>
12200 #if STDC_HEADERS
12201 # include <stdlib.h>
12202 # include <stddef.h>
12203 #endif
12204 #ifdef HAVE_SYS_RESOURCE_H
12205 # include <sys/resource.h>
12206 #endif
12208 _ACEOF
12209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12211 ac_cv_type_rlim_t=yes
12212 else
12213 ac_cv_type_rlim_t=no
12215 rm -f -r conftest*
12217 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12218 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12220 if test $ac_cv_type_rlim_t = no; then
12221 cat >> confdefs.h <<\EOF
12222 #define rlim_t unsigned long
12226 { echo "$as_me:$LINENO: checking for stack_t" >&5
12227 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12228 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12229 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12230 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12231 else
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12239 #include <sys/types.h>
12240 #if STDC_HEADERS
12241 # include <stdlib.h>
12242 # include <stddef.h>
12243 #endif
12244 #include <signal.h>
12246 _ACEOF
12247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12248 $EGREP "stack_t" >/dev/null 2>&1; then
12249 ac_cv_type_stack_t=yes
12250 else
12251 ac_cv_type_stack_t=no
12253 rm -f -r conftest*
12255 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12256 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12258 if test $ac_cv_type_stack_t = no; then
12259 cat >> confdefs.h <<\EOF
12260 #define stack_t struct sigaltstack
12264 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12265 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12266 cat >conftest.$ac_ext <<_ACEOF
12267 /* confdefs.h. */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12273 #include <sys/types.h>
12274 #if STDC_HEADERS
12275 # include <stdlib.h>
12276 # include <stddef.h>
12277 #endif
12278 #include <signal.h>
12279 #include "confdefs.h"
12282 main ()
12284 stack_t sigstk; sigstk.ss_base = 0;
12286 return 0;
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 { echo "$as_me:$LINENO: result: yes" >&5
12307 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_SS_BASE 1
12309 _ACEOF
12311 else
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 { echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6; }
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 olibs="$LIBS"
12322 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12323 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12325 # Check whether --with-tlib was given.
12326 if test "${with_tlib+set}" = set; then
12327 withval=$with_tlib;
12330 if test -n "$with_tlib"; then
12331 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12332 echo "${ECHO_T}$with_tlib" >&6; }
12333 LIBS="$LIBS -l$with_tlib"
12334 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12335 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12344 main ()
12348 return 0;
12350 _ACEOF
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12356 esac
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest$ac_exeext &&
12368 $as_test_x conftest$ac_exeext; then
12369 { echo "$as_me:$LINENO: result: OK" >&5
12370 echo "${ECHO_T}OK" >&6; }
12371 else
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 { { echo "$as_me:$LINENO: error: FAILED" >&5
12376 echo "$as_me: error: FAILED" >&2;}
12377 { (exit 1); exit 1; }; }
12380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12381 conftest$ac_exeext conftest.$ac_ext
12382 olibs="$LIBS"
12383 else
12384 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12385 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12386 case "`uname -s 2>/dev/null`" in
12387 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12388 *) tlibs="ncurses termlib termcap curses";;
12389 esac
12390 for libname in $tlibs; do
12392 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12393 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12394 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12395 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398 ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-l${libname} $LIBS"
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12410 #ifdef __cplusplus
12411 extern "C"
12412 #endif
12413 char tgetent ();
12415 main ()
12417 return tgetent ();
12419 return 0;
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest$ac_exeext &&
12439 $as_test_x conftest$ac_exeext; then
12440 eval "$as_ac_Lib=yes"
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 eval "$as_ac_Lib=no"
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 ac_res=`eval echo '${'$as_ac_Lib'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12455 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12458 _ACEOF
12460 LIBS="-l${libname} $LIBS"
12464 if test "x$olibs" != "x$LIBS"; then
12465 if test "$cross_compiling" = yes; then
12466 res="FAIL"
12467 else
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 #ifdef HAVE_TERMCAP_H
12476 # include <termcap.h>
12477 #endif
12478 #if STDC_HEADERS
12479 # include <stdlib.h>
12480 # include <stddef.h>
12481 #endif
12482 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12483 _ACEOF
12484 rm -f conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 res="OK"
12505 else
12506 echo "$as_me: program exited with status $ac_status" >&5
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ( exit $ac_status )
12511 res="FAIL"
12513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12517 if test "$res" = "OK"; then
12518 break
12520 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12521 echo "${ECHO_T}$libname library is not usable" >&6; }
12522 LIBS="$olibs"
12524 done
12525 if test "x$olibs" = "x$LIBS"; then
12526 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12527 echo "${ECHO_T}no terminal library found" >&6; }
12531 if test "x$olibs" = "x$LIBS"; then
12532 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12533 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12542 main ()
12544 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12546 return 0;
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 { echo "$as_me:$LINENO: result: yes" >&5
12568 echo "${ECHO_T}yes" >&6; }
12569 else
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12573 { { echo "$as_me:$LINENO: error: NOT FOUND!
12574 You need to install a terminal library; for example ncurses.
12575 Or specify the name of the library with --with-tlib." >&5
12576 echo "$as_me: error: NOT FOUND!
12577 You need to install a terminal library; for example ncurses.
12578 Or specify the name of the library with --with-tlib." >&2;}
12579 { (exit 1); exit 1; }; }
12582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12583 conftest$ac_exeext conftest.$ac_ext
12586 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12587 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12588 if test "${vim_cv_terminfo+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12592 if test "$cross_compiling" = yes; then
12594 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12595 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12596 { (exit 1); exit 1; }; }
12598 else
12599 cat >conftest.$ac_ext <<_ACEOF
12601 #include "confdefs.h"
12602 #ifdef HAVE_TERMCAP_H
12603 # include <termcap.h>
12604 #endif
12605 #ifdef HAVE_STRING_H
12606 # include <string.h>
12607 #endif
12608 #if STDC_HEADERS
12609 # include <stdlib.h>
12610 # include <stddef.h>
12611 #endif
12612 main()
12613 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12615 _ACEOF
12616 rm -f conftest$ac_exeext
12617 if { (ac_try="$ac_link"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621 esac
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12627 { (case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_try") 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12637 vim_cv_terminfo=no
12639 else
12640 echo "$as_me: program exited with status $ac_status" >&5
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 ( exit $ac_status )
12646 vim_cv_terminfo=yes
12649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12655 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12656 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12658 if test "x$vim_cv_terminfo" = "xyes" ; then
12659 cat >>confdefs.h <<\_ACEOF
12660 #define TERMINFO 1
12661 _ACEOF
12665 if test "x$olibs" != "x$LIBS"; then
12666 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12667 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12668 if test "${vim_cv_tgent+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12672 if test "$cross_compiling" = yes; then
12674 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12675 echo "$as_me: error: failed to compile test program." >&2;}
12676 { (exit 1); exit 1; }; }
12678 else
12679 cat >conftest.$ac_ext <<_ACEOF
12681 #include "confdefs.h"
12682 #ifdef HAVE_TERMCAP_H
12683 # include <termcap.h>
12684 #endif
12685 #if STDC_HEADERS
12686 # include <stdlib.h>
12687 # include <stddef.h>
12688 #endif
12689 main()
12690 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12692 _ACEOF
12693 rm -f conftest$ac_exeext
12694 if { (ac_try="$ac_link"
12695 case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698 esac
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_link") 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12714 vim_cv_tgent=zero
12716 else
12717 echo "$as_me: program exited with status $ac_status" >&5
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 ( exit $ac_status )
12723 vim_cv_tgent=non-zero
12726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12732 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12733 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12735 if test "x$vim_cv_tgent" = "xzero" ; then
12736 cat >>confdefs.h <<\_ACEOF
12737 #define TGETENT_ZERO_ERR 0
12738 _ACEOF
12743 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12744 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12752 #ifdef HAVE_TERMCAP_H
12753 # include <termcap.h>
12754 #endif
12757 main ()
12759 ospeed = 20000
12761 return 0;
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (ac_try="$ac_link"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_link") 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest$ac_exeext &&
12781 $as_test_x conftest$ac_exeext; then
12782 { echo "$as_me:$LINENO: result: yes" >&5
12783 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12784 #define HAVE_OSPEED 1
12785 _ACEOF
12787 else
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 { echo "$as_me:$LINENO: result: no" >&5
12792 echo "${ECHO_T}no" >&6; }
12793 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12794 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12802 #ifdef HAVE_TERMCAP_H
12803 # include <termcap.h>
12804 #endif
12805 extern short ospeed;
12808 main ()
12810 ospeed = 20000
12812 return 0;
12814 _ACEOF
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (ac_try="$ac_link"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_link") 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest$ac_exeext &&
12832 $as_test_x conftest$ac_exeext; then
12833 { echo "$as_me:$LINENO: result: yes" >&5
12834 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12835 #define OSPEED_EXTERN 1
12836 _ACEOF
12838 else
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12842 { echo "$as_me:$LINENO: result: no" >&5
12843 echo "${ECHO_T}no" >&6; }
12846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12847 conftest$ac_exeext conftest.$ac_ext
12851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12852 conftest$ac_exeext conftest.$ac_ext
12854 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12855 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12856 cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h. */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12863 #ifdef HAVE_TERMCAP_H
12864 # include <termcap.h>
12865 #endif
12868 main ()
12870 if (UP == 0 && BC == 0) PC = 1
12872 return 0;
12874 _ACEOF
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (ac_try="$ac_link"
12877 case "(($ac_try" in
12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_link") 2>conftest.er1
12883 ac_status=$?
12884 grep -v '^ *+' conftest.er1 >conftest.err
12885 rm -f conftest.er1
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest$ac_exeext &&
12892 $as_test_x conftest$ac_exeext; then
12893 { echo "$as_me:$LINENO: result: yes" >&5
12894 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_UP_BC_PC 1
12896 _ACEOF
12898 else
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 { echo "$as_me:$LINENO: result: no" >&5
12903 echo "${ECHO_T}no" >&6; }
12904 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12905 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h. */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 #ifdef HAVE_TERMCAP_H
12914 # include <termcap.h>
12915 #endif
12916 extern char *UP, *BC, PC;
12919 main ()
12921 if (UP == 0 && BC == 0) PC = 1
12923 return 0;
12925 _ACEOF
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && {
12940 test -z "$ac_c_werror_flag" ||
12941 test ! -s conftest.err
12942 } && test -s conftest$ac_exeext &&
12943 $as_test_x conftest$ac_exeext; then
12944 { echo "$as_me:$LINENO: result: yes" >&5
12945 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12946 #define UP_BC_PC_EXTERN 1
12947 _ACEOF
12949 else
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 { echo "$as_me:$LINENO: result: no" >&5
12954 echo "${ECHO_T}no" >&6; }
12957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12958 conftest$ac_exeext conftest.$ac_ext
12962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
12965 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12966 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12974 #ifdef HAVE_TERMCAP_H
12975 # include <termcap.h>
12976 #endif
12979 main ()
12981 extern int xx(); tputs("test", 1, (outfuntype)xx)
12983 return 0;
12985 _ACEOF
12986 rm -f conftest.$ac_objext
12987 if { (ac_try="$ac_compile"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991 esac
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_compile") 2>conftest.er1
12994 ac_status=$?
12995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } && {
13000 test -z "$ac_c_werror_flag" ||
13001 test ! -s conftest.err
13002 } && test -s conftest.$ac_objext; then
13003 { echo "$as_me:$LINENO: result: yes" >&5
13004 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_OUTFUNTYPE 1
13006 _ACEOF
13008 else
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 { echo "$as_me:$LINENO: result: no" >&5
13013 echo "${ECHO_T}no" >&6; }
13016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13019 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h. */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13027 #include <sys/types.h>
13028 #include <sys/time.h>
13029 #include <sys/select.h>
13031 main ()
13035 return 0;
13037 _ACEOF
13038 rm -f conftest.$ac_objext
13039 if { (ac_try="$ac_compile"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_compile") 2>conftest.er1
13046 ac_status=$?
13047 grep -v '^ *+' conftest.er1 >conftest.err
13048 rm -f conftest.er1
13049 cat conftest.err >&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && {
13052 test -z "$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 } && test -s conftest.$ac_objext; then
13055 { echo "$as_me:$LINENO: result: yes" >&5
13056 echo "${ECHO_T}yes" >&6; }
13057 cat >>confdefs.h <<\_ACEOF
13058 #define SYS_SELECT_WITH_SYS_TIME 1
13059 _ACEOF
13061 else
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 { echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6; }
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13073 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13074 if test -r /dev/ptc; then
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_DEV_PTC 1
13077 _ACEOF
13079 { echo "$as_me:$LINENO: result: yes" >&5
13080 echo "${ECHO_T}yes" >&6; }
13081 else
13082 { echo "$as_me:$LINENO: result: no" >&5
13083 echo "${ECHO_T}no" >&6; }
13086 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13087 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13088 if test -c /dev/ptmx ; then
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h. */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13097 main ()
13099 ptsname(0);grantpt(0);unlockpt(0);
13101 return 0;
13103 _ACEOF
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } && {
13118 test -z "$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 } && test -s conftest$ac_exeext &&
13121 $as_test_x conftest$ac_exeext; then
13122 { echo "$as_me:$LINENO: result: yes" >&5
13123 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13124 #define HAVE_SVR4_PTYS 1
13125 _ACEOF
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13136 conftest$ac_exeext conftest.$ac_ext
13137 else
13138 { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13142 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13143 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13144 if test -d /dev/ptym ; then
13145 pdir='/dev/ptym'
13146 else
13147 pdir='/dev'
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #ifdef M_UNIX
13156 yes;
13157 #endif
13159 _ACEOF
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "yes" >/dev/null 2>&1; then
13162 ptys=`echo /dev/ptyp??`
13163 else
13164 ptys=`echo $pdir/pty??`
13166 rm -f -r conftest*
13168 if test "$ptys" != "$pdir/pty??" ; then
13169 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13170 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13171 cat >>confdefs.h <<_ACEOF
13172 #define PTYRANGE0 "$p0"
13173 _ACEOF
13175 cat >>confdefs.h <<_ACEOF
13176 #define PTYRANGE1 "$p1"
13177 _ACEOF
13179 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13180 echo "${ECHO_T}$p0 / $p1" >&6; }
13181 else
13182 { echo "$as_me:$LINENO: result: don't know" >&5
13183 echo "${ECHO_T}don't know" >&6; }
13186 rm -f conftest_grp
13187 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13188 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13189 if test "${vim_cv_tty_group+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 else
13193 if test "$cross_compiling" = yes; then
13195 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13196 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13197 { (exit 1); exit 1; }; }
13199 else
13200 cat >conftest.$ac_ext <<_ACEOF
13202 #include "confdefs.h"
13203 #include <sys/types.h>
13204 #if STDC_HEADERS
13205 # include <stdlib.h>
13206 # include <stddef.h>
13207 #endif
13208 #ifdef HAVE_UNISTD_H
13209 #include <unistd.h>
13210 #endif
13211 #include <sys/stat.h>
13212 #include <stdio.h>
13213 main()
13215 struct stat sb;
13216 char *x,*ttyname();
13217 int om, m;
13218 FILE *fp;
13220 if (!(x = ttyname(0))) exit(1);
13221 if (stat(x, &sb)) exit(1);
13222 om = sb.st_mode;
13223 if (om & 002) exit(0);
13224 m = system("mesg y");
13225 if (m == -1 || m == 127) exit(1);
13226 if (stat(x, &sb)) exit(1);
13227 m = sb.st_mode;
13228 if (chmod(x, om)) exit(1);
13229 if (m & 002) exit(0);
13230 if (sb.st_gid == getgid()) exit(1);
13231 if (!(fp=fopen("conftest_grp", "w")))
13232 exit(1);
13233 fprintf(fp, "%d\n", sb.st_gid);
13234 fclose(fp);
13235 exit(0);
13238 _ACEOF
13239 rm -f conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13260 if test -f conftest_grp; then
13261 vim_cv_tty_group=`cat conftest_grp`
13262 if test "x$vim_cv_tty_mode" = "x" ; then
13263 vim_cv_tty_mode=0620
13265 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13266 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13267 else
13268 vim_cv_tty_group=world
13269 { echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13270 echo "${ECHO_T}ptys are world accessible" >&6; }
13273 else
13274 echo "$as_me: program exited with status $ac_status" >&5
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ( exit $ac_status )
13280 vim_cv_tty_group=world
13281 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13282 echo "${ECHO_T}can't determine - assume ptys are world accessible" >&6; }
13285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13291 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13292 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13293 rm -f conftest_grp
13295 if test "x$vim_cv_tty_group" != "xworld" ; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define PTYGROUP $vim_cv_tty_group
13298 _ACEOF
13300 if test "x$vim_cv_tty_mode" = "x" ; then
13301 { { echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
13302 echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13303 { (exit 1); exit 1; }; }
13304 else
13305 cat >>confdefs.h <<\_ACEOF
13306 #define PTYMODE 0620
13307 _ACEOF
13313 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13314 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13315 if test "${ac_cv_type_signal+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <sys/types.h>
13325 #include <signal.h>
13328 main ()
13330 return *(signal (0, 0)) (0) == 1;
13332 return 0;
13334 _ACEOF
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340 esac
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_compile") 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && {
13349 test -z "$ac_c_werror_flag" ||
13350 test ! -s conftest.err
13351 } && test -s conftest.$ac_objext; then
13352 ac_cv_type_signal=int
13353 else
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_cv_type_signal=void
13360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13363 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13365 cat >>confdefs.h <<_ACEOF
13366 #define RETSIGTYPE $ac_cv_type_signal
13367 _ACEOF
13371 if test $ac_cv_type_signal = void; then
13372 cat >>confdefs.h <<\_ACEOF
13373 #define SIGRETURN return
13374 _ACEOF
13376 else
13377 cat >>confdefs.h <<\_ACEOF
13378 #define SIGRETURN return 0
13379 _ACEOF
13383 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13384 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13385 cat >conftest.$ac_ext <<_ACEOF
13386 /* confdefs.h. */
13387 _ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 #include <signal.h>
13393 test_sig()
13395 struct sigcontext *scont;
13396 scont = (struct sigcontext *)0;
13397 return 1;
13400 main ()
13404 return 0;
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (ac_try="$ac_compile"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_compile") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest.$ac_objext; then
13424 { echo "$as_me:$LINENO: result: yes" >&5
13425 echo "${ECHO_T}yes" >&6; }
13426 cat >>confdefs.h <<\_ACEOF
13427 #define HAVE_SIGCONTEXT 1
13428 _ACEOF
13430 else
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 { echo "$as_me:$LINENO: result: no" >&5
13435 echo "${ECHO_T}no" >&6; }
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13440 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13441 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13442 if test "${vim_cv_getcwd_broken+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13446 if test "$cross_compiling" = yes; then
13448 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13449 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13450 { (exit 1); exit 1; }; }
13452 else
13453 cat >conftest.$ac_ext <<_ACEOF
13455 #include "confdefs.h"
13456 #ifdef HAVE_UNISTD_H
13457 #include <unistd.h>
13458 #endif
13459 char *dagger[] = { "IFS=pwd", 0 };
13460 main()
13462 char buffer[500];
13463 extern char **environ;
13464 environ = dagger;
13465 return getcwd(buffer, 500) ? 0 : 1;
13468 _ACEOF
13469 rm -f conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474 esac
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13486 ac_status=$?
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13490 vim_cv_getcwd_broken=no
13492 else
13493 echo "$as_me: program exited with status $ac_status" >&5
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ( exit $ac_status )
13499 vim_cv_getcwd_broken=yes
13502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13508 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13509 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13511 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13512 cat >>confdefs.h <<\_ACEOF
13513 #define BAD_GETCWD 1
13514 _ACEOF
13565 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13566 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13567 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
13568 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13569 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13570 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13571 usleep utime utimes
13573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13587 #define $ac_func innocuous_$ac_func
13589 /* System header to define __stub macros and hopefully few prototypes,
13590 which can conflict with char $ac_func (); below.
13591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13592 <limits.h> exists even on freestanding compilers. */
13594 #ifdef __STDC__
13595 # include <limits.h>
13596 #else
13597 # include <assert.h>
13598 #endif
13600 #undef $ac_func
13602 /* Override any GCC internal prototype to avoid an error.
13603 Use char because int might match the return type of a GCC
13604 builtin and then its argument prototype would still apply. */
13605 #ifdef __cplusplus
13606 extern "C"
13607 #endif
13608 char $ac_func ();
13609 /* The GNU C library defines this for functions which it implements
13610 to always fail with ENOSYS. Some functions are actually named
13611 something starting with __ and the normal name is an alias. */
13612 #if defined __stub_$ac_func || defined __stub___$ac_func
13613 choke me
13614 #endif
13617 main ()
13619 return $ac_func ();
13621 return 0;
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (ac_try="$ac_link"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13629 esac
13630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13631 (eval "$ac_link") 2>conftest.er1
13632 ac_status=$?
13633 grep -v '^ *+' conftest.er1 >conftest.err
13634 rm -f conftest.er1
13635 cat conftest.err >&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && {
13638 test -z "$ac_c_werror_flag" ||
13639 test ! -s conftest.err
13640 } && test -s conftest$ac_exeext &&
13641 $as_test_x conftest$ac_exeext; then
13642 eval "$as_ac_var=yes"
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 eval "$as_ac_var=no"
13650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13651 conftest$ac_exeext conftest.$ac_ext
13653 ac_res=`eval echo '${'$as_ac_var'}'`
13654 { echo "$as_me:$LINENO: result: $ac_res" >&5
13655 echo "${ECHO_T}$ac_res" >&6; }
13656 if test `eval echo '${'$as_ac_var'}'` = yes; then
13657 cat >>confdefs.h <<_ACEOF
13658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13659 _ACEOF
13662 done
13665 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13666 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 #include <sys/types.h>
13674 #include <sys/stat.h>
13676 main ()
13678 struct stat st;
13679 int n;
13681 stat("/", &st);
13682 n = (int)st.st_blksize;
13684 return 0;
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 { echo "$as_me:$LINENO: result: yes" >&5
13705 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13706 #define HAVE_ST_BLKSIZE 1
13707 _ACEOF
13709 else
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 { echo "$as_me:$LINENO: result: no" >&5
13714 echo "${ECHO_T}no" >&6; }
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13719 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13720 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13721 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 else
13725 if test "$cross_compiling" = yes; then
13727 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13728 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13729 { (exit 1); exit 1; }; }
13731 else
13732 cat >conftest.$ac_ext <<_ACEOF
13734 #include "confdefs.h"
13735 #if STDC_HEADERS
13736 # include <stdlib.h>
13737 # include <stddef.h>
13738 #endif
13739 #include <sys/types.h>
13740 #include <sys/stat.h>
13741 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13743 _ACEOF
13744 rm -f conftest$ac_exeext
13745 if { (ac_try="$ac_link"
13746 case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13749 esac
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_link") 2>&5
13752 ac_status=$?
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758 esac
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_try") 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13765 vim_cv_stat_ignores_slash=yes
13767 else
13768 echo "$as_me: program exited with status $ac_status" >&5
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13772 ( exit $ac_status )
13774 vim_cv_stat_ignores_slash=no
13777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13783 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13784 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13786 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13787 cat >>confdefs.h <<\_ACEOF
13788 #define STAT_IGNORES_SLASH 1
13789 _ACEOF
13793 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13794 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13795 save_LIBS="$LIBS"
13796 LIBS="$LIBS -liconv"
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13804 #ifdef HAVE_ICONV_H
13805 # include <iconv.h>
13806 #endif
13809 main ()
13811 iconv_open("fr", "to");
13813 return 0;
13815 _ACEOF
13816 rm -f conftest.$ac_objext conftest$ac_exeext
13817 if { (ac_try="$ac_link"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821 esac
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_link") 2>conftest.er1
13824 ac_status=$?
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest$ac_exeext &&
13833 $as_test_x conftest$ac_exeext; then
13834 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13835 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
13836 #define HAVE_ICONV 1
13837 _ACEOF
13839 else
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 LIBS="$save_LIBS"
13844 cat >conftest.$ac_ext <<_ACEOF
13845 /* confdefs.h. */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13851 #ifdef HAVE_ICONV_H
13852 # include <iconv.h>
13853 #endif
13856 main ()
13858 iconv_open("fr", "to");
13860 return 0;
13862 _ACEOF
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (ac_try="$ac_link"
13865 case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_link") 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest$ac_exeext &&
13880 $as_test_x conftest$ac_exeext; then
13881 { echo "$as_me:$LINENO: result: yes" >&5
13882 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13883 #define HAVE_ICONV 1
13884 _ACEOF
13886 else
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 { echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6; }
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895 conftest$ac_exeext conftest.$ac_ext
13898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13899 conftest$ac_exeext conftest.$ac_ext
13902 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13903 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h. */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13911 #ifdef HAVE_LANGINFO_H
13912 # include <langinfo.h>
13913 #endif
13916 main ()
13918 char *cs = nl_langinfo(CODESET);
13920 return 0;
13922 _ACEOF
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (ac_try="$ac_link"
13925 case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_link") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest$ac_exeext &&
13940 $as_test_x conftest$ac_exeext; then
13941 { echo "$as_me:$LINENO: result: yes" >&5
13942 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13943 #define HAVE_NL_LANGINFO_CODESET 1
13944 _ACEOF
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 { echo "$as_me:$LINENO: result: no" >&5
13951 echo "${ECHO_T}no" >&6; }
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955 conftest$ac_exeext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
13959 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
13960 if test "${ac_cv_lib_m_strtod+set}" = set; then
13961 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 else
13963 ac_check_lib_save_LIBS=$LIBS
13964 LIBS="-lm $LIBS"
13965 cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13975 #ifdef __cplusplus
13976 extern "C"
13977 #endif
13978 char strtod ();
13980 main ()
13982 return strtod ();
13984 return 0;
13986 _ACEOF
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (ac_try="$ac_link"
13989 case "(($ac_try" in
13990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991 *) ac_try_echo=$ac_try;;
13992 esac
13993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13994 (eval "$ac_link") 2>conftest.er1
13995 ac_status=$?
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && {
14001 test -z "$ac_c_werror_flag" ||
14002 test ! -s conftest.err
14003 } && test -s conftest$ac_exeext &&
14004 $as_test_x conftest$ac_exeext; then
14005 ac_cv_lib_m_strtod=yes
14006 else
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 ac_cv_lib_m_strtod=no
14013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14014 conftest$ac_exeext conftest.$ac_ext
14015 LIBS=$ac_check_lib_save_LIBS
14017 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14018 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14019 if test $ac_cv_lib_m_strtod = yes; then
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_LIBM 1
14022 _ACEOF
14024 LIBS="-lm $LIBS"
14028 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14029 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14030 cat >conftest.$ac_ext <<_ACEOF
14031 /* confdefs.h. */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 #ifdef HAVE_MATH_H
14038 # include <math.h>
14039 #endif
14040 #if STDC_HEADERS
14041 # include <stdlib.h>
14042 # include <stddef.h>
14043 #endif
14046 main ()
14048 char *s; double d;
14049 d = strtod("1.1", &s);
14050 d = fabs(1.11);
14051 d = ceil(1.11);
14052 d = floor(1.11);
14053 d = log10(1.11);
14054 d = pow(1.11, 2.22);
14055 d = sqrt(1.11);
14056 d = sin(1.11);
14057 d = cos(1.11);
14058 d = atan(1.11);
14061 return 0;
14063 _ACEOF
14064 rm -f conftest.$ac_objext conftest$ac_exeext
14065 if { (ac_try="$ac_link"
14066 case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069 esac
14070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_link") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } && {
14078 test -z "$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14080 } && test -s conftest$ac_exeext &&
14081 $as_test_x conftest$ac_exeext; then
14082 { echo "$as_me:$LINENO: result: yes" >&5
14083 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14084 #define HAVE_FLOAT_FUNCS 1
14085 _ACEOF
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 { echo "$as_me:$LINENO: result: no" >&5
14092 echo "${ECHO_T}no" >&6; }
14095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14096 conftest$ac_exeext conftest.$ac_ext
14098 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14099 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14100 # Check whether --enable-acl was given.
14101 if test "${enable_acl+set}" = set; then
14102 enableval=$enable_acl;
14103 else
14104 enable_acl="yes"
14107 if test "$enable_acl" = "yes"; then
14108 { echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6; }
14110 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14111 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14112 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115 ac_check_lib_save_LIBS=$LIBS
14116 LIBS="-lposix1e $LIBS"
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h. */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14124 /* Override any GCC internal prototype to avoid an error.
14125 Use char because int might match the return type of a GCC
14126 builtin and then its argument prototype would still apply. */
14127 #ifdef __cplusplus
14128 extern "C"
14129 #endif
14130 char acl_get_file ();
14132 main ()
14134 return acl_get_file ();
14136 return 0;
14138 _ACEOF
14139 rm -f conftest.$ac_objext conftest$ac_exeext
14140 if { (ac_try="$ac_link"
14141 case "(($ac_try" in
14142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143 *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146 (eval "$ac_link") 2>conftest.er1
14147 ac_status=$?
14148 grep -v '^ *+' conftest.er1 >conftest.err
14149 rm -f conftest.er1
14150 cat conftest.err >&5
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); } && {
14153 test -z "$ac_c_werror_flag" ||
14154 test ! -s conftest.err
14155 } && test -s conftest$ac_exeext &&
14156 $as_test_x conftest$ac_exeext; then
14157 ac_cv_lib_posix1e_acl_get_file=yes
14158 else
14159 echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_cv_lib_posix1e_acl_get_file=no
14165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14166 conftest$ac_exeext conftest.$ac_ext
14167 LIBS=$ac_check_lib_save_LIBS
14169 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14170 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14171 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14172 LIBS="$LIBS -lposix1e"
14173 else
14174 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14175 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14176 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 else
14179 ac_check_lib_save_LIBS=$LIBS
14180 LIBS="-lacl $LIBS"
14181 cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h. */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h. */
14188 /* Override any GCC internal prototype to avoid an error.
14189 Use char because int might match the return type of a GCC
14190 builtin and then its argument prototype would still apply. */
14191 #ifdef __cplusplus
14192 extern "C"
14193 #endif
14194 char acl_get_file ();
14196 main ()
14198 return acl_get_file ();
14200 return 0;
14202 _ACEOF
14203 rm -f conftest.$ac_objext conftest$ac_exeext
14204 if { (ac_try="$ac_link"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208 esac
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_link") 2>conftest.er1
14211 ac_status=$?
14212 grep -v '^ *+' conftest.er1 >conftest.err
14213 rm -f conftest.er1
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } && {
14217 test -z "$ac_c_werror_flag" ||
14218 test ! -s conftest.err
14219 } && test -s conftest$ac_exeext &&
14220 $as_test_x conftest$ac_exeext; then
14221 ac_cv_lib_acl_acl_get_file=yes
14222 else
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 ac_cv_lib_acl_acl_get_file=no
14229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14233 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14234 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14235 if test $ac_cv_lib_acl_acl_get_file = yes; then
14236 LIBS="$LIBS -lacl"
14237 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14238 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14239 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242 ac_check_lib_save_LIBS=$LIBS
14243 LIBS="-lattr $LIBS"
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply. */
14254 #ifdef __cplusplus
14255 extern "C"
14256 #endif
14257 char fgetxattr ();
14259 main ()
14261 return fgetxattr ();
14263 return 0;
14265 _ACEOF
14266 rm -f conftest.$ac_objext conftest$ac_exeext
14267 if { (ac_try="$ac_link"
14268 case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } && {
14280 test -z "$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14282 } && test -s conftest$ac_exeext &&
14283 $as_test_x conftest$ac_exeext; then
14284 ac_cv_lib_attr_fgetxattr=yes
14285 else
14286 echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 ac_cv_lib_attr_fgetxattr=no
14292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14293 conftest$ac_exeext conftest.$ac_ext
14294 LIBS=$ac_check_lib_save_LIBS
14296 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14297 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14298 if test $ac_cv_lib_attr_fgetxattr = yes; then
14299 LIBS="$LIBS -lattr"
14307 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14308 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14309 cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h. */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14316 #include <sys/types.h>
14317 #ifdef HAVE_SYS_ACL_H
14318 # include <sys/acl.h>
14319 #endif
14320 acl_t acl;
14322 main ()
14324 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14325 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14326 acl_free(acl);
14328 return 0;
14330 _ACEOF
14331 rm -f conftest.$ac_objext conftest$ac_exeext
14332 if { (ac_try="$ac_link"
14333 case "(($ac_try" in
14334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14335 *) ac_try_echo=$ac_try;;
14336 esac
14337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14338 (eval "$ac_link") 2>conftest.er1
14339 ac_status=$?
14340 grep -v '^ *+' conftest.er1 >conftest.err
14341 rm -f conftest.er1
14342 cat conftest.err >&5
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); } && {
14345 test -z "$ac_c_werror_flag" ||
14346 test ! -s conftest.err
14347 } && test -s conftest$ac_exeext &&
14348 $as_test_x conftest$ac_exeext; then
14349 { echo "$as_me:$LINENO: result: yes" >&5
14350 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14351 #define HAVE_POSIX_ACL 1
14352 _ACEOF
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14358 { echo "$as_me:$LINENO: result: no" >&5
14359 echo "${ECHO_T}no" >&6; }
14362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14363 conftest$ac_exeext conftest.$ac_ext
14365 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14366 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14374 #ifdef HAVE_SYS_ACL_H
14375 # include <sys/acl.h>
14376 #endif
14378 main ()
14380 acl("foo", GETACLCNT, 0, NULL);
14383 return 0;
14385 _ACEOF
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (ac_try="$ac_link"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14391 esac
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest$ac_exeext &&
14403 $as_test_x conftest$ac_exeext; then
14404 { echo "$as_me:$LINENO: result: yes" >&5
14405 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14406 #define HAVE_SOLARIS_ACL 1
14407 _ACEOF
14409 else
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 { echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6; }
14417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14418 conftest$ac_exeext conftest.$ac_ext
14420 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14421 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14422 cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h. */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14429 #if STDC_HEADERS
14430 # include <stdlib.h>
14431 # include <stddef.h>
14432 #endif
14433 #ifdef HAVE_SYS_ACL_H
14434 # include <sys/acl.h>
14435 #endif
14436 #ifdef HAVE_SYS_ACCESS_H
14437 # include <sys/access.h>
14438 #endif
14439 #define _ALL_SOURCE
14441 #include <sys/stat.h>
14443 int aclsize;
14444 struct acl *aclent;
14446 main ()
14448 aclsize = sizeof(struct acl);
14449 aclent = (void *)malloc(aclsize);
14450 statacl("foo", STX_NORMAL, aclent, aclsize);
14453 return 0;
14455 _ACEOF
14456 rm -f conftest.$ac_objext conftest$ac_exeext
14457 if { (ac_try="$ac_link"
14458 case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14461 esac
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_link") 2>conftest.er1
14464 ac_status=$?
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest$ac_exeext &&
14473 $as_test_x conftest$ac_exeext; then
14474 { echo "$as_me:$LINENO: result: yes" >&5
14475 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14476 #define HAVE_AIX_ACL 1
14477 _ACEOF
14479 else
14480 echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14483 { echo "$as_me:$LINENO: result: no" >&5
14484 echo "${ECHO_T}no" >&6; }
14487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14488 conftest$ac_exeext conftest.$ac_ext
14489 else
14490 { echo "$as_me:$LINENO: result: yes" >&5
14491 echo "${ECHO_T}yes" >&6; }
14494 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14495 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14496 # Check whether --enable-gpm was given.
14497 if test "${enable_gpm+set}" = set; then
14498 enableval=$enable_gpm;
14499 else
14500 enable_gpm="yes"
14504 if test "$enable_gpm" = "yes"; then
14505 { echo "$as_me:$LINENO: result: no" >&5
14506 echo "${ECHO_T}no" >&6; }
14507 { echo "$as_me:$LINENO: checking for gpm" >&5
14508 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14509 if test "${vi_cv_have_gpm+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 else
14512 olibs="$LIBS" ; LIBS="-lgpm"
14513 cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h. */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 #include <gpm.h>
14520 #include <linux/keyboard.h>
14522 main ()
14524 Gpm_GetLibVersion(NULL);
14526 return 0;
14528 _ACEOF
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (ac_try="$ac_link"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && {
14543 test -z "$ac_c_werror_flag" ||
14544 test ! -s conftest.err
14545 } && test -s conftest$ac_exeext &&
14546 $as_test_x conftest$ac_exeext; then
14547 vi_cv_have_gpm=yes
14548 else
14549 echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 vi_cv_have_gpm=no
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14557 LIBS="$olibs"
14560 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14561 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14562 if test $vi_cv_have_gpm = yes; then
14563 LIBS="$LIBS -lgpm"
14564 cat >>confdefs.h <<\_ACEOF
14565 #define HAVE_GPM 1
14566 _ACEOF
14569 else
14570 { echo "$as_me:$LINENO: result: yes" >&5
14571 echo "${ECHO_T}yes" >&6; }
14574 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14575 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14576 # Check whether --enable-sysmouse was given.
14577 if test "${enable_sysmouse+set}" = set; then
14578 enableval=$enable_sysmouse;
14579 else
14580 enable_sysmouse="yes"
14584 if test "$enable_sysmouse" = "yes"; then
14585 { echo "$as_me:$LINENO: result: no" >&5
14586 echo "${ECHO_T}no" >&6; }
14587 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14588 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14589 if test "${vi_cv_have_sysmouse+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592 cat >conftest.$ac_ext <<_ACEOF
14593 /* confdefs.h. */
14594 _ACEOF
14595 cat confdefs.h >>conftest.$ac_ext
14596 cat >>conftest.$ac_ext <<_ACEOF
14597 /* end confdefs.h. */
14598 #include <sys/consio.h>
14599 #include <signal.h>
14600 #include <sys/fbio.h>
14602 main ()
14604 struct mouse_info mouse;
14605 mouse.operation = MOUSE_MODE;
14606 mouse.operation = MOUSE_SHOW;
14607 mouse.u.mode.mode = 0;
14608 mouse.u.mode.signal = SIGUSR2;
14610 return 0;
14612 _ACEOF
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>conftest.er1
14621 ac_status=$?
14622 grep -v '^ *+' conftest.er1 >conftest.err
14623 rm -f conftest.er1
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && {
14627 test -z "$ac_c_werror_flag" ||
14628 test ! -s conftest.err
14629 } && test -s conftest$ac_exeext &&
14630 $as_test_x conftest$ac_exeext; then
14631 vi_cv_have_sysmouse=yes
14632 else
14633 echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14636 vi_cv_have_sysmouse=no
14639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14640 conftest$ac_exeext conftest.$ac_ext
14643 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14644 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14645 if test $vi_cv_have_sysmouse = yes; then
14646 cat >>confdefs.h <<\_ACEOF
14647 #define HAVE_SYSMOUSE 1
14648 _ACEOF
14651 else
14652 { echo "$as_me:$LINENO: result: yes" >&5
14653 echo "${ECHO_T}yes" >&6; }
14656 { echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
14657 echo $ECHO_N "checking for FD_CLOEXEC... $ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #if HAVE_FCNTL_H
14665 # include <fcntl.h>
14666 #endif
14668 main ()
14670 int flag = FD_CLOEXEC;
14672 return 0;
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (ac_try="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14692 { echo "$as_me:$LINENO: result: yes" >&5
14693 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_FD_CLOEXEC 1
14695 _ACEOF
14697 else
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 { echo "$as_me:$LINENO: result: not usable" >&5
14702 echo "${ECHO_T}not usable" >&6; }
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 { echo "$as_me:$LINENO: checking for rename" >&5
14708 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14709 cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h. */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <stdio.h>
14717 main ()
14719 rename("this", "that")
14721 return 0;
14723 _ACEOF
14724 rm -f conftest.$ac_objext conftest$ac_exeext
14725 if { (ac_try="$ac_link"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_link") 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest$ac_exeext &&
14741 $as_test_x conftest$ac_exeext; then
14742 { echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14744 #define HAVE_RENAME 1
14745 _ACEOF
14747 else
14748 echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14751 { echo "$as_me:$LINENO: result: no" >&5
14752 echo "${ECHO_T}no" >&6; }
14755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14756 conftest$ac_exeext conftest.$ac_ext
14758 { echo "$as_me:$LINENO: checking for sysctl" >&5
14759 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h. */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h. */
14766 #include <sys/types.h>
14767 #include <sys/sysctl.h>
14769 main ()
14771 int mib[2], r;
14772 size_t len;
14774 mib[0] = CTL_HW;
14775 mib[1] = HW_USERMEM;
14776 len = sizeof(r);
14777 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14780 return 0;
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_compile") 2>conftest.er1
14791 ac_status=$?
14792 grep -v '^ *+' conftest.er1 >conftest.err
14793 rm -f conftest.er1
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } && {
14797 test -z "$ac_c_werror_flag" ||
14798 test ! -s conftest.err
14799 } && test -s conftest.$ac_objext; then
14800 { echo "$as_me:$LINENO: result: yes" >&5
14801 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_SYSCTL 1
14803 _ACEOF
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 { echo "$as_me:$LINENO: result: not usable" >&5
14810 echo "${ECHO_T}not usable" >&6; }
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14815 { echo "$as_me:$LINENO: checking for sysinfo" >&5
14816 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #include <sys/types.h>
14824 #include <sys/sysinfo.h>
14826 main ()
14828 struct sysinfo sinfo;
14829 int t;
14831 (void)sysinfo(&sinfo);
14832 t = sinfo.totalram;
14835 return 0;
14837 _ACEOF
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14843 esac
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14846 ac_status=$?
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
14855 { echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14857 #define HAVE_SYSINFO 1
14858 _ACEOF
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14864 { echo "$as_me:$LINENO: result: not usable" >&5
14865 echo "${ECHO_T}not usable" >&6; }
14868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14870 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
14871 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 #include <sys/types.h>
14879 #include <sys/sysinfo.h>
14881 main ()
14883 struct sysinfo sinfo;
14884 sinfo.mem_unit = 1;
14887 return 0;
14889 _ACEOF
14890 rm -f conftest.$ac_objext
14891 if { (ac_try="$ac_compile"
14892 case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895 esac
14896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_compile") 2>conftest.er1
14898 ac_status=$?
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && {
14904 test -z "$ac_c_werror_flag" ||
14905 test ! -s conftest.err
14906 } && test -s conftest.$ac_objext; then
14907 { echo "$as_me:$LINENO: result: yes" >&5
14908 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14909 #define HAVE_SYSINFO_MEM_UNIT 1
14910 _ACEOF
14912 else
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 { echo "$as_me:$LINENO: result: no" >&5
14917 echo "${ECHO_T}no" >&6; }
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 { echo "$as_me:$LINENO: checking for sysconf" >&5
14923 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <unistd.h>
14932 main ()
14934 (void)sysconf(_SC_PAGESIZE);
14935 (void)sysconf(_SC_PHYS_PAGES);
14938 return 0;
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (ac_try="$ac_compile"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_compile") 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } && {
14955 test -z "$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14957 } && test -s conftest.$ac_objext; then
14958 { echo "$as_me:$LINENO: result: yes" >&5
14959 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14960 #define HAVE_SYSCONF 1
14961 _ACEOF
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 { echo "$as_me:$LINENO: result: not usable" >&5
14968 echo "${ECHO_T}not usable" >&6; }
14971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 { echo "$as_me:$LINENO: checking size of int" >&5
14975 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14976 if test "${ac_cv_sizeof_int+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 else
14979 if test "$cross_compiling" = yes; then
14980 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14981 echo "$as_me: error: failed to compile test program" >&2;}
14982 { (exit 1); exit 1; }; }
14983 else
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h. */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14991 #include <stdio.h>
14992 #if STDC_HEADERS
14993 # include <stdlib.h>
14994 # include <stddef.h>
14995 #endif
14996 main()
14998 FILE *f=fopen("conftestval", "w");
14999 if (!f) exit(1);
15000 fprintf(f, "%d\n", (int)sizeof(int));
15001 exit(0);
15003 _ACEOF
15004 rm -f conftest$ac_exeext
15005 if { (ac_try="$ac_link"
15006 case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15009 esac
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_link") 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15015 { (case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_try") 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_cv_sizeof_int=`cat conftestval`
15025 else
15026 echo "$as_me: program exited with status $ac_status" >&5
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 ( exit $ac_status )
15031 ac_cv_sizeof_int=0
15033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15040 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15041 cat >>confdefs.h <<_ACEOF
15042 #define SIZEOF_INT $ac_cv_sizeof_int
15043 _ACEOF
15047 bcopy_test_prog='
15048 #include "confdefs.h"
15049 #ifdef HAVE_STRING_H
15050 # include <string.h>
15051 #endif
15052 #if STDC_HEADERS
15053 # include <stdlib.h>
15054 # include <stddef.h>
15055 #endif
15056 main() {
15057 char buf[10];
15058 strcpy(buf, "abcdefghi");
15059 mch_memmove(buf, buf + 2, 3);
15060 if (strncmp(buf, "ababcf", 6))
15061 exit(1);
15062 strcpy(buf, "abcdefghi");
15063 mch_memmove(buf + 2, buf, 3);
15064 if (strncmp(buf, "cdedef", 6))
15065 exit(1);
15066 exit(0); /* libc version works properly. */
15069 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15070 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15071 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15075 if test "$cross_compiling" = yes; then
15077 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15078 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15079 { (exit 1); exit 1; }; }
15081 else
15082 cat >conftest.$ac_ext <<_ACEOF
15083 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15084 _ACEOF
15085 rm -f conftest$ac_exeext
15086 if { (ac_try="$ac_link"
15087 case "(($ac_try" in
15088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089 *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092 (eval "$ac_link") 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15098 *) ac_try_echo=$ac_try;;
15099 esac
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15106 vim_cv_memmove_handles_overlap=yes
15108 else
15109 echo "$as_me: program exited with status $ac_status" >&5
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ( exit $ac_status )
15115 vim_cv_memmove_handles_overlap=no
15118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15124 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15125 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15127 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define USEMEMMOVE 1
15130 _ACEOF
15132 else
15133 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15134 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15135 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15139 if test "$cross_compiling" = yes; then
15141 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15142 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15143 { (exit 1); exit 1; }; }
15145 else
15146 cat >conftest.$ac_ext <<_ACEOF
15147 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15148 _ACEOF
15149 rm -f conftest$ac_exeext
15150 if { (ac_try="$ac_link"
15151 case "(($ac_try" in
15152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15154 esac
15155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15156 (eval "$ac_link") 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15170 vim_cv_bcopy_handles_overlap=yes
15172 else
15173 echo "$as_me: program exited with status $ac_status" >&5
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15177 ( exit $ac_status )
15179 vim_cv_bcopy_handles_overlap=no
15182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15188 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15189 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15191 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15192 cat >>confdefs.h <<\_ACEOF
15193 #define USEBCOPY 1
15194 _ACEOF
15196 else
15197 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15198 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15199 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15203 if test "$cross_compiling" = yes; then
15205 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15206 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15207 { (exit 1); exit 1; }; }
15209 else
15210 cat >conftest.$ac_ext <<_ACEOF
15211 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15212 _ACEOF
15213 rm -f conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_link") 2>&5
15221 ac_status=$?
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15234 vim_cv_memcpy_handles_overlap=yes
15236 else
15237 echo "$as_me: program exited with status $ac_status" >&5
15238 echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15241 ( exit $ac_status )
15243 vim_cv_memcpy_handles_overlap=no
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15252 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15253 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15255 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15256 cat >>confdefs.h <<\_ACEOF
15257 #define USEMEMCPY 1
15258 _ACEOF
15266 if test "$enable_multibyte" = "yes"; then
15267 cflags_save=$CFLAGS
15268 ldflags_save=$LDFLAGS
15269 if test "x$x_includes" != "xNONE" ; then
15270 CFLAGS="$CFLAGS -I$x_includes"
15271 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15272 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15273 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 #include <X11/Xlocale.h>
15282 main ()
15286 return 0;
15288 _ACEOF
15289 rm -f conftest.$ac_objext
15290 if { (ac_try="$ac_compile"
15291 case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294 esac
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_compile") 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest.$ac_objext; then
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15316 #ifdef __cplusplus
15317 extern "C"
15318 #endif
15319 char _Xsetlocale ();
15321 main ()
15323 return _Xsetlocale ();
15325 return 0;
15327 _ACEOF
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (ac_try="$ac_link"
15330 case "(($ac_try" in
15331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332 *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_link") 2>conftest.er1
15336 ac_status=$?
15337 grep -v '^ *+' conftest.er1 >conftest.err
15338 rm -f conftest.er1
15339 cat conftest.err >&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest$ac_exeext &&
15345 $as_test_x conftest$ac_exeext; then
15346 { echo "$as_me:$LINENO: result: yes" >&5
15347 echo "${ECHO_T}yes" >&6; }
15348 cat >>confdefs.h <<\_ACEOF
15349 #define X_LOCALE 1
15350 _ACEOF
15352 else
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 { echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6; }
15360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15361 conftest$ac_exeext conftest.$ac_ext
15362 else
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 { echo "$as_me:$LINENO: result: no" >&5
15367 echo "${ECHO_T}no" >&6; }
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15372 CFLAGS=$cflags_save
15373 LDFLAGS=$ldflags_save
15376 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15377 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381 ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lxpg4 $LIBS"
15383 cat >conftest.$ac_ext <<_ACEOF
15384 /* confdefs.h. */
15385 _ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15393 #ifdef __cplusplus
15394 extern "C"
15395 #endif
15396 char _xpg4_setrunelocale ();
15398 main ()
15400 return _xpg4_setrunelocale ();
15402 return 0;
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && {
15419 test -z "$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15421 } && test -s conftest$ac_exeext &&
15422 $as_test_x conftest$ac_exeext; then
15423 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15424 else
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15432 conftest$ac_exeext conftest.$ac_ext
15433 LIBS=$ac_check_lib_save_LIBS
15435 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15436 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15437 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15438 LIBS="$LIBS -lxpg4"
15442 { echo "$as_me:$LINENO: checking how to create tags" >&5
15443 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15444 test -f tags && mv tags tags.save
15445 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15446 TAGPRG="ctags -I INIT+ --fields=+S"
15447 else
15448 TAGPRG="ctags"
15449 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15450 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15451 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15452 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15453 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15454 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15455 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15457 test -f tags.save && mv tags.save tags
15458 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15459 echo "${ECHO_T}$TAGPRG" >&6; }
15461 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15462 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15463 MANDEF="man"
15464 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15465 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15466 echo "${ECHO_T}$MANDEF" >&6; }
15467 if test "$MANDEF" = "man -s"; then
15468 cat >>confdefs.h <<\_ACEOF
15469 #define USEMAN_S 1
15470 _ACEOF
15474 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15475 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15476 # Check whether --enable-nls was given.
15477 if test "${enable_nls+set}" = set; then
15478 enableval=$enable_nls;
15479 else
15480 enable_nls="yes"
15484 if test "$enable_nls" = "yes"; then
15485 { echo "$as_me:$LINENO: result: no" >&5
15486 echo "${ECHO_T}no" >&6; }
15488 INSTALL_LANGS=install-languages
15490 INSTALL_TOOL_LANGS=install-tool-languages
15493 # Extract the first word of "msgfmt", so it can be a program name with args.
15494 set dummy msgfmt; ac_word=$2
15495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15497 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15498 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 else
15500 if test -n "$MSGFMT"; then
15501 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15502 else
15503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15504 for as_dir in $PATH
15506 IFS=$as_save_IFS
15507 test -z "$as_dir" && as_dir=.
15508 for ac_exec_ext in '' $ac_executable_extensions; do
15509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15510 ac_cv_prog_MSGFMT="msgfmt"
15511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15512 break 2
15514 done
15515 done
15516 IFS=$as_save_IFS
15520 MSGFMT=$ac_cv_prog_MSGFMT
15521 if test -n "$MSGFMT"; then
15522 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15523 echo "${ECHO_T}$MSGFMT" >&6; }
15524 else
15525 { echo "$as_me:$LINENO: result: no" >&5
15526 echo "${ECHO_T}no" >&6; }
15530 { echo "$as_me:$LINENO: checking for NLS" >&5
15531 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15532 if test -f po/Makefile; then
15533 have_gettext="no"
15534 if test -n "$MSGFMT"; then
15535 cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h. */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 #include <libintl.h>
15543 main ()
15545 gettext("Test");
15547 return 0;
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 { echo "$as_me:$LINENO: result: gettext() works" >&5
15569 echo "${ECHO_T}gettext() works" >&6; }; have_gettext="yes"
15570 else
15571 echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15574 olibs=$LIBS
15575 LIBS="$LIBS -lintl"
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 #include <libintl.h>
15584 main ()
15586 gettext("Test");
15588 return 0;
15590 _ACEOF
15591 rm -f conftest.$ac_objext conftest$ac_exeext
15592 if { (ac_try="$ac_link"
15593 case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596 esac
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_link") 2>conftest.er1
15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } && {
15605 test -z "$ac_c_werror_flag" ||
15606 test ! -s conftest.err
15607 } && test -s conftest$ac_exeext &&
15608 $as_test_x conftest$ac_exeext; then
15609 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15610 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15616 echo "${ECHO_T}gettext() doesn't work" >&6; };
15617 LIBS=$olibs
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15625 conftest$ac_exeext conftest.$ac_ext
15626 else
15627 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15628 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15630 if test $have_gettext = "yes"; then
15631 cat >>confdefs.h <<\_ACEOF
15632 #define HAVE_GETTEXT 1
15633 _ACEOF
15635 MAKEMO=yes
15638 for ac_func in bind_textdomain_codeset
15640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15645 else
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15654 #define $ac_func innocuous_$ac_func
15656 /* System header to define __stub macros and hopefully few prototypes,
15657 which can conflict with char $ac_func (); below.
15658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15659 <limits.h> exists even on freestanding compilers. */
15661 #ifdef __STDC__
15662 # include <limits.h>
15663 #else
15664 # include <assert.h>
15665 #endif
15667 #undef $ac_func
15669 /* Override any GCC internal prototype to avoid an error.
15670 Use char because int might match the return type of a GCC
15671 builtin and then its argument prototype would still apply. */
15672 #ifdef __cplusplus
15673 extern "C"
15674 #endif
15675 char $ac_func ();
15676 /* The GNU C library defines this for functions which it implements
15677 to always fail with ENOSYS. Some functions are actually named
15678 something starting with __ and the normal name is an alias. */
15679 #if defined __stub_$ac_func || defined __stub___$ac_func
15680 choke me
15681 #endif
15684 main ()
15686 return $ac_func ();
15688 return 0;
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_link") 2>conftest.er1
15699 ac_status=$?
15700 grep -v '^ *+' conftest.er1 >conftest.err
15701 rm -f conftest.er1
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } && {
15705 test -z "$ac_c_werror_flag" ||
15706 test ! -s conftest.err
15707 } && test -s conftest$ac_exeext &&
15708 $as_test_x conftest$ac_exeext; then
15709 eval "$as_ac_var=yes"
15710 else
15711 echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15714 eval "$as_ac_var=no"
15717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15718 conftest$ac_exeext conftest.$ac_ext
15720 ac_res=`eval echo '${'$as_ac_var'}'`
15721 { echo "$as_me:$LINENO: result: $ac_res" >&5
15722 echo "${ECHO_T}$ac_res" >&6; }
15723 if test `eval echo '${'$as_ac_var'}'` = yes; then
15724 cat >>confdefs.h <<_ACEOF
15725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15726 _ACEOF
15729 done
15731 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15732 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15733 cat >conftest.$ac_ext <<_ACEOF
15734 /* confdefs.h. */
15735 _ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15739 #include <libintl.h>
15740 extern int _nl_msg_cat_cntr;
15742 main ()
15744 ++_nl_msg_cat_cntr;
15746 return 0;
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 { echo "$as_me:$LINENO: result: yes" >&5
15768 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_NL_MSG_CAT_CNTR 1
15770 _ACEOF
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15776 { echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6; }
15780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15781 conftest$ac_exeext conftest.$ac_ext
15783 else
15784 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15785 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15787 else
15788 { echo "$as_me:$LINENO: result: yes" >&5
15789 echo "${ECHO_T}yes" >&6; }
15792 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15793 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15794 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15795 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15799 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15800 else
15801 # Is the header compilable?
15802 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15803 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
15804 cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h. */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 $ac_includes_default
15811 #include <dlfcn.h>
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15818 esac
15819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15820 (eval "$ac_compile") 2>conftest.er1
15821 ac_status=$?
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } && {
15827 test -z "$ac_c_werror_flag" ||
15828 test ! -s conftest.err
15829 } && test -s conftest.$ac_objext; then
15830 ac_header_compiler=yes
15831 else
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_header_compiler=no
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15840 echo "${ECHO_T}$ac_header_compiler" >&6; }
15842 # Is the header present?
15843 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15844 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 #include <dlfcn.h>
15852 _ACEOF
15853 if { (ac_try="$ac_cpp conftest.$ac_ext"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } >/dev/null && {
15866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 }; then
15869 ac_header_preproc=yes
15870 else
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 ac_header_preproc=no
15877 rm -f conftest.err conftest.$ac_ext
15878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15879 echo "${ECHO_T}$ac_header_preproc" >&6; }
15881 # So? What about this header?
15882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15883 yes:no: )
15884 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
15885 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
15887 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
15888 ac_header_preproc=yes
15890 no:yes:* )
15891 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
15892 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
15894 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
15896 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
15897 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
15898 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
15899 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
15900 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
15902 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
15905 esac
15906 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15907 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15908 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911 ac_cv_header_dlfcn_h=$ac_header_preproc
15913 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15914 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15917 if test $ac_cv_header_dlfcn_h = yes; then
15918 DLL=dlfcn.h
15919 else
15920 if test "${ac_cv_header_dl_h+set}" = set; then
15921 { echo "$as_me:$LINENO: checking for dl.h" >&5
15922 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15923 if test "${ac_cv_header_dl_h+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15927 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15928 else
15929 # Is the header compilable?
15930 { echo "$as_me:$LINENO: checking dl.h usability" >&5
15931 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15933 /* confdefs.h. */
15934 _ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 $ac_includes_default
15939 #include <dl.h>
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (ac_try="$ac_compile"
15943 case "(($ac_try" in
15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15945 *) ac_try_echo=$ac_try;;
15946 esac
15947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15948 (eval "$ac_compile") 2>conftest.er1
15949 ac_status=$?
15950 grep -v '^ *+' conftest.er1 >conftest.err
15951 rm -f conftest.er1
15952 cat conftest.err >&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest.$ac_objext; then
15958 ac_header_compiler=yes
15959 else
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ac_header_compiler=no
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15968 echo "${ECHO_T}$ac_header_compiler" >&6; }
15970 # Is the header present?
15971 { echo "$as_me:$LINENO: checking dl.h presence" >&5
15972 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
15973 cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h. */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h. */
15979 #include <dl.h>
15980 _ACEOF
15981 if { (ac_try="$ac_cpp conftest.$ac_ext"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null && {
15994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 }; then
15997 ac_header_preproc=yes
15998 else
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_preproc=no
16005 rm -f conftest.err conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16007 echo "${ECHO_T}$ac_header_preproc" >&6; }
16009 # So? What about this header?
16010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16011 yes:no: )
16012 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16013 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16015 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16016 ac_header_preproc=yes
16018 no:yes:* )
16019 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16020 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16022 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16024 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16026 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16028 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16030 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16033 esac
16034 { echo "$as_me:$LINENO: checking for dl.h" >&5
16035 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16036 if test "${ac_cv_header_dl_h+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039 ac_cv_header_dl_h=$ac_header_preproc
16041 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16042 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16045 if test $ac_cv_header_dl_h = yes; then
16046 DLL=dl.h
16053 if test x${DLL} = xdlfcn.h; then
16055 cat >>confdefs.h <<\_ACEOF
16056 #define HAVE_DLFCN_H 1
16057 _ACEOF
16059 { echo "$as_me:$LINENO: checking for dlopen()" >&5
16060 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h. */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16069 main ()
16072 extern void* dlopen();
16073 dlopen();
16076 return 0;
16078 _ACEOF
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (ac_try="$ac_link"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086 (eval "$ac_link") 2>conftest.er1
16087 ac_status=$?
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } && {
16093 test -z "$ac_c_werror_flag" ||
16094 test ! -s conftest.err
16095 } && test -s conftest$ac_exeext &&
16096 $as_test_x conftest$ac_exeext; then
16097 { echo "$as_me:$LINENO: result: yes" >&5
16098 echo "${ECHO_T}yes" >&6; };
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_DLOPEN 1
16102 _ACEOF
16104 else
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16108 { echo "$as_me:$LINENO: result: no" >&5
16109 echo "${ECHO_T}no" >&6; };
16110 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16111 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16112 olibs=$LIBS
16113 LIBS="$LIBS -ldl"
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16122 main ()
16125 extern void* dlopen();
16126 dlopen();
16129 return 0;
16131 _ACEOF
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137 esac
16138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_link") 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } && {
16146 test -z "$ac_c_werror_flag" ||
16147 test ! -s conftest.err
16148 } && test -s conftest$ac_exeext &&
16149 $as_test_x conftest$ac_exeext; then
16150 { echo "$as_me:$LINENO: result: yes" >&5
16151 echo "${ECHO_T}yes" >&6; };
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_DLOPEN 1
16155 _ACEOF
16157 else
16158 echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 { echo "$as_me:$LINENO: result: no" >&5
16162 echo "${ECHO_T}no" >&6; };
16163 LIBS=$olibs
16166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16167 conftest$ac_exeext conftest.$ac_ext
16170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16171 conftest$ac_exeext conftest.$ac_ext
16172 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16173 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16174 cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h. */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16182 main ()
16185 extern void* dlsym();
16186 dlsym();
16189 return 0;
16191 _ACEOF
16192 rm -f conftest.$ac_objext conftest$ac_exeext
16193 if { (ac_try="$ac_link"
16194 case "(($ac_try" in
16195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196 *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199 (eval "$ac_link") 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } && {
16206 test -z "$ac_c_werror_flag" ||
16207 test ! -s conftest.err
16208 } && test -s conftest$ac_exeext &&
16209 $as_test_x conftest$ac_exeext; then
16210 { echo "$as_me:$LINENO: result: yes" >&5
16211 echo "${ECHO_T}yes" >&6; };
16213 cat >>confdefs.h <<\_ACEOF
16214 #define HAVE_DLSYM 1
16215 _ACEOF
16217 else
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 { echo "$as_me:$LINENO: result: no" >&5
16222 echo "${ECHO_T}no" >&6; };
16223 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16224 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16225 olibs=$LIBS
16226 LIBS="$LIBS -ldl"
16227 cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h. */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h. */
16235 main ()
16238 extern void* dlsym();
16239 dlsym();
16242 return 0;
16244 _ACEOF
16245 rm -f conftest.$ac_objext conftest$ac_exeext
16246 if { (ac_try="$ac_link"
16247 case "(($ac_try" in
16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16249 *) ac_try_echo=$ac_try;;
16250 esac
16251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16252 (eval "$ac_link") 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } && {
16259 test -z "$ac_c_werror_flag" ||
16260 test ! -s conftest.err
16261 } && test -s conftest$ac_exeext &&
16262 $as_test_x conftest$ac_exeext; then
16263 { echo "$as_me:$LINENO: result: yes" >&5
16264 echo "${ECHO_T}yes" >&6; };
16266 cat >>confdefs.h <<\_ACEOF
16267 #define HAVE_DLSYM 1
16268 _ACEOF
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16274 { echo "$as_me:$LINENO: result: no" >&5
16275 echo "${ECHO_T}no" >&6; };
16276 LIBS=$olibs
16279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16280 conftest$ac_exeext conftest.$ac_ext
16283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16284 conftest$ac_exeext conftest.$ac_ext
16285 elif test x${DLL} = xdl.h; then
16287 cat >>confdefs.h <<\_ACEOF
16288 #define HAVE_DL_H 1
16289 _ACEOF
16291 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16292 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16301 main ()
16304 extern void* shl_load();
16305 shl_load();
16308 return 0;
16310 _ACEOF
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_link") 2>conftest.er1
16319 ac_status=$?
16320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext &&
16328 $as_test_x conftest$ac_exeext; then
16329 { echo "$as_me:$LINENO: result: yes" >&5
16330 echo "${ECHO_T}yes" >&6; };
16332 cat >>confdefs.h <<\_ACEOF
16333 #define HAVE_SHL_LOAD 1
16334 _ACEOF
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 { echo "$as_me:$LINENO: result: no" >&5
16341 echo "${ECHO_T}no" >&6; };
16342 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16343 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16344 olibs=$LIBS
16345 LIBS="$LIBS -ldld"
16346 cat >conftest.$ac_ext <<_ACEOF
16347 /* confdefs.h. */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16354 main ()
16357 extern void* shl_load();
16358 shl_load();
16361 return 0;
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_link") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext &&
16381 $as_test_x conftest$ac_exeext; then
16382 { echo "$as_me:$LINENO: result: yes" >&5
16383 echo "${ECHO_T}yes" >&6; };
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_SHL_LOAD 1
16387 _ACEOF
16389 else
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 { echo "$as_me:$LINENO: result: no" >&5
16394 echo "${ECHO_T}no" >&6; };
16395 LIBS=$olibs
16398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16399 conftest$ac_exeext conftest.$ac_ext
16402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16403 conftest$ac_exeext conftest.$ac_ext
16406 for ac_header in setjmp.h
16408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 ac_res=`eval echo '${'$as_ac_Header'}'`
16416 { echo "$as_me:$LINENO: result: $ac_res" >&5
16417 echo "${ECHO_T}$ac_res" >&6; }
16418 else
16419 # Is the header compilable?
16420 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h. */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 $ac_includes_default
16429 #include <$ac_header>
16430 _ACEOF
16431 rm -f conftest.$ac_objext
16432 if { (ac_try="$ac_compile"
16433 case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436 esac
16437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_compile") 2>conftest.er1
16439 ac_status=$?
16440 grep -v '^ *+' conftest.er1 >conftest.err
16441 rm -f conftest.er1
16442 cat conftest.err >&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && {
16445 test -z "$ac_c_werror_flag" ||
16446 test ! -s conftest.err
16447 } && test -s conftest.$ac_objext; then
16448 ac_header_compiler=yes
16449 else
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ac_header_compiler=no
16456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16458 echo "${ECHO_T}$ac_header_compiler" >&6; }
16460 # Is the header present?
16461 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16463 cat >conftest.$ac_ext <<_ACEOF
16464 /* confdefs.h. */
16465 _ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16469 #include <$ac_header>
16470 _ACEOF
16471 if { (ac_try="$ac_cpp conftest.$ac_ext"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } >/dev/null && {
16484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16486 }; then
16487 ac_header_preproc=yes
16488 else
16489 echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_header_preproc=no
16495 rm -f conftest.err conftest.$ac_ext
16496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16497 echo "${ECHO_T}$ac_header_preproc" >&6; }
16499 # So? What about this header?
16500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16501 yes:no: )
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16506 ac_header_preproc=yes
16508 no:yes:* )
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16523 esac
16524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528 else
16529 eval "$as_ac_Header=\$ac_header_preproc"
16531 ac_res=`eval echo '${'$as_ac_Header'}'`
16532 { echo "$as_me:$LINENO: result: $ac_res" >&5
16533 echo "${ECHO_T}$ac_res" >&6; }
16536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537 cat >>confdefs.h <<_ACEOF
16538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539 _ACEOF
16543 done
16546 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16547 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16548 LIBS=`echo $LIBS | sed s/-ldl//`
16549 PERL_LIBS="$PERL_LIBS -ldl"
16553 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16554 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16555 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16556 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16557 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16558 || test "x$features" = "xhuge"; then
16559 LIBS="$LIBS -framework Carbon"
16560 { echo "$as_me:$LINENO: result: yes" >&5
16561 echo "${ECHO_T}yes" >&6; }
16562 else
16563 { echo "$as_me:$LINENO: result: no" >&5
16564 echo "${ECHO_T}no" >&6; }
16568 if test "x$MACOSX" = "xyes"; then
16569 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16570 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16572 # Check whether --with-xcodecfg was given.
16573 if test "${with_xcodecfg+set}" = set; then
16574 withval=$with_xcodecfg; XCODEFLAGS="$XCODEFLAGS -configuration $withval"
16575 { echo "$as_me:$LINENO: result: $withval" >&5
16576 echo "${ECHO_T}$withval" >&6; }
16577 else
16578 { echo "$as_me:$LINENO: result: using default" >&5
16579 echo "${ECHO_T}using default" >&6; }
16587 DEPEND_CFLAGS_FILTER=
16588 if test "$GCC" = yes; then
16589 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16590 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16591 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16592 if test "$gccmajor" -gt "2"; then
16593 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16594 { echo "$as_me:$LINENO: result: yes" >&5
16595 echo "${ECHO_T}yes" >&6; }
16596 else
16597 { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16600 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16601 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16602 if test "$gccmajor" -gt "3"; then
16603 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
16604 { echo "$as_me:$LINENO: result: yes" >&5
16605 echo "${ECHO_T}yes" >&6; }
16606 else
16607 { echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6; }
16613 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16615 cat >confcache <<\_ACEOF
16616 # This file is a shell script that caches the results of configure
16617 # tests run on this system so they can be shared between configure
16618 # scripts and configure runs, see configure's option --config-cache.
16619 # It is not useful on other systems. If it contains results you don't
16620 # want to keep, you may remove or edit it.
16622 # config.status only pays attention to the cache file if you give it
16623 # the --recheck option to rerun configure.
16625 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16627 # following values.
16629 _ACEOF
16631 # The following way of writing the cache mishandles newlines in values,
16632 # but we know of no workaround that is simple, portable, and efficient.
16633 # So, we kill variables containing newlines.
16634 # Ultrix sh set writes to stderr and can't be redirected directly,
16635 # and sets the high bit in the cache file unless we assign to the vars.
16637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16638 eval ac_val=\$$ac_var
16639 case $ac_val in #(
16640 *${as_nl}*)
16641 case $ac_var in #(
16642 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16644 esac
16645 case $ac_var in #(
16646 _ | IFS | as_nl) ;; #(
16647 *) $as_unset $ac_var ;;
16648 esac ;;
16649 esac
16650 done
16652 (set) 2>&1 |
16653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16654 *${as_nl}ac_space=\ *)
16655 # `set' does not quote correctly, so add quotes (double-quote
16656 # substitution turns \\\\ into \\, and sed turns \\ into \).
16657 sed -n \
16658 "s/'/'\\\\''/g;
16659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16660 ;; #(
16662 # `set' quotes correctly as required by POSIX, so do not add quotes.
16663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16665 esac |
16666 sort
16668 sed '
16669 /^ac_cv_env_/b end
16670 t clear
16671 :clear
16672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16673 t end
16674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16675 :end' >>confcache
16676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16677 if test -w "$cache_file"; then
16678 test "x$cache_file" != "x/dev/null" &&
16679 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16680 echo "$as_me: updating cache $cache_file" >&6;}
16681 cat confcache >$cache_file
16682 else
16683 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16684 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16687 rm -f confcache
16689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16690 # Let make expand exec_prefix.
16691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16693 DEFS=-DHAVE_CONFIG_H
16695 ac_libobjs=
16696 ac_ltlibobjs=
16697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16698 # 1. Remove the extension, and $U if already installed.
16699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16700 ac_i=`echo "$ac_i" | sed "$ac_script"`
16701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16702 # will be set to the directory where LIBOBJS objects are built.
16703 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16704 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16705 done
16706 LIBOBJS=$ac_libobjs
16708 LTLIBOBJS=$ac_ltlibobjs
16712 : ${CONFIG_STATUS=./config.status}
16713 ac_clean_files_save=$ac_clean_files
16714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16715 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16716 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16717 cat >$CONFIG_STATUS <<_ACEOF
16718 #! $SHELL
16719 # Generated by $as_me.
16720 # Run this file to recreate the current configuration.
16721 # Compiler output produced by configure, useful for debugging
16722 # configure, is in config.log if it exists.
16724 debug=false
16725 ac_cs_recheck=false
16726 ac_cs_silent=false
16727 SHELL=\${CONFIG_SHELL-$SHELL}
16728 _ACEOF
16730 cat >>$CONFIG_STATUS <<\_ACEOF
16731 ## --------------------- ##
16732 ## M4sh Initialization. ##
16733 ## --------------------- ##
16735 # Be more Bourne compatible
16736 DUALCASE=1; export DUALCASE # for MKS sh
16737 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16738 emulate sh
16739 NULLCMD=:
16740 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16741 # is contrary to our usage. Disable this feature.
16742 alias -g '${1+"$@"}'='"$@"'
16743 setopt NO_GLOB_SUBST
16744 else
16745 case `(set -o) 2>/dev/null` in
16746 *posix*) set -o posix ;;
16747 esac
16754 # PATH needs CR
16755 # Avoid depending upon Character Ranges.
16756 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16757 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16758 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16759 as_cr_digits='0123456789'
16760 as_cr_alnum=$as_cr_Letters$as_cr_digits
16762 # The user is always right.
16763 if test "${PATH_SEPARATOR+set}" != set; then
16764 echo "#! /bin/sh" >conf$$.sh
16765 echo "exit 0" >>conf$$.sh
16766 chmod +x conf$$.sh
16767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16768 PATH_SEPARATOR=';'
16769 else
16770 PATH_SEPARATOR=:
16772 rm -f conf$$.sh
16775 # Support unset when possible.
16776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16777 as_unset=unset
16778 else
16779 as_unset=false
16783 # IFS
16784 # We need space, tab and new line, in precisely that order. Quoting is
16785 # there to prevent editors from complaining about space-tab.
16786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16787 # splitting by setting IFS to empty value.)
16788 as_nl='
16790 IFS=" "" $as_nl"
16792 # Find who we are. Look in the path if we contain no directory separator.
16793 case $0 in
16794 *[\\/]* ) as_myself=$0 ;;
16795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16796 for as_dir in $PATH
16798 IFS=$as_save_IFS
16799 test -z "$as_dir" && as_dir=.
16800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16801 done
16802 IFS=$as_save_IFS
16805 esac
16806 # We did not find ourselves, most probably we were run as `sh COMMAND'
16807 # in which case we are not to be found in the path.
16808 if test "x$as_myself" = x; then
16809 as_myself=$0
16811 if test ! -f "$as_myself"; then
16812 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16813 { (exit 1); exit 1; }
16816 # Work around bugs in pre-3.0 UWIN ksh.
16817 for as_var in ENV MAIL MAILPATH
16818 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16819 done
16820 PS1='$ '
16821 PS2='> '
16822 PS4='+ '
16824 # NLS nuisances.
16825 for as_var in \
16826 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16827 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16828 LC_TELEPHONE LC_TIME
16830 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16831 eval $as_var=C; export $as_var
16832 else
16833 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16835 done
16837 # Required to use basename.
16838 if expr a : '\(a\)' >/dev/null 2>&1 &&
16839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16840 as_expr=expr
16841 else
16842 as_expr=false
16845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16846 as_basename=basename
16847 else
16848 as_basename=false
16852 # Name of the executable.
16853 as_me=`$as_basename -- "$0" ||
16854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16855 X"$0" : 'X\(//\)$' \| \
16856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16857 echo X/"$0" |
16858 sed '/^.*\/\([^/][^/]*\)\/*$/{
16859 s//\1/
16862 /^X\/\(\/\/\)$/{
16863 s//\1/
16866 /^X\/\(\/\).*/{
16867 s//\1/
16870 s/.*/./; q'`
16872 # CDPATH.
16873 $as_unset CDPATH
16877 as_lineno_1=$LINENO
16878 as_lineno_2=$LINENO
16879 test "x$as_lineno_1" != "x$as_lineno_2" &&
16880 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16882 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16883 # uniformly replaced by the line number. The first 'sed' inserts a
16884 # line-number line after each line using $LINENO; the second 'sed'
16885 # does the real work. The second script uses 'N' to pair each
16886 # line-number line with the line containing $LINENO, and appends
16887 # trailing '-' during substitution so that $LINENO is not a special
16888 # case at line end.
16889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16890 # scripts with optimization help from Paolo Bonzini. Blame Lee
16891 # E. McMahon (1931-1989) for sed's syntax. :-)
16892 sed -n '
16894 /[$]LINENO/=
16895 ' <$as_myself |
16896 sed '
16897 s/[$]LINENO.*/&-/
16898 t lineno
16900 :lineno
16902 :loop
16903 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16904 t loop
16905 s/-\n.*//
16906 ' >$as_me.lineno &&
16907 chmod +x "$as_me.lineno" ||
16908 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16909 { (exit 1); exit 1; }; }
16911 # Don't try to exec as it changes $[0], causing all sort of problems
16912 # (the dirname of $[0] is not the place where we might find the
16913 # original and so on. Autoconf is especially sensitive to this).
16914 . "./$as_me.lineno"
16915 # Exit status is that of the last command.
16916 exit
16920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16921 as_dirname=dirname
16922 else
16923 as_dirname=false
16926 ECHO_C= ECHO_N= ECHO_T=
16927 case `echo -n x` in
16928 -n*)
16929 case `echo 'x\c'` in
16930 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16931 *) ECHO_C='\c';;
16932 esac;;
16934 ECHO_N='-n';;
16935 esac
16937 if expr a : '\(a\)' >/dev/null 2>&1 &&
16938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16939 as_expr=expr
16940 else
16941 as_expr=false
16944 rm -f conf$$ conf$$.exe conf$$.file
16945 if test -d conf$$.dir; then
16946 rm -f conf$$.dir/conf$$.file
16947 else
16948 rm -f conf$$.dir
16949 mkdir conf$$.dir
16951 echo >conf$$.file
16952 if ln -s conf$$.file conf$$ 2>/dev/null; then
16953 as_ln_s='ln -s'
16954 # ... but there are two gotchas:
16955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16957 # In both cases, we have to default to `cp -p'.
16958 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16959 as_ln_s='cp -p'
16960 elif ln conf$$.file conf$$ 2>/dev/null; then
16961 as_ln_s=ln
16962 else
16963 as_ln_s='cp -p'
16965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16966 rmdir conf$$.dir 2>/dev/null
16968 if mkdir -p . 2>/dev/null; then
16969 as_mkdir_p=:
16970 else
16971 test -d ./-p && rmdir ./-p
16972 as_mkdir_p=false
16975 if test -x / >/dev/null 2>&1; then
16976 as_test_x='test -x'
16977 else
16978 if ls -dL / >/dev/null 2>&1; then
16979 as_ls_L_option=L
16980 else
16981 as_ls_L_option=
16983 as_test_x='
16984 eval sh -c '\''
16985 if test -d "$1"; then
16986 test -d "$1/.";
16987 else
16988 case $1 in
16989 -*)set "./$1";;
16990 esac;
16991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16992 ???[sx]*):;;*)false;;esac;fi
16993 '\'' sh
16996 as_executable_p=$as_test_x
16998 # Sed expression to map a string onto a valid CPP name.
16999 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17001 # Sed expression to map a string onto a valid variable name.
17002 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17005 exec 6>&1
17007 # Save the log message, to keep $[0] and so on meaningful, and to
17008 # report actual input values of CONFIG_FILES etc. instead of their
17009 # values after options handling.
17010 ac_log="
17011 This file was extended by $as_me, which was
17012 generated by GNU Autoconf 2.61. Invocation command line was
17014 CONFIG_FILES = $CONFIG_FILES
17015 CONFIG_HEADERS = $CONFIG_HEADERS
17016 CONFIG_LINKS = $CONFIG_LINKS
17017 CONFIG_COMMANDS = $CONFIG_COMMANDS
17018 $ $0 $@
17020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17023 _ACEOF
17025 cat >>$CONFIG_STATUS <<_ACEOF
17026 # Files that config.status was made for.
17027 config_files="$ac_config_files"
17028 config_headers="$ac_config_headers"
17030 _ACEOF
17032 cat >>$CONFIG_STATUS <<\_ACEOF
17033 ac_cs_usage="\
17034 \`$as_me' instantiates files from templates according to the
17035 current configuration.
17037 Usage: $0 [OPTIONS] [FILE]...
17039 -h, --help print this help, then exit
17040 -V, --version print version number and configuration settings, then exit
17041 -q, --quiet do not print progress messages
17042 -d, --debug don't remove temporary files
17043 --recheck update $as_me by reconfiguring in the same conditions
17044 --file=FILE[:TEMPLATE]
17045 instantiate the configuration file FILE
17046 --header=FILE[:TEMPLATE]
17047 instantiate the configuration header FILE
17049 Configuration files:
17050 $config_files
17052 Configuration headers:
17053 $config_headers
17055 Report bugs to <bug-autoconf@gnu.org>."
17057 _ACEOF
17058 cat >>$CONFIG_STATUS <<_ACEOF
17059 ac_cs_version="\\
17060 config.status
17061 configured by $0, generated by GNU Autoconf 2.61,
17062 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17064 Copyright (C) 2006 Free Software Foundation, Inc.
17065 This config.status script is free software; the Free Software Foundation
17066 gives unlimited permission to copy, distribute and modify it."
17068 ac_pwd='$ac_pwd'
17069 srcdir='$srcdir'
17070 _ACEOF
17072 cat >>$CONFIG_STATUS <<\_ACEOF
17073 # If no file are specified by the user, then we need to provide default
17074 # value. By we need to know if files were specified by the user.
17075 ac_need_defaults=:
17076 while test $# != 0
17078 case $1 in
17079 --*=*)
17080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17081 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17082 ac_shift=:
17085 ac_option=$1
17086 ac_optarg=$2
17087 ac_shift=shift
17089 esac
17091 case $ac_option in
17092 # Handling of the options.
17093 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17094 ac_cs_recheck=: ;;
17095 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17096 echo "$ac_cs_version"; exit ;;
17097 --debug | --debu | --deb | --de | --d | -d )
17098 debug=: ;;
17099 --file | --fil | --fi | --f )
17100 $ac_shift
17101 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17102 ac_need_defaults=false;;
17103 --header | --heade | --head | --hea )
17104 $ac_shift
17105 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17106 ac_need_defaults=false;;
17107 --he | --h)
17108 # Conflict between --help and --header
17109 { echo "$as_me: error: ambiguous option: $1
17110 Try \`$0 --help' for more information." >&2
17111 { (exit 1); exit 1; }; };;
17112 --help | --hel | -h )
17113 echo "$ac_cs_usage"; exit ;;
17114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17116 ac_cs_silent=: ;;
17118 # This is an error.
17119 -*) { echo "$as_me: error: unrecognized option: $1
17120 Try \`$0 --help' for more information." >&2
17121 { (exit 1); exit 1; }; } ;;
17123 *) ac_config_targets="$ac_config_targets $1"
17124 ac_need_defaults=false ;;
17126 esac
17127 shift
17128 done
17130 ac_configure_extra_args=
17132 if $ac_cs_silent; then
17133 exec 6>/dev/null
17134 ac_configure_extra_args="$ac_configure_extra_args --silent"
17137 _ACEOF
17138 cat >>$CONFIG_STATUS <<_ACEOF
17139 if \$ac_cs_recheck; then
17140 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17141 CONFIG_SHELL=$SHELL
17142 export CONFIG_SHELL
17143 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17146 _ACEOF
17147 cat >>$CONFIG_STATUS <<\_ACEOF
17148 exec 5>>auto/config.log
17150 echo
17151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17152 ## Running $as_me. ##
17153 _ASBOX
17154 echo "$ac_log"
17155 } >&5
17157 _ACEOF
17158 cat >>$CONFIG_STATUS <<_ACEOF
17159 _ACEOF
17161 cat >>$CONFIG_STATUS <<\_ACEOF
17163 # Handling of arguments.
17164 for ac_config_target in $ac_config_targets
17166 case $ac_config_target in
17167 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17168 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17170 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17171 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17172 { (exit 1); exit 1; }; };;
17173 esac
17174 done
17177 # If the user did not use the arguments to specify the items to instantiate,
17178 # then the envvar interface is used. Set only those that are not.
17179 # We use the long form for the default assignment because of an extremely
17180 # bizarre bug on SunOS 4.1.3.
17181 if $ac_need_defaults; then
17182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17186 # Have a temporary directory for convenience. Make it in the build tree
17187 # simply because there is no reason against having it here, and in addition,
17188 # creating and moving files from /tmp can sometimes cause problems.
17189 # Hook for its removal unless debugging.
17190 # Note that there is a small window in which the directory will not be cleaned:
17191 # after its creation but before its name has been assigned to `$tmp'.
17192 $debug ||
17194 tmp=
17195 trap 'exit_status=$?
17196 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17198 trap '{ (exit 1); exit 1; }' 1 2 13 15
17200 # Create a (secure) tmp directory for tmp files.
17203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17204 test -n "$tmp" && test -d "$tmp"
17205 } ||
17207 tmp=./conf$$-$RANDOM
17208 (umask 077 && mkdir "$tmp")
17209 } ||
17211 echo "$me: cannot create a temporary directory in ." >&2
17212 { (exit 1); exit 1; }
17216 # Set up the sed scripts for CONFIG_FILES section.
17219 # No need to generate the scripts if there are no CONFIG_FILES.
17220 # This happens for instance when ./config.status config.h
17221 if test -n "$CONFIG_FILES"; then
17223 _ACEOF
17227 ac_delim='%!_!# '
17228 for ac_last_try in false false false false false :; do
17229 cat >conf$$subs.sed <<_ACEOF
17230 SHELL!$SHELL$ac_delim
17231 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17232 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17233 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17234 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17235 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17236 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17237 exec_prefix!$exec_prefix$ac_delim
17238 prefix!$prefix$ac_delim
17239 program_transform_name!$program_transform_name$ac_delim
17240 bindir!$bindir$ac_delim
17241 sbindir!$sbindir$ac_delim
17242 libexecdir!$libexecdir$ac_delim
17243 datarootdir!$datarootdir$ac_delim
17244 datadir!$datadir$ac_delim
17245 sysconfdir!$sysconfdir$ac_delim
17246 sharedstatedir!$sharedstatedir$ac_delim
17247 localstatedir!$localstatedir$ac_delim
17248 includedir!$includedir$ac_delim
17249 oldincludedir!$oldincludedir$ac_delim
17250 docdir!$docdir$ac_delim
17251 infodir!$infodir$ac_delim
17252 htmldir!$htmldir$ac_delim
17253 dvidir!$dvidir$ac_delim
17254 pdfdir!$pdfdir$ac_delim
17255 psdir!$psdir$ac_delim
17256 libdir!$libdir$ac_delim
17257 localedir!$localedir$ac_delim
17258 mandir!$mandir$ac_delim
17259 DEFS!$DEFS$ac_delim
17260 ECHO_C!$ECHO_C$ac_delim
17261 ECHO_N!$ECHO_N$ac_delim
17262 ECHO_T!$ECHO_T$ac_delim
17263 LIBS!$LIBS$ac_delim
17264 build_alias!$build_alias$ac_delim
17265 host_alias!$host_alias$ac_delim
17266 target_alias!$target_alias$ac_delim
17267 SET_MAKE!$SET_MAKE$ac_delim
17268 CC!$CC$ac_delim
17269 CFLAGS!$CFLAGS$ac_delim
17270 LDFLAGS!$LDFLAGS$ac_delim
17271 CPPFLAGS!$CPPFLAGS$ac_delim
17272 ac_ct_CC!$ac_ct_CC$ac_delim
17273 EXEEXT!$EXEEXT$ac_delim
17274 OBJEXT!$OBJEXT$ac_delim
17275 CPP!$CPP$ac_delim
17276 GREP!$GREP$ac_delim
17277 EGREP!$EGREP$ac_delim
17278 AWK!$AWK$ac_delim
17279 STRIP!$STRIP$ac_delim
17280 CPP_MM!$CPP_MM$ac_delim
17281 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17282 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17283 VIMNAME!$VIMNAME$ac_delim
17284 EXNAME!$EXNAME$ac_delim
17285 VIEWNAME!$VIEWNAME$ac_delim
17286 line_break!$line_break$ac_delim
17287 dovimdiff!$dovimdiff$ac_delim
17288 dogvimdiff!$dogvimdiff$ac_delim
17289 compiledby!$compiledby$ac_delim
17290 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17291 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17292 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17293 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17294 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17295 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17296 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17297 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17298 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17299 vi_cv_perllib!$vi_cv_perllib$ac_delim
17300 shrpenv!$shrpenv$ac_delim
17301 PERL_SRC!$PERL_SRC$ac_delim
17302 PERL_OBJ!$PERL_OBJ$ac_delim
17303 PERL_PRO!$PERL_PRO$ac_delim
17304 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17305 PERL_LIBS!$PERL_LIBS$ac_delim
17306 vi_cv_path_python!$vi_cv_path_python$ac_delim
17307 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17308 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17309 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17310 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17311 PYTHON_SRC!$PYTHON_SRC$ac_delim
17312 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17313 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17314 TCL_SRC!$TCL_SRC$ac_delim
17315 TCL_OBJ!$TCL_OBJ$ac_delim
17316 TCL_PRO!$TCL_PRO$ac_delim
17317 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17318 TCL_LIBS!$TCL_LIBS$ac_delim
17319 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17320 RUBY_SRC!$RUBY_SRC$ac_delim
17321 RUBY_OBJ!$RUBY_OBJ$ac_delim
17322 RUBY_PRO!$RUBY_PRO$ac_delim
17323 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17324 RUBY_LIBS!$RUBY_LIBS$ac_delim
17325 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17326 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17327 _ACEOF
17329 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17330 break
17331 elif $ac_last_try; then
17332 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17333 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17334 { (exit 1); exit 1; }; }
17335 else
17336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17338 done
17340 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17341 if test -n "$ac_eof"; then
17342 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17343 ac_eof=`expr $ac_eof + 1`
17346 cat >>$CONFIG_STATUS <<_ACEOF
17347 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17349 _ACEOF
17350 sed '
17351 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17352 s/^/s,@/; s/!/@,|#_!!_#|/
17355 s/'"$ac_delim"'$/,g/; t
17356 s/$/\\/; p
17357 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17358 ' >>$CONFIG_STATUS <conf$$subs.sed
17359 rm -f conf$$subs.sed
17360 cat >>$CONFIG_STATUS <<_ACEOF
17361 CEOF$ac_eof
17362 _ACEOF
17365 ac_delim='%!_!# '
17366 for ac_last_try in false false false false false :; do
17367 cat >conf$$subs.sed <<_ACEOF
17368 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17369 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17370 SNIFF_SRC!$SNIFF_SRC$ac_delim
17371 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17372 xmkmfpath!$xmkmfpath$ac_delim
17373 XMKMF!$XMKMF$ac_delim
17374 X_CFLAGS!$X_CFLAGS$ac_delim
17375 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17376 X_LIBS!$X_LIBS$ac_delim
17377 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17378 X_LIB!$X_LIB$ac_delim
17379 GTK_CONFIG!$GTK_CONFIG$ac_delim
17380 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17381 PKG_CONFIG!$PKG_CONFIG$ac_delim
17382 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17383 GTK_LIBS!$GTK_LIBS$ac_delim
17384 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17385 GNOME_LIBS!$GNOME_LIBS$ac_delim
17386 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17387 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17388 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17389 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17390 NARROW_PROTO!$NARROW_PROTO$ac_delim
17391 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17392 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17393 GUITYPE!$GUITYPE$ac_delim
17394 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17395 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17396 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17397 TAGPRG!$TAGPRG$ac_delim
17398 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17399 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17400 MSGFMT!$MSGFMT$ac_delim
17401 MAKEMO!$MAKEMO$ac_delim
17402 XCODEFLAGS!$XCODEFLAGS$ac_delim
17403 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17404 LIBOBJS!$LIBOBJS$ac_delim
17405 LTLIBOBJS!$LTLIBOBJS$ac_delim
17406 _ACEOF
17408 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
17409 break
17410 elif $ac_last_try; then
17411 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17412 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17413 { (exit 1); exit 1; }; }
17414 else
17415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17417 done
17419 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17420 if test -n "$ac_eof"; then
17421 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17422 ac_eof=`expr $ac_eof + 1`
17425 cat >>$CONFIG_STATUS <<_ACEOF
17426 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17428 _ACEOF
17429 sed '
17430 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17431 s/^/s,@/; s/!/@,|#_!!_#|/
17434 s/'"$ac_delim"'$/,g/; t
17435 s/$/\\/; p
17436 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17437 ' >>$CONFIG_STATUS <conf$$subs.sed
17438 rm -f conf$$subs.sed
17439 cat >>$CONFIG_STATUS <<_ACEOF
17440 :end
17441 s/|#_!!_#|//g
17442 CEOF$ac_eof
17443 _ACEOF
17446 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17447 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17448 # trailing colons and then remove the whole line if VPATH becomes empty
17449 # (actually we leave an empty line to preserve line numbers).
17450 if test "x$srcdir" = x.; then
17451 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17452 s/:*\$(srcdir):*/:/
17453 s/:*\${srcdir}:*/:/
17454 s/:*@srcdir@:*/:/
17455 s/^\([^=]*=[ ]*\):*/\1/
17456 s/:*$//
17457 s/^[^=]*=[ ]*$//
17461 cat >>$CONFIG_STATUS <<\_ACEOF
17462 fi # test -n "$CONFIG_FILES"
17465 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
17467 case $ac_tag in
17468 :[FHLC]) ac_mode=$ac_tag; continue;;
17469 esac
17470 case $ac_mode$ac_tag in
17471 :[FHL]*:*);;
17472 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17473 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17474 { (exit 1); exit 1; }; };;
17475 :[FH]-) ac_tag=-:-;;
17476 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17477 esac
17478 ac_save_IFS=$IFS
17479 IFS=:
17480 set x $ac_tag
17481 IFS=$ac_save_IFS
17482 shift
17483 ac_file=$1
17484 shift
17486 case $ac_mode in
17487 :L) ac_source=$1;;
17488 :[FH])
17489 ac_file_inputs=
17490 for ac_f
17492 case $ac_f in
17493 -) ac_f="$tmp/stdin";;
17494 *) # Look for the file first in the build tree, then in the source tree
17495 # (if the path is not absolute). The absolute path cannot be DOS-style,
17496 # because $ac_f cannot contain `:'.
17497 test -f "$ac_f" ||
17498 case $ac_f in
17499 [\\/$]*) false;;
17500 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17501 esac ||
17502 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17503 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17504 { (exit 1); exit 1; }; };;
17505 esac
17506 ac_file_inputs="$ac_file_inputs $ac_f"
17507 done
17509 # Let's still pretend it is `configure' which instantiates (i.e., don't
17510 # use $as_me), people would be surprised to read:
17511 # /* config.h. Generated by config.status. */
17512 configure_input="Generated from "`IFS=:
17513 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17514 if test x"$ac_file" != x-; then
17515 configure_input="$ac_file. $configure_input"
17516 { echo "$as_me:$LINENO: creating $ac_file" >&5
17517 echo "$as_me: creating $ac_file" >&6;}
17520 case $ac_tag in
17521 *:-:* | *:-) cat >"$tmp/stdin";;
17522 esac
17524 esac
17526 ac_dir=`$as_dirname -- "$ac_file" ||
17527 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17528 X"$ac_file" : 'X\(//\)[^/]' \| \
17529 X"$ac_file" : 'X\(//\)$' \| \
17530 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17531 echo X"$ac_file" |
17532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17533 s//\1/
17536 /^X\(\/\/\)[^/].*/{
17537 s//\1/
17540 /^X\(\/\/\)$/{
17541 s//\1/
17544 /^X\(\/\).*/{
17545 s//\1/
17548 s/.*/./; q'`
17549 { as_dir="$ac_dir"
17550 case $as_dir in #(
17551 -*) as_dir=./$as_dir;;
17552 esac
17553 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17554 as_dirs=
17555 while :; do
17556 case $as_dir in #(
17557 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17558 *) as_qdir=$as_dir;;
17559 esac
17560 as_dirs="'$as_qdir' $as_dirs"
17561 as_dir=`$as_dirname -- "$as_dir" ||
17562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17563 X"$as_dir" : 'X\(//\)[^/]' \| \
17564 X"$as_dir" : 'X\(//\)$' \| \
17565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17566 echo X"$as_dir" |
17567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17568 s//\1/
17571 /^X\(\/\/\)[^/].*/{
17572 s//\1/
17575 /^X\(\/\/\)$/{
17576 s//\1/
17579 /^X\(\/\).*/{
17580 s//\1/
17583 s/.*/./; q'`
17584 test -d "$as_dir" && break
17585 done
17586 test -z "$as_dirs" || eval "mkdir $as_dirs"
17587 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17588 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17589 { (exit 1); exit 1; }; }; }
17590 ac_builddir=.
17592 case "$ac_dir" in
17593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17596 # A ".." for each directory in $ac_dir_suffix.
17597 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17598 case $ac_top_builddir_sub in
17599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17601 esac ;;
17602 esac
17603 ac_abs_top_builddir=$ac_pwd
17604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17605 # for backward compatibility:
17606 ac_top_builddir=$ac_top_build_prefix
17608 case $srcdir in
17609 .) # We are building in place.
17610 ac_srcdir=.
17611 ac_top_srcdir=$ac_top_builddir_sub
17612 ac_abs_top_srcdir=$ac_pwd ;;
17613 [\\/]* | ?:[\\/]* ) # Absolute name.
17614 ac_srcdir=$srcdir$ac_dir_suffix;
17615 ac_top_srcdir=$srcdir
17616 ac_abs_top_srcdir=$srcdir ;;
17617 *) # Relative name.
17618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17619 ac_top_srcdir=$ac_top_build_prefix$srcdir
17620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17621 esac
17622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17625 case $ac_mode in
17628 # CONFIG_FILE
17631 _ACEOF
17633 cat >>$CONFIG_STATUS <<\_ACEOF
17634 # If the template does not know about datarootdir, expand it.
17635 # FIXME: This hack should be removed a few years after 2.60.
17636 ac_datarootdir_hack=; ac_datarootdir_seen=
17638 case `sed -n '/datarootdir/ {
17642 /@datadir@/p
17643 /@docdir@/p
17644 /@infodir@/p
17645 /@localedir@/p
17646 /@mandir@/p
17647 ' $ac_file_inputs` in
17648 *datarootdir*) ac_datarootdir_seen=yes;;
17649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17650 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17651 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17652 _ACEOF
17653 cat >>$CONFIG_STATUS <<_ACEOF
17654 ac_datarootdir_hack='
17655 s&@datadir@&$datadir&g
17656 s&@docdir@&$docdir&g
17657 s&@infodir@&$infodir&g
17658 s&@localedir@&$localedir&g
17659 s&@mandir@&$mandir&g
17660 s&\\\${datarootdir}&$datarootdir&g' ;;
17661 esac
17662 _ACEOF
17664 # Neutralize VPATH when `$srcdir' = `.'.
17665 # Shell code in configure.ac might set extrasub.
17666 # FIXME: do we really want to maintain this feature?
17667 cat >>$CONFIG_STATUS <<_ACEOF
17668 sed "$ac_vpsub
17669 $extrasub
17670 _ACEOF
17671 cat >>$CONFIG_STATUS <<\_ACEOF
17673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17674 s&@configure_input@&$configure_input&;t t
17675 s&@top_builddir@&$ac_top_builddir_sub&;t t
17676 s&@srcdir@&$ac_srcdir&;t t
17677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17678 s&@top_srcdir@&$ac_top_srcdir&;t t
17679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17680 s&@builddir@&$ac_builddir&;t t
17681 s&@abs_builddir@&$ac_abs_builddir&;t t
17682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17683 $ac_datarootdir_hack
17684 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17686 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17687 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17688 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17689 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17690 which seems to be undefined. Please make sure it is defined." >&5
17691 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17692 which seems to be undefined. Please make sure it is defined." >&2;}
17694 rm -f "$tmp/stdin"
17695 case $ac_file in
17696 -) cat "$tmp/out"; rm -f "$tmp/out";;
17697 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17698 esac
17702 # CONFIG_HEADER
17704 _ACEOF
17706 # Transform confdefs.h into a sed script `conftest.defines', that
17707 # substitutes the proper values into config.h.in to produce config.h.
17708 rm -f conftest.defines conftest.tail
17709 # First, append a space to every undef/define line, to ease matching.
17710 echo 's/$/ /' >conftest.defines
17711 # Then, protect against being on the right side of a sed subst, or in
17712 # an unquoted here document, in config.status. If some macros were
17713 # called several times there might be several #defines for the same
17714 # symbol, which is useless. But do not sort them, since the last
17715 # AC_DEFINE must be honored.
17716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17717 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17718 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17719 # PARAMS is the parameter list in the macro definition--in most cases, it's
17720 # just an empty string.
17721 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17722 ac_dB='\\)[ (].*,\\1define\\2'
17723 ac_dC=' '
17724 ac_dD=' ,'
17726 uniq confdefs.h |
17727 sed -n '
17728 t rset
17729 :rset
17730 s/^[ ]*#[ ]*define[ ][ ]*//
17731 t ok
17734 s/[\\&,]/\\&/g
17735 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17736 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17737 ' >>conftest.defines
17739 # Remove the space that was appended to ease matching.
17740 # Then replace #undef with comments. This is necessary, for
17741 # example, in the case of _POSIX_SOURCE, which is predefined and required
17742 # on some systems where configure will not decide to define it.
17743 # (The regexp can be short, since the line contains either #define or #undef.)
17744 echo 's/ $//
17745 s,^[ #]*u.*,/* & */,' >>conftest.defines
17747 # Break up conftest.defines:
17748 ac_max_sed_lines=50
17750 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17751 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17752 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17753 # et cetera.
17754 ac_in='$ac_file_inputs'
17755 ac_out='"$tmp/out1"'
17756 ac_nxt='"$tmp/out2"'
17758 while :
17760 # Write a here document:
17761 cat >>$CONFIG_STATUS <<_ACEOF
17762 # First, check the format of the line:
17763 cat >"\$tmp/defines.sed" <<\\CEOF
17764 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17765 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17767 :def
17768 _ACEOF
17769 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17770 echo 'CEOF
17771 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17772 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17773 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17774 grep . conftest.tail >/dev/null || break
17775 rm -f conftest.defines
17776 mv conftest.tail conftest.defines
17777 done
17778 rm -f conftest.defines conftest.tail
17780 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17781 cat >>$CONFIG_STATUS <<\_ACEOF
17782 if test x"$ac_file" != x-; then
17783 echo "/* $configure_input */" >"$tmp/config.h"
17784 cat "$ac_result" >>"$tmp/config.h"
17785 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17786 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17787 echo "$as_me: $ac_file is unchanged" >&6;}
17788 else
17789 rm -f $ac_file
17790 mv "$tmp/config.h" $ac_file
17792 else
17793 echo "/* $configure_input */"
17794 cat "$ac_result"
17796 rm -f "$tmp/out12"
17800 esac
17802 done # for ac_tag
17805 { (exit 0); exit 0; }
17806 _ACEOF
17807 chmod +x $CONFIG_STATUS
17808 ac_clean_files=$ac_clean_files_save
17811 # configure is writing to config.log, and then calls config.status.
17812 # config.status does its own redirection, appending to config.log.
17813 # Unfortunately, on DOS this fails, as config.log is still kept open
17814 # by configure, so config.status won't be able to write to it; its
17815 # output is simply discarded. So we exec the FD to /dev/null,
17816 # effectively closing config.log, so it can be properly (re)opened and
17817 # appended to by config.status. When coming back to configure, we
17818 # need to make the FD available again.
17819 if test "$no_create" != yes; then
17820 ac_cs_success=:
17821 ac_config_status_args=
17822 test "$silent" = yes &&
17823 ac_config_status_args="$ac_config_status_args --quiet"
17824 exec 5>/dev/null
17825 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17826 exec 5>>auto/config.log
17827 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17828 # would make configure fail if this is the last instruction.
17829 $ac_cs_success || { (exit 1); exit 1; }