Merge branch 'vim'
[MacVim.git] / src / configure
blob9bcf38b996750b161301b0f0366699e85880c7cd
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 XCODE_SELECT
668 OS_EXTRA_SRC
669 OS_EXTRA_OBJ
670 VIMNAME
671 EXNAME
672 VIEWNAME
673 line_break
674 dovimdiff
675 dogvimdiff
676 compiledby
677 vi_cv_path_mzscheme
678 MZSCHEME_SRC
679 MZSCHEME_OBJ
680 MZSCHEME_PRO
681 MZSCHEME_LIBS
682 MZSCHEME_CFLAGS
683 MZSCHEME_EXTRA
684 MZSCHEME_MZC
685 vi_cv_path_perl
686 vi_cv_perllib
687 shrpenv
688 PERL_SRC
689 PERL_OBJ
690 PERL_PRO
691 PERL_CFLAGS
692 PERL_LIBS
693 vi_cv_path_python
694 PYTHON_CONFDIR
695 PYTHON_LIBS
696 PYTHON_GETPATH_CFLAGS
697 PYTHON_CFLAGS
698 PYTHON_SRC
699 PYTHON_OBJ
700 vi_cv_path_tcl
701 TCL_SRC
702 TCL_OBJ
703 TCL_PRO
704 TCL_CFLAGS
705 TCL_LIBS
706 vi_cv_path_ruby
707 RUBY_SRC
708 RUBY_OBJ
709 RUBY_PRO
710 RUBY_CFLAGS
711 RUBY_LIBS
712 WORKSHOP_SRC
713 WORKSHOP_OBJ
714 NETBEANS_SRC
715 NETBEANS_OBJ
716 SNIFF_SRC
717 SNIFF_OBJ
718 xmkmfpath
719 XMKMF
720 X_CFLAGS
721 X_PRE_LIBS
722 X_LIBS
723 X_EXTRA_LIBS
724 X_LIB
725 GTK_CONFIG
726 GTK12_CONFIG
727 PKG_CONFIG
728 GTK_CFLAGS
729 GTK_LIBS
730 GTK_LIBNAME
731 GNOME_LIBS
732 GNOME_LIBDIR
733 GNOME_INCLUDEDIR
734 GNOME_CONFIG
735 MOTIF_LIBNAME
736 NARROW_PROTO
737 GUI_INC_LOC
738 GUI_LIB_LOC
739 GUITYPE
740 GUI_X_LIBS
741 HANGULIN_SRC
742 HANGULIN_OBJ
743 TAGPRG
744 INSTALL_LANGS
745 INSTALL_TOOL_LANGS
746 MSGFMT
747 MAKEMO
748 XCODEFLAGS
749 DEPEND_CFLAGS_FILTER
750 LIBOBJS
751 LTLIBOBJS'
752 ac_subst_files=''
753 ac_precious_vars='build_alias
754 host_alias
755 target_alias
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
762 XMKMF'
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
811 ac_prev=
812 ac_dashdash=
813 for ac_option
815 # If the previous option needs an argument, assign it.
816 if test -n "$ac_prev"; then
817 eval $ac_prev=\$ac_option
818 ac_prev=
819 continue
822 case $ac_option in
823 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824 *) ac_optarg=yes ;;
825 esac
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
831 ac_dashdash=yes ;;
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
850 --config-cache | -C)
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
869 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
870 { (exit 1); exit 1; }; }
871 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
872 eval enable_$ac_feature=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
875 ac_prev=docdir ;;
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 docdir=$ac_optarg ;;
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 ac_prev=dvidir ;;
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 dvidir=$ac_optarg ;;
884 -enable-* | --enable-*)
885 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
888 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
889 { (exit 1); exit 1; }; }
890 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
891 eval enable_$ac_feature=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
904 with_gas=yes ;;
906 -help | --help | --hel | --he | -h)
907 ac_init_help=long ;;
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919 ac_prev=htmldir ;;
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921 | --ht=*)
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
932 ac_prev=infodir ;;
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
937 ac_prev=libdir ;;
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 libdir=$ac_optarg ;;
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
949 ac_prev=localedir ;;
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961 ac_prev=mandir ;;
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963 mandir=$ac_optarg ;;
965 -nfp | --nfp | --nf)
966 # Obsolete; use --without-fp.
967 with_fp=no ;;
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
971 no_create=yes ;;
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 no_recursion=yes ;;
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987 ac_prev=prefix ;;
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 prefix=$ac_optarg ;;
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023 ac_prev=pdfdir ;;
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1028 ac_prev=psdir ;;
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 psdir=$ac_optarg ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 silent=yes ;;
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037 ac_prev=sbindir ;;
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039 | --sbi=* | --sb=*)
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1045 | --sha | --sh)
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050 | --sha=* | --sh=*)
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1054 ac_prev=site ;;
1055 -site=* | --site=* | --sit=*)
1056 site=$ac_optarg ;;
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059 ac_prev=srcdir ;;
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 verbose=yes ;;
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1081 -with-* | --with-*)
1082 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid package name: $ac_package" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1088 eval with_$ac_package=\$ac_optarg ;;
1090 -without-* | --without-*)
1091 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid package name: $ac_package" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1097 eval with_$ac_package=no ;;
1099 --x)
1100 # Obsolete; use --with-x.
1101 with_x=yes ;;
1103 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1104 | --x-incl | --x-inc | --x-in | --x-i)
1105 ac_prev=x_includes ;;
1106 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1107 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1108 x_includes=$ac_optarg ;;
1110 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1111 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1112 ac_prev=x_libraries ;;
1113 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1114 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1115 x_libraries=$ac_optarg ;;
1117 -*) { echo "$as_me: error: unrecognized option: $ac_option
1118 Try \`$0 --help' for more information." >&2
1119 { (exit 1); exit 1; }; }
1122 *=*)
1123 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1127 { (exit 1); exit 1; }; }
1128 eval $ac_envvar=\$ac_optarg
1129 export $ac_envvar ;;
1132 # FIXME: should be removed in autoconf 3.0.
1133 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1134 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1135 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1136 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1139 esac
1140 done
1142 if test -n "$ac_prev"; then
1143 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1144 { echo "$as_me: error: missing argument to $ac_option" >&2
1145 { (exit 1); exit 1; }; }
1148 # Be sure to have absolute directory names.
1149 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1150 datadir sysconfdir sharedstatedir localstatedir includedir \
1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1152 libdir localedir mandir
1154 eval ac_val=\$$ac_var
1155 case $ac_val in
1156 [\\/$]* | ?:[\\/]* ) continue;;
1157 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 esac
1159 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1160 { (exit 1); exit 1; }; }
1161 done
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1166 build=$build_alias
1167 host=$host_alias
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1177 cross_compiling=yes
1181 ac_tool_prefix=
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1184 test "$silent" = yes && exec 6>/dev/null
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 { echo "$as_me: error: Working directory cannot be determined" >&2
1191 { (exit 1); exit 1; }; }
1192 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1193 { echo "$as_me: error: pwd does not report name of working directory" >&2
1194 { (exit 1); exit 1; }; }
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$0" ||
1202 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$0" : 'X\(//\)[^/]' \| \
1204 X"$0" : 'X\(//\)$' \| \
1205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1206 echo X"$0" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 s//\1/
1211 /^X\(\/\/\)[^/].*/{
1212 s//\1/
1215 /^X\(\/\/\)$/{
1216 s//\1/
1219 /^X\(\/\).*/{
1220 s//\1/
1223 s/.*/./; q'`
1224 srcdir=$ac_confdir
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 srcdir=..
1228 else
1229 ac_srcdir_defaulted=no
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1234 { (exit 1); exit 1; }; }
1236 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1237 ac_abs_confdir=`(
1238 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1239 { (exit 1); exit 1; }; }
1240 pwd)`
1241 # When building in place, set srcdir=.
1242 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 srcdir=.
1245 # Remove unnecessary trailing slashes from srcdir.
1246 # Double slashes in file names in object file debugging info
1247 # mess up M-x gdb in Emacs.
1248 case $srcdir in
1249 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250 esac
1251 for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256 done
1259 # Report the --help message.
1261 if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1264 cat <<_ACEOF
1265 \`configure' configures this package to adapt to many kinds of systems.
1267 Usage: $0 [OPTION]... [VAR=VALUE]...
1269 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270 VAR=VALUE. See below for descriptions of some of the useful variables.
1272 Defaults for the options are specified in brackets.
1274 Configuration:
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1285 Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
1287 [$ac_default_prefix]
1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 [PREFIX]
1291 By default, \`make install' will install all the files in
1292 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294 for instance \`--prefix=\$HOME'.
1296 For better control, use the options below.
1298 Fine tuning of the installation directories:
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
1318 _ACEOF
1320 cat <<\_ACEOF
1322 X features:
1323 --x-includes=DIR X include files are in DIR
1324 --x-libraries=DIR X library files are in DIR
1325 _ACEOF
1328 if test -n "$ac_init_help"; then
1330 cat <<\_ACEOF
1332 Optional Features:
1333 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1334 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1335 --disable-darwin Disable Darwin (Mac OS X) support.
1336 --disable-selinux Don't check for SELinux support.
1337 --disable-xsmp Disable XSMP session management
1338 --disable-xsmp-interact Disable XSMP interaction
1339 --enable-mzschemeinterp Include MzScheme interpreter.
1340 --enable-perlinterp Include Perl interpreter.
1341 --enable-pythoninterp Include Python interpreter.
1342 --enable-tclinterp Include Tcl interpreter.
1343 --enable-rubyinterp Include Ruby interpreter.
1344 --enable-cscope Include cscope interface.
1345 --enable-workshop Include Sun Visual Workshop support.
1346 --disable-netbeans Disable NetBeans integration support.
1347 --enable-sniff Include Sniff interface.
1348 --enable-multibyte Include multibyte editing support.
1349 --enable-hangulinput Include Hangul input support.
1350 --enable-xim Include XIM input support.
1351 --enable-fontset Include X fontset output support.
1352 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1353 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1354 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1355 --enable-gnome-check If GTK GUI, check for GNOME default=no
1356 --enable-motif-check If auto-select GUI, check for Motif default=yes
1357 --enable-athena-check If auto-select GUI, check for Athena default=yes
1358 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1359 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1360 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1361 --disable-gtktest Do not try to compile and run a test GTK program
1362 --disable-acl Don't check for ACL support.
1363 --disable-gpm Don't use gpm (Linux mouse daemon).
1364 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1365 --disable-nls Don't support NLS (gettext()).
1367 Optional Packages:
1368 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1371 --with-macsdk=SDK SDK version (10.4, 10.5, 10.6, ...)
1372 --with-macarchs=ARCHS space separated list of archs (i386 x86_64 ppc ...)
1373 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1374 --without-local-dir do not search /usr/local for local libraries.
1375 --with-vim-name=NAME what to call the Vim executable
1376 --with-ex-name=NAME what to call the Ex executable
1377 --with-view-name=NAME what to call the View executable
1378 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1379 --with-modified-by=NAME name of who modified a release version
1380 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1381 --with-compiledby=NAME name to show in :version message
1382 --with-plthome=PLTHOME Use PLTHOME.
1383 --with-python-config-dir=PATH Python's config directory
1384 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1385 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
1386 --with-x use the X Window System
1387 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1388 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1389 --with-gnome-includes=DIR Specify location of GNOME headers
1390 --with-gnome-libs=DIR Specify location of GNOME libs
1391 --with-gnome Specify prefix for GNOME files
1392 --with-motif-lib=STRING Library for Motif
1393 --with-tlib=library terminal library to be used
1394 --with-xcodecfg=CFG Debug, Release (default: Release)
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1404 CPP C preprocessor
1405 XMKMF Path to xmkmf, Makefile generator for X Window System
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1410 _ACEOF
1411 ac_status=$?
1414 if test "$ac_init_help" = "recursive"; then
1415 # If there are subdirs, report their specific --help.
1416 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1417 test -d "$ac_dir" || continue
1418 ac_builddir=.
1420 case "$ac_dir" in
1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1424 # A ".." for each directory in $ac_dir_suffix.
1425 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1426 case $ac_top_builddir_sub in
1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 esac ;;
1430 esac
1431 ac_abs_top_builddir=$ac_pwd
1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433 # for backward compatibility:
1434 ac_top_builddir=$ac_top_build_prefix
1436 case $srcdir in
1437 .) # We are building in place.
1438 ac_srcdir=.
1439 ac_top_srcdir=$ac_top_builddir_sub
1440 ac_abs_top_srcdir=$ac_pwd ;;
1441 [\\/]* | ?:[\\/]* ) # Absolute name.
1442 ac_srcdir=$srcdir$ac_dir_suffix;
1443 ac_top_srcdir=$srcdir
1444 ac_abs_top_srcdir=$srcdir ;;
1445 *) # Relative name.
1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447 ac_top_srcdir=$ac_top_build_prefix$srcdir
1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 esac
1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1452 cd "$ac_dir" || { ac_status=$?; continue; }
1453 # Check for guested configure.
1454 if test -f "$ac_srcdir/configure.gnu"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457 elif test -f "$ac_srcdir/configure"; then
1458 echo &&
1459 $SHELL "$ac_srcdir/configure" --help=recursive
1460 else
1461 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 fi || ac_status=$?
1463 cd "$ac_pwd" || { ac_status=$?; break; }
1464 done
1467 test -n "$ac_init_help" && exit $ac_status
1468 if $ac_init_version; then
1469 cat <<\_ACEOF
1470 configure
1471 generated by GNU Autoconf 2.61
1473 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1474 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1477 _ACEOF
1478 exit
1480 cat >config.log <<_ACEOF
1481 This file contains any messages produced by compilers while
1482 running configure, to aid debugging if configure makes a mistake.
1484 It was created by $as_me, which was
1485 generated by GNU Autoconf 2.61. Invocation command line was
1487 $ $0 $@
1489 _ACEOF
1490 exec 5>>config.log
1492 cat <<_ASUNAME
1493 ## --------- ##
1494 ## Platform. ##
1495 ## --------- ##
1497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1504 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1506 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1509 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1510 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1511 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1512 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1514 _ASUNAME
1516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 for as_dir in $PATH
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 echo "PATH: $as_dir"
1522 done
1523 IFS=$as_save_IFS
1525 } >&5
1527 cat >&5 <<_ACEOF
1530 ## ----------- ##
1531 ## Core tests. ##
1532 ## ----------- ##
1534 _ACEOF
1537 # Keep a trace of the command line.
1538 # Strip out --no-create and --no-recursion so they do not pile up.
1539 # Strip out --silent because we don't want to record it for future runs.
1540 # Also quote any args containing shell meta-characters.
1541 # Make two passes to allow for proper duplicate-argument suppression.
1542 ac_configure_args=
1543 ac_configure_args0=
1544 ac_configure_args1=
1545 ac_must_keep_next=false
1546 for ac_pass in 1 2
1548 for ac_arg
1550 case $ac_arg in
1551 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1553 | -silent | --silent | --silen | --sile | --sil)
1554 continue ;;
1555 *\'*)
1556 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1557 esac
1558 case $ac_pass in
1559 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1561 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1562 if test $ac_must_keep_next = true; then
1563 ac_must_keep_next=false # Got value, back to normal.
1564 else
1565 case $ac_arg in
1566 *=* | --config-cache | -C | -disable-* | --disable-* \
1567 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1568 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1569 | -with-* | --with-* | -without-* | --without-* | --x)
1570 case "$ac_configure_args0 " in
1571 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1572 esac
1574 -* ) ac_must_keep_next=true ;;
1575 esac
1577 ac_configure_args="$ac_configure_args '$ac_arg'"
1579 esac
1580 done
1581 done
1582 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1583 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1585 # When interrupted or exit'd, cleanup temporary files, and complete
1586 # config.log. We remove comments because anyway the quotes in there
1587 # would cause problems or look ugly.
1588 # WARNING: Use '\'' to represent an apostrophe within the trap.
1589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1590 trap 'exit_status=$?
1591 # Save into config.log some information that might help in debugging.
1593 echo
1595 cat <<\_ASBOX
1596 ## ---------------- ##
1597 ## Cache variables. ##
1598 ## ---------------- ##
1599 _ASBOX
1600 echo
1601 # The following way of writing the cache mishandles newlines in values,
1603 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1604 eval ac_val=\$$ac_var
1605 case $ac_val in #(
1606 *${as_nl}*)
1607 case $ac_var in #(
1608 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1609 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1610 esac
1611 case $ac_var in #(
1612 _ | IFS | as_nl) ;; #(
1613 *) $as_unset $ac_var ;;
1614 esac ;;
1615 esac
1616 done
1617 (set) 2>&1 |
1618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1619 *${as_nl}ac_space=\ *)
1620 sed -n \
1621 "s/'\''/'\''\\\\'\'''\''/g;
1622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623 ;; #(
1625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1627 esac |
1628 sort
1630 echo
1632 cat <<\_ASBOX
1633 ## ----------------- ##
1634 ## Output variables. ##
1635 ## ----------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_vars
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1648 if test -n "$ac_subst_files"; then
1649 cat <<\_ASBOX
1650 ## ------------------- ##
1651 ## File substitutions. ##
1652 ## ------------------- ##
1653 _ASBOX
1654 echo
1655 for ac_var in $ac_subst_files
1657 eval ac_val=\$$ac_var
1658 case $ac_val in
1659 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660 esac
1661 echo "$ac_var='\''$ac_val'\''"
1662 done | sort
1663 echo
1666 if test -s confdefs.h; then
1667 cat <<\_ASBOX
1668 ## ----------- ##
1669 ## confdefs.h. ##
1670 ## ----------- ##
1671 _ASBOX
1672 echo
1673 cat confdefs.h
1674 echo
1676 test "$ac_signal" != 0 &&
1677 echo "$as_me: caught signal $ac_signal"
1678 echo "$as_me: exit $exit_status"
1679 } >&5
1680 rm -f core *.core core.conftest.* &&
1681 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1682 exit $exit_status
1684 for ac_signal in 1 2 13 15; do
1685 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1686 done
1687 ac_signal=0
1689 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1690 rm -f -r conftest* confdefs.h
1692 # Predefined preprocessor variables.
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_NAME "$PACKAGE_NAME"
1696 _ACEOF
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1701 _ACEOF
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_STRING "$PACKAGE_STRING"
1711 _ACEOF
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1716 _ACEOF
1719 # Let the site file select an alternate cache file if it wants to.
1720 # Prefer explicitly selected file to automatically selected ones.
1721 if test -n "$CONFIG_SITE"; then
1722 set x "$CONFIG_SITE"
1723 elif test "x$prefix" != xNONE; then
1724 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1725 else
1726 set x "$ac_default_prefix/share/config.site" \
1727 "$ac_default_prefix/etc/config.site"
1729 shift
1730 for ac_site_file
1732 if test -r "$ac_site_file"; then
1733 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1734 echo "$as_me: loading site script $ac_site_file" >&6;}
1735 sed 's/^/| /' "$ac_site_file" >&5
1736 . "$ac_site_file"
1738 done
1740 if test -r "$cache_file"; then
1741 # Some versions of bash will fail to source /dev/null (special
1742 # files actually), so we avoid doing that.
1743 if test -f "$cache_file"; then
1744 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1745 echo "$as_me: loading cache $cache_file" >&6;}
1746 case $cache_file in
1747 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1748 *) . "./$cache_file";;
1749 esac
1751 else
1752 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1753 echo "$as_me: creating cache $cache_file" >&6;}
1754 >$cache_file
1757 # Check that the precious variables saved in the cache have kept the same
1758 # value.
1759 ac_cache_corrupted=false
1760 for ac_var in $ac_precious_vars; do
1761 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1762 eval ac_new_set=\$ac_env_${ac_var}_set
1763 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1764 eval ac_new_val=\$ac_env_${ac_var}_value
1765 case $ac_old_set,$ac_new_set in
1766 set,)
1767 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1768 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1769 ac_cache_corrupted=: ;;
1770 ,set)
1771 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1772 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1773 ac_cache_corrupted=: ;;
1774 ,);;
1776 if test "x$ac_old_val" != "x$ac_new_val"; then
1777 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1778 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1779 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1780 echo "$as_me: former value: $ac_old_val" >&2;}
1781 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1782 echo "$as_me: current value: $ac_new_val" >&2;}
1783 ac_cache_corrupted=:
1784 fi;;
1785 esac
1786 # Pass precious variables to config.status.
1787 if test "$ac_new_set" = set; then
1788 case $ac_new_val in
1789 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1790 *) ac_arg=$ac_var=$ac_new_val ;;
1791 esac
1792 case " $ac_configure_args " in
1793 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1794 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1795 esac
1797 done
1798 if $ac_cache_corrupted; then
1799 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1800 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1801 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1802 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1803 { (exit 1); exit 1; }; }
1822 ac_ext=c
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1832 cat >>confdefs.h <<\_ACEOF
1833 #define UNIX 1
1834 _ACEOF
1836 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1837 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1838 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1839 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842 cat >conftest.make <<\_ACEOF
1843 SHELL = /bin/sh
1844 all:
1845 @echo '@@@%%%=$(MAKE)=@@@%%%'
1846 _ACEOF
1847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1848 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1849 *@@@%%%=?*=@@@%%%*)
1850 eval ac_cv_prog_make_${ac_make}_set=yes;;
1852 eval ac_cv_prog_make_${ac_make}_set=no;;
1853 esac
1854 rm -f conftest.make
1856 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1857 { echo "$as_me:$LINENO: result: yes" >&5
1858 echo "${ECHO_T}yes" >&6; }
1859 SET_MAKE=
1860 else
1861 { echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6; }
1863 SET_MAKE="MAKE=${MAKE-make}"
1867 ac_ext=c
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1886 IFS=$as_save_IFS
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1890 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 break 2
1894 done
1895 done
1896 IFS=$as_save_IFS
1900 CC=$ac_cv_prog_CC
1901 if test -n "$CC"; then
1902 { echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6; }
1904 else
1905 { echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6; }
1911 if test -z "$ac_cv_prog_CC"; then
1912 ac_ct_CC=$CC
1913 # Extract the first word of "gcc", so it can be a program name with args.
1914 set dummy gcc; ac_word=$2
1915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1930 ac_cv_prog_ac_ct_CC="gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 break 2
1934 done
1935 done
1936 IFS=$as_save_IFS
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6; }
1944 else
1945 { echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6; }
1949 if test "x$ac_ct_CC" = x; then
1950 CC=""
1951 else
1952 case $cross_compiling:$ac_tool_warned in
1953 yes:)
1954 { echo "$as_me:$LINENO: 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." >&5
1957 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1958 whose name does not start with the host triplet. If you think this
1959 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1960 ac_tool_warned=yes ;;
1961 esac
1962 CC=$ac_ct_CC
1964 else
1965 CC="$ac_cv_prog_CC"
1968 if test -z "$CC"; then
1969 if test -n "$ac_tool_prefix"; then
1970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}cc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_CC="${ac_tool_prefix}cc"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1991 done
1992 done
1993 IFS=$as_save_IFS
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999 { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2001 else
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2009 if test -z "$CC"; then
2010 # Extract the first word of "cc", so it can be a program name with args.
2011 set dummy cc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 ac_prog_rejected=no
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2029 ac_prog_rejected=yes
2030 continue
2032 ac_cv_prog_CC="cc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2036 done
2037 done
2038 IFS=$as_save_IFS
2040 if test $ac_prog_rejected = yes; then
2041 # We found a bogon in the path, so make sure we never use it.
2042 set dummy $ac_cv_prog_CC
2043 shift
2044 if test $# != 0; then
2045 # We chose a different compiler from the bogus one.
2046 # However, it has the same basename, so the bogon will be chosen
2047 # first if we set CC to just the basename; use the full file name.
2048 shift
2049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2054 CC=$ac_cv_prog_CC
2055 if test -n "$CC"; then
2056 { echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6; }
2058 else
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2065 if test -z "$CC"; then
2066 if test -n "$ac_tool_prefix"; then
2067 for ac_prog in cl.exe
2069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test -n "$CC"; then
2077 ac_cv_prog_CC="$CC" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2090 done
2091 done
2092 IFS=$as_save_IFS
2096 CC=$ac_cv_prog_CC
2097 if test -n "$CC"; then
2098 { echo "$as_me:$LINENO: result: $CC" >&5
2099 echo "${ECHO_T}$CC" >&6; }
2100 else
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2106 test -n "$CC" && break
2107 done
2109 if test -z "$CC"; then
2110 ac_ct_CC=$CC
2111 for ac_prog in cl.exe
2113 # Extract the first word of "$ac_prog", so it can be a program name with args.
2114 set dummy $ac_prog; ac_word=$2
2115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 if test -n "$ac_ct_CC"; then
2121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_ac_ct_CC="$ac_prog"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2134 done
2135 done
2136 IFS=$as_save_IFS
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6; }
2144 else
2145 { echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6; }
2150 test -n "$ac_ct_CC" && break
2151 done
2153 if test "x$ac_ct_CC" = x; then
2154 CC=""
2155 else
2156 case $cross_compiling:$ac_tool_warned in
2157 yes:)
2158 { echo "$as_me:$LINENO: 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." >&5
2161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2164 ac_tool_warned=yes ;;
2165 esac
2166 CC=$ac_ct_CC
2173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2179 # Provide some information about the compiler.
2180 echo "$as_me:$LINENO: checking for C compiler version" >&5
2181 ac_compiler=`set X $ac_compile; echo $2`
2182 { (ac_try="$ac_compiler --version >&5"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2188 (eval "$ac_compiler --version >&5") 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }
2192 { (ac_try="$ac_compiler -v >&5"
2193 case "(($ac_try" in
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2196 esac
2197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2198 (eval "$ac_compiler -v >&5") 2>&5
2199 ac_status=$?
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }
2202 { (ac_try="$ac_compiler -V >&5"
2203 case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206 esac
2207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_compiler -V >&5") 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h. */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h. */
2221 main ()
2225 return 0;
2227 _ACEOF
2228 ac_clean_files_save=$ac_clean_files
2229 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2230 # Try to create an executable without -o first, disregard a.out.
2231 # It will help us diagnose broken compilers, and finding out an intuition
2232 # of exeext.
2233 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2234 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2235 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2237 # List of possible output files, starting from the most likely.
2238 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2239 # only as a last resort. b.out is created by i960 compilers.
2240 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2242 # The IRIX 6 linker writes into existing files which may not be
2243 # executable, retaining their permissions. Remove them first so a
2244 # subsequent execution test works.
2245 ac_rmfiles=
2246 for ac_file in $ac_files
2248 case $ac_file in
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2250 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2251 esac
2252 done
2253 rm -f $ac_rmfiles
2255 if { (ac_try="$ac_link_default"
2256 case "(($ac_try" in
2257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258 *) ac_try_echo=$ac_try;;
2259 esac
2260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2261 (eval "$ac_link_default") 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; then
2265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2266 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2267 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2268 # so that the user can short-circuit this test for compilers unknown to
2269 # Autoconf.
2270 for ac_file in $ac_files ''
2272 test -f "$ac_file" || continue
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2276 [ab].out )
2277 # We found the default executable, but exeext='' is most
2278 # certainly right.
2279 break;;
2280 *.* )
2281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2282 then :; else
2283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 # We set ac_cv_exeext here because the later test for it is not
2286 # safe: cross compilers may not add the suffix if given an `-o'
2287 # argument, so we may need to know it at that point already.
2288 # Even if this section looks crufty: it has the advantage of
2289 # actually working.
2290 break;;
2292 break;;
2293 esac
2294 done
2295 test "$ac_cv_exeext" = no && ac_cv_exeext=
2297 else
2298 ac_file=''
2301 { echo "$as_me:$LINENO: result: $ac_file" >&5
2302 echo "${ECHO_T}$ac_file" >&6; }
2303 if test -z "$ac_file"; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2307 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: C compiler cannot create executables
2310 See \`config.log' for more details." >&2;}
2311 { (exit 77); exit 77; }; }
2314 ac_exeext=$ac_cv_exeext
2316 # Check that the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323 if { ac_try='./$ac_file'
2324 { (case "(($ac_try" in
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_try") 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 cross_compiling=no
2334 else
2335 if test "$cross_compiling" = maybe; then
2336 cross_compiling=yes
2337 else
2338 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2348 { echo "$as_me:$LINENO: result: yes" >&5
2349 echo "${ECHO_T}yes" >&6; }
2351 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2357 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358 echo "${ECHO_T}$cross_compiling" >&6; }
2360 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2362 if { (ac_try="$ac_link"
2363 case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2368 (eval "$ac_link") 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; then
2372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2373 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2374 # work properly (i.e., refer to `conftest.exe'), while it won't with
2375 # `rm'.
2376 for ac_file in conftest.exe conftest conftest.*; do
2377 test -f "$ac_file" || continue
2378 case $ac_file in
2379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2381 break;;
2382 * ) break;;
2383 esac
2384 done
2385 else
2386 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2393 rm -f conftest$ac_cv_exeext
2394 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2395 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2397 rm -f conftest.$ac_ext
2398 EXEEXT=$ac_cv_exeext
2399 ac_exeext=$EXEEXT
2400 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2401 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2402 if test "${ac_cv_objext+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 else
2405 cat >conftest.$ac_ext <<_ACEOF
2406 /* confdefs.h. */
2407 _ACEOF
2408 cat confdefs.h >>conftest.$ac_ext
2409 cat >>conftest.$ac_ext <<_ACEOF
2410 /* end confdefs.h. */
2413 main ()
2417 return 0;
2419 _ACEOF
2420 rm -f conftest.o conftest.obj
2421 if { (ac_try="$ac_compile"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427 (eval "$ac_compile") 2>&5
2428 ac_status=$?
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; then
2431 for ac_file in conftest.o conftest.obj conftest.*; do
2432 test -f "$ac_file" || continue;
2433 case $ac_file in
2434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2436 break;;
2437 esac
2438 done
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2450 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2452 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2453 echo "${ECHO_T}$ac_cv_objext" >&6; }
2454 OBJEXT=$ac_cv_objext
2455 ac_objext=$OBJEXT
2456 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2457 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2458 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h. */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h. */
2469 main ()
2471 #ifndef __GNUC__
2472 choke me
2473 #endif
2476 return 0;
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (ac_try="$ac_compile"
2481 case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_compile") 2>conftest.er1
2487 ac_status=$?
2488 grep -v '^ *+' conftest.er1 >conftest.err
2489 rm -f conftest.er1
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } && {
2493 test -z "$ac_c_werror_flag" ||
2494 test ! -s conftest.err
2495 } && test -s conftest.$ac_objext; then
2496 ac_compiler_gnu=yes
2497 else
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 ac_compiler_gnu=no
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2508 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2509 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2510 GCC=`test $ac_compiler_gnu = yes && echo yes`
2511 ac_test_CFLAGS=${CFLAGS+set}
2512 ac_save_CFLAGS=$CFLAGS
2513 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2514 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_cc_g+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518 ac_save_c_werror_flag=$ac_c_werror_flag
2519 ac_c_werror_flag=yes
2520 ac_cv_prog_cc_g=no
2521 CFLAGS="-g"
2522 cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h. */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2530 main ()
2534 return 0;
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } && {
2551 test -z "$ac_c_werror_flag" ||
2552 test ! -s conftest.err
2553 } && test -s conftest.$ac_objext; then
2554 ac_cv_prog_cc_g=yes
2555 else
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2559 CFLAGS=""
2560 cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h. */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2568 main ()
2572 return 0;
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (ac_try="$ac_compile"
2577 case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compile") 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest.$ac_objext; then
2593 else
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2597 ac_c_werror_flag=$ac_save_c_werror_flag
2598 CFLAGS="-g"
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2607 main ()
2611 return 0;
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (ac_try="$ac_compile"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && {
2628 test -z "$ac_c_werror_flag" ||
2629 test ! -s conftest.err
2630 } && test -s conftest.$ac_objext; then
2631 ac_cv_prog_cc_g=yes
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2650 if test "$ac_test_CFLAGS" = set; then
2651 CFLAGS=$ac_save_CFLAGS
2652 elif test $ac_cv_prog_cc_g = yes; then
2653 if test "$GCC" = yes; then
2654 CFLAGS="-g -O2"
2655 else
2656 CFLAGS="-g"
2658 else
2659 if test "$GCC" = yes; then
2660 CFLAGS="-O2"
2661 else
2662 CFLAGS=
2665 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2666 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_cc_c89+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 ac_cv_prog_cc_c89=no
2671 ac_save_CC=$CC
2672 cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h. */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2678 #include <stdarg.h>
2679 #include <stdio.h>
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2686 char **p;
2687 int i;
2689 return p[i];
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2693 char *s;
2694 va_list v;
2695 va_start (v,p);
2696 s = g (p, va_arg (v,int));
2697 va_end (v);
2698 return s;
2701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2702 function prototypes and stuff, but not '\xHH' hex character constants.
2703 These don't provoke an error unfortunately, instead are silently treated
2704 as 'x'. The following induces an error, until -std is added to get
2705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2706 array size at least. It's necessary to write '\x00'==0 to get something
2707 that's true only with -std. */
2708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2711 inside strings and character constants. */
2712 #define FOO(x) 'x'
2713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2715 int test (int i, double x);
2716 struct s1 {int (*f) (int a);};
2717 struct s2 {int (*f) (double a);};
2718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2719 int argc;
2720 char **argv;
2722 main ()
2724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2726 return 0;
2728 _ACEOF
2729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 CC="$ac_save_CC $ac_arg"
2733 rm -f conftest.$ac_objext
2734 if { (ac_try="$ac_compile"
2735 case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compile") 2>conftest.er1
2741 ac_status=$?
2742 grep -v '^ *+' conftest.er1 >conftest.err
2743 rm -f conftest.er1
2744 cat conftest.err >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } && {
2747 test -z "$ac_c_werror_flag" ||
2748 test ! -s conftest.err
2749 } && test -s conftest.$ac_objext; then
2750 ac_cv_prog_cc_c89=$ac_arg
2751 else
2752 echo "$as_me: failed program was:" >&5
2753 sed 's/^/| /' conftest.$ac_ext >&5
2758 rm -f core conftest.err conftest.$ac_objext
2759 test "x$ac_cv_prog_cc_c89" != "xno" && break
2760 done
2761 rm -f conftest.$ac_ext
2762 CC=$ac_save_CC
2765 # AC_CACHE_VAL
2766 case "x$ac_cv_prog_cc_c89" in
2768 { echo "$as_me:$LINENO: result: none needed" >&5
2769 echo "${ECHO_T}none needed" >&6; } ;;
2770 xno)
2771 { echo "$as_me:$LINENO: result: unsupported" >&5
2772 echo "${ECHO_T}unsupported" >&6; } ;;
2774 CC="$CC $ac_cv_prog_cc_c89"
2775 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2777 esac
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 ac_ext=c
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2791 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2792 # On Suns, sometimes $CPP names a directory.
2793 if test -n "$CPP" && test -d "$CPP"; then
2794 CPP=
2796 if test -z "$CPP"; then
2797 if test "${ac_cv_prog_CPP+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 # Double quotes because CPP needs to be expanded
2801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2803 ac_preproc_ok=false
2804 for ac_c_preproc_warn_flag in '' yes
2806 # Use a header file that comes with gcc, so configuring glibc
2807 # with a fresh cross-compiler works.
2808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2809 # <limits.h> exists even on freestanding compilers.
2810 # On the NeXT, cc -E runs the code through the compiler's parser,
2811 # not just through cpp. "Syntax error" is here to catch this case.
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818 #ifdef __STDC__
2819 # include <limits.h>
2820 #else
2821 # include <assert.h>
2822 #endif
2823 Syntax error
2824 _ACEOF
2825 if { (ac_try="$ac_cpp conftest.$ac_ext"
2826 case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829 esac
2830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2832 ac_status=$?
2833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null && {
2838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 }; then
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2846 # Broken: fails on valid input.
2847 continue
2850 rm -f conftest.err conftest.$ac_ext
2852 # OK, works on sane cases. Now check whether nonexistent headers
2853 # can be detected and how.
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860 #include <ac_nonexistent.h>
2861 _ACEOF
2862 if { (ac_try="$ac_cpp conftest.$ac_ext"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } >/dev/null && {
2875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2877 }; then
2878 # Broken: success on invalid input.
2879 continue
2880 else
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 # Passes both tests.
2885 ac_preproc_ok=:
2886 break
2889 rm -f conftest.err conftest.$ac_ext
2891 done
2892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2893 rm -f conftest.err conftest.$ac_ext
2894 if $ac_preproc_ok; then
2895 break
2898 done
2899 ac_cv_prog_CPP=$CPP
2902 CPP=$ac_cv_prog_CPP
2903 else
2904 ac_cv_prog_CPP=$CPP
2906 { echo "$as_me:$LINENO: result: $CPP" >&5
2907 echo "${ECHO_T}$CPP" >&6; }
2908 ac_preproc_ok=false
2909 for ac_c_preproc_warn_flag in '' yes
2911 # Use a header file that comes with gcc, so configuring glibc
2912 # with a fresh cross-compiler works.
2913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2914 # <limits.h> exists even on freestanding compilers.
2915 # On the NeXT, cc -E runs the code through the compiler's parser,
2916 # not just through cpp. "Syntax error" is here to catch this case.
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #ifdef __STDC__
2924 # include <limits.h>
2925 #else
2926 # include <assert.h>
2927 #endif
2928 Syntax error
2929 _ACEOF
2930 if { (ac_try="$ac_cpp conftest.$ac_ext"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2937 ac_status=$?
2938 grep -v '^ *+' conftest.er1 >conftest.err
2939 rm -f conftest.er1
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } >/dev/null && {
2943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 }; then
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 # Broken: fails on valid input.
2952 continue
2955 rm -f conftest.err conftest.$ac_ext
2957 # OK, works on sane cases. Now check whether nonexistent headers
2958 # can be detected and how.
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 #include <ac_nonexistent.h>
2966 _ACEOF
2967 if { (ac_try="$ac_cpp conftest.$ac_ext"
2968 case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null && {
2980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 }; then
2983 # Broken: success on invalid input.
2984 continue
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Passes both tests.
2990 ac_preproc_ok=:
2991 break
2994 rm -f conftest.err conftest.$ac_ext
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3001 else
3002 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3003 See \`config.log' for more details." >&5
3004 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3005 See \`config.log' for more details." >&2;}
3006 { (exit 1); exit 1; }; }
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3017 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3018 if test "${ac_cv_path_GREP+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021 # Extract the first word of "grep ggrep" to use in msg output
3022 if test -z "$GREP"; then
3023 set dummy grep ggrep; ac_prog_name=$2
3024 if test "${ac_cv_path_GREP+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 ac_path_GREP_found=false
3028 # Loop through the user's path and test for each of PROGNAME-LIST
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in grep ggrep; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3037 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3038 # Check for GNU ac_path_GREP and select it if it is found.
3039 # Check for GNU $ac_path_GREP
3040 case `"$ac_path_GREP" --version 2>&1` in
3041 *GNU*)
3042 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3044 ac_count=0
3045 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3046 while :
3048 cat "conftest.in" "conftest.in" >"conftest.tmp"
3049 mv "conftest.tmp" "conftest.in"
3050 cp "conftest.in" "conftest.nl"
3051 echo 'GREP' >> "conftest.nl"
3052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3053 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3054 ac_count=`expr $ac_count + 1`
3055 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3056 # Best one so far, save it but keep looking for a better one
3057 ac_cv_path_GREP="$ac_path_GREP"
3058 ac_path_GREP_max=$ac_count
3060 # 10*(2^10) chars as input seems more than enough
3061 test $ac_count -gt 10 && break
3062 done
3063 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3064 esac
3067 $ac_path_GREP_found && break 3
3068 done
3069 done
3071 done
3072 IFS=$as_save_IFS
3077 GREP="$ac_cv_path_GREP"
3078 if test -z "$GREP"; then
3079 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3080 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3081 { (exit 1); exit 1; }; }
3084 else
3085 ac_cv_path_GREP=$GREP
3090 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3091 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3092 GREP="$ac_cv_path_GREP"
3095 { echo "$as_me:$LINENO: checking for egrep" >&5
3096 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3097 if test "${ac_cv_path_EGREP+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099 else
3100 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3101 then ac_cv_path_EGREP="$GREP -E"
3102 else
3103 # Extract the first word of "egrep" to use in msg output
3104 if test -z "$EGREP"; then
3105 set dummy egrep; ac_prog_name=$2
3106 if test "${ac_cv_path_EGREP+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109 ac_path_EGREP_found=false
3110 # Loop through the user's path and test for each of PROGNAME-LIST
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_prog in egrep; do
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3119 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3120 # Check for GNU ac_path_EGREP and select it if it is found.
3121 # Check for GNU $ac_path_EGREP
3122 case `"$ac_path_EGREP" --version 2>&1` in
3123 *GNU*)
3124 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3126 ac_count=0
3127 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3128 while :
3130 cat "conftest.in" "conftest.in" >"conftest.tmp"
3131 mv "conftest.tmp" "conftest.in"
3132 cp "conftest.in" "conftest.nl"
3133 echo 'EGREP' >> "conftest.nl"
3134 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3135 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3136 ac_count=`expr $ac_count + 1`
3137 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3138 # Best one so far, save it but keep looking for a better one
3139 ac_cv_path_EGREP="$ac_path_EGREP"
3140 ac_path_EGREP_max=$ac_count
3142 # 10*(2^10) chars as input seems more than enough
3143 test $ac_count -gt 10 && break
3144 done
3145 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3146 esac
3149 $ac_path_EGREP_found && break 3
3150 done
3151 done
3153 done
3154 IFS=$as_save_IFS
3159 EGREP="$ac_cv_path_EGREP"
3160 if test -z "$EGREP"; then
3161 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3162 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3163 { (exit 1); exit 1; }; }
3166 else
3167 ac_cv_path_EGREP=$EGREP
3173 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3174 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3175 EGREP="$ac_cv_path_EGREP"
3178 cat >conftest.$ac_ext <<_ACEOF
3179 /* confdefs.h. */
3180 _ACEOF
3181 cat confdefs.h >>conftest.$ac_ext
3182 cat >>conftest.$ac_ext <<_ACEOF
3183 /* end confdefs.h. */
3185 _ACEOF
3186 rm -f -r conftest*
3187 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3188 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3189 if test "${ac_cv_search_strerror+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192 ac_func_search_save_LIBS=$LIBS
3193 cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h. */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3200 /* Override any GCC internal prototype to avoid an error.
3201 Use char because int might match the return type of a GCC
3202 builtin and then its argument prototype would still apply. */
3203 #ifdef __cplusplus
3204 extern "C"
3205 #endif
3206 char strerror ();
3208 main ()
3210 return strerror ();
3212 return 0;
3214 _ACEOF
3215 for ac_lib in '' cposix; do
3216 if test -z "$ac_lib"; then
3217 ac_res="none required"
3218 else
3219 ac_res=-l$ac_lib
3220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3222 rm -f conftest.$ac_objext conftest$ac_exeext
3223 if { (ac_try="$ac_link"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_link") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest$ac_exeext &&
3239 $as_test_x conftest$ac_exeext; then
3240 ac_cv_search_strerror=$ac_res
3241 else
3242 echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3249 conftest$ac_exeext
3250 if test "${ac_cv_search_strerror+set}" = set; then
3251 break
3253 done
3254 if test "${ac_cv_search_strerror+set}" = set; then
3256 else
3257 ac_cv_search_strerror=no
3259 rm conftest.$ac_ext
3260 LIBS=$ac_func_search_save_LIBS
3262 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3263 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3264 ac_res=$ac_cv_search_strerror
3265 if test "$ac_res" != no; then
3266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3269 for ac_prog in gawk mawk nawk awk
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_AWK+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$AWK"; then
3279 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_AWK="$ac_prog"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3292 done
3293 done
3294 IFS=$as_save_IFS
3298 AWK=$ac_cv_prog_AWK
3299 if test -n "$AWK"; then
3300 { echo "$as_me:$LINENO: result: $AWK" >&5
3301 echo "${ECHO_T}$AWK" >&6; }
3302 else
3303 { echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6; }
3308 test -n "$AWK" && break
3309 done
3311 # Extract the first word of "strip", so it can be a program name with args.
3312 set dummy strip; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_STRIP+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$STRIP"; then
3319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_STRIP="strip"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3332 done
3333 done
3334 IFS=$as_save_IFS
3336 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3339 STRIP=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341 { echo "$as_me:$LINENO: result: $STRIP" >&5
3342 echo "${ECHO_T}$STRIP" >&6; }
3343 else
3344 { echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6; }
3352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3354 if test "${ac_cv_header_stdc+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 cat >conftest.$ac_ext <<_ACEOF
3358 /* confdefs.h. */
3359 _ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <stdlib.h>
3364 #include <stdarg.h>
3365 #include <string.h>
3366 #include <float.h>
3369 main ()
3373 return 0;
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_compile") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest.$ac_objext; then
3393 ac_cv_header_stdc=yes
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 ac_cv_header_stdc=no
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 if test $ac_cv_header_stdc = yes; then
3404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3405 cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h. */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3411 #include <string.h>
3413 _ACEOF
3414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3415 $EGREP "memchr" >/dev/null 2>&1; then
3417 else
3418 ac_cv_header_stdc=no
3420 rm -f -r conftest*
3424 if test $ac_cv_header_stdc = yes; then
3425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h. */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <stdlib.h>
3434 _ACEOF
3435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3436 $EGREP "free" >/dev/null 2>&1; then
3438 else
3439 ac_cv_header_stdc=no
3441 rm -f -r conftest*
3445 if test $ac_cv_header_stdc = yes; then
3446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3447 if test "$cross_compiling" = yes; then
3449 else
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 #include <ctype.h>
3457 #include <stdlib.h>
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461 #else
3462 # define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467 #endif
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3471 main ()
3473 int i;
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3477 return 2;
3478 return 0;
3480 _ACEOF
3481 rm -f conftest$ac_exeext
3482 if { (ac_try="$ac_link"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_link") 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_try") 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3502 else
3503 echo "$as_me: program exited with status $ac_status" >&5
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 ( exit $ac_status )
3508 ac_cv_header_stdc=no
3510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3518 if test $ac_cv_header_stdc = yes; then
3520 cat >>confdefs.h <<\_ACEOF
3521 #define STDC_HEADERS 1
3522 _ACEOF
3526 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3527 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3528 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <sys/types.h>
3538 #include <sys/wait.h>
3539 #ifndef WEXITSTATUS
3540 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3541 #endif
3542 #ifndef WIFEXITED
3543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3544 #endif
3547 main ()
3549 int s;
3550 wait (&s);
3551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3573 ac_cv_header_sys_wait_h=yes
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 ac_cv_header_sys_wait_h=no
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3584 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3585 if test $ac_cv_header_sys_wait_h = yes; then
3587 cat >>confdefs.h <<\_ACEOF
3588 #define HAVE_SYS_WAIT_H 1
3589 _ACEOF
3594 if test -z "$CFLAGS"; then
3595 CFLAGS="-O"
3596 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3598 if test "$GCC" = yes; then
3599 gccversion=`"$CC" -dumpversion`
3600 if test "x$gccversion" = "x"; then
3601 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3603 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3604 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3605 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3606 else
3607 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3608 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3609 CFLAGS="$CFLAGS -fno-strength-reduce"
3614 if test "$cross_compiling" = yes; then
3615 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3616 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3619 test "$GCC" = yes && CPP_MM=M;
3621 if test -f ./toolcheck; then
3622 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3623 echo "$as_me: checking for buggy tools..." >&6;}
3624 sh ./toolcheck 1>&6
3627 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3629 { echo "$as_me:$LINENO: checking for BeOS" >&5
3630 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3631 case `uname` in
3632 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3633 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3634 echo "${ECHO_T}yes" >&6; };;
3635 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6; };;
3637 esac
3639 { echo "$as_me:$LINENO: checking for QNX" >&5
3640 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3641 case `uname` in
3642 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3643 test -z "$with_x" && with_x=no
3644 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3645 echo "${ECHO_T}yes" >&6; };;
3646 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; };;
3648 esac
3650 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3651 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3652 if test "`(uname) 2>/dev/null`" = Darwin; then
3653 { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3656 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3657 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3658 # Check whether --enable-darwin was given.
3659 if test "${enable_darwin+set}" = set; then
3660 enableval=$enable_darwin;
3661 else
3662 enable_darwin="yes"
3665 if test "$enable_darwin" = "yes"; then
3666 { echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6; }
3668 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3669 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3670 if test -f os_macosx.c; then
3671 { echo "$as_me:$LINENO: result: yes" >&5
3672 echo "${ECHO_T}yes" >&6; }
3673 else
3674 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3675 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3676 enable_darwin=no
3678 else
3679 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3680 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3683 { echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3684 echo $ECHO_N "checking --with-developer-dir argument... $ECHO_C" >&6; }
3686 # Check whether --with-developer-dir was given.
3687 if test "${with_developer_dir+set}" = set; then
3688 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3689 echo "${ECHO_T}$DEVELOPER_DIR" >&6; }
3690 else
3691 DEVELOPER_DIR=""; { echo "$as_me:$LINENO: result: not present" >&5
3692 echo "${ECHO_T}not present" >&6; }
3696 if test "x$DEVELOPER_DIR" = "x"; then
3697 # Extract the first word of "xcode-select", so it can be a program name with args.
3698 set dummy xcode-select; ac_word=$2
3699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704 case $XCODE_SELECT in
3705 [\\/]* | ?:[\\/]*)
3706 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3725 esac
3727 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3728 if test -n "$XCODE_SELECT"; then
3729 { echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3730 echo "${ECHO_T}$XCODE_SELECT" >&6; }
3731 else
3732 { echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6; }
3737 if test "x$XCODE_SELECT" != "x"; then
3738 { echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3739 echo $ECHO_N "checking for developer dir using xcode-select... $ECHO_C" >&6; }
3740 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3741 { echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3742 echo "${ECHO_T}$DEVELOPER_DIR" >&6; }
3743 else
3744 DEVELOPER_DIR=/Developer
3748 { echo "$as_me:$LINENO: checking --with-macsdk argument" >&5
3749 echo $ECHO_N "checking --with-macsdk argument... $ECHO_C" >&6; }
3751 # Check whether --with-macsdk was given.
3752 if test "${with_macsdk+set}" = set; then
3753 withval=$with_macsdk; MACSDK="$withval"; { echo "$as_me:$LINENO: result: $MACSDK" >&5
3754 echo "${ECHO_T}$MACSDK" >&6; }
3755 else
3756 MACSDK=""; { echo "$as_me:$LINENO: result: using default" >&5
3757 echo "${ECHO_T}using default" >&6; }
3761 if test -n "$MACSDK"; then
3762 { echo "$as_me:$LINENO: checking if SDK is supported" >&5
3763 echo $ECHO_N "checking if SDK is supported... $ECHO_C" >&6; }
3764 save_cflags="$CFLAGS"
3765 save_ldflags="$LDFLAGS"
3766 sdkflags="$DEVELOPER_DIR/SDKs/MacOSX$MACSDK"
3767 if test "x$MACSDK" = "x10.4"; then
3768 sdkflags="$sdkflags""u"
3770 sdkflags="$sdkflags.sdk -mmacosx-version-min=$MACSDK"
3771 CFLAGS="$CFLAGS -isysroot $sdkflags"
3772 LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags"
3773 cat >conftest.$ac_ext <<_ACEOF
3774 /* confdefs.h. */
3775 _ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3781 main ()
3785 return 0;
3787 _ACEOF
3788 rm -f conftest.$ac_objext conftest$ac_exeext
3789 if { (ac_try="$ac_link"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_link") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest$ac_exeext &&
3805 $as_test_x conftest$ac_exeext; then
3806 { echo "$as_me:$LINENO: result: yes" >&5
3807 echo "${ECHO_T}yes" >&6; }
3808 XCODEFLAGS="$XCODEFLAGS -sdk macosx$MACSDK MACOSX_DEPLOYMENT_TARGET=$MACSDK"
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 { echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6; }
3815 MACSDK=""
3816 CFLAGS="$save_cflags"
3817 LDFLAGS="$save_ldflags"
3820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3821 conftest$ac_exeext conftest.$ac_ext
3825 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3826 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3828 # Check whether --with-macarchs was given.
3829 if test "${with_macarchs+set}" = set; then
3830 withval=$with_macarchs; ARCHS="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3831 echo "${ECHO_T}$ARCHS" >&6; }
3832 else
3833 ARCHS=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3834 echo "${ECHO_T}defaulting to native arch" >&6; }
3838 if test -n "$ARCHS"; then
3839 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3840 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3841 save_cflags="$CFLAGS"
3842 save_ldflags="$LDFLAGS"
3843 archflags=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3844 CFLAGS="$CFLAGS $archflags"
3845 LDFLAGS="$LDFLAGS $archflags"
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3854 main ()
3858 return 0;
3860 _ACEOF
3861 rm -f conftest.$ac_objext conftest$ac_exeext
3862 if { (ac_try="$ac_link"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_link") 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest$ac_exeext &&
3878 $as_test_x conftest$ac_exeext; then
3879 { echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6; }
3881 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3882 else
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3887 echo "${ECHO_T}no, will build for native arch only" >&6; }
3888 ARCHS=""
3889 CFLAGS="$save_cflags"
3890 LDFLAGS="$save_ldflags"
3893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3894 conftest$ac_exeext conftest.$ac_ext
3898 if test "$enable_darwin" = "yes"; then
3899 MACOSX=yes
3900 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3901 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3902 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3915 inttypes.h stdint.h unistd.h
3917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 $ac_includes_default
3931 #include <$ac_header>
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3950 eval "$as_ac_Header=yes"
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 eval "$as_ac_Header=no"
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 ac_res=`eval echo '${'$as_ac_Header'}'`
3961 { echo "$as_me:$LINENO: result: $ac_res" >&5
3962 echo "${ECHO_T}$ac_res" >&6; }
3963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3964 cat >>confdefs.h <<_ACEOF
3965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3966 _ACEOF
3970 done
3973 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3974 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3975 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3976 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3980 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3981 else
3982 # Is the header compilable?
3983 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3984 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3985 cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h. */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 $ac_includes_default
3992 #include <Carbon/Carbon.h>
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4011 ac_header_compiler=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 ac_header_compiler=no
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4021 echo "${ECHO_T}$ac_header_compiler" >&6; }
4023 # Is the header present?
4024 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4025 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
4026 cat >conftest.$ac_ext <<_ACEOF
4027 /* confdefs.h. */
4028 _ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 #include <Carbon/Carbon.h>
4033 _ACEOF
4034 if { (ac_try="$ac_cpp conftest.$ac_ext"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } >/dev/null && {
4047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4049 }; then
4050 ac_header_preproc=yes
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 ac_header_preproc=no
4058 rm -f conftest.err conftest.$ac_ext
4059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4060 echo "${ECHO_T}$ac_header_preproc" >&6; }
4062 # So? What about this header?
4063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4064 yes:no: )
4065 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4066 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4068 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4069 ac_header_preproc=yes
4071 no:yes:* )
4072 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4073 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4074 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4075 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4076 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4077 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4078 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4079 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4080 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4081 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4082 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4083 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4086 esac
4087 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4088 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4089 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4094 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4095 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4098 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4099 CARBON=yes
4104 SAVE_CPPFLAGS=$CPPFLAGS
4105 SAVE_CFLAGS=$CFLAGS
4106 CPPFLAGS="$CPPFLAGS -ObjC"
4107 CFLAGS="$CFLAGS -ObjC"
4108 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4109 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4110 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4111 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4115 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4116 else
4117 # Is the header compilable?
4118 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4119 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4127 #include <Cocoa/Cocoa.h>
4128 _ACEOF
4129 rm -f conftest.$ac_objext
4130 if { (ac_try="$ac_compile"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compile") 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } && {
4143 test -z "$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4145 } && test -s conftest.$ac_objext; then
4146 ac_header_compiler=yes
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4151 ac_header_compiler=no
4154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4156 echo "${ECHO_T}$ac_header_compiler" >&6; }
4158 # Is the header present?
4159 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4160 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4161 cat >conftest.$ac_ext <<_ACEOF
4162 /* confdefs.h. */
4163 _ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4167 #include <Cocoa/Cocoa.h>
4168 _ACEOF
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null && {
4182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 }; then
4185 ac_header_preproc=yes
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4190 ac_header_preproc=no
4193 rm -f conftest.err conftest.$ac_ext
4194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4195 echo "${ECHO_T}$ac_header_preproc" >&6; }
4197 # So? What about this header?
4198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4199 yes:no: )
4200 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4201 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4202 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4203 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4204 ac_header_preproc=yes
4206 no:yes:* )
4207 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4208 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4209 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4210 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4212 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4213 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4214 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4215 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4216 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4218 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4221 esac
4222 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4223 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4224 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
4229 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4230 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4233 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4234 COCOA=yes
4238 CPPFLAGS=$SAVE_CPPFLAGS
4239 CFLAGS=$SAVE_CFLAGS
4241 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4242 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
4243 with_x=no
4247 else
4248 { echo "$as_me:$LINENO: result: no" >&5
4249 echo "${ECHO_T}no" >&6; }
4255 if test "$cross_compiling" = no; then
4256 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4257 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4258 have_local_include=''
4259 have_local_lib=''
4261 # Check whether --with-local-dir was given.
4262 if test "${with_local_dir+set}" = set; then
4263 withval=$with_local_dir;
4264 local_dir="$withval"
4265 case "$withval" in
4266 */*) ;;
4268 # avoid adding local dir to LDFLAGS and CPPFLAGS
4269 have_local_dir=yes
4270 have_local_lib=yes
4272 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4273 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4274 { (exit 1); exit 1; }; } ;;
4275 esac
4276 { echo "$as_me:$LINENO: result: $local_dir" >&5
4277 echo "${ECHO_T}$local_dir" >&6; }
4279 else
4281 local_dir=/usr/local
4282 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4283 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4287 if test "$GCC" = yes -a "$local_dir" != no; then
4288 echo 'void f(){}' > conftest.c
4289 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4290 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4291 rm -f conftest.c conftest.o
4293 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4294 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4295 if test "$tt" = "$LDFLAGS"; then
4296 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4299 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4300 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4301 if test "$tt" = "$CPPFLAGS"; then
4302 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4307 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4308 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4310 # Check whether --with-vim-name was given.
4311 if test "${with_vim_name+set}" = set; then
4312 withval=$with_vim_name; VIMNAME="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4313 echo "${ECHO_T}$VIMNAME" >&6; }
4314 else
4315 VIMNAME="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4316 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4320 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4321 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4323 # Check whether --with-ex-name was given.
4324 if test "${with_ex_name+set}" = set; then
4325 withval=$with_ex_name; EXNAME="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4326 echo "${ECHO_T}$EXNAME" >&6; }
4327 else
4328 EXNAME="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4329 echo "${ECHO_T}Defaulting to ex" >&6; }
4333 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4334 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4336 # Check whether --with-view-name was given.
4337 if test "${with_view_name+set}" = set; then
4338 withval=$with_view_name; VIEWNAME="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4339 echo "${ECHO_T}$VIEWNAME" >&6; }
4340 else
4341 VIEWNAME="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4342 echo "${ECHO_T}Defaulting to view" >&6; }
4347 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4348 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4350 # Check whether --with-global-runtime was given.
4351 if test "${with_global_runtime+set}" = set; then
4352 withval=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4353 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4354 #define RUNTIME_GLOBAL "$withval"
4355 _ACEOF
4357 else
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4364 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4366 # Check whether --with-modified-by was given.
4367 if test "${with_modified_by+set}" = set; then
4368 withval=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4369 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4370 #define MODIFIED_BY "$withval"
4371 _ACEOF
4373 else
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4379 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4380 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h. */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4389 main ()
4391 /* TryCompile function for CharSet.
4392 Treat any failure as ASCII for compatibility with existing art.
4393 Use compile-time rather than run-time tests for cross-compiler
4394 tolerance. */
4395 #if '0'!=240
4396 make an error "Character set is not EBCDIC"
4397 #endif
4399 return 0;
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (ac_try="$ac_compile"
4404 case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407 esac
4408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4409 (eval "$ac_compile") 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
4419 # TryCompile action if true
4420 cf_cv_ebcdic=yes
4421 else
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 # TryCompile action if false
4426 cf_cv_ebcdic=no
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 # end of TryCompile ])
4431 # end of CacheVal CvEbcdic
4432 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4433 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4434 case "$cf_cv_ebcdic" in #(vi
4435 yes) cat >>confdefs.h <<\_ACEOF
4436 #define EBCDIC 1
4437 _ACEOF
4439 line_break='"\\n"'
4441 *) line_break='"\\012"';;
4442 esac
4445 if test "$cf_cv_ebcdic" = "yes"; then
4446 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4447 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4448 case `uname` in
4449 OS/390) OS390Unix="yes";
4450 if test "$CC" = "cc"; then
4451 ccm="$_CC_CCMODE"
4452 ccn="CC"
4453 else
4454 if test "$CC" = "c89"; then
4455 ccm="$_CC_C89MODE"
4456 ccn="C89"
4457 else
4458 ccm=1
4461 if test "$ccm" != "1"; then
4462 echo ""
4463 echo "------------------------------------------"
4464 echo " On OS/390 Unix, the environment variable"
4465 echo " __CC_${ccn}MODE must be set to \"1\"!"
4466 echo " Do:"
4467 echo " export _CC_${ccn}MODE=1"
4468 echo " and then call configure again."
4469 echo "------------------------------------------"
4470 exit 1
4472 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4473 { echo "$as_me:$LINENO: result: yes" >&5
4474 echo "${ECHO_T}yes" >&6; }
4476 *) OS390Unix="no";
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4480 esac
4483 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4484 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4485 # Check whether --enable-selinux was given.
4486 if test "${enable_selinux+set}" = set; then
4487 enableval=$enable_selinux;
4488 else
4489 enable_selinux="yes"
4492 if test "$enable_selinux" = "yes"; then
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4495 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4496 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4497 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 ac_check_lib_save_LIBS=$LIBS
4501 LIBS="-lselinux $LIBS"
4502 cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4509 /* Override any GCC internal prototype to avoid an error.
4510 Use char because int might match the return type of a GCC
4511 builtin and then its argument prototype would still apply. */
4512 #ifdef __cplusplus
4513 extern "C"
4514 #endif
4515 char is_selinux_enabled ();
4517 main ()
4519 return is_selinux_enabled ();
4521 return 0;
4523 _ACEOF
4524 rm -f conftest.$ac_objext conftest$ac_exeext
4525 if { (ac_try="$ac_link"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest$ac_exeext &&
4541 $as_test_x conftest$ac_exeext; then
4542 ac_cv_lib_selinux_is_selinux_enabled=yes
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 ac_cv_lib_selinux_is_selinux_enabled=no
4550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4551 conftest$ac_exeext conftest.$ac_ext
4552 LIBS=$ac_check_lib_save_LIBS
4554 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4555 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4556 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4557 LIBS="$LIBS -lselinux"
4558 cat >>confdefs.h <<\_ACEOF
4559 #define HAVE_SELINUX 1
4560 _ACEOF
4564 else
4565 { echo "$as_me:$LINENO: result: yes" >&5
4566 echo "${ECHO_T}yes" >&6; }
4570 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4571 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4573 # Check whether --with-features was given.
4574 if test "${with_features+set}" = set; then
4575 withval=$with_features; features="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4576 echo "${ECHO_T}$features" >&6; }
4577 else
4578 features="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4579 echo "${ECHO_T}Defaulting to normal" >&6; }
4583 dovimdiff=""
4584 dogvimdiff=""
4585 case "$features" in
4586 tiny) cat >>confdefs.h <<\_ACEOF
4587 #define FEAT_TINY 1
4588 _ACEOF
4590 small) cat >>confdefs.h <<\_ACEOF
4591 #define FEAT_SMALL 1
4592 _ACEOF
4594 normal) cat >>confdefs.h <<\_ACEOF
4595 #define FEAT_NORMAL 1
4596 _ACEOF
4597 dovimdiff="installvimdiff";
4598 dogvimdiff="installgvimdiff" ;;
4599 big) cat >>confdefs.h <<\_ACEOF
4600 #define FEAT_BIG 1
4601 _ACEOF
4602 dovimdiff="installvimdiff";
4603 dogvimdiff="installgvimdiff" ;;
4604 huge) cat >>confdefs.h <<\_ACEOF
4605 #define FEAT_HUGE 1
4606 _ACEOF
4607 dovimdiff="installvimdiff";
4608 dogvimdiff="installgvimdiff" ;;
4609 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4610 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4611 esac
4616 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4617 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4619 # Check whether --with-compiledby was given.
4620 if test "${with_compiledby+set}" = set; then
4621 withval=$with_compiledby; compiledby="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4622 echo "${ECHO_T}$withval" >&6; }
4623 else
4624 compiledby=""; { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4630 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4631 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4632 # Check whether --enable-xsmp was given.
4633 if test "${enable_xsmp+set}" = set; then
4634 enableval=$enable_xsmp;
4635 else
4636 enable_xsmp="yes"
4640 if test "$enable_xsmp" = "yes"; then
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4643 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4644 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4645 # Check whether --enable-xsmp-interact was given.
4646 if test "${enable_xsmp_interact+set}" = set; then
4647 enableval=$enable_xsmp_interact;
4648 else
4649 enable_xsmp_interact="yes"
4652 if test "$enable_xsmp_interact" = "yes"; then
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4655 cat >>confdefs.h <<\_ACEOF
4656 #define USE_XSMP_INTERACT 1
4657 _ACEOF
4659 else
4660 { echo "$as_me:$LINENO: result: yes" >&5
4661 echo "${ECHO_T}yes" >&6; }
4663 else
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4668 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4669 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4670 # Check whether --enable-mzschemeinterp was given.
4671 if test "${enable_mzschemeinterp+set}" = set; then
4672 enableval=$enable_mzschemeinterp;
4673 else
4674 enable_mzschemeinterp="no"
4677 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4678 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4680 if test "$enable_mzschemeinterp" = "yes"; then
4683 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4684 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4686 # Check whether --with-plthome was given.
4687 if test "${with_plthome+set}" = set; then
4688 withval=$with_plthome; with_plthome="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4689 echo "${ECHO_T}$with_plthome" >&6; }
4690 else
4691 with_plthome="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4692 echo "${ECHO_T}\"no\"" >&6; }
4696 if test "X$with_plthome" != "X"; then
4697 vi_cv_path_mzscheme_pfx="$with_plthome"
4698 else
4699 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4700 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4701 if test "X$PLTHOME" != "X"; then
4702 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4703 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4704 vi_cv_path_mzscheme_pfx="$PLTHOME"
4705 else
4706 { echo "$as_me:$LINENO: result: not set" >&5
4707 echo "${ECHO_T}not set" >&6; }
4708 # Extract the first word of "mzscheme", so it can be a program name with args.
4709 set dummy mzscheme; ac_word=$2
4710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4712 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 case $vi_cv_path_mzscheme in
4716 [\\/]* | ?:[\\/]*)
4717 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4731 done
4732 done
4733 IFS=$as_save_IFS
4736 esac
4738 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4739 if test -n "$vi_cv_path_mzscheme"; then
4740 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4741 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4742 else
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4749 if test "X$vi_cv_path_mzscheme" != "X"; then
4750 lsout=`ls -l $vi_cv_path_mzscheme`
4751 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4752 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4756 if test "X$vi_cv_path_mzscheme" != "X"; then
4757 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4758 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4759 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 echo "(display (simplify-path \
4763 (build-path (call-with-values \
4764 (lambda () (split-path (find-system-path (quote exec-file)))) \
4765 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4766 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4767 sed -e 's+/$++'`
4769 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4770 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4771 rm -f mzdirs.scm
4776 SCHEME_INC=
4777 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4778 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4779 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4780 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4781 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4782 { echo "$as_me:$LINENO: result: yes" >&5
4783 echo "${ECHO_T}yes" >&6; }
4784 else
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4788 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4789 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4790 { echo "$as_me:$LINENO: result: yes" >&5
4791 echo "${ECHO_T}yes" >&6; }
4792 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4793 else
4794 { echo "$as_me:$LINENO: result: no" >&5
4795 echo "${ECHO_T}no" >&6; }
4796 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4797 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4798 if test -f /usr/include/plt/scheme.h; then
4799 { echo "$as_me:$LINENO: result: yes" >&5
4800 echo "${ECHO_T}yes" >&6; }
4801 SCHEME_INC=/usr/include/plt
4802 else
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4805 vi_cv_path_mzscheme_pfx=
4811 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4812 if test "x$MACOSX" = "xyes"; then
4813 MZSCHEME_LIBS="-framework PLT_MzScheme"
4814 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4815 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4816 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4817 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4818 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4819 else
4820 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4821 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4822 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4823 else
4824 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4826 if test "$GCC" = yes; then
4827 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4828 elif test "`(uname) 2>/dev/null`" = SunOS &&
4829 uname -r | grep '^5' >/dev/null; then
4830 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4833 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4834 SCHEME_COLLECTS=lib/plt/
4836 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4837 MZSCHEME_EXTRA="mzscheme_base.c"
4838 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4839 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4841 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4842 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4843 MZSCHEME_SRC="if_mzsch.c"
4844 MZSCHEME_OBJ="objects/if_mzsch.o"
4845 MZSCHEME_PRO="if_mzsch.pro"
4846 cat >>confdefs.h <<\_ACEOF
4847 #define FEAT_MZSCHEME 1
4848 _ACEOF
4861 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4862 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4863 # Check whether --enable-perlinterp was given.
4864 if test "${enable_perlinterp+set}" = set; then
4865 enableval=$enable_perlinterp;
4866 else
4867 enable_perlinterp="no"
4870 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4871 echo "${ECHO_T}$enable_perlinterp" >&6; }
4872 if test "$enable_perlinterp" = "yes"; then
4874 # Extract the first word of "perl", so it can be a program name with args.
4875 set dummy perl; ac_word=$2
4876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4878 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881 case $vi_cv_path_perl in
4882 [\\/]* | ?:[\\/]*)
4883 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4897 done
4898 done
4899 IFS=$as_save_IFS
4902 esac
4904 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4905 if test -n "$vi_cv_path_perl"; then
4906 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4907 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4908 else
4909 { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4914 if test "X$vi_cv_path_perl" != "X"; then
4915 { echo "$as_me:$LINENO: checking Perl version" >&5
4916 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4917 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4918 eval `$vi_cv_path_perl -V:usethreads`
4919 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4920 badthreads=no
4921 else
4922 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4923 eval `$vi_cv_path_perl -V:use5005threads`
4924 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4925 badthreads=no
4926 else
4927 badthreads=yes
4928 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4929 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4931 else
4932 badthreads=yes
4933 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4934 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4937 if test $badthreads = no; then
4938 { echo "$as_me:$LINENO: result: OK" >&5
4939 echo "${ECHO_T}OK" >&6; }
4940 eval `$vi_cv_path_perl -V:shrpenv`
4941 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4942 shrpenv=""
4944 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4946 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4947 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4948 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4949 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4950 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4951 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4952 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4954 if test "x$MACOSX" = "xyes"; then
4955 perllibs=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4956 perlcppflags=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4959 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4960 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4961 cflags_save=$CFLAGS
4962 libs_save=$LIBS
4963 ldflags_save=$LDFLAGS
4964 CFLAGS="$CFLAGS $perlcppflags"
4965 LIBS="$LIBS $perllibs"
4966 LDFLAGS="$perlldflags $LDFLAGS"
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4975 main ()
4979 return 0;
4981 _ACEOF
4982 rm -f conftest.$ac_objext conftest$ac_exeext
4983 if { (ac_try="$ac_link"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_link") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest$ac_exeext &&
4999 $as_test_x conftest$ac_exeext; then
5000 { echo "$as_me:$LINENO: result: yes" >&5
5001 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
5002 else
5003 echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5007 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
5010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5011 conftest$ac_exeext conftest.$ac_ext
5012 CFLAGS=$cflags_save
5013 LIBS=$libs_save
5014 LDFLAGS=$ldflags_save
5015 if test $perl_ok = yes; then
5016 if test "X$perlcppflags" != "X"; then
5017 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5019 if test "X$perlldflags" != "X"; then
5020 LDFLAGS="$perlldflags $LDFLAGS"
5022 PERL_LIBS=$perllibs
5023 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5024 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5025 PERL_PRO="if_perl.pro if_perlsfio.pro"
5026 cat >>confdefs.h <<\_ACEOF
5027 #define FEAT_PERL 1
5028 _ACEOF
5032 else
5033 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5034 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5038 if test "x$MACOSX" = "xyes"; then
5039 dir=/System/Library/Perl
5040 darwindir=$dir/darwin
5041 if test -d $darwindir; then
5042 PERL=/usr/bin/perl
5043 else
5044 dir=/System/Library/Perl/5.8.1
5045 darwindir=$dir/darwin-thread-multi-2level
5046 if test -d $darwindir; then
5047 PERL=/usr/bin/perl
5050 if test -n "$PERL"; then
5051 PERL_DIR="$dir"
5052 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5053 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5054 PERL_LIBS="-L$darwindir/CORE -lperl"
5065 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5066 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
5067 # Check whether --enable-pythoninterp was given.
5068 if test "${enable_pythoninterp+set}" = set; then
5069 enableval=$enable_pythoninterp;
5070 else
5071 enable_pythoninterp="no"
5074 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5075 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5076 if test "$enable_pythoninterp" = "yes"; then
5077 # Extract the first word of "python", so it can be a program name with args.
5078 set dummy python; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 case $vi_cv_path_python in
5085 [\\/]* | ?:[\\/]*)
5086 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5102 IFS=$as_save_IFS
5105 esac
5107 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5108 if test -n "$vi_cv_path_python"; then
5109 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5110 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5111 else
5112 { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5117 if test "X$vi_cv_path_python" != "X"; then
5119 { echo "$as_me:$LINENO: checking Python version" >&5
5120 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5121 if test "${vi_cv_var_python_version+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124 vi_cv_var_python_version=`
5125 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5128 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5129 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5131 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5132 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5133 if ${vi_cv_path_python} -c \
5134 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5135 then
5136 { echo "$as_me:$LINENO: result: yep" >&5
5137 echo "${ECHO_T}yep" >&6; }
5139 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5140 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5141 if test "${vi_cv_path_python_pfx+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144 vi_cv_path_python_pfx=`
5145 ${vi_cv_path_python} -c \
5146 "import sys; print sys.prefix"`
5148 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5149 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5151 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5152 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5153 if test "${vi_cv_path_python_epfx+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 vi_cv_path_python_epfx=`
5157 ${vi_cv_path_python} -c \
5158 "import sys; print sys.exec_prefix"`
5160 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5161 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5164 if test "${vi_cv_path_pythonpath+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 vi_cv_path_pythonpath=`
5168 unset PYTHONPATH;
5169 ${vi_cv_path_python} -c \
5170 "import sys, string; print string.join(sys.path,':')"`
5176 # Check whether --with-python-config-dir was given.
5177 if test "${with_python_config_dir+set}" = set; then
5178 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5182 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5183 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5184 if test "${vi_cv_path_python_conf+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5188 vi_cv_path_python_conf=
5189 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5190 for subdir in lib64 lib share; do
5191 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5192 if test -d "$d" && test -f "$d/config.c"; then
5193 vi_cv_path_python_conf="$d"
5195 done
5196 done
5199 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5200 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5202 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5204 if test "X$PYTHON_CONFDIR" = "X"; then
5205 { echo "$as_me:$LINENO: result: can't find it!" >&5
5206 echo "${ECHO_T}can't find it!" >&6; }
5207 else
5209 if test "${vi_cv_path_python_plibs+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5211 else
5213 pwd=`pwd`
5214 tmp_mkf="$pwd/config-PyMake$$"
5215 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5217 @echo "python_MODLIBS='$(MODLIBS)'"
5218 @echo "python_LIBS='$(LIBS)'"
5219 @echo "python_SYSLIBS='$(SYSLIBS)'"
5220 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5222 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5223 rm -f -- "${tmp_mkf}"
5224 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5225 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5226 vi_cv_path_python_plibs="-framework Python"
5227 else
5228 if test "${vi_cv_var_python_version}" = "1.4"; then
5229 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5230 else
5231 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5233 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5234 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5240 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5241 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5242 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5243 else
5244 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}"
5246 PYTHON_SRC="if_python.c"
5247 if test "x$MACOSX" = "xyes"; then
5248 PYTHON_OBJ="objects/if_python.o"
5249 else
5250 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5252 if test "${vi_cv_var_python_version}" = "1.4"; then
5253 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5255 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5257 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5258 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5259 threadsafe_flag=
5260 thread_lib=
5261 if test "`(uname) 2>/dev/null`" != Darwin; then
5262 test "$GCC" = yes && threadsafe_flag="-pthread"
5263 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5264 threadsafe_flag="-D_THREAD_SAFE"
5265 thread_lib="-pthread"
5268 libs_save_old=$LIBS
5269 if test -n "$threadsafe_flag"; then
5270 cflags_save=$CFLAGS
5271 CFLAGS="$CFLAGS $threadsafe_flag"
5272 LIBS="$LIBS $thread_lib"
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5281 main ()
5285 return 0;
5287 _ACEOF
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (ac_try="$ac_link"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest$ac_exeext &&
5305 $as_test_x conftest$ac_exeext; then
5306 { echo "$as_me:$LINENO: result: yes" >&5
5307 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }; LIBS=$libs_save_old
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5319 CFLAGS=$cflags_save
5320 else
5321 { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5325 if test -n "$MACSDK"; then
5326 PYTHON_CFLAGS=
5327 PYTHON_LIBS=-framework Python
5328 PYTHON_CONFDIR=
5329 PYTHON_GETPATH_CFLAGS=
5332 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5333 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5334 cflags_save=$CFLAGS
5335 libs_save=$LIBS
5336 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5337 LIBS="$LIBS $PYTHON_LIBS"
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5346 main ()
5350 return 0;
5352 _ACEOF
5353 rm -f conftest.$ac_objext conftest$ac_exeext
5354 if { (ac_try="$ac_link"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5378 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5382 conftest$ac_exeext conftest.$ac_ext
5383 CFLAGS=$cflags_save
5384 LIBS=$libs_save
5385 if test $python_ok = yes; then
5386 cat >>confdefs.h <<\_ACEOF
5387 #define FEAT_PYTHON 1
5388 _ACEOF
5390 else
5391 LIBS=$libs_save_old
5392 PYTHON_SRC=
5393 PYTHON_OBJ=
5394 PYTHON_LIBS=
5395 PYTHON_CFLAGS=
5399 else
5400 { echo "$as_me:$LINENO: result: too old" >&5
5401 echo "${ECHO_T}too old" >&6; }
5412 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5413 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5414 # Check whether --enable-tclinterp was given.
5415 if test "${enable_tclinterp+set}" = set; then
5416 enableval=$enable_tclinterp;
5417 else
5418 enable_tclinterp="no"
5421 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5422 echo "${ECHO_T}$enable_tclinterp" >&6; }
5424 if test "$enable_tclinterp" = "yes"; then
5426 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5427 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5429 # Check whether --with-tclsh was given.
5430 if test "${with_tclsh+set}" = set; then
5431 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5432 echo "${ECHO_T}$tclsh_name" >&6; }
5433 else
5434 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6; }
5438 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5439 set dummy $tclsh_name; ac_word=$2
5440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5442 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 case $vi_cv_path_tcl in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5461 done
5462 done
5463 IFS=$as_save_IFS
5466 esac
5468 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5469 if test -n "$vi_cv_path_tcl"; then
5470 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5471 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5472 else
5473 { echo "$as_me:$LINENO: result: no" >&5
5474 echo "${ECHO_T}no" >&6; }
5480 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5481 tclsh_name="tclsh8.4"
5482 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5483 set dummy $tclsh_name; ac_word=$2
5484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5486 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 case $vi_cv_path_tcl in
5490 [\\/]* | ?:[\\/]*)
5491 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5510 esac
5512 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5513 if test -n "$vi_cv_path_tcl"; then
5514 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5515 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5516 else
5517 { echo "$as_me:$LINENO: result: no" >&5
5518 echo "${ECHO_T}no" >&6; }
5523 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5524 tclsh_name="tclsh8.2"
5525 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5526 set dummy $tclsh_name; ac_word=$2
5527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5529 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 else
5532 case $vi_cv_path_tcl in
5533 [\\/]* | ?:[\\/]*)
5534 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5548 done
5549 done
5550 IFS=$as_save_IFS
5553 esac
5555 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5556 if test -n "$vi_cv_path_tcl"; then
5557 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5558 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5559 else
5560 { echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6; }
5566 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5567 tclsh_name="tclsh8.0"
5568 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5569 set dummy $tclsh_name; ac_word=$2
5570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5572 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 case $vi_cv_path_tcl in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5593 IFS=$as_save_IFS
5596 esac
5598 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5599 if test -n "$vi_cv_path_tcl"; then
5600 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5601 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5602 else
5603 { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5609 if test "X$vi_cv_path_tcl" = "X"; then
5610 tclsh_name="tclsh"
5611 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5612 set dummy $tclsh_name; ac_word=$2
5613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5615 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618 case $vi_cv_path_tcl in
5619 [\\/]* | ?:[\\/]*)
5620 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5634 done
5635 done
5636 IFS=$as_save_IFS
5639 esac
5641 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5642 if test -n "$vi_cv_path_tcl"; then
5643 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5644 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5645 else
5646 { echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6; }
5652 if test "X$vi_cv_path_tcl" != "X"; then
5653 { echo "$as_me:$LINENO: checking Tcl version" >&5
5654 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5655 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5656 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5657 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5658 echo "${ECHO_T}$tclver - OK" >&6; };
5659 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 -`
5661 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5662 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5663 if test "x$MACOSX" != "xyes"; then
5664 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5665 else
5666 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5668 TCL_INC=
5669 for try in $tclinc; do
5670 if test -f "$try/tcl.h"; then
5671 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5672 echo "${ECHO_T}$try/tcl.h" >&6; }
5673 TCL_INC=$try
5674 break
5676 done
5677 if test -z "$TCL_INC"; then
5678 { echo "$as_me:$LINENO: result: <not found>" >&5
5679 echo "${ECHO_T}<not found>" >&6; }
5680 SKIP_TCL=YES
5682 if test -z "$SKIP_TCL"; then
5683 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5684 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5685 if test "x$MACOSX" != "xyes"; then
5686 tclcnf=`echo $tclinc | sed s/include/lib/g`
5687 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5688 else
5689 tclcnf="/System/Library/Frameworks/Tcl.framework"
5691 for try in $tclcnf; do
5692 if test -f $try/tclConfig.sh; then
5693 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5694 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5695 . $try/tclConfig.sh
5696 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5697 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'`
5698 break
5700 done
5701 if test -z "$TCL_LIBS"; then
5702 { echo "$as_me:$LINENO: result: <not found>" >&5
5703 echo "${ECHO_T}<not found>" >&6; }
5704 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5705 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5706 tcllib=`echo $tclinc | sed s/include/lib/g`
5707 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5708 for ext in .so .a ; do
5709 for ver in "" $tclver ; do
5710 for try in $tcllib ; do
5711 trylib=tcl$ver$ext
5712 if test -f $try/lib$trylib ; then
5713 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5714 echo "${ECHO_T}$try/lib$trylib" >&6; }
5715 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5716 if test "`(uname) 2>/dev/null`" = SunOS &&
5717 uname -r | grep '^5' >/dev/null; then
5718 TCL_LIBS="$TCL_LIBS -R $try"
5720 break 3
5722 done
5723 done
5724 done
5725 if test -z "$TCL_LIBS"; then
5726 { echo "$as_me:$LINENO: result: <not found>" >&5
5727 echo "${ECHO_T}<not found>" >&6; }
5728 SKIP_TCL=YES
5731 if test -z "$SKIP_TCL"; then
5732 cat >>confdefs.h <<\_ACEOF
5733 #define FEAT_TCL 1
5734 _ACEOF
5736 TCL_SRC=if_tcl.c
5737 TCL_OBJ=objects/if_tcl.o
5738 TCL_PRO=if_tcl.pro
5739 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5742 else
5743 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5744 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5754 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5755 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5756 # Check whether --enable-rubyinterp was given.
5757 if test "${enable_rubyinterp+set}" = set; then
5758 enableval=$enable_rubyinterp;
5759 else
5760 enable_rubyinterp="no"
5763 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5764 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5765 if test "$enable_rubyinterp" = "yes"; then
5766 { echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5767 echo $ECHO_N "checking --with-ruby-command argument... $ECHO_C" >&6; }
5769 # Check whether --with-ruby-command was given.
5770 if test "${with_ruby_command+set}" = set; then
5771 withval=$with_ruby_command; RUBY_CMD="$withval"; { echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5772 echo "${ECHO_T}$RUBY_CMD" >&6; }
5773 else
5774 RUBY_CMD="ruby"; { echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5775 echo "${ECHO_T}defaulting to $RUBY_CMD" >&6; }
5779 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5780 set dummy $RUBY_CMD; ac_word=$2
5781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5783 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786 case $vi_cv_path_ruby in
5787 [\\/]* | ?:[\\/]*)
5788 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5798 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5800 break 2
5802 done
5803 done
5804 IFS=$as_save_IFS
5807 esac
5809 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5810 if test -n "$vi_cv_path_ruby"; then
5811 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5812 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5813 else
5814 { echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6; }
5819 if test "X$vi_cv_path_ruby" != "X"; then
5820 { echo "$as_me:$LINENO: checking Ruby version" >&5
5821 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5822 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5823 { echo "$as_me:$LINENO: result: OK" >&5
5824 echo "${ECHO_T}OK" >&6; }
5825 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5826 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5827 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5828 if test "X$rubyhdrdir" != "X"; then
5829 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5830 echo "${ECHO_T}$rubyhdrdir" >&6; }
5831 RUBY_CFLAGS="-I$rubyhdrdir"
5832 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5833 if test -d "$rubyhdrdir/$rubyarch"; then
5834 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5836 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5837 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5838 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5839 if test "X$rubylibs" != "X"; then
5840 RUBY_LIBS="$rubylibs"
5842 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5843 if test -f "$rubyhdrdir/$librubyarg"; then
5844 librubyarg="$rubyhdrdir/$librubyarg"
5845 else
5846 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5847 if test -d "/System/Library/Frameworks/Ruby.framework"; then
5848 RUBY_LIBS="-framework Ruby"
5849 RUBY_CFLAGS=
5850 librubyarg=
5851 elif test -f "$rubylibdir/$librubyarg"; then
5852 librubyarg="$rubylibdir/$librubyarg"
5853 elif test "$librubyarg" = "libruby.a"; then
5854 librubyarg="-lruby"
5855 else
5856 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5860 if test "X$librubyarg" != "X"; then
5861 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5863 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5864 if test "x$MACOSX" = "xyes"; then
5865 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch[^-]*//g'`
5867 if test "X$rubyldflags" != "X"; then
5868 LDFLAGS="$rubyldflags $LDFLAGS"
5870 RUBY_SRC="if_ruby.c"
5871 RUBY_OBJ="objects/if_ruby.o"
5872 RUBY_PRO="if_ruby.pro"
5874 cat >>confdefs.h <<\_ACEOF
5875 #define FEAT_RUBY 1
5876 _ACEOF
5878 else
5879 { echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5880 echo "${ECHO_T}not found; disabling Ruby" >&6; }
5882 else
5883 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5884 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5894 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5895 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5896 # Check whether --enable-cscope was given.
5897 if test "${enable_cscope+set}" = set; then
5898 enableval=$enable_cscope;
5899 else
5900 enable_cscope="no"
5903 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5904 echo "${ECHO_T}$enable_cscope" >&6; }
5905 if test "$enable_cscope" = "yes"; then
5906 cat >>confdefs.h <<\_ACEOF
5907 #define FEAT_CSCOPE 1
5908 _ACEOF
5912 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5913 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5914 # Check whether --enable-workshop was given.
5915 if test "${enable_workshop+set}" = set; then
5916 enableval=$enable_workshop;
5917 else
5918 enable_workshop="no"
5921 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5922 echo "${ECHO_T}$enable_workshop" >&6; }
5923 if test "$enable_workshop" = "yes"; then
5924 cat >>confdefs.h <<\_ACEOF
5925 #define FEAT_SUN_WORKSHOP 1
5926 _ACEOF
5928 WORKSHOP_SRC="workshop.c integration.c"
5930 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5932 if test "${enable_gui-xxx}" = xxx; then
5933 enable_gui=motif
5937 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5938 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5939 # Check whether --enable-netbeans was given.
5940 if test "${enable_netbeans+set}" = set; then
5941 enableval=$enable_netbeans;
5942 else
5943 enable_netbeans="yes"
5946 if test "$enable_netbeans" = "yes"; then
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5950 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5951 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5952 if test "${ac_cv_lib_socket_socket+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955 ac_check_lib_save_LIBS=$LIBS
5956 LIBS="-lsocket $LIBS"
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 char socket ();
5972 main ()
5974 return socket ();
5976 return 0;
5978 _ACEOF
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (ac_try="$ac_link"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_link") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest$ac_exeext &&
5996 $as_test_x conftest$ac_exeext; then
5997 ac_cv_lib_socket_socket=yes
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_cv_lib_socket_socket=no
6005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6006 conftest$ac_exeext conftest.$ac_ext
6007 LIBS=$ac_check_lib_save_LIBS
6009 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6010 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
6011 if test $ac_cv_lib_socket_socket = yes; then
6012 cat >>confdefs.h <<_ACEOF
6013 #define HAVE_LIBSOCKET 1
6014 _ACEOF
6016 LIBS="-lsocket $LIBS"
6021 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6022 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6023 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 ac_check_lib_save_LIBS=$LIBS
6027 LIBS="-lnsl $LIBS"
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6035 /* Override any GCC internal prototype to avoid an error.
6036 Use char because int might match the return type of a GCC
6037 builtin and then its argument prototype would still apply. */
6038 #ifdef __cplusplus
6039 extern "C"
6040 #endif
6041 char gethostbyname ();
6043 main ()
6045 return gethostbyname ();
6047 return 0;
6049 _ACEOF
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (ac_try="$ac_link"
6052 case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_link") 2>conftest.er1
6058 ac_status=$?
6059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest$ac_exeext &&
6067 $as_test_x conftest$ac_exeext; then
6068 ac_cv_lib_nsl_gethostbyname=yes
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_lib_nsl_gethostbyname=no
6076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6077 conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6080 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6081 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6082 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_LIBNSL 1
6085 _ACEOF
6087 LIBS="-lnsl $LIBS"
6091 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6092 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6100 #include <stdio.h>
6101 #include <stdlib.h>
6102 #include <stdarg.h>
6103 #include <fcntl.h>
6104 #include <netdb.h>
6105 #include <netinet/in.h>
6106 #include <errno.h>
6107 #include <sys/types.h>
6108 #include <sys/socket.h>
6109 /* Check bitfields */
6110 struct nbbuf {
6111 unsigned int initDone:1;
6112 ushort signmaplen;
6116 main ()
6119 /* Check creating a socket. */
6120 struct sockaddr_in server;
6121 (void)socket(AF_INET, SOCK_STREAM, 0);
6122 (void)htons(100);
6123 (void)gethostbyname("microsoft.com");
6124 if (errno == ECONNREFUSED)
6125 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6128 return 0;
6130 _ACEOF
6131 rm -f conftest.$ac_objext conftest$ac_exeext
6132 if { (ac_try="$ac_link"
6133 case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136 esac
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138 (eval "$ac_link") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest$ac_exeext &&
6148 $as_test_x conftest$ac_exeext; then
6149 { echo "$as_me:$LINENO: result: yes" >&5
6150 echo "${ECHO_T}yes" >&6; }
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }; enable_netbeans="no"
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160 conftest$ac_exeext conftest.$ac_ext
6161 else
6162 { echo "$as_me:$LINENO: result: yes" >&5
6163 echo "${ECHO_T}yes" >&6; }
6165 if test "$enable_netbeans" = "yes"; then
6166 cat >>confdefs.h <<\_ACEOF
6167 #define FEAT_NETBEANS_INTG 1
6168 _ACEOF
6170 NETBEANS_SRC="netbeans.c"
6172 NETBEANS_OBJ="objects/netbeans.o"
6176 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6177 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6178 # Check whether --enable-sniff was given.
6179 if test "${enable_sniff+set}" = set; then
6180 enableval=$enable_sniff;
6181 else
6182 enable_sniff="no"
6185 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6186 echo "${ECHO_T}$enable_sniff" >&6; }
6187 if test "$enable_sniff" = "yes"; then
6188 cat >>confdefs.h <<\_ACEOF
6189 #define FEAT_SNIFF 1
6190 _ACEOF
6192 SNIFF_SRC="if_sniff.c"
6194 SNIFF_OBJ="objects/if_sniff.o"
6198 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6199 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6200 # Check whether --enable-multibyte was given.
6201 if test "${enable_multibyte+set}" = set; then
6202 enableval=$enable_multibyte;
6203 else
6204 enable_multibyte="no"
6207 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6208 echo "${ECHO_T}$enable_multibyte" >&6; }
6209 if test "$enable_multibyte" = "yes"; then
6210 cat >>confdefs.h <<\_ACEOF
6211 #define FEAT_MBYTE 1
6212 _ACEOF
6216 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6217 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6218 # Check whether --enable-hangulinput was given.
6219 if test "${enable_hangulinput+set}" = set; then
6220 enableval=$enable_hangulinput;
6221 else
6222 enable_hangulinput="no"
6225 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6226 echo "${ECHO_T}$enable_hangulinput" >&6; }
6228 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6229 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6230 # Check whether --enable-xim was given.
6231 if test "${enable_xim+set}" = set; then
6232 enableval=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6233 echo "${ECHO_T}$enable_xim" >&6; }
6234 else
6235 enable_xim="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6236 echo "${ECHO_T}defaulting to auto" >&6; }
6240 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6241 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6242 # Check whether --enable-fontset was given.
6243 if test "${enable_fontset+set}" = set; then
6244 enableval=$enable_fontset;
6245 else
6246 enable_fontset="no"
6249 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6250 echo "${ECHO_T}$enable_fontset" >&6; }
6252 test -z "$with_x" && with_x=yes
6253 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6254 if test "$with_x" = no; then
6255 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6256 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6257 else
6259 # Extract the first word of "xmkmf", so it can be a program name with args.
6260 set dummy xmkmf; ac_word=$2
6261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6263 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 case $xmkmfpath in
6267 [\\/]* | ?:[\\/]*)
6268 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6282 done
6283 done
6284 IFS=$as_save_IFS
6287 esac
6289 xmkmfpath=$ac_cv_path_xmkmfpath
6290 if test -n "$xmkmfpath"; then
6291 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6292 echo "${ECHO_T}$xmkmfpath" >&6; }
6293 else
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6300 { echo "$as_me:$LINENO: checking for X" >&5
6301 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6304 # Check whether --with-x was given.
6305 if test "${with_x+set}" = set; then
6306 withval=$with_x;
6309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6310 if test "x$with_x" = xno; then
6311 # The user explicitly disabled X.
6312 have_x=disabled
6313 else
6314 case $x_includes,$x_libraries in #(
6315 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6316 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6317 { (exit 1); exit 1; }; };; #(
6318 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321 # One or both of the vars are not set, and there is no cached value.
6322 ac_x_includes=no ac_x_libraries=no
6323 rm -f -r conftest.dir
6324 if mkdir conftest.dir; then
6325 cd conftest.dir
6326 cat >Imakefile <<'_ACEOF'
6327 incroot:
6328 @echo incroot='${INCROOT}'
6329 usrlibdir:
6330 @echo usrlibdir='${USRLIBDIR}'
6331 libdir:
6332 @echo libdir='${LIBDIR}'
6333 _ACEOF
6334 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6335 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6336 for ac_var in incroot usrlibdir libdir; do
6337 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6338 done
6339 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6340 for ac_extension in a so sl dylib la dll; do
6341 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6342 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6343 ac_im_usrlibdir=$ac_im_libdir; break
6345 done
6346 # Screen out bogus values from the imake configuration. They are
6347 # bogus both because they are the default anyway, and because
6348 # using them would break gcc on systems where it needs fixed includes.
6349 case $ac_im_incroot in
6350 /usr/include) ac_x_includes= ;;
6351 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6352 esac
6353 case $ac_im_usrlibdir in
6354 /usr/lib | /lib) ;;
6355 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6356 esac
6358 cd ..
6359 rm -f -r conftest.dir
6362 # Standard set of common directories for X headers.
6363 # Check X11 before X11Rn because it is often a symlink to the current release.
6364 ac_x_header_dirs='
6365 /usr/X11/include
6366 /usr/X11R6/include
6367 /usr/X11R5/include
6368 /usr/X11R4/include
6370 /usr/include/X11
6371 /usr/include/X11R6
6372 /usr/include/X11R5
6373 /usr/include/X11R4
6375 /usr/local/X11/include
6376 /usr/local/X11R6/include
6377 /usr/local/X11R5/include
6378 /usr/local/X11R4/include
6380 /usr/local/include/X11
6381 /usr/local/include/X11R6
6382 /usr/local/include/X11R5
6383 /usr/local/include/X11R4
6385 /usr/X386/include
6386 /usr/x386/include
6387 /usr/XFree86/include/X11
6389 /usr/include
6390 /usr/local/include
6391 /usr/unsupported/include
6392 /usr/athena/include
6393 /usr/local/x11r5/include
6394 /usr/lpp/Xamples/include
6396 /usr/openwin/include
6397 /usr/openwin/share/include'
6399 if test "$ac_x_includes" = no; then
6400 # Guess where to find include files, by looking for Xlib.h.
6401 # First, try using that file with no special directory specified.
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <X11/Xlib.h>
6409 _ACEOF
6410 if { (ac_try="$ac_cpp conftest.$ac_ext"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null && {
6423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 }; then
6426 # We can compile using X headers with no special include directory.
6427 ac_x_includes=
6428 else
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 for ac_dir in $ac_x_header_dirs; do
6433 if test -r "$ac_dir/X11/Xlib.h"; then
6434 ac_x_includes=$ac_dir
6435 break
6437 done
6440 rm -f conftest.err conftest.$ac_ext
6441 fi # $ac_x_includes = no
6443 if test "$ac_x_libraries" = no; then
6444 # Check for the libraries.
6445 # See if we find them without any special options.
6446 # Don't add to $LIBS permanently.
6447 ac_save_LIBS=$LIBS
6448 LIBS="-lX11 $LIBS"
6449 cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h. */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6455 #include <X11/Xlib.h>
6457 main ()
6459 XrmInitialize ()
6461 return 0;
6463 _ACEOF
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (ac_try="$ac_link"
6466 case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469 esac
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_link") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && {
6478 test -z "$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 } && test -s conftest$ac_exeext &&
6481 $as_test_x conftest$ac_exeext; then
6482 LIBS=$ac_save_LIBS
6483 # We can link X programs with no special library path.
6484 ac_x_libraries=
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 LIBS=$ac_save_LIBS
6490 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6492 # Don't even attempt the hair of trying to link an X program!
6493 for ac_extension in a so sl dylib la dll; do
6494 if test -r "$ac_dir/libX11.$ac_extension"; then
6495 ac_x_libraries=$ac_dir
6496 break 2
6498 done
6499 done
6502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503 conftest$ac_exeext conftest.$ac_ext
6504 fi # $ac_x_libraries = no
6506 case $ac_x_includes,$ac_x_libraries in #(
6507 no,* | *,no | *\'*)
6508 # Didn't find X, or a directory has "'" in its name.
6509 ac_cv_have_x="have_x=no";; #(
6511 # Record where we found X for the cache.
6512 ac_cv_have_x="have_x=yes\
6513 ac_x_includes='$ac_x_includes'\
6514 ac_x_libraries='$ac_x_libraries'"
6515 esac
6517 ;; #(
6518 *) have_x=yes;;
6519 esac
6520 eval "$ac_cv_have_x"
6521 fi # $with_x != no
6523 if test "$have_x" != yes; then
6524 { echo "$as_me:$LINENO: result: $have_x" >&5
6525 echo "${ECHO_T}$have_x" >&6; }
6526 no_x=yes
6527 else
6528 # If each of the values was on the command line, it overrides each guess.
6529 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6530 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6531 # Update the cache value to reflect the command line values.
6532 ac_cv_have_x="have_x=yes\
6533 ac_x_includes='$x_includes'\
6534 ac_x_libraries='$x_libraries'"
6535 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6536 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6539 if test "$no_x" = yes; then
6540 # Not all programs may use this symbol, but it does not hurt to define it.
6542 cat >>confdefs.h <<\_ACEOF
6543 #define X_DISPLAY_MISSING 1
6544 _ACEOF
6546 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6547 else
6548 if test -n "$x_includes"; then
6549 X_CFLAGS="$X_CFLAGS -I$x_includes"
6552 # It would also be nice to do this for all -L options, not just this one.
6553 if test -n "$x_libraries"; then
6554 X_LIBS="$X_LIBS -L$x_libraries"
6555 # For Solaris; some versions of Sun CC require a space after -R and
6556 # others require no space. Words are not sufficient . . . .
6557 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6558 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6559 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6560 ac_xsave_c_werror_flag=$ac_c_werror_flag
6561 ac_c_werror_flag=yes
6562 cat >conftest.$ac_ext <<_ACEOF
6563 /* confdefs.h. */
6564 _ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6570 main ()
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext conftest$ac_exeext
6578 if { (ac_try="$ac_link"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_link") 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest$ac_exeext &&
6594 $as_test_x conftest$ac_exeext; then
6595 { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6597 X_LIBS="$X_LIBS -R$x_libraries"
6598 else
6599 echo "$as_me: failed program was:" >&5
6600 sed 's/^/| /' conftest.$ac_ext >&5
6602 LIBS="$ac_xsave_LIBS -R $x_libraries"
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h. */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6611 main ()
6615 return 0;
6617 _ACEOF
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (ac_try="$ac_link"
6620 case "(($ac_try" in
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623 esac
6624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6625 (eval "$ac_link") 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } && {
6632 test -z "$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 } && test -s conftest$ac_exeext &&
6635 $as_test_x conftest$ac_exeext; then
6636 { echo "$as_me:$LINENO: result: yes" >&5
6637 echo "${ECHO_T}yes" >&6; }
6638 X_LIBS="$X_LIBS -R $x_libraries"
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 { echo "$as_me:$LINENO: result: neither works" >&5
6644 echo "${ECHO_T}neither works" >&6; }
6647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6648 conftest$ac_exeext conftest.$ac_ext
6651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6652 conftest$ac_exeext conftest.$ac_ext
6653 ac_c_werror_flag=$ac_xsave_c_werror_flag
6654 LIBS=$ac_xsave_LIBS
6657 # Check for system-dependent libraries X programs must link with.
6658 # Do this before checking for the system-independent R6 libraries
6659 # (-lICE), since we may need -lsocket or whatever for X linking.
6661 if test "$ISC" = yes; then
6662 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6663 else
6664 # Martyn Johnson says this is needed for Ultrix, if the X
6665 # libraries were built with DECnet support. And Karl Berry says
6666 # the Alpha needs dnet_stub (dnet does not exist).
6667 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6675 /* Override any GCC internal prototype to avoid an error.
6676 Use char because int might match the return type of a GCC
6677 builtin and then its argument prototype would still apply. */
6678 #ifdef __cplusplus
6679 extern "C"
6680 #endif
6681 char XOpenDisplay ();
6683 main ()
6685 return XOpenDisplay ();
6687 return 0;
6689 _ACEOF
6690 rm -f conftest.$ac_objext conftest$ac_exeext
6691 if { (ac_try="$ac_link"
6692 case "(($ac_try" in
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6695 esac
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_link") 2>conftest.er1
6698 ac_status=$?
6699 grep -v '^ *+' conftest.er1 >conftest.err
6700 rm -f conftest.er1
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest$ac_exeext &&
6707 $as_test_x conftest$ac_exeext; then
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6714 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6715 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718 ac_check_lib_save_LIBS=$LIBS
6719 LIBS="-ldnet $LIBS"
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6727 /* Override any GCC internal prototype to avoid an error.
6728 Use char because int might match the return type of a GCC
6729 builtin and then its argument prototype would still apply. */
6730 #ifdef __cplusplus
6731 extern "C"
6732 #endif
6733 char dnet_ntoa ();
6735 main ()
6737 return dnet_ntoa ();
6739 return 0;
6741 _ACEOF
6742 rm -f conftest.$ac_objext conftest$ac_exeext
6743 if { (ac_try="$ac_link"
6744 case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6747 esac
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_link") 2>conftest.er1
6750 ac_status=$?
6751 grep -v '^ *+' conftest.er1 >conftest.err
6752 rm -f conftest.er1
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest$ac_exeext &&
6759 $as_test_x conftest$ac_exeext; then
6760 ac_cv_lib_dnet_dnet_ntoa=yes
6761 else
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6765 ac_cv_lib_dnet_dnet_ntoa=no
6768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6769 conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6772 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6773 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6774 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6778 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6779 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6780 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6781 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 ac_check_lib_save_LIBS=$LIBS
6785 LIBS="-ldnet_stub $LIBS"
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6793 /* Override any GCC internal prototype to avoid an error.
6794 Use char because int might match the return type of a GCC
6795 builtin and then its argument prototype would still apply. */
6796 #ifdef __cplusplus
6797 extern "C"
6798 #endif
6799 char dnet_ntoa ();
6801 main ()
6803 return dnet_ntoa ();
6805 return 0;
6807 _ACEOF
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (ac_try="$ac_link"
6810 case "(($ac_try" in
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6813 esac
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_link") 2>conftest.er1
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest$ac_exeext &&
6825 $as_test_x conftest$ac_exeext; then
6826 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_lib_dnet_stub_dnet_ntoa=no
6834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6835 conftest$ac_exeext conftest.$ac_ext
6836 LIBS=$ac_check_lib_save_LIBS
6838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6839 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6840 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6848 conftest$ac_exeext conftest.$ac_ext
6849 LIBS="$ac_xsave_LIBS"
6851 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6852 # to get the SysV transport functions.
6853 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6854 # needs -lnsl.
6855 # The nsl library prevents programs from opening the X display
6856 # on Irix 5.2, according to T.E. Dickey.
6857 # The functions gethostbyname, getservbyname, and inet_addr are
6858 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6859 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6860 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6861 if test "${ac_cv_func_gethostbyname+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
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. */
6870 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6872 #define gethostbyname innocuous_gethostbyname
6874 /* System header to define __stub macros and hopefully few prototypes,
6875 which can conflict with char gethostbyname (); below.
6876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6877 <limits.h> exists even on freestanding compilers. */
6879 #ifdef __STDC__
6880 # include <limits.h>
6881 #else
6882 # include <assert.h>
6883 #endif
6885 #undef gethostbyname
6887 /* Override any GCC internal prototype to avoid an error.
6888 Use char because int might match the return type of a GCC
6889 builtin and then its argument prototype would still apply. */
6890 #ifdef __cplusplus
6891 extern "C"
6892 #endif
6893 char gethostbyname ();
6894 /* The GNU C library defines this for functions which it implements
6895 to always fail with ENOSYS. Some functions are actually named
6896 something starting with __ and the normal name is an alias. */
6897 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6898 choke me
6899 #endif
6902 main ()
6904 return gethostbyname ();
6906 return 0;
6908 _ACEOF
6909 rm -f conftest.$ac_objext conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6911 case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>conftest.er1
6917 ac_status=$?
6918 grep -v '^ *+' conftest.er1 >conftest.err
6919 rm -f conftest.er1
6920 cat conftest.err >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest$ac_exeext &&
6926 $as_test_x conftest$ac_exeext; then
6927 ac_cv_func_gethostbyname=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_func_gethostbyname=no
6935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6936 conftest$ac_exeext conftest.$ac_ext
6938 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6939 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6941 if test $ac_cv_func_gethostbyname = no; then
6942 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6943 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6944 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 ac_check_lib_save_LIBS=$LIBS
6948 LIBS="-lnsl $LIBS"
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 /* Override any GCC internal prototype to avoid an error.
6957 Use char because int might match the return type of a GCC
6958 builtin and then its argument prototype would still apply. */
6959 #ifdef __cplusplus
6960 extern "C"
6961 #endif
6962 char gethostbyname ();
6964 main ()
6966 return gethostbyname ();
6968 return 0;
6970 _ACEOF
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>conftest.er1
6979 ac_status=$?
6980 grep -v '^ *+' conftest.er1 >conftest.err
6981 rm -f conftest.er1
6982 cat conftest.err >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest$ac_exeext &&
6988 $as_test_x conftest$ac_exeext; then
6989 ac_cv_lib_nsl_gethostbyname=yes
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_lib_nsl_gethostbyname=no
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7001 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7002 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
7003 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7007 if test $ac_cv_lib_nsl_gethostbyname = no; then
7008 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7009 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
7010 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 ac_check_lib_save_LIBS=$LIBS
7014 LIBS="-lbsd $LIBS"
7015 cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h. */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7022 /* Override any GCC internal prototype to avoid an error.
7023 Use char because int might match the return type of a GCC
7024 builtin and then its argument prototype would still apply. */
7025 #ifdef __cplusplus
7026 extern "C"
7027 #endif
7028 char gethostbyname ();
7030 main ()
7032 return gethostbyname ();
7034 return 0;
7036 _ACEOF
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (ac_try="$ac_link"
7039 case "(($ac_try" in
7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7041 *) ac_try_echo=$ac_try;;
7042 esac
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_link") 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest$ac_exeext &&
7054 $as_test_x conftest$ac_exeext; then
7055 ac_cv_lib_bsd_gethostbyname=yes
7056 else
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_lib_bsd_gethostbyname=no
7063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7064 conftest$ac_exeext conftest.$ac_ext
7065 LIBS=$ac_check_lib_save_LIBS
7067 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7068 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
7069 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7076 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7077 # socket/setsockopt and other routines are undefined under SCO ODT
7078 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7079 # on later versions), says Simon Leinen: it contains gethostby*
7080 # variants that don't use the name server (or something). -lsocket
7081 # must be given before -lnsl if both are needed. We assume that
7082 # if connect needs -lnsl, so does gethostbyname.
7083 { echo "$as_me:$LINENO: checking for connect" >&5
7084 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7085 if test "${ac_cv_func_connect+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 else
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. */
7094 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7096 #define connect innocuous_connect
7098 /* System header to define __stub macros and hopefully few prototypes,
7099 which can conflict with char connect (); below.
7100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 <limits.h> exists even on freestanding compilers. */
7103 #ifdef __STDC__
7104 # include <limits.h>
7105 #else
7106 # include <assert.h>
7107 #endif
7109 #undef connect
7111 /* Override any GCC internal prototype to avoid an error.
7112 Use char because int might match the return type of a GCC
7113 builtin and then its argument prototype would still apply. */
7114 #ifdef __cplusplus
7115 extern "C"
7116 #endif
7117 char connect ();
7118 /* The GNU C library defines this for functions which it implements
7119 to always fail with ENOSYS. Some functions are actually named
7120 something starting with __ and the normal name is an alias. */
7121 #if defined __stub_connect || defined __stub___connect
7122 choke me
7123 #endif
7126 main ()
7128 return connect ();
7130 return 0;
7132 _ACEOF
7133 rm -f conftest.$ac_objext conftest$ac_exeext
7134 if { (ac_try="$ac_link"
7135 case "(($ac_try" in
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7138 esac
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_link") 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest$ac_exeext &&
7150 $as_test_x conftest$ac_exeext; then
7151 ac_cv_func_connect=yes
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7156 ac_cv_func_connect=no
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160 conftest$ac_exeext conftest.$ac_ext
7162 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7163 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7165 if test $ac_cv_func_connect = no; then
7166 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7167 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7168 if test "${ac_cv_lib_socket_connect+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 ac_check_lib_save_LIBS=$LIBS
7172 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7173 cat >conftest.$ac_ext <<_ACEOF
7174 /* confdefs.h. */
7175 _ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7180 /* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
7183 #ifdef __cplusplus
7184 extern "C"
7185 #endif
7186 char connect ();
7188 main ()
7190 return connect ();
7192 return 0;
7194 _ACEOF
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (ac_try="$ac_link"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_link") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest$ac_exeext &&
7212 $as_test_x conftest$ac_exeext; then
7213 ac_cv_lib_socket_connect=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 ac_cv_lib_socket_connect=no
7221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7222 conftest$ac_exeext conftest.$ac_ext
7223 LIBS=$ac_check_lib_save_LIBS
7225 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7226 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7227 if test $ac_cv_lib_socket_connect = yes; then
7228 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7233 # Guillermo Gomez says -lposix is necessary on A/UX.
7234 { echo "$as_me:$LINENO: checking for remove" >&5
7235 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7236 if test "${ac_cv_func_remove+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
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. */
7245 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7247 #define remove innocuous_remove
7249 /* System header to define __stub macros and hopefully few prototypes,
7250 which can conflict with char remove (); below.
7251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7252 <limits.h> exists even on freestanding compilers. */
7254 #ifdef __STDC__
7255 # include <limits.h>
7256 #else
7257 # include <assert.h>
7258 #endif
7260 #undef remove
7262 /* Override any GCC internal prototype to avoid an error.
7263 Use char because int might match the return type of a GCC
7264 builtin and then its argument prototype would still apply. */
7265 #ifdef __cplusplus
7266 extern "C"
7267 #endif
7268 char remove ();
7269 /* The GNU C library defines this for functions which it implements
7270 to always fail with ENOSYS. Some functions are actually named
7271 something starting with __ and the normal name is an alias. */
7272 #if defined __stub_remove || defined __stub___remove
7273 choke me
7274 #endif
7277 main ()
7279 return remove ();
7281 return 0;
7283 _ACEOF
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_link") 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest$ac_exeext &&
7301 $as_test_x conftest$ac_exeext; then
7302 ac_cv_func_remove=yes
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_cv_func_remove=no
7310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7311 conftest$ac_exeext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7314 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7316 if test $ac_cv_func_remove = no; then
7317 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7318 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7319 if test "${ac_cv_lib_posix_remove+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322 ac_check_lib_save_LIBS=$LIBS
7323 LIBS="-lposix $LIBS"
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7331 /* Override any GCC internal prototype to avoid an error.
7332 Use char because int might match the return type of a GCC
7333 builtin and then its argument prototype would still apply. */
7334 #ifdef __cplusplus
7335 extern "C"
7336 #endif
7337 char remove ();
7339 main ()
7341 return remove ();
7343 return 0;
7345 _ACEOF
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (ac_try="$ac_link"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_link") 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest$ac_exeext &&
7363 $as_test_x conftest$ac_exeext; then
7364 ac_cv_lib_posix_remove=yes
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7369 ac_cv_lib_posix_remove=no
7372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7373 conftest$ac_exeext conftest.$ac_ext
7374 LIBS=$ac_check_lib_save_LIBS
7376 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7377 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7378 if test $ac_cv_lib_posix_remove = yes; then
7379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7384 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7385 { echo "$as_me:$LINENO: checking for shmat" >&5
7386 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7387 if test "${ac_cv_func_shmat+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
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. */
7396 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7398 #define shmat innocuous_shmat
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char shmat (); below.
7402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 <limits.h> exists even on freestanding compilers. */
7405 #ifdef __STDC__
7406 # include <limits.h>
7407 #else
7408 # include <assert.h>
7409 #endif
7411 #undef shmat
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7416 #ifdef __cplusplus
7417 extern "C"
7418 #endif
7419 char shmat ();
7420 /* The GNU C library defines this for functions which it implements
7421 to always fail with ENOSYS. Some functions are actually named
7422 something starting with __ and the normal name is an alias. */
7423 #if defined __stub_shmat || defined __stub___shmat
7424 choke me
7425 #endif
7428 main ()
7430 return shmat ();
7432 return 0;
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (ac_try="$ac_link"
7437 case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_link") 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest$ac_exeext &&
7452 $as_test_x conftest$ac_exeext; then
7453 ac_cv_func_shmat=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_cv_func_shmat=no
7461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7462 conftest$ac_exeext conftest.$ac_ext
7464 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7465 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7467 if test $ac_cv_func_shmat = no; then
7468 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7469 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7470 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473 ac_check_lib_save_LIBS=$LIBS
7474 LIBS="-lipc $LIBS"
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7482 /* Override any GCC internal prototype to avoid an error.
7483 Use char because int might match the return type of a GCC
7484 builtin and then its argument prototype would still apply. */
7485 #ifdef __cplusplus
7486 extern "C"
7487 #endif
7488 char shmat ();
7490 main ()
7492 return shmat ();
7494 return 0;
7496 _ACEOF
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_link") 2>conftest.er1
7505 ac_status=$?
7506 grep -v '^ *+' conftest.er1 >conftest.err
7507 rm -f conftest.er1
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest$ac_exeext &&
7514 $as_test_x conftest$ac_exeext; then
7515 ac_cv_lib_ipc_shmat=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_cv_lib_ipc_shmat=no
7523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7524 conftest$ac_exeext conftest.$ac_ext
7525 LIBS=$ac_check_lib_save_LIBS
7527 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7528 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7529 if test $ac_cv_lib_ipc_shmat = yes; then
7530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7536 # Check for libraries that X11R6 Xt/Xaw programs need.
7537 ac_save_LDFLAGS=$LDFLAGS
7538 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7539 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7540 # check for ICE first), but we must link in the order -lSM -lICE or
7541 # we get undefined symbols. So assume we have SM if we have ICE.
7542 # These have to be linked with before -lX11, unlike the other
7543 # libraries we check for below, so use a different variable.
7544 # John Interrante, Karl Berry
7545 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7546 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7547 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550 ac_check_lib_save_LIBS=$LIBS
7551 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7559 /* Override any GCC internal prototype to avoid an error.
7560 Use char because int might match the return type of a GCC
7561 builtin and then its argument prototype would still apply. */
7562 #ifdef __cplusplus
7563 extern "C"
7564 #endif
7565 char IceConnectionNumber ();
7567 main ()
7569 return IceConnectionNumber ();
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (ac_try="$ac_link"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_link") 2>conftest.er1
7582 ac_status=$?
7583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest$ac_exeext &&
7591 $as_test_x conftest$ac_exeext; then
7592 ac_cv_lib_ICE_IceConnectionNumber=yes
7593 else
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_lib_ICE_IceConnectionNumber=no
7600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7601 conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7604 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7605 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7606 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7607 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7610 LDFLAGS=$ac_save_LDFLAGS
7615 if test "$OS390Unix" = "yes"; then
7616 CFLAGS="$CFLAGS -W c,dll"
7617 LDFLAGS="$LDFLAGS -W l,dll"
7618 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7622 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7623 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7624 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7625 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7626 X_LIBS="$X_LIBS -L$x_libraries"
7627 if test "`(uname) 2>/dev/null`" = SunOS &&
7628 uname -r | grep '^5' >/dev/null; then
7629 X_LIBS="$X_LIBS -R $x_libraries"
7633 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7634 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7635 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7636 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7637 X_CFLAGS="$X_CFLAGS -I$x_includes"
7640 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7641 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7642 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7645 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7646 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7647 cflags_save=$CFLAGS
7648 CFLAGS="$CFLAGS $X_CFLAGS"
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <X11/Xlib.h>
7656 #include <X11/Intrinsic.h>
7658 main ()
7662 return 0;
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7667 case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_compile") 2>conftest.er1
7673 ac_status=$?
7674 grep -v '^ *+' conftest.er1 >conftest.err
7675 rm -f conftest.er1
7676 cat conftest.err >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } && {
7679 test -z "$ac_c_werror_flag" ||
7680 test ! -s conftest.err
7681 } && test -s conftest.$ac_objext; then
7682 { echo "$as_me:$LINENO: result: yes" >&5
7683 echo "${ECHO_T}yes" >&6; }
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7688 { echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6; }; no_x=yes
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 CFLAGS=$cflags_save
7695 if test "${no_x-no}" = yes; then
7696 with_x=no
7697 else
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_X11 1
7700 _ACEOF
7702 X_LIB="-lXt -lX11";
7705 ac_save_LDFLAGS="$LDFLAGS"
7706 LDFLAGS="-L$x_libraries $LDFLAGS"
7708 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7709 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7710 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h. */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 char _XdmcpAuthDoIt ();
7730 main ()
7732 return _XdmcpAuthDoIt ();
7734 return 0;
7736 _ACEOF
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (ac_try="$ac_link"
7739 case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742 esac
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>conftest.er1
7745 ac_status=$?
7746 grep -v '^ *+' conftest.er1 >conftest.err
7747 rm -f conftest.er1
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest$ac_exeext &&
7754 $as_test_x conftest$ac_exeext; then
7755 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7764 conftest$ac_exeext conftest.$ac_ext
7765 LIBS=$ac_check_lib_save_LIBS
7767 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7768 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7769 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7770 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7774 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7775 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7776 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 else
7779 ac_check_lib_save_LIBS=$LIBS
7780 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7788 /* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791 #ifdef __cplusplus
7792 extern "C"
7793 #endif
7794 char IceOpenConnection ();
7796 main ()
7798 return IceOpenConnection ();
7800 return 0;
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (ac_try="$ac_link"
7805 case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_link") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest$ac_exeext &&
7820 $as_test_x conftest$ac_exeext; then
7821 ac_cv_lib_ICE_IceOpenConnection=yes
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 ac_cv_lib_ICE_IceOpenConnection=no
7829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7830 conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_lib_save_LIBS
7833 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7834 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7835 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7836 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7840 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7841 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7842 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7843 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 ac_check_lib_save_LIBS=$LIBS
7847 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7855 /* Override any GCC internal prototype to avoid an error.
7856 Use char because int might match the return type of a GCC
7857 builtin and then its argument prototype would still apply. */
7858 #ifdef __cplusplus
7859 extern "C"
7860 #endif
7861 char XpmCreatePixmapFromData ();
7863 main ()
7865 return XpmCreatePixmapFromData ();
7867 return 0;
7869 _ACEOF
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (ac_try="$ac_link"
7872 case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7875 esac
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_link") 2>conftest.er1
7878 ac_status=$?
7879 grep -v '^ *+' conftest.er1 >conftest.err
7880 rm -f conftest.er1
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } && {
7884 test -z "$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7886 } && test -s conftest$ac_exeext &&
7887 $as_test_x conftest$ac_exeext; then
7888 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7889 else
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7893 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7897 conftest$ac_exeext conftest.$ac_ext
7898 LIBS=$ac_check_lib_save_LIBS
7900 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7901 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7902 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7903 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7907 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7908 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7909 cflags_save=$CFLAGS
7910 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <X11/Xlib.h>
7919 main ()
7923 return 0;
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (ac_try="$ac_compile"
7928 case "(($ac_try" in
7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7930 *) ac_try_echo=$ac_try;;
7931 esac
7932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7943 { echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6; }
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 CFLAGS="$CFLAGS -Wno-implicit-int"
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <X11/Xlib.h>
7958 main ()
7962 return 0;
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7967 case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7982 { echo "$as_me:$LINENO: result: yes" >&5
7983 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 { echo "$as_me:$LINENO: result: test failed" >&5
7989 echo "${ECHO_T}test failed" >&6; }
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 CFLAGS=$cflags_save
8000 LDFLAGS="$ac_save_LDFLAGS"
8002 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8003 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
8004 if test "${ac_cv_small_wchar_t+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 if test "$cross_compiling" = yes; then
8008 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
8009 echo "$as_me: error: failed to compile test program" >&2;}
8010 { (exit 1); exit 1; }; }
8011 else
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8019 #include <X11/Xlib.h>
8020 #if STDC_HEADERS
8021 # include <stdlib.h>
8022 # include <stddef.h>
8023 #endif
8024 main()
8026 if (sizeof(wchar_t) <= 2)
8027 exit(1);
8028 exit(0);
8030 _ACEOF
8031 rm -f conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8042 { (case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_small_wchar_t="no"
8052 else
8053 echo "$as_me: program exited with status $ac_status" >&5
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ( exit $ac_status )
8058 ac_cv_small_wchar_t="yes"
8060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8067 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
8068 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8069 cat >>confdefs.h <<\_ACEOF
8070 #define SMALL_WCHAR_T 1
8071 _ACEOF
8078 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8080 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8081 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
8082 # Check whether --enable-gui was given.
8083 if test "${enable_gui+set}" = set; then
8084 enableval=$enable_gui;
8085 else
8086 enable_gui="auto"
8090 enable_gui_canon=`echo "_$enable_gui" | \
8091 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8093 SKIP_GTK=YES
8094 SKIP_GTK2=YES
8095 SKIP_GNOME=YES
8096 SKIP_MOTIF=YES
8097 SKIP_ATHENA=YES
8098 SKIP_NEXTAW=YES
8099 SKIP_PHOTON=YES
8100 SKIP_CARBON=YES
8101 SKIP_MACVIM=YES
8102 GUITYPE=NONE
8104 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8105 SKIP_PHOTON=
8106 case "$enable_gui_canon" in
8107 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8108 echo "${ECHO_T}no GUI support" >&6; }
8109 SKIP_PHOTON=YES ;;
8110 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8111 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8112 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8113 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8114 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8115 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8116 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8117 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8118 SKIP_PHOTON=YES ;;
8119 esac
8121 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8122 SKIP_CARBON=
8123 SKIP_MACVIM=
8124 case "$enable_gui_canon" in
8125 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8126 echo "${ECHO_T}no GUI support" >&6; }
8127 SKIP_CARBON=YES
8128 SKIP_MACVIM=YES ;;
8129 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8130 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8131 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8132 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8133 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8134 echo "${ECHO_T}Carbon GUI support" >&6; }
8135 SKIP_MACVIM=YES ;;
8136 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8137 echo "${ECHO_T}MacVim GUI support" >&6; }
8138 SKIP_CARBON=YES ;;
8139 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8140 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8141 SKIP_CARBON=YES
8142 SKIP_MACVIM=YES ;;
8143 esac
8145 else
8147 case "$enable_gui_canon" in
8148 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8149 echo "${ECHO_T}no GUI support" >&6; } ;;
8150 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8151 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8152 SKIP_GTK=
8153 SKIP_GTK2=
8154 SKIP_GNOME=
8155 SKIP_MOTIF=
8156 SKIP_ATHENA=
8157 SKIP_NEXTAW=
8158 SKIP_MACVIM=
8159 SKIP_CARBON=;;
8160 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8161 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8162 SKIP_GTK=;;
8163 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8164 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8165 SKIP_GTK=
8166 SKIP_GTK2=;;
8167 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8168 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8169 SKIP_GNOME=
8170 SKIP_GTK=;;
8171 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8172 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8173 SKIP_GNOME=
8174 SKIP_GTK=
8175 SKIP_GTK2=;;
8176 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8177 echo "${ECHO_T}Motif GUI support" >&6; }
8178 SKIP_MOTIF=;;
8179 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8180 echo "${ECHO_T}Athena GUI support" >&6; }
8181 SKIP_ATHENA=;;
8182 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8183 echo "${ECHO_T}neXtaw GUI support" >&6; }
8184 SKIP_NEXTAW=;;
8185 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8186 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8187 esac
8191 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8192 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8193 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8194 # Check whether --enable-gtk-check was given.
8195 if test "${enable_gtk_check+set}" = set; then
8196 enableval=$enable_gtk_check;
8197 else
8198 enable_gtk_check="yes"
8201 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8202 echo "${ECHO_T}$enable_gtk_check" >&6; }
8203 if test "x$enable_gtk_check" = "xno"; then
8204 SKIP_GTK=YES
8205 SKIP_GNOME=YES
8209 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8210 -a "$enable_gui_canon" != "gnome2"; then
8211 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8212 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8213 # Check whether --enable-gtk2-check was given.
8214 if test "${enable_gtk2_check+set}" = set; then
8215 enableval=$enable_gtk2_check;
8216 else
8217 enable_gtk2_check="yes"
8220 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8221 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8222 if test "x$enable_gtk2_check" = "xno"; then
8223 SKIP_GTK2=YES
8227 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8228 -a "$enable_gui_canon" != "gnome2"; then
8229 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8230 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8231 # Check whether --enable-gnome-check was given.
8232 if test "${enable_gnome_check+set}" = set; then
8233 enableval=$enable_gnome_check;
8234 else
8235 enable_gnome_check="no"
8238 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8239 echo "${ECHO_T}$enable_gnome_check" >&6; }
8240 if test "x$enable_gnome_check" = "xno"; then
8241 SKIP_GNOME=YES
8245 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8246 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8247 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8248 # Check whether --enable-motif-check was given.
8249 if test "${enable_motif_check+set}" = set; then
8250 enableval=$enable_motif_check;
8251 else
8252 enable_motif_check="yes"
8255 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8256 echo "${ECHO_T}$enable_motif_check" >&6; }
8257 if test "x$enable_motif_check" = "xno"; then
8258 SKIP_MOTIF=YES
8262 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8263 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8264 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8265 # Check whether --enable-athena-check was given.
8266 if test "${enable_athena_check+set}" = set; then
8267 enableval=$enable_athena_check;
8268 else
8269 enable_athena_check="yes"
8272 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8273 echo "${ECHO_T}$enable_athena_check" >&6; }
8274 if test "x$enable_athena_check" = "xno"; then
8275 SKIP_ATHENA=YES
8279 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8280 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8281 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8282 # Check whether --enable-nextaw-check was given.
8283 if test "${enable_nextaw_check+set}" = set; then
8284 enableval=$enable_nextaw_check;
8285 else
8286 enable_nextaw_check="yes"
8289 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8290 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8291 if test "x$enable_nextaw_check" = "xno"; then
8292 SKIP_NEXTAW=YES
8296 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8297 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8298 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8299 # Check whether --enable-carbon-check was given.
8300 if test "${enable_carbon_check+set}" = set; then
8301 enableval=$enable_carbon_check;
8302 else
8303 enable_carbon_check="yes"
8306 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8307 echo "${ECHO_T}$enable_carbon_check" >&6; };
8308 if test "x$enable_carbon_check" = "xno"; then
8309 SKIP_CARBON=YES
8313 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8314 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8315 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8316 # Check whether --enable-macvim-check was given.
8317 if test "${enable_macvim_check+set}" = set; then
8318 enableval=$enable_macvim_check;
8319 else
8320 enable_macvim_check="yes"
8323 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8324 echo "${ECHO_T}$enable_macvim_check" >&6; };
8325 if test "x$enable_macvim_check" = "xno"; then
8326 SKIP_MACVIM=YES
8330 if test "x$MACOSX" = "xyes"; then
8331 if test x$prefix = xNONE; then
8332 prefix=/Applications
8335 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8336 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8337 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8338 { echo "$as_me:$LINENO: result: yes" >&5
8339 echo "${ECHO_T}yes" >&6; };
8340 GUITYPE=MACVIMGUI
8341 datadir='${prefix}/MacVim.app/Contents/Resources'
8342 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8343 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8344 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8345 { echo "$as_me:$LINENO: result: yes" >&5
8346 echo "${ECHO_T}yes" >&6; };
8347 GUITYPE=CARBONGUI
8348 datadir='${prefix}/Vim.app/Contents/Resources'
8350 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
8353 if test "$VIMNAME" = "vim"; then
8354 VIMNAME=Vim
8357 SKIP_GTK=YES;
8358 SKIP_GTK2=YES;
8359 SKIP_GNOME=YES;
8360 SKIP_MOTIF=YES;
8361 SKIP_ATHENA=YES;
8362 SKIP_NEXTAW=YES;
8363 SKIP_PHOTON=YES;
8364 SKIP_MACVIM=YES;
8365 SKIP_CARBON=YES
8376 if test -z "$SKIP_GTK"; then
8378 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8379 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8381 # Check whether --with-gtk-prefix was given.
8382 if test "${with_gtk_prefix+set}" = set; then
8383 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8384 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8385 else
8386 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8391 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8392 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8394 # Check whether --with-gtk-exec-prefix was given.
8395 if test "${with_gtk_exec_prefix+set}" = set; then
8396 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8397 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8398 else
8399 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8400 echo "${ECHO_T}no" >&6; }
8404 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8405 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8406 # Check whether --enable-gtktest was given.
8407 if test "${enable_gtktest+set}" = set; then
8408 enableval=$enable_gtktest;
8409 else
8410 enable_gtktest=yes
8413 if test "x$enable_gtktest" = "xyes" ; then
8414 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8415 echo "${ECHO_T}gtk test enabled" >&6; }
8416 else
8417 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8418 echo "${ECHO_T}gtk test disabled" >&6; }
8421 if test "x$gtk_config_prefix" != "x" ; then
8422 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8423 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8425 if test "x$gtk_config_exec_prefix" != "x" ; then
8426 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8427 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8429 if test "X$GTK_CONFIG" = "X"; then
8430 # Extract the first word of "gtk-config", so it can be a program name with args.
8431 set dummy gtk-config; ac_word=$2
8432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437 case $GTK_CONFIG in
8438 [\\/]* | ?:[\\/]*)
8439 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8453 done
8454 done
8455 IFS=$as_save_IFS
8457 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8459 esac
8461 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8462 if test -n "$GTK_CONFIG"; then
8463 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8464 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8465 else
8466 { echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6; }
8471 if test "X$GTK_CONFIG" = "Xno"; then
8472 # Extract the first word of "gtk12-config", so it can be a program name with args.
8473 set dummy gtk12-config; ac_word=$2
8474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8476 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 case $GTK12_CONFIG in
8480 [\\/]* | ?:[\\/]*)
8481 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485 for as_dir in $PATH
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8493 break 2
8495 done
8496 done
8497 IFS=$as_save_IFS
8499 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8501 esac
8503 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8504 if test -n "$GTK12_CONFIG"; then
8505 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8506 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8507 else
8508 { echo "$as_me:$LINENO: result: no" >&5
8509 echo "${ECHO_T}no" >&6; }
8513 GTK_CONFIG="$GTK12_CONFIG"
8515 else
8516 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8517 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8519 if test "X$PKG_CONFIG" = "X"; then
8520 # Extract the first word of "pkg-config", so it can be a program name with args.
8521 set dummy pkg-config; ac_word=$2
8522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527 case $PKG_CONFIG in
8528 [\\/]* | ?:[\\/]*)
8529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 break 2
8543 done
8544 done
8545 IFS=$as_save_IFS
8547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8549 esac
8551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8552 if test -n "$PKG_CONFIG"; then
8553 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8554 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8555 else
8556 { echo "$as_me:$LINENO: result: no" >&5
8557 echo "${ECHO_T}no" >&6; }
8563 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8564 if test "X$SKIP_GTK2" != "XYES"; then
8566 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8568 min_gtk_version=2.2.0
8569 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8570 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8571 no_gtk=""
8572 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8573 && $PKG_CONFIG --exists gtk+-2.0; then
8575 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8576 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8577 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8578 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8579 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8580 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8581 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8582 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8583 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8585 elif test "X$GTK_CONFIG" != "Xno"; then
8587 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8588 GTK_LIBDIR=
8589 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8590 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8591 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8592 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8593 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8594 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8595 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8597 else
8598 no_gtk=yes
8601 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8603 ac_save_CFLAGS="$CFLAGS"
8604 ac_save_LIBS="$LIBS"
8605 CFLAGS="$CFLAGS $GTK_CFLAGS"
8606 LIBS="$LIBS $GTK_LIBS"
8608 rm -f conf.gtktest
8609 if test "$cross_compiling" = yes; then
8610 echo $ac_n "cross compiling; assumed OK... $ac_c"
8611 else
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 #include <gtk/gtk.h>
8620 #include <stdio.h>
8621 #if STDC_HEADERS
8622 # include <stdlib.h>
8623 # include <stddef.h>
8624 #endif
8627 main ()
8629 int major, minor, micro;
8630 char *tmp_version;
8632 system ("touch conf.gtktest");
8634 /* HP/UX 9 (%@#!) writes to sscanf strings */
8635 tmp_version = g_strdup("$min_gtk_version");
8636 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8637 printf("%s, bad version string\n", "$min_gtk_version");
8638 exit(1);
8641 if ((gtk_major_version > major) ||
8642 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8643 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8644 (gtk_micro_version >= micro)))
8646 return 0;
8648 return 1;
8651 _ACEOF
8652 rm -f conftest$ac_exeext
8653 if { (ac_try="$ac_link"
8654 case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657 esac
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_link") 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8663 { (case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666 esac
8667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_try") 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8673 else
8674 echo "$as_me: program exited with status $ac_status" >&5
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 ( exit $ac_status )
8679 no_gtk=yes
8681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8685 CFLAGS="$ac_save_CFLAGS"
8686 LIBS="$ac_save_LIBS"
8689 if test "x$no_gtk" = x ; then
8690 if test "x$enable_gtktest" = "xyes"; then
8691 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8692 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8693 else
8694 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8695 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8697 GUI_LIB_LOC="$GTK_LIBDIR"
8698 GTK_LIBNAME="$GTK_LIBS"
8699 GUI_INC_LOC="$GTK_CFLAGS"
8700 else
8702 { echo "$as_me:$LINENO: result: no" >&5
8703 echo "${ECHO_T}no" >&6; }
8704 GTK_CFLAGS=""
8705 GTK_LIBS=""
8710 else
8711 GTK_CFLAGS=""
8712 GTK_LIBS=""
8717 rm -f conf.gtktest
8719 if test "x$GTK_CFLAGS" != "x"; then
8720 SKIP_ATHENA=YES
8721 SKIP_NEXTAW=YES
8722 SKIP_MOTIF=YES
8723 GUITYPE=GTK
8728 if test "x$GUITYPE" != "xGTK"; then
8729 SKIP_GTK2=YES
8731 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8733 min_gtk_version=1.1.16
8734 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8735 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8736 no_gtk=""
8737 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8738 && $PKG_CONFIG --exists gtk+-2.0; then
8740 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8741 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8742 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8743 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8744 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8745 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8746 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8747 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8748 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8750 elif test "X$GTK_CONFIG" != "Xno"; then
8752 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8753 GTK_LIBDIR=
8754 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8755 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8756 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8757 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8758 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8759 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8760 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8762 else
8763 no_gtk=yes
8766 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8768 ac_save_CFLAGS="$CFLAGS"
8769 ac_save_LIBS="$LIBS"
8770 CFLAGS="$CFLAGS $GTK_CFLAGS"
8771 LIBS="$LIBS $GTK_LIBS"
8773 rm -f conf.gtktest
8774 if test "$cross_compiling" = yes; then
8775 echo $ac_n "cross compiling; assumed OK... $ac_c"
8776 else
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8784 #include <gtk/gtk.h>
8785 #include <stdio.h>
8786 #if STDC_HEADERS
8787 # include <stdlib.h>
8788 # include <stddef.h>
8789 #endif
8792 main ()
8794 int major, minor, micro;
8795 char *tmp_version;
8797 system ("touch conf.gtktest");
8799 /* HP/UX 9 (%@#!) writes to sscanf strings */
8800 tmp_version = g_strdup("$min_gtk_version");
8801 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8802 printf("%s, bad version string\n", "$min_gtk_version");
8803 exit(1);
8806 if ((gtk_major_version > major) ||
8807 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8808 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8809 (gtk_micro_version >= micro)))
8811 return 0;
8813 return 1;
8816 _ACEOF
8817 rm -f conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8819 case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8828 { (case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8831 esac
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_try") 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8838 else
8839 echo "$as_me: program exited with status $ac_status" >&5
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 ( exit $ac_status )
8844 no_gtk=yes
8846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8850 CFLAGS="$ac_save_CFLAGS"
8851 LIBS="$ac_save_LIBS"
8854 if test "x$no_gtk" = x ; then
8855 if test "x$enable_gtktest" = "xyes"; then
8856 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8857 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8858 else
8859 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8860 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8862 GTK_LIBNAME="$GTK_LIBS"
8863 GUI_INC_LOC="$GTK_CFLAGS"
8864 else
8866 { echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6; }
8868 GTK_CFLAGS=""
8869 GTK_LIBS=""
8874 else
8875 GTK_CFLAGS=""
8876 GTK_LIBS=""
8881 rm -f conf.gtktest
8883 if test "x$GTK_CFLAGS" != "x"; then
8884 SKIP_ATHENA=YES
8885 SKIP_NEXTAW=YES
8886 SKIP_MOTIF=YES
8887 GUITYPE=GTK
8892 if test "x$GUITYPE" = "xGTK"; then
8893 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8894 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8895 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8896 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8897 else
8899 if test "0$gtk_major_version" -ge 2; then
8900 cat >>confdefs.h <<\_ACEOF
8901 #define HAVE_GTK2 1
8902 _ACEOF
8904 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8905 || test "0$gtk_minor_version" -ge 2 \
8906 || test "0$gtk_major_version" -gt 2; then
8907 cat >>confdefs.h <<\_ACEOF
8908 #define HAVE_GTK_MULTIHEAD 1
8909 _ACEOF
8913 if test -z "$SKIP_GNOME"; then
8921 # Check whether --with-gnome-includes was given.
8922 if test "${with_gnome_includes+set}" = set; then
8923 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8929 # Check whether --with-gnome-libs was given.
8930 if test "${with_gnome_libs+set}" = set; then
8931 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8937 # Check whether --with-gnome was given.
8938 if test "${with_gnome+set}" = set; then
8939 withval=$with_gnome; if test x$withval = xyes; then
8940 want_gnome=yes
8941 have_gnome=yes
8942 else
8943 if test "x$withval" = xno; then
8944 want_gnome=no
8945 else
8946 want_gnome=yes
8947 LDFLAGS="$LDFLAGS -L$withval/lib"
8948 CFLAGS="$CFLAGS -I$withval/include"
8949 gnome_prefix=$withval/lib
8952 else
8953 want_gnome=yes
8957 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8959 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8960 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8961 if $PKG_CONFIG --exists libgnomeui-2.0; then
8962 { echo "$as_me:$LINENO: result: yes" >&5
8963 echo "${ECHO_T}yes" >&6; }
8964 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8965 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8966 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8968 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8969 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8970 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8971 { echo "$as_me:$LINENO: result: yes" >&5
8972 echo "${ECHO_T}yes" >&6; }
8973 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8974 GNOME_LIBS="$GNOME_LIBS -pthread"
8975 else
8976 { echo "$as_me:$LINENO: result: no" >&5
8977 echo "${ECHO_T}no" >&6; }
8979 have_gnome=yes
8980 else
8981 { echo "$as_me:$LINENO: result: not found" >&5
8982 echo "${ECHO_T}not found" >&6; }
8983 if test "x" = xfail; then
8984 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8985 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8986 { (exit 1); exit 1; }; }
8990 elif test "x$want_gnome" = xyes; then
8992 # Extract the first word of "gnome-config", so it can be a program name with args.
8993 set dummy gnome-config; ac_word=$2
8994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8996 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 else
8999 case $GNOME_CONFIG in
9000 [\\/]* | ?:[\\/]*)
9001 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9019 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9021 esac
9023 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9024 if test -n "$GNOME_CONFIG"; then
9025 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9026 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
9027 else
9028 { echo "$as_me:$LINENO: result: no" >&5
9029 echo "${ECHO_T}no" >&6; }
9033 if test "$GNOME_CONFIG" = "no"; then
9034 no_gnome_config="yes"
9035 else
9036 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9037 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
9038 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9039 { echo "$as_me:$LINENO: result: yes" >&5
9040 echo "${ECHO_T}yes" >&6; }
9041 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9042 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9043 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9044 have_gnome=yes
9045 else
9046 { echo "$as_me:$LINENO: result: no" >&5
9047 echo "${ECHO_T}no" >&6; }
9048 no_gnome_config="yes"
9052 if test x$exec_prefix = xNONE; then
9053 if test x$prefix = xNONE; then
9054 gnome_prefix=$ac_default_prefix/lib
9055 else
9056 gnome_prefix=$prefix/lib
9058 else
9059 gnome_prefix=`eval echo \`echo $libdir\``
9062 if test "$no_gnome_config" = "yes"; then
9063 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9064 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
9065 if test -f $gnome_prefix/gnomeConf.sh; then
9066 { echo "$as_me:$LINENO: result: found" >&5
9067 echo "${ECHO_T}found" >&6; }
9068 echo "loading gnome configuration from" \
9069 "$gnome_prefix/gnomeConf.sh"
9070 . $gnome_prefix/gnomeConf.sh
9071 have_gnome=yes
9072 else
9073 { echo "$as_me:$LINENO: result: not found" >&5
9074 echo "${ECHO_T}not found" >&6; }
9075 if test x = xfail; then
9076 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9077 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9078 { (exit 1); exit 1; }; }
9085 if test x$have_gnome = xyes ; then
9086 cat >>confdefs.h <<\_ACEOF
9087 #define FEAT_GUI_GNOME 1
9088 _ACEOF
9090 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9091 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9101 if test -z "$SKIP_MOTIF"; then
9102 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"
9103 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9105 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9106 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9107 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9108 GUI_INC_LOC=
9109 for try in $gui_includes; do
9110 if test -f "$try/Xm/Xm.h"; then
9111 GUI_INC_LOC=$try
9113 done
9114 if test -n "$GUI_INC_LOC"; then
9115 if test "$GUI_INC_LOC" = /usr/include; then
9116 GUI_INC_LOC=
9117 { echo "$as_me:$LINENO: result: in default path" >&5
9118 echo "${ECHO_T}in default path" >&6; }
9119 else
9120 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9121 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9123 else
9124 { echo "$as_me:$LINENO: result: <not found>" >&5
9125 echo "${ECHO_T}<not found>" >&6; }
9126 SKIP_MOTIF=YES
9131 if test -z "$SKIP_MOTIF"; then
9132 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9133 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9135 # Check whether --with-motif-lib was given.
9136 if test "${with_motif_lib+set}" = set; then
9137 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9141 if test -n "$MOTIF_LIBNAME"; then
9142 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9143 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9144 GUI_LIB_LOC=
9145 else
9146 { echo "$as_me:$LINENO: result: no" >&5
9147 echo "${ECHO_T}no" >&6; }
9149 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9151 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9152 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9153 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"
9154 GUI_LIB_LOC=
9155 for try in $gui_libs; do
9156 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9157 if test -f "$libtry"; then
9158 GUI_LIB_LOC=$try
9160 done
9161 done
9162 if test -n "$GUI_LIB_LOC"; then
9163 if test "$GUI_LIB_LOC" = /usr/lib; then
9164 GUI_LIB_LOC=
9165 { echo "$as_me:$LINENO: result: in default path" >&5
9166 echo "${ECHO_T}in default path" >&6; }
9167 else
9168 if test -n "$GUI_LIB_LOC"; then
9169 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9170 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9171 if test "`(uname) 2>/dev/null`" = SunOS &&
9172 uname -r | grep '^5' >/dev/null; then
9173 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9177 MOTIF_LIBNAME=-lXm
9178 else
9179 { echo "$as_me:$LINENO: result: <not found>" >&5
9180 echo "${ECHO_T}<not found>" >&6; }
9181 SKIP_MOTIF=YES
9186 if test -z "$SKIP_MOTIF"; then
9187 SKIP_ATHENA=YES
9188 SKIP_NEXTAW=YES
9189 GUITYPE=MOTIF
9194 GUI_X_LIBS=
9196 if test -z "$SKIP_ATHENA"; then
9197 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9198 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9199 cflags_save=$CFLAGS
9200 CFLAGS="$CFLAGS $X_CFLAGS"
9201 cat >conftest.$ac_ext <<_ACEOF
9202 /* confdefs.h. */
9203 _ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9208 #include <X11/Intrinsic.h>
9209 #include <X11/Xaw/Paned.h>
9211 main ()
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext
9219 if { (ac_try="$ac_compile"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.$ac_objext; then
9235 { echo "$as_me:$LINENO: result: yes" >&5
9236 echo "${ECHO_T}yes" >&6; }
9237 else
9238 echo "$as_me: failed program was:" >&5
9239 sed 's/^/| /' conftest.$ac_ext >&5
9241 { echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA=YES
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 CFLAGS=$cflags_save
9249 if test -z "$SKIP_ATHENA"; then
9250 GUITYPE=ATHENA
9253 if test -z "$SKIP_NEXTAW"; then
9254 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9255 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9256 cflags_save=$CFLAGS
9257 CFLAGS="$CFLAGS $X_CFLAGS"
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9265 #include <X11/Intrinsic.h>
9266 #include <X11/neXtaw/Paned.h>
9268 main ()
9272 return 0;
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (ac_try="$ac_compile"
9277 case "(($ac_try" in
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9280 esac
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282 (eval "$ac_compile") 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && {
9289 test -z "$ac_c_werror_flag" ||
9290 test ! -s conftest.err
9291 } && test -s conftest.$ac_objext; then
9292 { echo "$as_me:$LINENO: result: yes" >&5
9293 echo "${ECHO_T}yes" >&6; }
9294 else
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 { echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9303 CFLAGS=$cflags_save
9306 if test -z "$SKIP_NEXTAW"; then
9307 GUITYPE=NEXTAW
9310 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9311 if test -n "$GUI_INC_LOC"; then
9312 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9314 if test -n "$GUI_LIB_LOC"; then
9315 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9318 ldflags_save=$LDFLAGS
9319 LDFLAGS="$X_LIBS $LDFLAGS"
9320 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9321 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9322 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 ac_check_lib_save_LIBS=$LIBS
9326 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9334 /* Override any GCC internal prototype to avoid an error.
9335 Use char because int might match the return type of a GCC
9336 builtin and then its argument prototype would still apply. */
9337 #ifdef __cplusplus
9338 extern "C"
9339 #endif
9340 char XShapeQueryExtension ();
9342 main ()
9344 return XShapeQueryExtension ();
9346 return 0;
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (ac_try="$ac_link"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_link") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest$ac_exeext &&
9366 $as_test_x conftest$ac_exeext; then
9367 ac_cv_lib_Xext_XShapeQueryExtension=yes
9368 else
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_cv_lib_Xext_XShapeQueryExtension=no
9375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9376 conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_check_lib_save_LIBS
9379 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9380 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9381 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9382 GUI_X_LIBS="-lXext"
9385 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9386 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9387 if test "${ac_cv_lib_w_wslen+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 ac_check_lib_save_LIBS=$LIBS
9391 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9392 cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h. */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 char wslen ();
9407 main ()
9409 return wslen ();
9411 return 0;
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9416 case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
9432 ac_cv_lib_w_wslen=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9437 ac_cv_lib_w_wslen=no
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441 conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9444 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9445 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9446 if test $ac_cv_lib_w_wslen = yes; then
9447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9450 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9451 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9452 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455 ac_check_lib_save_LIBS=$LIBS
9456 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h. */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9467 #ifdef __cplusplus
9468 extern "C"
9469 #endif
9470 char dlsym ();
9472 main ()
9474 return dlsym ();
9476 return 0;
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (ac_try="$ac_link"
9481 case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then
9497 ac_cv_lib_dl_dlsym=yes
9498 else
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_cv_lib_dl_dlsym=no
9505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LIBS=$ac_check_lib_save_LIBS
9509 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9510 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9511 if test $ac_cv_lib_dl_dlsym = yes; then
9512 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9515 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9516 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9523 /* confdefs.h. */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char XmuCreateStippledPixmap ();
9537 main ()
9539 return XmuCreateStippledPixmap ();
9541 return 0;
9543 _ACEOF
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9546 case "(($ac_try" in
9547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9549 esac
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9552 ac_status=$?
9553 grep -v '^ *+' conftest.er1 >conftest.err
9554 rm -f conftest.er1
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest$ac_exeext &&
9561 $as_test_x conftest$ac_exeext; then
9562 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9571 conftest$ac_exeext conftest.$ac_ext
9572 LIBS=$ac_check_lib_save_LIBS
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9575 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9576 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9577 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9580 if test -z "$SKIP_MOTIF"; then
9581 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9582 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9583 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 ac_check_lib_save_LIBS=$LIBS
9587 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9588 cat >conftest.$ac_ext <<_ACEOF
9589 /* confdefs.h. */
9590 _ACEOF
9591 cat confdefs.h >>conftest.$ac_ext
9592 cat >>conftest.$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char XpEndJob ();
9603 main ()
9605 return XpEndJob ();
9607 return 0;
9609 _ACEOF
9610 rm -f conftest.$ac_objext conftest$ac_exeext
9611 if { (ac_try="$ac_link"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_link") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest$ac_exeext &&
9627 $as_test_x conftest$ac_exeext; then
9628 ac_cv_lib_Xp_XpEndJob=yes
9629 else
9630 echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9633 ac_cv_lib_Xp_XpEndJob=no
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9640 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9641 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9642 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9643 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9647 LDFLAGS=$ldflags_save
9649 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9650 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9651 NARROW_PROTO=
9652 rm -fr conftestdir
9653 if mkdir conftestdir; then
9654 cd conftestdir
9655 cat > Imakefile <<'EOF'
9656 acfindx:
9657 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9659 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9660 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9662 cd ..
9663 rm -fr conftestdir
9665 if test -z "$NARROW_PROTO"; then
9666 { echo "$as_me:$LINENO: result: no" >&5
9667 echo "${ECHO_T}no" >&6; }
9668 else
9669 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9670 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9675 if test "$enable_xsmp" = "yes"; then
9676 cppflags_save=$CPPFLAGS
9677 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9679 for ac_header in X11/SM/SMlib.h
9681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 ac_res=`eval echo '${'$as_ac_Header'}'`
9689 { echo "$as_me:$LINENO: result: $ac_res" >&5
9690 echo "${ECHO_T}$ac_res" >&6; }
9691 else
9692 # Is the header compilable?
9693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <$ac_header>
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (ac_try="$ac_compile"
9706 case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_compile") 2>conftest.er1
9712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest.$ac_objext; then
9721 ac_header_compiler=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_compiler=no
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6; }
9733 # Is the header present?
9734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h. */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 #include <$ac_header>
9743 _ACEOF
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9745 case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } >/dev/null && {
9757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9758 test ! -s conftest.err
9759 }; then
9760 ac_header_preproc=yes
9761 else
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_header_preproc=no
9768 rm -f conftest.err conftest.$ac_ext
9769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9770 echo "${ECHO_T}$ac_header_preproc" >&6; }
9772 # So? What about this header?
9773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9774 yes:no: )
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9779 ac_header_preproc=yes
9781 no:yes:* )
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9796 esac
9797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802 eval "$as_ac_Header=\$ac_header_preproc"
9804 ac_res=`eval echo '${'$as_ac_Header'}'`
9805 { echo "$as_me:$LINENO: result: $ac_res" >&5
9806 echo "${ECHO_T}$ac_res" >&6; }
9809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9810 cat >>confdefs.h <<_ACEOF
9811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812 _ACEOF
9816 done
9818 CPPFLAGS=$cppflags_save
9822 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9823 cppflags_save=$CPPFLAGS
9824 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9827 for ac_header in X11/xpm.h X11/Sunkeysym.h
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9836 ac_res=`eval echo '${'$as_ac_Header'}'`
9837 { echo "$as_me:$LINENO: result: $ac_res" >&5
9838 echo "${ECHO_T}$ac_res" >&6; }
9839 else
9840 # Is the header compilable?
9841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h. */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h. */
9849 $ac_includes_default
9850 #include <$ac_header>
9851 _ACEOF
9852 rm -f conftest.$ac_objext
9853 if { (ac_try="$ac_compile"
9854 case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857 esac
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest.$ac_objext; then
9869 ac_header_compiler=yes
9870 else
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 ac_header_compiler=no
9877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9879 echo "${ECHO_T}$ac_header_compiler" >&6; }
9881 # Is the header present?
9882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9884 cat >conftest.$ac_ext <<_ACEOF
9885 /* confdefs.h. */
9886 _ACEOF
9887 cat confdefs.h >>conftest.$ac_ext
9888 cat >>conftest.$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9890 #include <$ac_header>
9891 _ACEOF
9892 if { (ac_try="$ac_cpp conftest.$ac_ext"
9893 case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } >/dev/null && {
9905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 }; then
9908 ac_header_preproc=yes
9909 else
9910 echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_header_preproc=no
9916 rm -f conftest.err conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9918 echo "${ECHO_T}$ac_header_preproc" >&6; }
9920 # So? What about this header?
9921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 yes:no: )
9923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9927 ac_header_preproc=yes
9929 no:yes:* )
9930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9944 esac
9945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 eval "$as_ac_Header=\$ac_header_preproc"
9952 ac_res=`eval echo '${'$as_ac_Header'}'`
9953 { echo "$as_me:$LINENO: result: $ac_res" >&5
9954 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9960 _ACEOF
9964 done
9967 if test ! "$enable_xim" = "no"; then
9968 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9969 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 #include <X11/Xlib.h>
9977 _ACEOF
9978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9979 $EGREP "XIMText" >/dev/null 2>&1; then
9980 { echo "$as_me:$LINENO: result: yes" >&5
9981 echo "${ECHO_T}yes" >&6; }
9982 else
9983 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9984 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim = "no"
9986 rm -f -r conftest*
9989 CPPFLAGS=$cppflags_save
9991 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9992 -a "x$GUITYPE" != "xNONE" ; then
9993 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9994 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9995 enable_xim="yes"
9999 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10000 cppflags_save=$CPPFLAGS
10001 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10002 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10003 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 #include <X11/Intrinsic.h>
10012 #include <X11/Xmu/Editres.h>
10014 main ()
10016 int i; i = 0;
10018 return 0;
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (ac_try="$ac_compile"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026 esac
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_compile") 2>conftest.er1
10029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest.$ac_objext; then
10038 { echo "$as_me:$LINENO: result: yes" >&5
10039 echo "${ECHO_T}yes" >&6; }
10040 cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_X11_XMU_EDITRES_H 1
10042 _ACEOF
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 { echo "$as_me:$LINENO: result: no" >&5
10049 echo "${ECHO_T}no" >&6; }
10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 CPPFLAGS=$cppflags_save
10056 if test -z "$SKIP_MOTIF"; then
10057 cppflags_save=$CPPFLAGS
10058 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10066 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10067 Xm/UnhighlightT.h Xm/Notebook.h
10069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_res=`eval echo '${'$as_ac_Header'}'`
10077 { echo "$as_me:$LINENO: result: $ac_res" >&5
10078 echo "${ECHO_T}$ac_res" >&6; }
10079 else
10080 # Is the header compilable?
10081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 $ac_includes_default
10090 #include <$ac_header>
10091 _ACEOF
10092 rm -f conftest.$ac_objext
10093 if { (ac_try="$ac_compile"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_compile") 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
10108 } && test -s conftest.$ac_objext; then
10109 ac_header_compiler=yes
10110 else
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_header_compiler=no
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10119 echo "${ECHO_T}$ac_header_compiler" >&6; }
10121 # Is the header present?
10122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10124 cat >conftest.$ac_ext <<_ACEOF
10125 /* confdefs.h. */
10126 _ACEOF
10127 cat confdefs.h >>conftest.$ac_ext
10128 cat >>conftest.$ac_ext <<_ACEOF
10129 /* end confdefs.h. */
10130 #include <$ac_header>
10131 _ACEOF
10132 if { (ac_try="$ac_cpp conftest.$ac_ext"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10136 esac
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } >/dev/null && {
10145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 }; then
10148 ac_header_preproc=yes
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_header_preproc=no
10156 rm -f conftest.err conftest.$ac_ext
10157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10158 echo "${ECHO_T}$ac_header_preproc" >&6; }
10160 # So? What about this header?
10161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10162 yes:no: )
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10167 ac_header_preproc=yes
10169 no:yes:* )
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10184 esac
10185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 else
10190 eval "$as_ac_Header=\$ac_header_preproc"
10192 ac_res=`eval echo '${'$as_ac_Header'}'`
10193 { echo "$as_me:$LINENO: result: $ac_res" >&5
10194 echo "${ECHO_T}$ac_res" >&6; }
10197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10198 cat >>confdefs.h <<_ACEOF
10199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10200 _ACEOF
10204 done
10207 if test $ac_cv_header_Xm_XpmP_h = yes; then
10208 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10209 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 #include <Xm/XpmP.h>
10218 main ()
10220 XpmAttributes_21 attr;
10222 return 0;
10224 _ACEOF
10225 rm -f conftest.$ac_objext
10226 if { (ac_try="$ac_compile"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_compile") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest.$ac_objext; then
10242 { echo "$as_me:$LINENO: result: yes" >&5
10243 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10244 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10245 _ACEOF
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 { echo "$as_me:$LINENO: result: no" >&5
10252 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h <<\_ACEOF
10253 #define XPMATTRIBUTES_TYPE XpmAttributes
10254 _ACEOF
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 else
10261 cat >>confdefs.h <<\_ACEOF
10262 #define XPMATTRIBUTES_TYPE XpmAttributes
10263 _ACEOF
10266 CPPFLAGS=$cppflags_save
10269 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10270 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10271 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10272 enable_xim="no"
10274 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10275 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10276 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10277 enable_fontset="no"
10279 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10280 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10281 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10282 enable_fontset="no"
10285 if test -z "$SKIP_PHOTON"; then
10286 GUITYPE=PHOTONGUI
10294 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10295 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10296 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10297 { (exit 1); exit 1; }; }
10300 if test "$enable_xim" = "yes"; then
10301 cat >>confdefs.h <<\_ACEOF
10302 #define FEAT_XIM 1
10303 _ACEOF
10306 if test "$enable_fontset" = "yes"; then
10307 cat >>confdefs.h <<\_ACEOF
10308 #define FEAT_XFONTSET 1
10309 _ACEOF
10316 if test "$enable_hangulinput" = "yes"; then
10317 if test "x$GUITYPE" = "xNONE"; then
10318 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10319 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10320 enable_hangulinput=no
10321 else
10322 cat >>confdefs.h <<\_ACEOF
10323 #define FEAT_HANGULIN 1
10324 _ACEOF
10326 HANGULIN_SRC=hangulin.c
10328 HANGULIN_OBJ=objects/hangulin.o
10334 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10335 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10336 if test "${vim_cv_toupper_broken+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10340 if test "$cross_compiling" = yes; then
10342 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10343 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10344 { (exit 1); exit 1; }; }
10346 else
10347 cat >conftest.$ac_ext <<_ACEOF
10349 #include "confdefs.h"
10350 #include <ctype.h>
10351 #if STDC_HEADERS
10352 # include <stdlib.h>
10353 # include <stddef.h>
10354 #endif
10355 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10357 _ACEOF
10358 rm -f conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_link") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10369 { (case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10379 vim_cv_toupper_broken=yes
10381 else
10382 echo "$as_me: program exited with status $ac_status" >&5
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10386 ( exit $ac_status )
10388 vim_cv_toupper_broken=no
10391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10396 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10397 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10399 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10400 cat >>confdefs.h <<\_ACEOF
10401 #define BROKEN_TOUPPER 1
10402 _ACEOF
10406 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10407 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10408 cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h. */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 #include <stdio.h>
10416 main ()
10418 printf("(" __DATE__ " " __TIME__ ")");
10420 return 0;
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (ac_try="$ac_compile"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_compile") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest.$ac_objext; then
10440 { echo "$as_me:$LINENO: result: yes" >&5
10441 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_DATE_TIME 1
10443 _ACEOF
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 { echo "$as_me:$LINENO: result: no" >&5
10450 echo "${ECHO_T}no" >&6; }
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10456 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <stdio.h>
10465 main ()
10467 int x __attribute__((unused));
10469 return 0;
10471 _ACEOF
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_compile") 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } && {
10486 test -z "$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10488 } && test -s conftest.$ac_objext; then
10489 { echo "$as_me:$LINENO: result: yes" >&5
10490 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10491 #define HAVE_ATTRIBUTE_UNUSED 1
10492 _ACEOF
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 { echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6; }
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 if test "${ac_cv_header_elf_h+set}" = set; then
10505 { echo "$as_me:$LINENO: checking for elf.h" >&5
10506 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10507 if test "${ac_cv_header_elf_h+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10511 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10512 else
10513 # Is the header compilable?
10514 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10515 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 $ac_includes_default
10523 #include <elf.h>
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_compile") 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest.$ac_objext; then
10542 ac_header_compiler=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_header_compiler=no
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10552 echo "${ECHO_T}$ac_header_compiler" >&6; }
10554 # Is the header present?
10555 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10556 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h. */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 #include <elf.h>
10564 _ACEOF
10565 if { (ac_try="$ac_cpp conftest.$ac_ext"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } >/dev/null && {
10578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 }; then
10581 ac_header_preproc=yes
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_header_preproc=no
10589 rm -f conftest.err conftest.$ac_ext
10590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10591 echo "${ECHO_T}$ac_header_preproc" >&6; }
10593 # So? What about this header?
10594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10595 yes:no: )
10596 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10597 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10598 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10599 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10600 ac_header_preproc=yes
10602 no:yes:* )
10603 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10604 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10605 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10606 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10608 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10609 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10610 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10611 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10612 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10613 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10614 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10617 esac
10618 { echo "$as_me:$LINENO: checking for elf.h" >&5
10619 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10620 if test "${ac_cv_header_elf_h+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623 ac_cv_header_elf_h=$ac_header_preproc
10625 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10626 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10629 if test $ac_cv_header_elf_h = yes; then
10630 HAS_ELF=1
10634 if test "$HAS_ELF" = 1; then
10636 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10637 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10638 if test "${ac_cv_lib_elf_main+set}" = set; then
10639 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641 ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lelf $LIBS"
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10652 main ()
10654 return main ();
10656 return 0;
10658 _ACEOF
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10664 esac
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && {
10673 test -z "$ac_c_werror_flag" ||
10674 test ! -s conftest.err
10675 } && test -s conftest$ac_exeext &&
10676 $as_test_x conftest$ac_exeext; then
10677 ac_cv_lib_elf_main=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_cv_lib_elf_main=no
10685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10686 conftest$ac_exeext conftest.$ac_ext
10687 LIBS=$ac_check_lib_save_LIBS
10689 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10690 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10691 if test $ac_cv_lib_elf_main = yes; then
10692 cat >>confdefs.h <<_ACEOF
10693 #define HAVE_LIBELF 1
10694 _ACEOF
10696 LIBS="-lelf $LIBS"
10707 ac_header_dirent=no
10708 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10709 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10710 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10711 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715 cat >conftest.$ac_ext <<_ACEOF
10716 /* confdefs.h. */
10717 _ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 #include <sys/types.h>
10722 #include <$ac_hdr>
10725 main ()
10727 if ((DIR *) 0)
10728 return 0;
10730 return 0;
10732 _ACEOF
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10738 esac
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest.$ac_objext; then
10750 eval "$as_ac_Header=yes"
10751 else
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 eval "$as_ac_Header=no"
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 ac_res=`eval echo '${'$as_ac_Header'}'`
10761 { echo "$as_me:$LINENO: result: $ac_res" >&5
10762 echo "${ECHO_T}$ac_res" >&6; }
10763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10764 cat >>confdefs.h <<_ACEOF
10765 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10766 _ACEOF
10768 ac_header_dirent=$ac_hdr; break
10771 done
10772 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10773 if test $ac_header_dirent = dirent.h; then
10774 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10775 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10776 if test "${ac_cv_search_opendir+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779 ac_func_search_save_LIBS=$LIBS
10780 cat >conftest.$ac_ext <<_ACEOF
10781 /* confdefs.h. */
10782 _ACEOF
10783 cat confdefs.h >>conftest.$ac_ext
10784 cat >>conftest.$ac_ext <<_ACEOF
10785 /* end confdefs.h. */
10787 /* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10790 #ifdef __cplusplus
10791 extern "C"
10792 #endif
10793 char opendir ();
10795 main ()
10797 return opendir ();
10799 return 0;
10801 _ACEOF
10802 for ac_lib in '' dir; do
10803 if test -z "$ac_lib"; then
10804 ac_res="none required"
10805 else
10806 ac_res=-l$ac_lib
10807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest$ac_exeext &&
10826 $as_test_x conftest$ac_exeext; then
10827 ac_cv_search_opendir=$ac_res
10828 else
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10836 conftest$ac_exeext
10837 if test "${ac_cv_search_opendir+set}" = set; then
10838 break
10840 done
10841 if test "${ac_cv_search_opendir+set}" = set; then
10843 else
10844 ac_cv_search_opendir=no
10846 rm conftest.$ac_ext
10847 LIBS=$ac_func_search_save_LIBS
10849 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10850 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10851 ac_res=$ac_cv_search_opendir
10852 if test "$ac_res" != no; then
10853 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10857 else
10858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10860 if test "${ac_cv_search_opendir+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 ac_func_search_save_LIBS=$LIBS
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h. */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char opendir ();
10879 main ()
10881 return opendir ();
10883 return 0;
10885 _ACEOF
10886 for ac_lib in '' x; do
10887 if test -z "$ac_lib"; then
10888 ac_res="none required"
10889 else
10890 ac_res=-l$ac_lib
10891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (ac_try="$ac_link"
10895 case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_link") 2>conftest.er1
10901 ac_status=$?
10902 grep -v '^ *+' conftest.er1 >conftest.err
10903 rm -f conftest.er1
10904 cat conftest.err >&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); } && {
10907 test -z "$ac_c_werror_flag" ||
10908 test ! -s conftest.err
10909 } && test -s conftest$ac_exeext &&
10910 $as_test_x conftest$ac_exeext; then
10911 ac_cv_search_opendir=$ac_res
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext
10921 if test "${ac_cv_search_opendir+set}" = set; then
10922 break
10924 done
10925 if test "${ac_cv_search_opendir+set}" = set; then
10927 else
10928 ac_cv_search_opendir=no
10930 rm conftest.$ac_ext
10931 LIBS=$ac_func_search_save_LIBS
10933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10935 ac_res=$ac_cv_search_opendir
10936 if test "$ac_res" != no; then
10937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10944 if test $ac_cv_header_sys_wait_h = no; then
10945 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10946 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953 #include <sys/wait.h>
10955 main ()
10957 union wait xx, yy; xx = yy
10959 return 0;
10961 _ACEOF
10962 rm -f conftest.$ac_objext
10963 if { (ac_try="$ac_compile"
10964 case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967 esac
10968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.$ac_objext; then
10979 { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_SYS_WAIT_H 1
10983 _ACEOF
10985 cat >>confdefs.h <<\_ACEOF
10986 #define HAVE_UNION_WAIT 1
10987 _ACEOF
10989 else
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11041 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11042 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11043 sys/resource.h sys/systeminfo.h locale.h \
11044 sys/stream.h termios.h libc.h sys/statfs.h \
11045 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11046 libgen.h util/debug.h util/msg18n.h frame.h \
11047 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058 echo "${ECHO_T}$ac_res" >&6; }
11059 else
11060 # Is the header compilable?
11061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11063 cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h. */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 $ac_includes_default
11070 #include <$ac_header>
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (ac_try="$ac_compile"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077 esac
11078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } && {
11086 test -z "$ac_c_werror_flag" ||
11087 test ! -s conftest.err
11088 } && test -s conftest.$ac_objext; then
11089 ac_header_compiler=yes
11090 else
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_header_compiler=no
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11099 echo "${ECHO_T}$ac_header_compiler" >&6; }
11101 # Is the header present?
11102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h. */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11110 #include <$ac_header>
11111 _ACEOF
11112 if { (ac_try="$ac_cpp conftest.$ac_ext"
11113 case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11119 ac_status=$?
11120 grep -v '^ *+' conftest.er1 >conftest.err
11121 rm -f conftest.er1
11122 cat conftest.err >&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } >/dev/null && {
11125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11126 test ! -s conftest.err
11127 }; then
11128 ac_header_preproc=yes
11129 else
11130 echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ac_header_preproc=no
11136 rm -f conftest.err conftest.$ac_ext
11137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11138 echo "${ECHO_T}$ac_header_preproc" >&6; }
11140 # So? What about this header?
11141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11142 yes:no: )
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11147 ac_header_preproc=yes
11149 no:yes:* )
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11164 esac
11165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170 eval "$as_ac_Header=\$ac_header_preproc"
11172 ac_res=`eval echo '${'$as_ac_Header'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11180 _ACEOF
11184 done
11188 for ac_header in sys/ptem.h
11190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196 cat >conftest.$ac_ext <<_ACEOF
11197 /* confdefs.h. */
11198 _ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #if defined HAVE_SYS_STREAM_H
11203 # include <sys/stream.h>
11204 #endif
11206 #include <$ac_header>
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_compile") 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest.$ac_objext; then
11225 eval "$as_ac_Header=yes"
11226 else
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 eval "$as_ac_Header=no"
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237 echo "${ECHO_T}$ac_res" >&6; }
11238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11241 _ACEOF
11245 done
11249 for ac_header in sys/sysctl.h
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #if defined HAVE_SYS_PARAM_H
11264 # include <sys/param.h>
11265 #endif
11267 #include <$ac_header>
11268 _ACEOF
11269 rm -f conftest.$ac_objext
11270 if { (ac_try="$ac_compile"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_compile") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } && {
11283 test -z "$ac_c_werror_flag" ||
11284 test ! -s conftest.err
11285 } && test -s conftest.$ac_objext; then
11286 eval "$as_ac_Header=yes"
11287 else
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 eval "$as_ac_Header=no"
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 ac_res=`eval echo '${'$as_ac_Header'}'`
11297 { echo "$as_me:$LINENO: result: $ac_res" >&5
11298 echo "${ECHO_T}$ac_res" >&6; }
11299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11300 cat >>confdefs.h <<_ACEOF
11301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11302 _ACEOF
11306 done
11310 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11311 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11319 #include <pthread.h>
11320 #include <pthread_np.h>
11322 main ()
11324 int i; i = 0;
11326 return 0;
11328 _ACEOF
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11346 { echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6; }
11348 cat >>confdefs.h <<\_ACEOF
11349 #define HAVE_PTHREAD_NP_H 1
11350 _ACEOF
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 { echo "$as_me:$LINENO: result: no" >&5
11357 echo "${ECHO_T}no" >&6; }
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 for ac_header in strings.h
11365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 ac_res=`eval echo '${'$as_ac_Header'}'`
11373 { echo "$as_me:$LINENO: result: $ac_res" >&5
11374 echo "${ECHO_T}$ac_res" >&6; }
11375 else
11376 # Is the header compilable?
11377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385 $ac_includes_default
11386 #include <$ac_header>
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (ac_try="$ac_compile"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_compile") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest.$ac_objext; then
11405 ac_header_compiler=yes
11406 else
11407 echo "$as_me: failed program was:" >&5
11408 sed 's/^/| /' conftest.$ac_ext >&5
11410 ac_header_compiler=no
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11415 echo "${ECHO_T}$ac_header_compiler" >&6; }
11417 # Is the header present?
11418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <$ac_header>
11427 _ACEOF
11428 if { (ac_try="$ac_cpp conftest.$ac_ext"
11429 case "(($ac_try" in
11430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11431 *) ac_try_echo=$ac_try;;
11432 esac
11433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11435 ac_status=$?
11436 grep -v '^ *+' conftest.er1 >conftest.err
11437 rm -f conftest.er1
11438 cat conftest.err >&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); } >/dev/null && {
11441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11442 test ! -s conftest.err
11443 }; then
11444 ac_header_preproc=yes
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 ac_header_preproc=no
11452 rm -f conftest.err conftest.$ac_ext
11453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11454 echo "${ECHO_T}$ac_header_preproc" >&6; }
11456 # So? What about this header?
11457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11458 yes:no: )
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11463 ac_header_preproc=yes
11465 no:yes:* )
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11480 esac
11481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 else
11486 eval "$as_ac_Header=\$ac_header_preproc"
11488 ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11494 cat >>confdefs.h <<_ACEOF
11495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11496 _ACEOF
11500 done
11502 if test "x$MACOSX" = "xyes"; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define NO_STRINGS_WITH_STRING_H 1
11505 _ACEOF
11507 else
11509 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11510 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11511 cppflags_save=$CPPFLAGS
11512 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h. */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11520 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11521 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11522 /* but don't do it on AIX 5.1 (Uribarri) */
11523 #endif
11524 #ifdef HAVE_XM_XM_H
11525 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11526 #endif
11527 #ifdef HAVE_STRING_H
11528 # include <string.h>
11529 #endif
11530 #if defined(HAVE_STRINGS_H)
11531 # include <strings.h>
11532 #endif
11535 main ()
11537 int i; i = 0;
11539 return 0;
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (ac_try="$ac_compile"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 { echo "$as_me:$LINENO: result: yes" >&5
11560 echo "${ECHO_T}yes" >&6; }
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 cat >>confdefs.h <<\_ACEOF
11566 #define NO_STRINGS_WITH_STRING_H 1
11567 _ACEOF
11569 { echo "$as_me:$LINENO: result: no" >&5
11570 echo "${ECHO_T}no" >&6; }
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 CPPFLAGS=$cppflags_save
11577 if test $ac_cv_c_compiler_gnu = yes; then
11578 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11579 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11580 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583 ac_pattern="Autoconf.*'x'"
11584 cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h. */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 #include <sgtty.h>
11591 Autoconf TIOCGETP
11592 _ACEOF
11593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11594 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11595 ac_cv_prog_gcc_traditional=yes
11596 else
11597 ac_cv_prog_gcc_traditional=no
11599 rm -f -r conftest*
11602 if test $ac_cv_prog_gcc_traditional = no; then
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 #include <termio.h>
11610 Autoconf TCGETA
11611 _ACEOF
11612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11613 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11614 ac_cv_prog_gcc_traditional=yes
11616 rm -f -r conftest*
11620 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11621 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11622 if test $ac_cv_prog_gcc_traditional = yes; then
11623 CC="$CC -traditional"
11627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11629 if test "${ac_cv_c_const+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h. */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11640 main ()
11642 /* FIXME: Include the comments suggested by Paul. */
11643 #ifndef __cplusplus
11644 /* Ultrix mips cc rejects this. */
11645 typedef int charset[2];
11646 const charset cs;
11647 /* SunOS 4.1.1 cc rejects this. */
11648 char const *const *pcpcc;
11649 char **ppc;
11650 /* NEC SVR4.0.2 mips cc rejects this. */
11651 struct point {int x, y;};
11652 static struct point const zero = {0,0};
11653 /* AIX XL C 1.02.0.0 rejects this.
11654 It does not let you subtract one const X* pointer from another in
11655 an arm of an if-expression whose if-part is not a constant
11656 expression */
11657 const char *g = "string";
11658 pcpcc = &g + (g ? g-g : 0);
11659 /* HPUX 7.0 cc rejects these. */
11660 ++pcpcc;
11661 ppc = (char**) pcpcc;
11662 pcpcc = (char const *const *) ppc;
11663 { /* SCO 3.2v4 cc rejects this. */
11664 char *t;
11665 char const *s = 0 ? (char *) 0 : (char const *) 0;
11667 *t++ = 0;
11668 if (s) return 0;
11670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11671 int x[] = {25, 17};
11672 const int *foo = &x[0];
11673 ++foo;
11675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11676 typedef const int *iptr;
11677 iptr p = 0;
11678 ++p;
11680 { /* AIX XL C 1.02.0.0 rejects this saying
11681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11682 struct s { int j; const int *ap[3]; };
11683 struct s *b; b->j = 5;
11685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11686 const int foo = 10;
11687 if (!foo) return 0;
11689 return !cs[0] && !zero.x;
11690 #endif
11693 return 0;
11695 _ACEOF
11696 rm -f conftest.$ac_objext
11697 if { (ac_try="$ac_compile"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701 esac
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_compile") 2>conftest.er1
11704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.$ac_objext; then
11713 ac_cv_c_const=yes
11714 else
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_cv_c_const=no
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11725 if test $ac_cv_c_const = no; then
11727 cat >>confdefs.h <<\_ACEOF
11728 #define const
11729 _ACEOF
11733 { echo "$as_me:$LINENO: checking for working volatile" >&5
11734 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11735 if test "${ac_cv_c_volatile+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11746 main ()
11749 volatile int x;
11750 int * volatile y = (int *) 0;
11751 return !x && !y;
11753 return 0;
11755 _ACEOF
11756 rm -f conftest.$ac_objext
11757 if { (ac_try="$ac_compile"
11758 case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761 esac
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_compile") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest.$ac_objext; then
11773 ac_cv_c_volatile=yes
11774 else
11775 echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11778 ac_cv_c_volatile=no
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11784 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11785 if test $ac_cv_c_volatile = no; then
11787 cat >>confdefs.h <<\_ACEOF
11788 #define volatile
11789 _ACEOF
11793 { echo "$as_me:$LINENO: checking for mode_t" >&5
11794 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11795 if test "${ac_cv_type_mode_t+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11805 typedef mode_t ac__type_new_;
11807 main ()
11809 if ((ac__type_new_ *) 0)
11810 return 0;
11811 if (sizeof (ac__type_new_))
11812 return 0;
11814 return 0;
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11822 esac
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11825 ac_status=$?
11826 grep -v '^ *+' conftest.er1 >conftest.err
11827 rm -f conftest.er1
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.$ac_objext; then
11834 ac_cv_type_mode_t=yes
11835 else
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_type_mode_t=no
11842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11845 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11846 if test $ac_cv_type_mode_t = yes; then
11848 else
11850 cat >>confdefs.h <<_ACEOF
11851 #define mode_t int
11852 _ACEOF
11856 { echo "$as_me:$LINENO: checking for off_t" >&5
11857 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11858 if test "${ac_cv_type_off_t+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11868 typedef off_t ac__type_new_;
11870 main ()
11872 if ((ac__type_new_ *) 0)
11873 return 0;
11874 if (sizeof (ac__type_new_))
11875 return 0;
11877 return 0;
11879 _ACEOF
11880 rm -f conftest.$ac_objext
11881 if { (ac_try="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
11897 ac_cv_type_off_t=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11902 ac_cv_type_off_t=no
11905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11908 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11909 if test $ac_cv_type_off_t = yes; then
11911 else
11913 cat >>confdefs.h <<_ACEOF
11914 #define off_t long int
11915 _ACEOF
11919 { echo "$as_me:$LINENO: checking for pid_t" >&5
11920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11921 if test "${ac_cv_type_pid_t+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11931 typedef pid_t ac__type_new_;
11933 main ()
11935 if ((ac__type_new_ *) 0)
11936 return 0;
11937 if (sizeof (ac__type_new_))
11938 return 0;
11940 return 0;
11942 _ACEOF
11943 rm -f conftest.$ac_objext
11944 if { (ac_try="$ac_compile"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948 esac
11949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_compile") 2>conftest.er1
11951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); } && {
11957 test -z "$ac_c_werror_flag" ||
11958 test ! -s conftest.err
11959 } && test -s conftest.$ac_objext; then
11960 ac_cv_type_pid_t=yes
11961 else
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11965 ac_cv_type_pid_t=no
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11971 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11972 if test $ac_cv_type_pid_t = yes; then
11974 else
11976 cat >>confdefs.h <<_ACEOF
11977 #define pid_t int
11978 _ACEOF
11982 { echo "$as_me:$LINENO: checking for size_t" >&5
11983 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11984 if test "${ac_cv_type_size_t+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987 cat >conftest.$ac_ext <<_ACEOF
11988 /* confdefs.h. */
11989 _ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11993 $ac_includes_default
11994 typedef size_t ac__type_new_;
11996 main ()
11998 if ((ac__type_new_ *) 0)
11999 return 0;
12000 if (sizeof (ac__type_new_))
12001 return 0;
12003 return 0;
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
12023 ac_cv_type_size_t=yes
12024 else
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_cv_type_size_t=no
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12034 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
12035 if test $ac_cv_type_size_t = yes; then
12037 else
12039 cat >>confdefs.h <<_ACEOF
12040 #define size_t unsigned int
12041 _ACEOF
12045 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12046 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
12047 if test "${ac_cv_type_uid_t+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h. */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 #include <sys/types.h>
12058 _ACEOF
12059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12060 $EGREP "uid_t" >/dev/null 2>&1; then
12061 ac_cv_type_uid_t=yes
12062 else
12063 ac_cv_type_uid_t=no
12065 rm -f -r conftest*
12068 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12069 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
12070 if test $ac_cv_type_uid_t = no; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define uid_t int
12074 _ACEOF
12077 cat >>confdefs.h <<\_ACEOF
12078 #define gid_t int
12079 _ACEOF
12083 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12084 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12085 if test "${ac_cv_header_time+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <sys/types.h>
12095 #include <sys/time.h>
12096 #include <time.h>
12099 main ()
12101 if ((struct tm *) 0)
12102 return 0;
12104 return 0;
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.$ac_objext; then
12124 ac_cv_header_time=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_cv_header_time=no
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12135 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12136 if test $ac_cv_header_time = yes; then
12138 cat >>confdefs.h <<\_ACEOF
12139 #define TIME_WITH_SYS_TIME 1
12140 _ACEOF
12144 { echo "$as_me:$LINENO: checking for ino_t" >&5
12145 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12146 if test "${ac_cv_type_ino_t+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12156 typedef ino_t ac__type_new_;
12158 main ()
12160 if ((ac__type_new_ *) 0)
12161 return 0;
12162 if (sizeof (ac__type_new_))
12163 return 0;
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_type_ino_t=yes
12186 else
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_type_ino_t=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12196 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12197 if test $ac_cv_type_ino_t = yes; then
12199 else
12201 cat >>confdefs.h <<_ACEOF
12202 #define ino_t long
12203 _ACEOF
12207 { echo "$as_me:$LINENO: checking for dev_t" >&5
12208 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12209 if test "${ac_cv_type_dev_t+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 cat >conftest.$ac_ext <<_ACEOF
12213 /* confdefs.h. */
12214 _ACEOF
12215 cat confdefs.h >>conftest.$ac_ext
12216 cat >>conftest.$ac_ext <<_ACEOF
12217 /* end confdefs.h. */
12218 $ac_includes_default
12219 typedef dev_t ac__type_new_;
12221 main ()
12223 if ((ac__type_new_ *) 0)
12224 return 0;
12225 if (sizeof (ac__type_new_))
12226 return 0;
12228 return 0;
12230 _ACEOF
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12248 ac_cv_type_dev_t=yes
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12253 ac_cv_type_dev_t=no
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12259 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12260 if test $ac_cv_type_dev_t = yes; then
12262 else
12264 cat >>confdefs.h <<_ACEOF
12265 #define dev_t unsigned
12266 _ACEOF
12271 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12272 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12273 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12274 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12275 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12276 else
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h. */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 #include <sys/types.h>
12285 #if STDC_HEADERS
12286 # include <stdlib.h>
12287 # include <stddef.h>
12288 #endif
12289 #ifdef HAVE_SYS_RESOURCE_H
12290 # include <sys/resource.h>
12291 #endif
12293 _ACEOF
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12296 ac_cv_type_rlim_t=yes
12297 else
12298 ac_cv_type_rlim_t=no
12300 rm -f -r conftest*
12302 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12303 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12305 if test $ac_cv_type_rlim_t = no; then
12306 cat >> confdefs.h <<\EOF
12307 #define rlim_t unsigned long
12311 { echo "$as_me:$LINENO: checking for stack_t" >&5
12312 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12313 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12314 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12315 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12316 else
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 #include <sys/types.h>
12325 #if STDC_HEADERS
12326 # include <stdlib.h>
12327 # include <stddef.h>
12328 #endif
12329 #include <signal.h>
12331 _ACEOF
12332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12333 $EGREP "stack_t" >/dev/null 2>&1; then
12334 ac_cv_type_stack_t=yes
12335 else
12336 ac_cv_type_stack_t=no
12338 rm -f -r conftest*
12340 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12341 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12343 if test $ac_cv_type_stack_t = no; then
12344 cat >> confdefs.h <<\EOF
12345 #define stack_t struct sigaltstack
12349 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12350 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12351 cat >conftest.$ac_ext <<_ACEOF
12352 /* confdefs.h. */
12353 _ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12358 #include <sys/types.h>
12359 #if STDC_HEADERS
12360 # include <stdlib.h>
12361 # include <stddef.h>
12362 #endif
12363 #include <signal.h>
12364 #include "confdefs.h"
12367 main ()
12369 stack_t sigstk; sigstk.ss_base = 0;
12371 return 0;
12373 _ACEOF
12374 rm -f conftest.$ac_objext
12375 if { (ac_try="$ac_compile"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_compile") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && {
12388 test -z "$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 } && test -s conftest.$ac_objext; then
12391 { echo "$as_me:$LINENO: result: yes" >&5
12392 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_SS_BASE 1
12394 _ACEOF
12396 else
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 { echo "$as_me:$LINENO: result: no" >&5
12401 echo "${ECHO_T}no" >&6; }
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 olibs="$LIBS"
12407 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12408 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12410 # Check whether --with-tlib was given.
12411 if test "${with_tlib+set}" = set; then
12412 withval=$with_tlib;
12415 if test -n "$with_tlib"; then
12416 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12417 echo "${ECHO_T}$with_tlib" >&6; }
12418 LIBS="$LIBS -l$with_tlib"
12419 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12420 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12421 cat >conftest.$ac_ext <<_ACEOF
12422 /* confdefs.h. */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h. */
12429 main ()
12433 return 0;
12435 _ACEOF
12436 rm -f conftest.$ac_objext conftest$ac_exeext
12437 if { (ac_try="$ac_link"
12438 case "(($ac_try" in
12439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12440 *) ac_try_echo=$ac_try;;
12441 esac
12442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12443 (eval "$ac_link") 2>conftest.er1
12444 ac_status=$?
12445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } && {
12450 test -z "$ac_c_werror_flag" ||
12451 test ! -s conftest.err
12452 } && test -s conftest$ac_exeext &&
12453 $as_test_x conftest$ac_exeext; then
12454 { echo "$as_me:$LINENO: result: OK" >&5
12455 echo "${ECHO_T}OK" >&6; }
12456 else
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 { { echo "$as_me:$LINENO: error: FAILED" >&5
12461 echo "$as_me: error: FAILED" >&2;}
12462 { (exit 1); exit 1; }; }
12465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12466 conftest$ac_exeext conftest.$ac_ext
12467 olibs="$LIBS"
12468 else
12469 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12470 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12471 case "`uname -s 2>/dev/null`" in
12472 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12473 *) tlibs="ncurses termlib termcap curses";;
12474 esac
12475 for libname in $tlibs; do
12477 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12478 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12479 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12480 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483 ac_check_lib_save_LIBS=$LIBS
12484 LIBS="-l${libname} $LIBS"
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12492 /* Override any GCC internal prototype to avoid an error.
12493 Use char because int might match the return type of a GCC
12494 builtin and then its argument prototype would still apply. */
12495 #ifdef __cplusplus
12496 extern "C"
12497 #endif
12498 char tgetent ();
12500 main ()
12502 return tgetent ();
12504 return 0;
12506 _ACEOF
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (ac_try="$ac_link"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_link") 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest$ac_exeext &&
12524 $as_test_x conftest$ac_exeext; then
12525 eval "$as_ac_Lib=yes"
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 eval "$as_ac_Lib=no"
12533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12534 conftest$ac_exeext conftest.$ac_ext
12535 LIBS=$ac_check_lib_save_LIBS
12537 ac_res=`eval echo '${'$as_ac_Lib'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12540 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12543 _ACEOF
12545 LIBS="-l${libname} $LIBS"
12549 if test "x$olibs" != "x$LIBS"; then
12550 if test "$cross_compiling" = yes; then
12551 res="FAIL"
12552 else
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 #ifdef HAVE_TERMCAP_H
12561 # include <termcap.h>
12562 #endif
12563 #if STDC_HEADERS
12564 # include <stdlib.h>
12565 # include <stddef.h>
12566 #endif
12567 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12568 _ACEOF
12569 rm -f conftest$ac_exeext
12570 if { (ac_try="$ac_link"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_link") 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12583 esac
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 res="OK"
12590 else
12591 echo "$as_me: program exited with status $ac_status" >&5
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ( exit $ac_status )
12596 res="FAIL"
12598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12602 if test "$res" = "OK"; then
12603 break
12605 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12606 echo "${ECHO_T}$libname library is not usable" >&6; }
12607 LIBS="$olibs"
12609 done
12610 if test "x$olibs" = "x$LIBS"; then
12611 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12612 echo "${ECHO_T}no terminal library found" >&6; }
12616 if test "x$olibs" = "x$LIBS"; then
12617 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12618 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12619 cat >conftest.$ac_ext <<_ACEOF
12620 /* confdefs.h. */
12621 _ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12627 main ()
12629 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12631 return 0;
12633 _ACEOF
12634 rm -f conftest.$ac_objext conftest$ac_exeext
12635 if { (ac_try="$ac_link"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_link") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest$ac_exeext &&
12651 $as_test_x conftest$ac_exeext; then
12652 { echo "$as_me:$LINENO: result: yes" >&5
12653 echo "${ECHO_T}yes" >&6; }
12654 else
12655 echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12658 { { echo "$as_me:$LINENO: error: NOT FOUND!
12659 You need to install a terminal library; for example ncurses.
12660 Or specify the name of the library with --with-tlib." >&5
12661 echo "$as_me: error: NOT FOUND!
12662 You need to install a terminal library; for example ncurses.
12663 Or specify the name of the library with --with-tlib." >&2;}
12664 { (exit 1); exit 1; }; }
12667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12668 conftest$ac_exeext conftest.$ac_ext
12671 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12672 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12673 if test "${vim_cv_terminfo+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12677 if test "$cross_compiling" = yes; then
12679 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12680 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12681 { (exit 1); exit 1; }; }
12683 else
12684 cat >conftest.$ac_ext <<_ACEOF
12686 #include "confdefs.h"
12687 #ifdef HAVE_TERMCAP_H
12688 # include <termcap.h>
12689 #endif
12690 #ifdef HAVE_STRING_H
12691 # include <string.h>
12692 #endif
12693 #if STDC_HEADERS
12694 # include <stdlib.h>
12695 # include <stddef.h>
12696 #endif
12697 main()
12698 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12700 _ACEOF
12701 rm -f conftest$ac_exeext
12702 if { (ac_try="$ac_link"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_link") 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12712 { (case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_try") 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12722 vim_cv_terminfo=no
12724 else
12725 echo "$as_me: program exited with status $ac_status" >&5
12726 echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12729 ( exit $ac_status )
12731 vim_cv_terminfo=yes
12734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12740 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12741 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12743 if test "x$vim_cv_terminfo" = "xyes" ; then
12744 cat >>confdefs.h <<\_ACEOF
12745 #define TERMINFO 1
12746 _ACEOF
12750 if test "x$olibs" != "x$LIBS"; then
12751 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12752 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12753 if test "${vim_cv_tgent+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 else
12757 if test "$cross_compiling" = yes; then
12759 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12760 echo "$as_me: error: failed to compile test program." >&2;}
12761 { (exit 1); exit 1; }; }
12763 else
12764 cat >conftest.$ac_ext <<_ACEOF
12766 #include "confdefs.h"
12767 #ifdef HAVE_TERMCAP_H
12768 # include <termcap.h>
12769 #endif
12770 #if STDC_HEADERS
12771 # include <stdlib.h>
12772 # include <stddef.h>
12773 #endif
12774 main()
12775 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12777 _ACEOF
12778 rm -f conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>&5
12786 ac_status=$?
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12792 esac
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12799 vim_cv_tgent=zero
12801 else
12802 echo "$as_me: program exited with status $ac_status" >&5
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12806 ( exit $ac_status )
12808 vim_cv_tgent=non-zero
12811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12817 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12818 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12820 if test "x$vim_cv_tgent" = "xzero" ; then
12821 cat >>confdefs.h <<\_ACEOF
12822 #define TGETENT_ZERO_ERR 0
12823 _ACEOF
12828 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12829 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12830 cat >conftest.$ac_ext <<_ACEOF
12831 /* confdefs.h. */
12832 _ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12837 #ifdef HAVE_TERMCAP_H
12838 # include <termcap.h>
12839 #endif
12842 main ()
12844 ospeed = 20000
12846 return 0;
12848 _ACEOF
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (ac_try="$ac_link"
12851 case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_link") 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest$ac_exeext &&
12866 $as_test_x conftest$ac_exeext; then
12867 { echo "$as_me:$LINENO: result: yes" >&5
12868 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12869 #define HAVE_OSPEED 1
12870 _ACEOF
12872 else
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 { echo "$as_me:$LINENO: result: no" >&5
12877 echo "${ECHO_T}no" >&6; }
12878 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12879 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12887 #ifdef HAVE_TERMCAP_H
12888 # include <termcap.h>
12889 #endif
12890 extern short ospeed;
12893 main ()
12895 ospeed = 20000
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (ac_try="$ac_link"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_link") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } && {
12914 test -z "$ac_c_werror_flag" ||
12915 test ! -s conftest.err
12916 } && test -s conftest$ac_exeext &&
12917 $as_test_x conftest$ac_exeext; then
12918 { echo "$as_me:$LINENO: result: yes" >&5
12919 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12920 #define OSPEED_EXTERN 1
12921 _ACEOF
12923 else
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12932 conftest$ac_exeext conftest.$ac_ext
12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12937 conftest$ac_exeext conftest.$ac_ext
12939 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12940 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h. */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 #ifdef HAVE_TERMCAP_H
12949 # include <termcap.h>
12950 #endif
12953 main ()
12955 if (UP == 0 && BC == 0) PC = 1
12957 return 0;
12959 _ACEOF
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } && {
12974 test -z "$ac_c_werror_flag" ||
12975 test ! -s conftest.err
12976 } && test -s conftest$ac_exeext &&
12977 $as_test_x conftest$ac_exeext; then
12978 { echo "$as_me:$LINENO: result: yes" >&5
12979 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_UP_BC_PC 1
12981 _ACEOF
12983 else
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12987 { echo "$as_me:$LINENO: result: no" >&5
12988 echo "${ECHO_T}no" >&6; }
12989 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12990 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12991 cat >conftest.$ac_ext <<_ACEOF
12992 /* confdefs.h. */
12993 _ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12998 #ifdef HAVE_TERMCAP_H
12999 # include <termcap.h>
13000 #endif
13001 extern char *UP, *BC, PC;
13004 main ()
13006 if (UP == 0 && BC == 0) PC = 1
13008 return 0;
13010 _ACEOF
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (ac_try="$ac_link"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_link") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } && {
13025 test -z "$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13027 } && test -s conftest$ac_exeext &&
13028 $as_test_x conftest$ac_exeext; then
13029 { echo "$as_me:$LINENO: result: yes" >&5
13030 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13031 #define UP_BC_PC_EXTERN 1
13032 _ACEOF
13034 else
13035 echo "$as_me: failed program was:" >&5
13036 sed 's/^/| /' conftest.$ac_ext >&5
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043 conftest$ac_exeext conftest.$ac_ext
13047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13048 conftest$ac_exeext conftest.$ac_ext
13050 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13051 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h. */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13059 #ifdef HAVE_TERMCAP_H
13060 # include <termcap.h>
13061 #endif
13064 main ()
13066 extern int xx(); tputs("test", 1, (outfuntype)xx)
13068 return 0;
13070 _ACEOF
13071 rm -f conftest.$ac_objext
13072 if { (ac_try="$ac_compile"
13073 case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076 esac
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_compile") 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } && {
13085 test -z "$ac_c_werror_flag" ||
13086 test ! -s conftest.err
13087 } && test -s conftest.$ac_objext; then
13088 { echo "$as_me:$LINENO: result: yes" >&5
13089 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_OUTFUNTYPE 1
13091 _ACEOF
13093 else
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 { echo "$as_me:$LINENO: result: no" >&5
13098 echo "${ECHO_T}no" >&6; }
13101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13104 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 #include <sys/types.h>
13113 #include <sys/time.h>
13114 #include <sys/select.h>
13116 main ()
13120 return 0;
13122 _ACEOF
13123 rm -f conftest.$ac_objext
13124 if { (ac_try="$ac_compile"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_compile") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest.$ac_objext; then
13140 { echo "$as_me:$LINENO: result: yes" >&5
13141 echo "${ECHO_T}yes" >&6; }
13142 cat >>confdefs.h <<\_ACEOF
13143 #define SYS_SELECT_WITH_SYS_TIME 1
13144 _ACEOF
13146 else
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13157 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13158 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13159 if test -r /dev/ptc; then
13160 cat >>confdefs.h <<\_ACEOF
13161 #define HAVE_DEV_PTC 1
13162 _ACEOF
13164 { echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6; }
13166 else
13167 { echo "$as_me:$LINENO: result: no" >&5
13168 echo "${ECHO_T}no" >&6; }
13171 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13172 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13173 if test -c /dev/ptmx ; then
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h. */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13182 main ()
13184 ptsname(0);grantpt(0);unlockpt(0);
13186 return 0;
13188 _ACEOF
13189 rm -f conftest.$ac_objext conftest$ac_exeext
13190 if { (ac_try="$ac_link"
13191 case "(($ac_try" in
13192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13194 esac
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_link") 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } && {
13203 test -z "$ac_c_werror_flag" ||
13204 test ! -s conftest.err
13205 } && test -s conftest$ac_exeext &&
13206 $as_test_x conftest$ac_exeext; then
13207 { echo "$as_me:$LINENO: result: yes" >&5
13208 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_SVR4_PTYS 1
13210 _ACEOF
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13216 { echo "$as_me:$LINENO: result: no" >&5
13217 echo "${ECHO_T}no" >&6; }
13220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13221 conftest$ac_exeext conftest.$ac_ext
13222 else
13223 { echo "$as_me:$LINENO: result: no" >&5
13224 echo "${ECHO_T}no" >&6; }
13227 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13228 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13229 if test -d /dev/ptym ; then
13230 pdir='/dev/ptym'
13231 else
13232 pdir='/dev'
13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13240 #ifdef M_UNIX
13241 yes;
13242 #endif
13244 _ACEOF
13245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13246 $EGREP "yes" >/dev/null 2>&1; then
13247 ptys=`echo /dev/ptyp??`
13248 else
13249 ptys=`echo $pdir/pty??`
13251 rm -f -r conftest*
13253 if test "$ptys" != "$pdir/pty??" ; then
13254 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13255 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13256 cat >>confdefs.h <<_ACEOF
13257 #define PTYRANGE0 "$p0"
13258 _ACEOF
13260 cat >>confdefs.h <<_ACEOF
13261 #define PTYRANGE1 "$p1"
13262 _ACEOF
13264 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13265 echo "${ECHO_T}$p0 / $p1" >&6; }
13266 else
13267 { echo "$as_me:$LINENO: result: don't know" >&5
13268 echo "${ECHO_T}don't know" >&6; }
13271 rm -f conftest_grp
13272 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13273 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13274 if test "${vim_cv_tty_group+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13278 if test "$cross_compiling" = yes; then
13280 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13281 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13282 { (exit 1); exit 1; }; }
13284 else
13285 cat >conftest.$ac_ext <<_ACEOF
13287 #include "confdefs.h"
13288 #include <sys/types.h>
13289 #if STDC_HEADERS
13290 # include <stdlib.h>
13291 # include <stddef.h>
13292 #endif
13293 #ifdef HAVE_UNISTD_H
13294 #include <unistd.h>
13295 #endif
13296 #include <sys/stat.h>
13297 #include <stdio.h>
13298 main()
13300 struct stat sb;
13301 char *x,*ttyname();
13302 int om, m;
13303 FILE *fp;
13305 if (!(x = ttyname(0))) exit(1);
13306 if (stat(x, &sb)) exit(1);
13307 om = sb.st_mode;
13308 if (om & 002) exit(0);
13309 m = system("mesg y");
13310 if (m == -1 || m == 127) exit(1);
13311 if (stat(x, &sb)) exit(1);
13312 m = sb.st_mode;
13313 if (chmod(x, om)) exit(1);
13314 if (m & 002) exit(0);
13315 if (sb.st_gid == getgid()) exit(1);
13316 if (!(fp=fopen("conftest_grp", "w")))
13317 exit(1);
13318 fprintf(fp, "%d\n", sb.st_gid);
13319 fclose(fp);
13320 exit(0);
13323 _ACEOF
13324 rm -f conftest$ac_exeext
13325 if { (ac_try="$ac_link"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_link") 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13345 if test -f conftest_grp; then
13346 vim_cv_tty_group=`cat conftest_grp`
13347 if test "x$vim_cv_tty_mode" = "x" ; then
13348 vim_cv_tty_mode=0620
13350 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13351 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13352 else
13353 vim_cv_tty_group=world
13354 { echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13355 echo "${ECHO_T}ptys are world accessible" >&6; }
13358 else
13359 echo "$as_me: program exited with status $ac_status" >&5
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13363 ( exit $ac_status )
13365 vim_cv_tty_group=world
13366 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13367 echo "${ECHO_T}can't determine - assume ptys are world accessible" >&6; }
13370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13376 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13377 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13378 rm -f conftest_grp
13380 if test "x$vim_cv_tty_group" != "xworld" ; then
13381 cat >>confdefs.h <<_ACEOF
13382 #define PTYGROUP $vim_cv_tty_group
13383 _ACEOF
13385 if test "x$vim_cv_tty_mode" = "x" ; then
13386 { { 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
13387 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;}
13388 { (exit 1); exit 1; }; }
13389 else
13390 cat >>confdefs.h <<\_ACEOF
13391 #define PTYMODE 0620
13392 _ACEOF
13398 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13399 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13400 if test "${ac_cv_type_signal+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 #include <sys/types.h>
13410 #include <signal.h>
13413 main ()
13415 return *(signal (0, 0)) (0) == 1;
13417 return 0;
13419 _ACEOF
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425 esac
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } && {
13434 test -z "$ac_c_werror_flag" ||
13435 test ! -s conftest.err
13436 } && test -s conftest.$ac_objext; then
13437 ac_cv_type_signal=int
13438 else
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ac_cv_type_signal=void
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13448 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13450 cat >>confdefs.h <<_ACEOF
13451 #define RETSIGTYPE $ac_cv_type_signal
13452 _ACEOF
13456 if test $ac_cv_type_signal = void; then
13457 cat >>confdefs.h <<\_ACEOF
13458 #define SIGRETURN return
13459 _ACEOF
13461 else
13462 cat >>confdefs.h <<\_ACEOF
13463 #define SIGRETURN return 0
13464 _ACEOF
13468 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13469 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13470 cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h. */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13477 #include <signal.h>
13478 test_sig()
13480 struct sigcontext *scont;
13481 scont = (struct sigcontext *)0;
13482 return 1;
13485 main ()
13489 return 0;
13491 _ACEOF
13492 rm -f conftest.$ac_objext
13493 if { (ac_try="$ac_compile"
13494 case "(($ac_try" in
13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496 *) ac_try_echo=$ac_try;;
13497 esac
13498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13499 (eval "$ac_compile") 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest.$ac_objext; then
13509 { echo "$as_me:$LINENO: result: yes" >&5
13510 echo "${ECHO_T}yes" >&6; }
13511 cat >>confdefs.h <<\_ACEOF
13512 #define HAVE_SIGCONTEXT 1
13513 _ACEOF
13515 else
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.$ac_ext >&5
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13526 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13527 if test "${vim_cv_getcwd_broken+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13531 if test "$cross_compiling" = yes; then
13533 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13534 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13535 { (exit 1); exit 1; }; }
13537 else
13538 cat >conftest.$ac_ext <<_ACEOF
13540 #include "confdefs.h"
13541 #ifdef HAVE_UNISTD_H
13542 #include <unistd.h>
13543 #endif
13544 char *dagger[] = { "IFS=pwd", 0 };
13545 main()
13547 char buffer[500];
13548 extern char **environ;
13549 environ = dagger;
13550 return getcwd(buffer, 500) ? 0 : 1;
13553 _ACEOF
13554 rm -f conftest$ac_exeext
13555 if { (ac_try="$ac_link"
13556 case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559 esac
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_link") 2>&5
13562 ac_status=$?
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13565 { (case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568 esac
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_try") 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13575 vim_cv_getcwd_broken=no
13577 else
13578 echo "$as_me: program exited with status $ac_status" >&5
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 ( exit $ac_status )
13584 vim_cv_getcwd_broken=yes
13587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13594 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13596 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13597 cat >>confdefs.h <<\_ACEOF
13598 #define BAD_GETCWD 1
13599 _ACEOF
13648 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
13649 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13650 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
13651 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13652 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13653 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13654 usleep utime utimes
13656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13670 #define $ac_func innocuous_$ac_func
13672 /* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char $ac_func (); below.
13674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13675 <limits.h> exists even on freestanding compilers. */
13677 #ifdef __STDC__
13678 # include <limits.h>
13679 #else
13680 # include <assert.h>
13681 #endif
13683 #undef $ac_func
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13688 #ifdef __cplusplus
13689 extern "C"
13690 #endif
13691 char $ac_func ();
13692 /* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695 #if defined __stub_$ac_func || defined __stub___$ac_func
13696 choke me
13697 #endif
13700 main ()
13702 return $ac_func ();
13704 return 0;
13706 _ACEOF
13707 rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (ac_try="$ac_link"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712 esac
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_link") 2>conftest.er1
13715 ac_status=$?
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && {
13721 test -z "$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13723 } && test -s conftest$ac_exeext &&
13724 $as_test_x conftest$ac_exeext; then
13725 eval "$as_ac_var=yes"
13726 else
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 eval "$as_ac_var=no"
13733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13734 conftest$ac_exeext conftest.$ac_ext
13736 ac_res=`eval echo '${'$as_ac_var'}'`
13737 { echo "$as_me:$LINENO: result: $ac_res" >&5
13738 echo "${ECHO_T}$ac_res" >&6; }
13739 if test `eval echo '${'$as_ac_var'}'` = yes; then
13740 cat >>confdefs.h <<_ACEOF
13741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13742 _ACEOF
13745 done
13747 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13748 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
13749 if test "${ac_cv_sys_largefile_source+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 while :; do
13753 cat >conftest.$ac_ext <<_ACEOF
13754 /* confdefs.h. */
13755 _ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <stdio.h>
13761 main ()
13763 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13765 return 0;
13767 _ACEOF
13768 rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (ac_try="$ac_link"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest$ac_exeext &&
13785 $as_test_x conftest$ac_exeext; then
13786 ac_cv_sys_largefile_source=no; break
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13795 conftest$ac_exeext conftest.$ac_ext
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 #define _LARGEFILE_SOURCE 1
13803 #include <stdio.h>
13805 main ()
13807 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext conftest$ac_exeext
13813 if { (ac_try="$ac_link"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_link") 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && {
13826 test -z "$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13828 } && test -s conftest$ac_exeext &&
13829 $as_test_x conftest$ac_exeext; then
13830 ac_cv_sys_largefile_source=1; break
13831 else
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13839 conftest$ac_exeext conftest.$ac_ext
13840 ac_cv_sys_largefile_source=unknown
13841 break
13842 done
13844 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13845 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
13846 case $ac_cv_sys_largefile_source in #(
13847 no | unknown) ;;
13849 cat >>confdefs.h <<_ACEOF
13850 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13851 _ACEOF
13853 esac
13854 rm -f -r conftest*
13856 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13857 # in glibc 2.1.3, but that breaks too many other things.
13858 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13859 if test $ac_cv_sys_largefile_source != unknown; then
13861 cat >>confdefs.h <<\_ACEOF
13862 #define HAVE_FSEEKO 1
13863 _ACEOF
13868 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13869 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 #include <sys/types.h>
13877 #include <sys/stat.h>
13879 main ()
13881 struct stat st;
13882 int n;
13884 stat("/", &st);
13885 n = (int)st.st_blksize;
13887 return 0;
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_compile") 2>conftest.er1
13898 ac_status=$?
13899 grep -v '^ *+' conftest.er1 >conftest.err
13900 rm -f conftest.er1
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest.$ac_objext; then
13907 { echo "$as_me:$LINENO: result: yes" >&5
13908 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13909 #define HAVE_ST_BLKSIZE 1
13910 _ACEOF
13912 else
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13916 { echo "$as_me:$LINENO: result: no" >&5
13917 echo "${ECHO_T}no" >&6; }
13920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13922 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13923 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13924 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 else
13928 if test "$cross_compiling" = yes; then
13930 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13931 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13932 { (exit 1); exit 1; }; }
13934 else
13935 cat >conftest.$ac_ext <<_ACEOF
13937 #include "confdefs.h"
13938 #if STDC_HEADERS
13939 # include <stdlib.h>
13940 # include <stddef.h>
13941 #endif
13942 #include <sys/types.h>
13943 #include <sys/stat.h>
13944 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13946 _ACEOF
13947 rm -f conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13952 esac
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_link") 2>&5
13955 ac_status=$?
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13958 { (case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_try") 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13968 vim_cv_stat_ignores_slash=yes
13970 else
13971 echo "$as_me: program exited with status $ac_status" >&5
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ( exit $ac_status )
13977 vim_cv_stat_ignores_slash=no
13980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13986 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13987 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13989 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define STAT_IGNORES_SLASH 1
13992 _ACEOF
13996 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13997 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13998 save_LIBS="$LIBS"
13999 LIBS="$LIBS -liconv"
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 #ifdef HAVE_ICONV_H
14008 # include <iconv.h>
14009 #endif
14012 main ()
14014 iconv_open("fr", "to");
14016 return 0;
14018 _ACEOF
14019 rm -f conftest.$ac_objext conftest$ac_exeext
14020 if { (ac_try="$ac_link"
14021 case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024 esac
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_link") 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest$ac_exeext &&
14036 $as_test_x conftest$ac_exeext; then
14037 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14038 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14039 #define HAVE_ICONV 1
14040 _ACEOF
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 LIBS="$save_LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 #ifdef HAVE_ICONV_H
14055 # include <iconv.h>
14056 #endif
14059 main ()
14061 iconv_open("fr", "to");
14063 return 0;
14065 _ACEOF
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest$ac_exeext &&
14083 $as_test_x conftest$ac_exeext; then
14084 { echo "$as_me:$LINENO: result: yes" >&5
14085 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_ICONV 1
14087 _ACEOF
14089 else
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 { echo "$as_me:$LINENO: result: no" >&5
14094 echo "${ECHO_T}no" >&6; }
14097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14098 conftest$ac_exeext conftest.$ac_ext
14101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14102 conftest$ac_exeext conftest.$ac_ext
14105 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14106 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
14107 cat >conftest.$ac_ext <<_ACEOF
14108 /* confdefs.h. */
14109 _ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14114 #ifdef HAVE_LANGINFO_H
14115 # include <langinfo.h>
14116 #endif
14119 main ()
14121 char *cs = nl_langinfo(CODESET);
14123 return 0;
14125 _ACEOF
14126 rm -f conftest.$ac_objext conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131 esac
14132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_link") 2>conftest.er1
14134 ac_status=$?
14135 grep -v '^ *+' conftest.er1 >conftest.err
14136 rm -f conftest.er1
14137 cat conftest.err >&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && {
14140 test -z "$ac_c_werror_flag" ||
14141 test ! -s conftest.err
14142 } && test -s conftest$ac_exeext &&
14143 $as_test_x conftest$ac_exeext; then
14144 { echo "$as_me:$LINENO: result: yes" >&5
14145 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_NL_LANGINFO_CODESET 1
14147 _ACEOF
14149 else
14150 echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14153 { echo "$as_me:$LINENO: result: no" >&5
14154 echo "${ECHO_T}no" >&6; }
14157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14158 conftest$ac_exeext conftest.$ac_ext
14161 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14162 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
14163 if test "${ac_cv_lib_m_strtod+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166 ac_check_lib_save_LIBS=$LIBS
14167 LIBS="-lm $LIBS"
14168 cat >conftest.$ac_ext <<_ACEOF
14169 /* confdefs.h. */
14170 _ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14175 /* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14178 #ifdef __cplusplus
14179 extern "C"
14180 #endif
14181 char strtod ();
14183 main ()
14185 return strtod ();
14187 return 0;
14189 _ACEOF
14190 rm -f conftest.$ac_objext conftest$ac_exeext
14191 if { (ac_try="$ac_link"
14192 case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14195 esac
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_link") 2>conftest.er1
14198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } && {
14204 test -z "$ac_c_werror_flag" ||
14205 test ! -s conftest.err
14206 } && test -s conftest$ac_exeext &&
14207 $as_test_x conftest$ac_exeext; then
14208 ac_cv_lib_m_strtod=yes
14209 else
14210 echo "$as_me: failed program was:" >&5
14211 sed 's/^/| /' conftest.$ac_ext >&5
14213 ac_cv_lib_m_strtod=no
14216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14217 conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14220 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14221 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14222 if test $ac_cv_lib_m_strtod = yes; then
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_LIBM 1
14225 _ACEOF
14227 LIBS="-lm $LIBS"
14231 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14232 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 #ifdef HAVE_MATH_H
14241 # include <math.h>
14242 #endif
14243 #if STDC_HEADERS
14244 # include <stdlib.h>
14245 # include <stddef.h>
14246 #endif
14249 main ()
14251 char *s; double d;
14252 d = strtod("1.1", &s);
14253 d = fabs(1.11);
14254 d = ceil(1.11);
14255 d = floor(1.11);
14256 d = log10(1.11);
14257 d = pow(1.11, 2.22);
14258 d = sqrt(1.11);
14259 d = sin(1.11);
14260 d = cos(1.11);
14261 d = atan(1.11);
14264 return 0;
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_link") 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } && {
14281 test -z "$ac_c_werror_flag" ||
14282 test ! -s conftest.err
14283 } && test -s conftest$ac_exeext &&
14284 $as_test_x conftest$ac_exeext; then
14285 { echo "$as_me:$LINENO: result: yes" >&5
14286 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14287 #define HAVE_FLOAT_FUNCS 1
14288 _ACEOF
14290 else
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14294 { echo "$as_me:$LINENO: result: no" >&5
14295 echo "${ECHO_T}no" >&6; }
14298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14299 conftest$ac_exeext conftest.$ac_ext
14301 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14302 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14303 # Check whether --enable-acl was given.
14304 if test "${enable_acl+set}" = set; then
14305 enableval=$enable_acl;
14306 else
14307 enable_acl="yes"
14310 if test "$enable_acl" = "yes"; then
14311 { echo "$as_me:$LINENO: result: no" >&5
14312 echo "${ECHO_T}no" >&6; }
14313 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14314 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14315 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14316 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 else
14318 ac_check_lib_save_LIBS=$LIBS
14319 LIBS="-lposix1e $LIBS"
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 char acl_get_file ();
14335 main ()
14337 return acl_get_file ();
14339 return 0;
14341 _ACEOF
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (ac_try="$ac_link"
14344 case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_link") 2>conftest.er1
14350 ac_status=$?
14351 grep -v '^ *+' conftest.er1 >conftest.err
14352 rm -f conftest.er1
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 } && test -s conftest$ac_exeext &&
14359 $as_test_x conftest$ac_exeext; then
14360 ac_cv_lib_posix1e_acl_get_file=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14365 ac_cv_lib_posix1e_acl_get_file=no
14368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14369 conftest$ac_exeext conftest.$ac_ext
14370 LIBS=$ac_check_lib_save_LIBS
14372 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14373 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14374 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14375 LIBS="$LIBS -lposix1e"
14376 else
14377 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14378 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14379 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382 ac_check_lib_save_LIBS=$LIBS
14383 LIBS="-lacl $LIBS"
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14394 #ifdef __cplusplus
14395 extern "C"
14396 #endif
14397 char acl_get_file ();
14399 main ()
14401 return acl_get_file ();
14403 return 0;
14405 _ACEOF
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_link") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest$ac_exeext &&
14423 $as_test_x conftest$ac_exeext; then
14424 ac_cv_lib_acl_acl_get_file=yes
14425 else
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 ac_cv_lib_acl_acl_get_file=no
14432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14433 conftest$ac_exeext conftest.$ac_ext
14434 LIBS=$ac_check_lib_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14437 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14438 if test $ac_cv_lib_acl_acl_get_file = yes; then
14439 LIBS="$LIBS -lacl"
14440 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14441 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14442 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445 ac_check_lib_save_LIBS=$LIBS
14446 LIBS="-lattr $LIBS"
14447 cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h. */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14454 /* Override any GCC internal prototype to avoid an error.
14455 Use char because int might match the return type of a GCC
14456 builtin and then its argument prototype would still apply. */
14457 #ifdef __cplusplus
14458 extern "C"
14459 #endif
14460 char fgetxattr ();
14462 main ()
14464 return fgetxattr ();
14466 return 0;
14468 _ACEOF
14469 rm -f conftest.$ac_objext conftest$ac_exeext
14470 if { (ac_try="$ac_link"
14471 case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14474 esac
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_link") 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } && {
14483 test -z "$ac_c_werror_flag" ||
14484 test ! -s conftest.err
14485 } && test -s conftest$ac_exeext &&
14486 $as_test_x conftest$ac_exeext; then
14487 ac_cv_lib_attr_fgetxattr=yes
14488 else
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_cv_lib_attr_fgetxattr=no
14495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14496 conftest$ac_exeext conftest.$ac_ext
14497 LIBS=$ac_check_lib_save_LIBS
14499 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14500 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14501 if test $ac_cv_lib_attr_fgetxattr = yes; then
14502 LIBS="$LIBS -lattr"
14510 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14511 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14512 cat >conftest.$ac_ext <<_ACEOF
14513 /* confdefs.h. */
14514 _ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 #include <sys/types.h>
14520 #ifdef HAVE_SYS_ACL_H
14521 # include <sys/acl.h>
14522 #endif
14523 acl_t acl;
14525 main ()
14527 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14528 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14529 acl_free(acl);
14531 return 0;
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } && {
14548 test -z "$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14550 } && test -s conftest$ac_exeext &&
14551 $as_test_x conftest$ac_exeext; then
14552 { echo "$as_me:$LINENO: result: yes" >&5
14553 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14554 #define HAVE_POSIX_ACL 1
14555 _ACEOF
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 { echo "$as_me:$LINENO: result: no" >&5
14562 echo "${ECHO_T}no" >&6; }
14565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14566 conftest$ac_exeext conftest.$ac_ext
14568 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14569 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14570 cat >conftest.$ac_ext <<_ACEOF
14571 /* confdefs.h. */
14572 _ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14577 #ifdef HAVE_SYS_ACL_H
14578 # include <sys/acl.h>
14579 #endif
14581 main ()
14583 acl("foo", GETACLCNT, 0, NULL);
14586 return 0;
14588 _ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593 *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596 (eval "$ac_link") 2>conftest.er1
14597 ac_status=$?
14598 grep -v '^ *+' conftest.er1 >conftest.err
14599 rm -f conftest.er1
14600 cat conftest.err >&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); } && {
14603 test -z "$ac_c_werror_flag" ||
14604 test ! -s conftest.err
14605 } && test -s conftest$ac_exeext &&
14606 $as_test_x conftest$ac_exeext; then
14607 { echo "$as_me:$LINENO: result: yes" >&5
14608 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14609 #define HAVE_SOLARIS_ACL 1
14610 _ACEOF
14612 else
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 { echo "$as_me:$LINENO: result: no" >&5
14617 echo "${ECHO_T}no" >&6; }
14620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14621 conftest$ac_exeext conftest.$ac_ext
14623 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14624 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14625 cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h. */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14632 #if STDC_HEADERS
14633 # include <stdlib.h>
14634 # include <stddef.h>
14635 #endif
14636 #ifdef HAVE_SYS_ACL_H
14637 # include <sys/acl.h>
14638 #endif
14639 #ifdef HAVE_SYS_ACCESS_H
14640 # include <sys/access.h>
14641 #endif
14642 #define _ALL_SOURCE
14644 #include <sys/stat.h>
14646 int aclsize;
14647 struct acl *aclent;
14649 main ()
14651 aclsize = sizeof(struct acl);
14652 aclent = (void *)malloc(aclsize);
14653 statacl("foo", STX_NORMAL, aclent, aclsize);
14656 return 0;
14658 _ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (ac_try="$ac_link"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_link") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest$ac_exeext &&
14676 $as_test_x conftest$ac_exeext; then
14677 { echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_AIX_ACL 1
14680 _ACEOF
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 { echo "$as_me:$LINENO: result: no" >&5
14687 echo "${ECHO_T}no" >&6; }
14690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14691 conftest$ac_exeext conftest.$ac_ext
14692 else
14693 { echo "$as_me:$LINENO: result: yes" >&5
14694 echo "${ECHO_T}yes" >&6; }
14697 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14698 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14699 # Check whether --enable-gpm was given.
14700 if test "${enable_gpm+set}" = set; then
14701 enableval=$enable_gpm;
14702 else
14703 enable_gpm="yes"
14707 if test "$enable_gpm" = "yes"; then
14708 { echo "$as_me:$LINENO: result: no" >&5
14709 echo "${ECHO_T}no" >&6; }
14710 { echo "$as_me:$LINENO: checking for gpm" >&5
14711 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14712 if test "${vi_cv_have_gpm+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715 olibs="$LIBS" ; LIBS="-lgpm"
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14722 #include <gpm.h>
14723 #include <linux/keyboard.h>
14725 main ()
14727 Gpm_GetLibVersion(NULL);
14729 return 0;
14731 _ACEOF
14732 rm -f conftest.$ac_objext conftest$ac_exeext
14733 if { (ac_try="$ac_link"
14734 case "(($ac_try" in
14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736 *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739 (eval "$ac_link") 2>conftest.er1
14740 ac_status=$?
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } && {
14746 test -z "$ac_c_werror_flag" ||
14747 test ! -s conftest.err
14748 } && test -s conftest$ac_exeext &&
14749 $as_test_x conftest$ac_exeext; then
14750 vi_cv_have_gpm=yes
14751 else
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 vi_cv_have_gpm=no
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759 conftest$ac_exeext conftest.$ac_ext
14760 LIBS="$olibs"
14763 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14764 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14765 if test $vi_cv_have_gpm = yes; then
14766 LIBS="$LIBS -lgpm"
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_GPM 1
14769 _ACEOF
14772 else
14773 { echo "$as_me:$LINENO: result: yes" >&5
14774 echo "${ECHO_T}yes" >&6; }
14777 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14778 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14779 # Check whether --enable-sysmouse was given.
14780 if test "${enable_sysmouse+set}" = set; then
14781 enableval=$enable_sysmouse;
14782 else
14783 enable_sysmouse="yes"
14787 if test "$enable_sysmouse" = "yes"; then
14788 { echo "$as_me:$LINENO: result: no" >&5
14789 echo "${ECHO_T}no" >&6; }
14790 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14791 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14792 if test "${vi_cv_have_sysmouse+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795 cat >conftest.$ac_ext <<_ACEOF
14796 /* confdefs.h. */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 #include <sys/consio.h>
14802 #include <signal.h>
14803 #include <sys/fbio.h>
14805 main ()
14807 struct mouse_info mouse;
14808 mouse.operation = MOUSE_MODE;
14809 mouse.operation = MOUSE_SHOW;
14810 mouse.u.mode.mode = 0;
14811 mouse.u.mode.signal = SIGUSR2;
14813 return 0;
14815 _ACEOF
14816 rm -f conftest.$ac_objext conftest$ac_exeext
14817 if { (ac_try="$ac_link"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821 esac
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_link") 2>conftest.er1
14824 ac_status=$?
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } && {
14830 test -z "$ac_c_werror_flag" ||
14831 test ! -s conftest.err
14832 } && test -s conftest$ac_exeext &&
14833 $as_test_x conftest$ac_exeext; then
14834 vi_cv_have_sysmouse=yes
14835 else
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 vi_cv_have_sysmouse=no
14842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14843 conftest$ac_exeext conftest.$ac_ext
14846 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14847 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14848 if test $vi_cv_have_sysmouse = yes; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define HAVE_SYSMOUSE 1
14851 _ACEOF
14854 else
14855 { echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6; }
14859 { echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
14860 echo $ECHO_N "checking for FD_CLOEXEC... $ECHO_C" >&6; }
14861 cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h. */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 #if HAVE_FCNTL_H
14868 # include <fcntl.h>
14869 #endif
14871 main ()
14873 int flag = FD_CLOEXEC;
14875 return 0;
14877 _ACEOF
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14883 esac
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14886 ac_status=$?
14887 grep -v '^ *+' conftest.er1 >conftest.err
14888 rm -f conftest.er1
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest.$ac_objext; then
14895 { echo "$as_me:$LINENO: result: yes" >&5
14896 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_FD_CLOEXEC 1
14898 _ACEOF
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14904 { echo "$as_me:$LINENO: result: not usable" >&5
14905 echo "${ECHO_T}not usable" >&6; }
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14910 { echo "$as_me:$LINENO: checking for rename" >&5
14911 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 #include <stdio.h>
14920 main ()
14922 rename("this", "that")
14924 return 0;
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest$ac_exeext &&
14944 $as_test_x conftest$ac_exeext; then
14945 { echo "$as_me:$LINENO: result: yes" >&5
14946 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14947 #define HAVE_RENAME 1
14948 _ACEOF
14950 else
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14954 { echo "$as_me:$LINENO: result: no" >&5
14955 echo "${ECHO_T}no" >&6; }
14958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14959 conftest$ac_exeext conftest.$ac_ext
14961 { echo "$as_me:$LINENO: checking for sysctl" >&5
14962 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14964 /* confdefs.h. */
14965 _ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <sys/types.h>
14970 #include <sys/sysctl.h>
14972 main ()
14974 int mib[2], r;
14975 size_t len;
14977 mib[0] = CTL_HW;
14978 mib[1] = HW_USERMEM;
14979 len = sizeof(r);
14980 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14983 return 0;
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_compile") 2>conftest.er1
14994 ac_status=$?
14995 grep -v '^ *+' conftest.er1 >conftest.err
14996 rm -f conftest.er1
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest.$ac_objext; then
15003 { echo "$as_me:$LINENO: result: yes" >&5
15004 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15005 #define HAVE_SYSCTL 1
15006 _ACEOF
15008 else
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15012 { echo "$as_me:$LINENO: result: not usable" >&5
15013 echo "${ECHO_T}not usable" >&6; }
15016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 { echo "$as_me:$LINENO: checking for sysinfo" >&5
15019 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h. */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <sys/types.h>
15027 #include <sys/sysinfo.h>
15029 main ()
15031 struct sysinfo sinfo;
15032 int t;
15034 (void)sysinfo(&sinfo);
15035 t = sinfo.totalram;
15038 return 0;
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_compile") 2>conftest.er1
15049 ac_status=$?
15050 grep -v '^ *+' conftest.er1 >conftest.err
15051 rm -f conftest.er1
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest.$ac_objext; then
15058 { echo "$as_me:$LINENO: result: yes" >&5
15059 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_SYSINFO 1
15061 _ACEOF
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 { echo "$as_me:$LINENO: result: not usable" >&5
15068 echo "${ECHO_T}not usable" >&6; }
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15074 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <sys/types.h>
15082 #include <sys/sysinfo.h>
15084 main ()
15086 struct sysinfo sinfo;
15087 sinfo.mem_unit = 1;
15090 return 0;
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (ac_try="$ac_compile"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_compile") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest.$ac_objext; then
15110 { echo "$as_me:$LINENO: result: yes" >&5
15111 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_SYSINFO_MEM_UNIT 1
15113 _ACEOF
15115 else
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 { echo "$as_me:$LINENO: result: no" >&5
15120 echo "${ECHO_T}no" >&6; }
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 { echo "$as_me:$LINENO: checking for sysconf" >&5
15126 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
15127 cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h. */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h. */
15133 #include <unistd.h>
15135 main ()
15137 (void)sysconf(_SC_PAGESIZE);
15138 (void)sysconf(_SC_PHYS_PAGES);
15141 return 0;
15143 _ACEOF
15144 rm -f conftest.$ac_objext
15145 if { (ac_try="$ac_compile"
15146 case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15149 esac
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_compile") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest.$ac_objext; then
15161 { echo "$as_me:$LINENO: result: yes" >&5
15162 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_SYSCONF 1
15164 _ACEOF
15166 else
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 { echo "$as_me:$LINENO: result: not usable" >&5
15171 echo "${ECHO_T}not usable" >&6; }
15174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15177 { echo "$as_me:$LINENO: checking size of int" >&5
15178 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15179 if test "${ac_cv_sizeof_int+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182 if test "$cross_compiling" = yes; then
15183 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
15184 echo "$as_me: error: failed to compile test program" >&2;}
15185 { (exit 1); exit 1; }; }
15186 else
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 #include <stdio.h>
15195 #if STDC_HEADERS
15196 # include <stdlib.h>
15197 # include <stddef.h>
15198 #endif
15199 main()
15201 FILE *f=fopen("conftestval", "w");
15202 if (!f) exit(1);
15203 fprintf(f, "%d\n", (int)sizeof(int));
15204 exit(0);
15206 _ACEOF
15207 rm -f conftest$ac_exeext
15208 if { (ac_try="$ac_link"
15209 case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15212 esac
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_link") 2>&5
15215 ac_status=$?
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15224 ac_status=$?
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_cv_sizeof_int=`cat conftestval`
15228 else
15229 echo "$as_me: program exited with status $ac_status" >&5
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ( exit $ac_status )
15234 ac_cv_sizeof_int=0
15236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15243 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15244 cat >>confdefs.h <<_ACEOF
15245 #define SIZEOF_INT $ac_cv_sizeof_int
15246 _ACEOF
15250 bcopy_test_prog='
15251 #include "confdefs.h"
15252 #ifdef HAVE_STRING_H
15253 # include <string.h>
15254 #endif
15255 #if STDC_HEADERS
15256 # include <stdlib.h>
15257 # include <stddef.h>
15258 #endif
15259 main() {
15260 char buf[10];
15261 strcpy(buf, "abcdefghi");
15262 mch_memmove(buf, buf + 2, 3);
15263 if (strncmp(buf, "ababcf", 6))
15264 exit(1);
15265 strcpy(buf, "abcdefghi");
15266 mch_memmove(buf + 2, buf, 3);
15267 if (strncmp(buf, "cdedef", 6))
15268 exit(1);
15269 exit(0); /* libc version works properly. */
15272 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15273 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15274 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 else
15278 if test "$cross_compiling" = yes; then
15280 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15281 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15282 { (exit 1); exit 1; }; }
15284 else
15285 cat >conftest.$ac_ext <<_ACEOF
15286 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15287 _ACEOF
15288 rm -f conftest$ac_exeext
15289 if { (ac_try="$ac_link"
15290 case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293 esac
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15309 vim_cv_memmove_handles_overlap=yes
15311 else
15312 echo "$as_me: program exited with status $ac_status" >&5
15313 echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15316 ( exit $ac_status )
15318 vim_cv_memmove_handles_overlap=no
15321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15327 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15328 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15330 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define USEMEMMOVE 1
15333 _ACEOF
15335 else
15336 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15337 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15338 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 else
15342 if test "$cross_compiling" = yes; then
15344 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15345 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15346 { (exit 1); exit 1; }; }
15348 else
15349 cat >conftest.$ac_ext <<_ACEOF
15350 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15351 _ACEOF
15352 rm -f conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366 esac
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15373 vim_cv_bcopy_handles_overlap=yes
15375 else
15376 echo "$as_me: program exited with status $ac_status" >&5
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ( exit $ac_status )
15382 vim_cv_bcopy_handles_overlap=no
15385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15392 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15394 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15395 cat >>confdefs.h <<\_ACEOF
15396 #define USEBCOPY 1
15397 _ACEOF
15399 else
15400 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15401 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15402 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15406 if test "$cross_compiling" = yes; then
15408 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15409 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15410 { (exit 1); exit 1; }; }
15412 else
15413 cat >conftest.$ac_ext <<_ACEOF
15414 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15415 _ACEOF
15416 rm -f conftest$ac_exeext
15417 if { (ac_try="$ac_link"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15437 vim_cv_memcpy_handles_overlap=yes
15439 else
15440 echo "$as_me: program exited with status $ac_status" >&5
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 ( exit $ac_status )
15446 vim_cv_memcpy_handles_overlap=no
15449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15455 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15456 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15458 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15459 cat >>confdefs.h <<\_ACEOF
15460 #define USEMEMCPY 1
15461 _ACEOF
15469 if test "$enable_multibyte" = "yes"; then
15470 cflags_save=$CFLAGS
15471 ldflags_save=$LDFLAGS
15472 if test "x$x_includes" != "xNONE" ; then
15473 CFLAGS="$CFLAGS -I$x_includes"
15474 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15475 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15476 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15477 cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h. */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 #include <X11/Xlocale.h>
15485 main ()
15489 return 0;
15491 _ACEOF
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15500 ac_status=$?
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest.$ac_objext; then
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15516 /* Override any GCC internal prototype to avoid an error.
15517 Use char because int might match the return type of a GCC
15518 builtin and then its argument prototype would still apply. */
15519 #ifdef __cplusplus
15520 extern "C"
15521 #endif
15522 char _Xsetlocale ();
15524 main ()
15526 return _Xsetlocale ();
15528 return 0;
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_link") 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } && {
15545 test -z "$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15547 } && test -s conftest$ac_exeext &&
15548 $as_test_x conftest$ac_exeext; then
15549 { echo "$as_me:$LINENO: result: yes" >&5
15550 echo "${ECHO_T}yes" >&6; }
15551 cat >>confdefs.h <<\_ACEOF
15552 #define X_LOCALE 1
15553 _ACEOF
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 { echo "$as_me:$LINENO: result: no" >&5
15560 echo "${ECHO_T}no" >&6; }
15563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15564 conftest$ac_exeext conftest.$ac_ext
15565 else
15566 echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15569 { echo "$as_me:$LINENO: result: no" >&5
15570 echo "${ECHO_T}no" >&6; }
15573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575 CFLAGS=$cflags_save
15576 LDFLAGS=$ldflags_save
15579 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15580 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15581 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584 ac_check_lib_save_LIBS=$LIBS
15585 LIBS="-lxpg4 $LIBS"
15586 cat >conftest.$ac_ext <<_ACEOF
15587 /* confdefs.h. */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15593 /* Override any GCC internal prototype to avoid an error.
15594 Use char because int might match the return type of a GCC
15595 builtin and then its argument prototype would still apply. */
15596 #ifdef __cplusplus
15597 extern "C"
15598 #endif
15599 char _xpg4_setrunelocale ();
15601 main ()
15603 return _xpg4_setrunelocale ();
15605 return 0;
15607 _ACEOF
15608 rm -f conftest.$ac_objext conftest$ac_exeext
15609 if { (ac_try="$ac_link"
15610 case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613 esac
15614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_link") 2>conftest.er1
15616 ac_status=$?
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest$ac_exeext &&
15625 $as_test_x conftest$ac_exeext; then
15626 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15627 else
15628 echo "$as_me: failed program was:" >&5
15629 sed 's/^/| /' conftest.$ac_ext >&5
15631 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15635 conftest$ac_exeext conftest.$ac_ext
15636 LIBS=$ac_check_lib_save_LIBS
15638 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15639 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15640 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15641 LIBS="$LIBS -lxpg4"
15645 { echo "$as_me:$LINENO: checking how to create tags" >&5
15646 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15647 test -f tags && mv tags tags.save
15648 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15649 TAGPRG="ctags -I INIT+ --fields=+S"
15650 else
15651 TAGPRG="ctags"
15652 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15653 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15654 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15655 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15656 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15657 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15658 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15660 test -f tags.save && mv tags.save tags
15661 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15662 echo "${ECHO_T}$TAGPRG" >&6; }
15664 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15665 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15666 MANDEF="man"
15667 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15668 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15669 echo "${ECHO_T}$MANDEF" >&6; }
15670 if test "$MANDEF" = "man -s"; then
15671 cat >>confdefs.h <<\_ACEOF
15672 #define USEMAN_S 1
15673 _ACEOF
15677 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15678 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15679 # Check whether --enable-nls was given.
15680 if test "${enable_nls+set}" = set; then
15681 enableval=$enable_nls;
15682 else
15683 enable_nls="yes"
15687 if test "$enable_nls" = "yes"; then
15688 { echo "$as_me:$LINENO: result: no" >&5
15689 echo "${ECHO_T}no" >&6; }
15691 INSTALL_LANGS=install-languages
15693 INSTALL_TOOL_LANGS=install-tool-languages
15696 # Extract the first word of "msgfmt", so it can be a program name with args.
15697 set dummy msgfmt; ac_word=$2
15698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15700 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703 if test -n "$MSGFMT"; then
15704 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15705 else
15706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 for as_dir in $PATH
15709 IFS=$as_save_IFS
15710 test -z "$as_dir" && as_dir=.
15711 for ac_exec_ext in '' $ac_executable_extensions; do
15712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15713 ac_cv_prog_MSGFMT="msgfmt"
15714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15715 break 2
15717 done
15718 done
15719 IFS=$as_save_IFS
15723 MSGFMT=$ac_cv_prog_MSGFMT
15724 if test -n "$MSGFMT"; then
15725 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15726 echo "${ECHO_T}$MSGFMT" >&6; }
15727 else
15728 { echo "$as_me:$LINENO: result: no" >&5
15729 echo "${ECHO_T}no" >&6; }
15733 { echo "$as_me:$LINENO: checking for NLS" >&5
15734 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15735 if test -f po/Makefile; then
15736 have_gettext="no"
15737 if test -n "$MSGFMT"; then
15738 cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h. */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 #include <libintl.h>
15746 main ()
15748 gettext("Test");
15750 return 0;
15752 _ACEOF
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (ac_try="$ac_link"
15755 case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_link") 2>conftest.er1
15761 ac_status=$?
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest$ac_exeext &&
15770 $as_test_x conftest$ac_exeext; then
15771 { echo "$as_me:$LINENO: result: gettext() works" >&5
15772 echo "${ECHO_T}gettext() works" >&6; }; have_gettext="yes"
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 olibs=$LIBS
15778 LIBS="$LIBS -lintl"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h. */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15785 #include <libintl.h>
15787 main ()
15789 gettext("Test");
15791 return 0;
15793 _ACEOF
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (ac_try="$ac_link"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_link") 2>conftest.er1
15802 ac_status=$?
15803 grep -v '^ *+' conftest.er1 >conftest.err
15804 rm -f conftest.er1
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest$ac_exeext &&
15811 $as_test_x conftest$ac_exeext; then
15812 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15813 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15814 else
15815 echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15819 echo "${ECHO_T}gettext() doesn't work" >&6; };
15820 LIBS=$olibs
15823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15824 conftest$ac_exeext conftest.$ac_ext
15827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828 conftest$ac_exeext conftest.$ac_ext
15829 else
15830 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15831 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15833 if test $have_gettext = "yes"; then
15834 cat >>confdefs.h <<\_ACEOF
15835 #define HAVE_GETTEXT 1
15836 _ACEOF
15838 MAKEMO=yes
15841 for ac_func in bind_textdomain_codeset
15843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848 else
15849 cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h. */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15857 #define $ac_func innocuous_$ac_func
15859 /* System header to define __stub macros and hopefully few prototypes,
15860 which can conflict with char $ac_func (); below.
15861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15862 <limits.h> exists even on freestanding compilers. */
15864 #ifdef __STDC__
15865 # include <limits.h>
15866 #else
15867 # include <assert.h>
15868 #endif
15870 #undef $ac_func
15872 /* Override any GCC internal prototype to avoid an error.
15873 Use char because int might match the return type of a GCC
15874 builtin and then its argument prototype would still apply. */
15875 #ifdef __cplusplus
15876 extern "C"
15877 #endif
15878 char $ac_func ();
15879 /* The GNU C library defines this for functions which it implements
15880 to always fail with ENOSYS. Some functions are actually named
15881 something starting with __ and the normal name is an alias. */
15882 #if defined __stub_$ac_func || defined __stub___$ac_func
15883 choke me
15884 #endif
15887 main ()
15889 return $ac_func ();
15891 return 0;
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (ac_try="$ac_link"
15896 case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15899 esac
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_link") 2>conftest.er1
15902 ac_status=$?
15903 grep -v '^ *+' conftest.er1 >conftest.err
15904 rm -f conftest.er1
15905 cat conftest.err >&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && {
15908 test -z "$ac_c_werror_flag" ||
15909 test ! -s conftest.err
15910 } && test -s conftest$ac_exeext &&
15911 $as_test_x conftest$ac_exeext; then
15912 eval "$as_ac_var=yes"
15913 else
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 eval "$as_ac_var=no"
15920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15921 conftest$ac_exeext conftest.$ac_ext
15923 ac_res=`eval echo '${'$as_ac_var'}'`
15924 { echo "$as_me:$LINENO: result: $ac_res" >&5
15925 echo "${ECHO_T}$ac_res" >&6; }
15926 if test `eval echo '${'$as_ac_var'}'` = yes; then
15927 cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15929 _ACEOF
15932 done
15934 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15935 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15937 /* confdefs.h. */
15938 _ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <libintl.h>
15943 extern int _nl_msg_cat_cntr;
15945 main ()
15947 ++_nl_msg_cat_cntr;
15949 return 0;
15951 _ACEOF
15952 rm -f conftest.$ac_objext conftest$ac_exeext
15953 if { (ac_try="$ac_link"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_link") 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } && {
15966 test -z "$ac_c_werror_flag" ||
15967 test ! -s conftest.err
15968 } && test -s conftest$ac_exeext &&
15969 $as_test_x conftest$ac_exeext; then
15970 { echo "$as_me:$LINENO: result: yes" >&5
15971 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15972 #define HAVE_NL_MSG_CAT_CNTR 1
15973 _ACEOF
15975 else
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15984 conftest$ac_exeext conftest.$ac_ext
15986 else
15987 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15988 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15990 else
15991 { echo "$as_me:$LINENO: result: yes" >&5
15992 echo "${ECHO_T}yes" >&6; }
15995 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15996 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15997 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15998 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16002 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
16003 else
16004 # Is the header compilable?
16005 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16006 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 $ac_includes_default
16014 #include <dlfcn.h>
16015 _ACEOF
16016 rm -f conftest.$ac_objext
16017 if { (ac_try="$ac_compile"
16018 case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16021 esac
16022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_compile") 2>conftest.er1
16024 ac_status=$?
16025 grep -v '^ *+' conftest.er1 >conftest.err
16026 rm -f conftest.er1
16027 cat conftest.err >&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } && {
16030 test -z "$ac_c_werror_flag" ||
16031 test ! -s conftest.err
16032 } && test -s conftest.$ac_objext; then
16033 ac_header_compiler=yes
16034 else
16035 echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16038 ac_header_compiler=no
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043 echo "${ECHO_T}$ac_header_compiler" >&6; }
16045 # Is the header present?
16046 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16047 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 #include <dlfcn.h>
16055 _ACEOF
16056 if { (ac_try="$ac_cpp conftest.$ac_ext"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } >/dev/null && {
16069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 }; then
16072 ac_header_preproc=yes
16073 else
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 ac_header_preproc=no
16080 rm -f conftest.err conftest.$ac_ext
16081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16082 echo "${ECHO_T}$ac_header_preproc" >&6; }
16084 # So? What about this header?
16085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16086 yes:no: )
16087 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16088 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16090 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16091 ac_header_preproc=yes
16093 no:yes:* )
16094 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16095 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16097 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16099 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16101 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16103 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16105 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16108 esac
16109 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16110 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
16111 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 ac_cv_header_dlfcn_h=$ac_header_preproc
16116 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16117 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
16120 if test $ac_cv_header_dlfcn_h = yes; then
16121 DLL=dlfcn.h
16122 else
16123 if test "${ac_cv_header_dl_h+set}" = set; then
16124 { echo "$as_me:$LINENO: checking for dl.h" >&5
16125 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16126 if test "${ac_cv_header_dl_h+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16130 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16131 else
16132 # Is the header compilable?
16133 { echo "$as_me:$LINENO: checking dl.h usability" >&5
16134 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 $ac_includes_default
16142 #include <dl.h>
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (ac_try="$ac_compile"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16149 esac
16150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && {
16158 test -z "$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 } && test -s conftest.$ac_objext; then
16161 ac_header_compiler=yes
16162 else
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_header_compiler=no
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16171 echo "${ECHO_T}$ac_header_compiler" >&6; }
16173 # Is the header present?
16174 { echo "$as_me:$LINENO: checking dl.h presence" >&5
16175 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
16176 cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h. */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 #include <dl.h>
16183 _ACEOF
16184 if { (ac_try="$ac_cpp conftest.$ac_ext"
16185 case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16188 esac
16189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } >/dev/null && {
16197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16198 test ! -s conftest.err
16199 }; then
16200 ac_header_preproc=yes
16201 else
16202 echo "$as_me: failed program was:" >&5
16203 sed 's/^/| /' conftest.$ac_ext >&5
16205 ac_header_preproc=no
16208 rm -f conftest.err conftest.$ac_ext
16209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16210 echo "${ECHO_T}$ac_header_preproc" >&6; }
16212 # So? What about this header?
16213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16214 yes:no: )
16215 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16216 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16218 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16219 ac_header_preproc=yes
16221 no:yes:* )
16222 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16223 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16225 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16227 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16229 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16231 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16232 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16233 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16236 esac
16237 { echo "$as_me:$LINENO: checking for dl.h" >&5
16238 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16239 if test "${ac_cv_header_dl_h+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 ac_cv_header_dl_h=$ac_header_preproc
16244 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16245 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16248 if test $ac_cv_header_dl_h = yes; then
16249 DLL=dl.h
16256 if test x${DLL} = xdlfcn.h; then
16258 cat >>confdefs.h <<\_ACEOF
16259 #define HAVE_DLFCN_H 1
16260 _ACEOF
16262 { echo "$as_me:$LINENO: checking for dlopen()" >&5
16263 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16272 main ()
16275 extern void* dlopen();
16276 dlopen();
16279 return 0;
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext &&
16299 $as_test_x conftest$ac_exeext; then
16300 { echo "$as_me:$LINENO: result: yes" >&5
16301 echo "${ECHO_T}yes" >&6; };
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE_DLOPEN 1
16305 _ACEOF
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 { echo "$as_me:$LINENO: result: no" >&5
16312 echo "${ECHO_T}no" >&6; };
16313 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16314 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16315 olibs=$LIBS
16316 LIBS="$LIBS -ldl"
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h. */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16325 main ()
16328 extern void* dlopen();
16329 dlopen();
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 { echo "$as_me:$LINENO: result: yes" >&5
16354 echo "${ECHO_T}yes" >&6; };
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_DLOPEN 1
16358 _ACEOF
16360 else
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 { echo "$as_me:$LINENO: result: no" >&5
16365 echo "${ECHO_T}no" >&6; };
16366 LIBS=$olibs
16369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16370 conftest$ac_exeext conftest.$ac_ext
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374 conftest$ac_exeext conftest.$ac_ext
16375 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16376 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16385 main ()
16388 extern void* dlsym();
16389 dlsym();
16392 return 0;
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (ac_try="$ac_link"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_link") 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest$ac_exeext &&
16412 $as_test_x conftest$ac_exeext; then
16413 { echo "$as_me:$LINENO: result: yes" >&5
16414 echo "${ECHO_T}yes" >&6; };
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_DLSYM 1
16418 _ACEOF
16420 else
16421 echo "$as_me: failed program was:" >&5
16422 sed 's/^/| /' conftest.$ac_ext >&5
16424 { echo "$as_me:$LINENO: result: no" >&5
16425 echo "${ECHO_T}no" >&6; };
16426 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16427 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16428 olibs=$LIBS
16429 LIBS="$LIBS -ldl"
16430 cat >conftest.$ac_ext <<_ACEOF
16431 /* confdefs.h. */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16438 main ()
16441 extern void* dlsym();
16442 dlsym();
16445 return 0;
16447 _ACEOF
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (ac_try="$ac_link"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453 esac
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_link") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest$ac_exeext &&
16465 $as_test_x conftest$ac_exeext; then
16466 { echo "$as_me:$LINENO: result: yes" >&5
16467 echo "${ECHO_T}yes" >&6; };
16469 cat >>confdefs.h <<\_ACEOF
16470 #define HAVE_DLSYM 1
16471 _ACEOF
16473 else
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 { echo "$as_me:$LINENO: result: no" >&5
16478 echo "${ECHO_T}no" >&6; };
16479 LIBS=$olibs
16482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16483 conftest$ac_exeext conftest.$ac_ext
16486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16487 conftest$ac_exeext conftest.$ac_ext
16488 elif test x${DLL} = xdl.h; then
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_DL_H 1
16492 _ACEOF
16494 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16495 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
16496 cat >conftest.$ac_ext <<_ACEOF
16497 /* confdefs.h. */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16504 main ()
16507 extern void* shl_load();
16508 shl_load();
16511 return 0;
16513 _ACEOF
16514 rm -f conftest.$ac_objext conftest$ac_exeext
16515 if { (ac_try="$ac_link"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_link") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest$ac_exeext &&
16531 $as_test_x conftest$ac_exeext; then
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; };
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_SHL_LOAD 1
16537 _ACEOF
16539 else
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 { echo "$as_me:$LINENO: result: no" >&5
16544 echo "${ECHO_T}no" >&6; };
16545 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16546 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16547 olibs=$LIBS
16548 LIBS="$LIBS -ldld"
16549 cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h. */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16557 main ()
16560 extern void* shl_load();
16561 shl_load();
16564 return 0;
16566 _ACEOF
16567 rm -f conftest.$ac_objext conftest$ac_exeext
16568 if { (ac_try="$ac_link"
16569 case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_link") 2>conftest.er1
16575 ac_status=$?
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest$ac_exeext &&
16584 $as_test_x conftest$ac_exeext; then
16585 { echo "$as_me:$LINENO: result: yes" >&5
16586 echo "${ECHO_T}yes" >&6; };
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_SHL_LOAD 1
16590 _ACEOF
16592 else
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 { echo "$as_me:$LINENO: result: no" >&5
16597 echo "${ECHO_T}no" >&6; };
16598 LIBS=$olibs
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16606 conftest$ac_exeext conftest.$ac_ext
16609 for ac_header in setjmp.h
16611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_res=`eval echo '${'$as_ac_Header'}'`
16619 { echo "$as_me:$LINENO: result: $ac_res" >&5
16620 echo "${ECHO_T}$ac_res" >&6; }
16621 else
16622 # Is the header compilable?
16623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16625 cat >conftest.$ac_ext <<_ACEOF
16626 /* confdefs.h. */
16627 _ACEOF
16628 cat confdefs.h >>conftest.$ac_ext
16629 cat >>conftest.$ac_ext <<_ACEOF
16630 /* end confdefs.h. */
16631 $ac_includes_default
16632 #include <$ac_header>
16633 _ACEOF
16634 rm -f conftest.$ac_objext
16635 if { (ac_try="$ac_compile"
16636 case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639 esac
16640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.$ac_objext; then
16651 ac_header_compiler=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_header_compiler=no
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16661 echo "${ECHO_T}$ac_header_compiler" >&6; }
16663 # Is the header present?
16664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16666 cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h. */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 #include <$ac_header>
16673 _ACEOF
16674 if { (ac_try="$ac_cpp conftest.$ac_ext"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16681 ac_status=$?
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } >/dev/null && {
16687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 }; then
16690 ac_header_preproc=yes
16691 else
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_header_preproc=no
16698 rm -f conftest.err conftest.$ac_ext
16699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16700 echo "${ECHO_T}$ac_header_preproc" >&6; }
16702 # So? What about this header?
16703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16704 yes:no: )
16705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16709 ac_header_preproc=yes
16711 no:yes:* )
16712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16726 esac
16727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16730 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 else
16732 eval "$as_ac_Header=\$ac_header_preproc"
16734 ac_res=`eval echo '${'$as_ac_Header'}'`
16735 { echo "$as_me:$LINENO: result: $ac_res" >&5
16736 echo "${ECHO_T}$ac_res" >&6; }
16739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16740 cat >>confdefs.h <<_ACEOF
16741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16742 _ACEOF
16746 done
16749 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16750 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16751 LIBS=`echo $LIBS | sed s/-ldl//`
16752 PERL_LIBS="$PERL_LIBS -ldl"
16756 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16757 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16758 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16759 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16760 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16761 || test "x$features" = "xhuge"; then
16762 LIBS="$LIBS -framework Carbon"
16763 { echo "$as_me:$LINENO: result: yes" >&5
16764 echo "${ECHO_T}yes" >&6; }
16765 else
16766 { echo "$as_me:$LINENO: result: no" >&5
16767 echo "${ECHO_T}no" >&6; }
16771 if test "x$MACOSX" = "xyes"; then
16772 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16773 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16775 # Check whether --with-xcodecfg was given.
16776 if test "${with_xcodecfg+set}" = set; then
16777 withval=$with_xcodecfg; XCODEFLAGS="$XCODEFLAGS -configuration $withval"
16778 { echo "$as_me:$LINENO: result: $withval" >&5
16779 echo "${ECHO_T}$withval" >&6; }
16780 else
16781 { echo "$as_me:$LINENO: result: using default" >&5
16782 echo "${ECHO_T}using default" >&6; }
16790 DEPEND_CFLAGS_FILTER=
16791 if test "$GCC" = yes; then
16792 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16793 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16794 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16795 if test "$gccmajor" -gt "2"; then
16796 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16797 { echo "$as_me:$LINENO: result: yes" >&5
16798 echo "${ECHO_T}yes" >&6; }
16799 else
16800 { echo "$as_me:$LINENO: result: no" >&5
16801 echo "${ECHO_T}no" >&6; }
16803 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16804 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16805 if test "$gccmajor" -gt "3"; then
16806 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
16807 { echo "$as_me:$LINENO: result: yes" >&5
16808 echo "${ECHO_T}yes" >&6; }
16809 else
16810 { echo "$as_me:$LINENO: result: no" >&5
16811 echo "${ECHO_T}no" >&6; }
16816 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16818 cat >confcache <<\_ACEOF
16819 # This file is a shell script that caches the results of configure
16820 # tests run on this system so they can be shared between configure
16821 # scripts and configure runs, see configure's option --config-cache.
16822 # It is not useful on other systems. If it contains results you don't
16823 # want to keep, you may remove or edit it.
16825 # config.status only pays attention to the cache file if you give it
16826 # the --recheck option to rerun configure.
16828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16830 # following values.
16832 _ACEOF
16834 # The following way of writing the cache mishandles newlines in values,
16835 # but we know of no workaround that is simple, portable, and efficient.
16836 # So, we kill variables containing newlines.
16837 # Ultrix sh set writes to stderr and can't be redirected directly,
16838 # and sets the high bit in the cache file unless we assign to the vars.
16840 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16841 eval ac_val=\$$ac_var
16842 case $ac_val in #(
16843 *${as_nl}*)
16844 case $ac_var in #(
16845 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16846 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16847 esac
16848 case $ac_var in #(
16849 _ | IFS | as_nl) ;; #(
16850 *) $as_unset $ac_var ;;
16851 esac ;;
16852 esac
16853 done
16855 (set) 2>&1 |
16856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16857 *${as_nl}ac_space=\ *)
16858 # `set' does not quote correctly, so add quotes (double-quote
16859 # substitution turns \\\\ into \\, and sed turns \\ into \).
16860 sed -n \
16861 "s/'/'\\\\''/g;
16862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16863 ;; #(
16865 # `set' quotes correctly as required by POSIX, so do not add quotes.
16866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16868 esac |
16869 sort
16871 sed '
16872 /^ac_cv_env_/b end
16873 t clear
16874 :clear
16875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16876 t end
16877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16878 :end' >>confcache
16879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16880 if test -w "$cache_file"; then
16881 test "x$cache_file" != "x/dev/null" &&
16882 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16883 echo "$as_me: updating cache $cache_file" >&6;}
16884 cat confcache >$cache_file
16885 else
16886 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16887 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16890 rm -f confcache
16892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16893 # Let make expand exec_prefix.
16894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16896 DEFS=-DHAVE_CONFIG_H
16898 ac_libobjs=
16899 ac_ltlibobjs=
16900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16901 # 1. Remove the extension, and $U if already installed.
16902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16903 ac_i=`echo "$ac_i" | sed "$ac_script"`
16904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16905 # will be set to the directory where LIBOBJS objects are built.
16906 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16907 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16908 done
16909 LIBOBJS=$ac_libobjs
16911 LTLIBOBJS=$ac_ltlibobjs
16915 : ${CONFIG_STATUS=./config.status}
16916 ac_clean_files_save=$ac_clean_files
16917 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16918 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16919 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16920 cat >$CONFIG_STATUS <<_ACEOF
16921 #! $SHELL
16922 # Generated by $as_me.
16923 # Run this file to recreate the current configuration.
16924 # Compiler output produced by configure, useful for debugging
16925 # configure, is in config.log if it exists.
16927 debug=false
16928 ac_cs_recheck=false
16929 ac_cs_silent=false
16930 SHELL=\${CONFIG_SHELL-$SHELL}
16931 _ACEOF
16933 cat >>$CONFIG_STATUS <<\_ACEOF
16934 ## --------------------- ##
16935 ## M4sh Initialization. ##
16936 ## --------------------- ##
16938 # Be more Bourne compatible
16939 DUALCASE=1; export DUALCASE # for MKS sh
16940 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16941 emulate sh
16942 NULLCMD=:
16943 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16944 # is contrary to our usage. Disable this feature.
16945 alias -g '${1+"$@"}'='"$@"'
16946 setopt NO_GLOB_SUBST
16947 else
16948 case `(set -o) 2>/dev/null` in
16949 *posix*) set -o posix ;;
16950 esac
16957 # PATH needs CR
16958 # Avoid depending upon Character Ranges.
16959 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16960 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16961 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16962 as_cr_digits='0123456789'
16963 as_cr_alnum=$as_cr_Letters$as_cr_digits
16965 # The user is always right.
16966 if test "${PATH_SEPARATOR+set}" != set; then
16967 echo "#! /bin/sh" >conf$$.sh
16968 echo "exit 0" >>conf$$.sh
16969 chmod +x conf$$.sh
16970 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16971 PATH_SEPARATOR=';'
16972 else
16973 PATH_SEPARATOR=:
16975 rm -f conf$$.sh
16978 # Support unset when possible.
16979 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16980 as_unset=unset
16981 else
16982 as_unset=false
16986 # IFS
16987 # We need space, tab and new line, in precisely that order. Quoting is
16988 # there to prevent editors from complaining about space-tab.
16989 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16990 # splitting by setting IFS to empty value.)
16991 as_nl='
16993 IFS=" "" $as_nl"
16995 # Find who we are. Look in the path if we contain no directory separator.
16996 case $0 in
16997 *[\\/]* ) as_myself=$0 ;;
16998 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16999 for as_dir in $PATH
17001 IFS=$as_save_IFS
17002 test -z "$as_dir" && as_dir=.
17003 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17004 done
17005 IFS=$as_save_IFS
17008 esac
17009 # We did not find ourselves, most probably we were run as `sh COMMAND'
17010 # in which case we are not to be found in the path.
17011 if test "x$as_myself" = x; then
17012 as_myself=$0
17014 if test ! -f "$as_myself"; then
17015 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17016 { (exit 1); exit 1; }
17019 # Work around bugs in pre-3.0 UWIN ksh.
17020 for as_var in ENV MAIL MAILPATH
17021 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17022 done
17023 PS1='$ '
17024 PS2='> '
17025 PS4='+ '
17027 # NLS nuisances.
17028 for as_var in \
17029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17031 LC_TELEPHONE LC_TIME
17033 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17034 eval $as_var=C; export $as_var
17035 else
17036 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17038 done
17040 # Required to use basename.
17041 if expr a : '\(a\)' >/dev/null 2>&1 &&
17042 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17043 as_expr=expr
17044 else
17045 as_expr=false
17048 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17049 as_basename=basename
17050 else
17051 as_basename=false
17055 # Name of the executable.
17056 as_me=`$as_basename -- "$0" ||
17057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17058 X"$0" : 'X\(//\)$' \| \
17059 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17060 echo X/"$0" |
17061 sed '/^.*\/\([^/][^/]*\)\/*$/{
17062 s//\1/
17065 /^X\/\(\/\/\)$/{
17066 s//\1/
17069 /^X\/\(\/\).*/{
17070 s//\1/
17073 s/.*/./; q'`
17075 # CDPATH.
17076 $as_unset CDPATH
17080 as_lineno_1=$LINENO
17081 as_lineno_2=$LINENO
17082 test "x$as_lineno_1" != "x$as_lineno_2" &&
17083 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17085 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17086 # uniformly replaced by the line number. The first 'sed' inserts a
17087 # line-number line after each line using $LINENO; the second 'sed'
17088 # does the real work. The second script uses 'N' to pair each
17089 # line-number line with the line containing $LINENO, and appends
17090 # trailing '-' during substitution so that $LINENO is not a special
17091 # case at line end.
17092 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17093 # scripts with optimization help from Paolo Bonzini. Blame Lee
17094 # E. McMahon (1931-1989) for sed's syntax. :-)
17095 sed -n '
17097 /[$]LINENO/=
17098 ' <$as_myself |
17099 sed '
17100 s/[$]LINENO.*/&-/
17101 t lineno
17103 :lineno
17105 :loop
17106 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17107 t loop
17108 s/-\n.*//
17109 ' >$as_me.lineno &&
17110 chmod +x "$as_me.lineno" ||
17111 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17112 { (exit 1); exit 1; }; }
17114 # Don't try to exec as it changes $[0], causing all sort of problems
17115 # (the dirname of $[0] is not the place where we might find the
17116 # original and so on. Autoconf is especially sensitive to this).
17117 . "./$as_me.lineno"
17118 # Exit status is that of the last command.
17119 exit
17123 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17124 as_dirname=dirname
17125 else
17126 as_dirname=false
17129 ECHO_C= ECHO_N= ECHO_T=
17130 case `echo -n x` in
17131 -n*)
17132 case `echo 'x\c'` in
17133 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17134 *) ECHO_C='\c';;
17135 esac;;
17137 ECHO_N='-n';;
17138 esac
17140 if expr a : '\(a\)' >/dev/null 2>&1 &&
17141 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17142 as_expr=expr
17143 else
17144 as_expr=false
17147 rm -f conf$$ conf$$.exe conf$$.file
17148 if test -d conf$$.dir; then
17149 rm -f conf$$.dir/conf$$.file
17150 else
17151 rm -f conf$$.dir
17152 mkdir conf$$.dir
17154 echo >conf$$.file
17155 if ln -s conf$$.file conf$$ 2>/dev/null; then
17156 as_ln_s='ln -s'
17157 # ... but there are two gotchas:
17158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17160 # In both cases, we have to default to `cp -p'.
17161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17162 as_ln_s='cp -p'
17163 elif ln conf$$.file conf$$ 2>/dev/null; then
17164 as_ln_s=ln
17165 else
17166 as_ln_s='cp -p'
17168 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17169 rmdir conf$$.dir 2>/dev/null
17171 if mkdir -p . 2>/dev/null; then
17172 as_mkdir_p=:
17173 else
17174 test -d ./-p && rmdir ./-p
17175 as_mkdir_p=false
17178 if test -x / >/dev/null 2>&1; then
17179 as_test_x='test -x'
17180 else
17181 if ls -dL / >/dev/null 2>&1; then
17182 as_ls_L_option=L
17183 else
17184 as_ls_L_option=
17186 as_test_x='
17187 eval sh -c '\''
17188 if test -d "$1"; then
17189 test -d "$1/.";
17190 else
17191 case $1 in
17192 -*)set "./$1";;
17193 esac;
17194 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17195 ???[sx]*):;;*)false;;esac;fi
17196 '\'' sh
17199 as_executable_p=$as_test_x
17201 # Sed expression to map a string onto a valid CPP name.
17202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17204 # Sed expression to map a string onto a valid variable name.
17205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17208 exec 6>&1
17210 # Save the log message, to keep $[0] and so on meaningful, and to
17211 # report actual input values of CONFIG_FILES etc. instead of their
17212 # values after options handling.
17213 ac_log="
17214 This file was extended by $as_me, which was
17215 generated by GNU Autoconf 2.61. Invocation command line was
17217 CONFIG_FILES = $CONFIG_FILES
17218 CONFIG_HEADERS = $CONFIG_HEADERS
17219 CONFIG_LINKS = $CONFIG_LINKS
17220 CONFIG_COMMANDS = $CONFIG_COMMANDS
17221 $ $0 $@
17223 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17226 _ACEOF
17228 cat >>$CONFIG_STATUS <<_ACEOF
17229 # Files that config.status was made for.
17230 config_files="$ac_config_files"
17231 config_headers="$ac_config_headers"
17233 _ACEOF
17235 cat >>$CONFIG_STATUS <<\_ACEOF
17236 ac_cs_usage="\
17237 \`$as_me' instantiates files from templates according to the
17238 current configuration.
17240 Usage: $0 [OPTIONS] [FILE]...
17242 -h, --help print this help, then exit
17243 -V, --version print version number and configuration settings, then exit
17244 -q, --quiet do not print progress messages
17245 -d, --debug don't remove temporary files
17246 --recheck update $as_me by reconfiguring in the same conditions
17247 --file=FILE[:TEMPLATE]
17248 instantiate the configuration file FILE
17249 --header=FILE[:TEMPLATE]
17250 instantiate the configuration header FILE
17252 Configuration files:
17253 $config_files
17255 Configuration headers:
17256 $config_headers
17258 Report bugs to <bug-autoconf@gnu.org>."
17260 _ACEOF
17261 cat >>$CONFIG_STATUS <<_ACEOF
17262 ac_cs_version="\\
17263 config.status
17264 configured by $0, generated by GNU Autoconf 2.61,
17265 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17267 Copyright (C) 2006 Free Software Foundation, Inc.
17268 This config.status script is free software; the Free Software Foundation
17269 gives unlimited permission to copy, distribute and modify it."
17271 ac_pwd='$ac_pwd'
17272 srcdir='$srcdir'
17273 _ACEOF
17275 cat >>$CONFIG_STATUS <<\_ACEOF
17276 # If no file are specified by the user, then we need to provide default
17277 # value. By we need to know if files were specified by the user.
17278 ac_need_defaults=:
17279 while test $# != 0
17281 case $1 in
17282 --*=*)
17283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17284 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17285 ac_shift=:
17288 ac_option=$1
17289 ac_optarg=$2
17290 ac_shift=shift
17292 esac
17294 case $ac_option in
17295 # Handling of the options.
17296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17297 ac_cs_recheck=: ;;
17298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17299 echo "$ac_cs_version"; exit ;;
17300 --debug | --debu | --deb | --de | --d | -d )
17301 debug=: ;;
17302 --file | --fil | --fi | --f )
17303 $ac_shift
17304 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17305 ac_need_defaults=false;;
17306 --header | --heade | --head | --hea )
17307 $ac_shift
17308 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17309 ac_need_defaults=false;;
17310 --he | --h)
17311 # Conflict between --help and --header
17312 { echo "$as_me: error: ambiguous option: $1
17313 Try \`$0 --help' for more information." >&2
17314 { (exit 1); exit 1; }; };;
17315 --help | --hel | -h )
17316 echo "$ac_cs_usage"; exit ;;
17317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17319 ac_cs_silent=: ;;
17321 # This is an error.
17322 -*) { echo "$as_me: error: unrecognized option: $1
17323 Try \`$0 --help' for more information." >&2
17324 { (exit 1); exit 1; }; } ;;
17326 *) ac_config_targets="$ac_config_targets $1"
17327 ac_need_defaults=false ;;
17329 esac
17330 shift
17331 done
17333 ac_configure_extra_args=
17335 if $ac_cs_silent; then
17336 exec 6>/dev/null
17337 ac_configure_extra_args="$ac_configure_extra_args --silent"
17340 _ACEOF
17341 cat >>$CONFIG_STATUS <<_ACEOF
17342 if \$ac_cs_recheck; then
17343 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17344 CONFIG_SHELL=$SHELL
17345 export CONFIG_SHELL
17346 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17349 _ACEOF
17350 cat >>$CONFIG_STATUS <<\_ACEOF
17351 exec 5>>config.log
17353 echo
17354 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17355 ## Running $as_me. ##
17356 _ASBOX
17357 echo "$ac_log"
17358 } >&5
17360 _ACEOF
17361 cat >>$CONFIG_STATUS <<_ACEOF
17362 _ACEOF
17364 cat >>$CONFIG_STATUS <<\_ACEOF
17366 # Handling of arguments.
17367 for ac_config_target in $ac_config_targets
17369 case $ac_config_target in
17370 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17371 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17373 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17374 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17375 { (exit 1); exit 1; }; };;
17376 esac
17377 done
17380 # If the user did not use the arguments to specify the items to instantiate,
17381 # then the envvar interface is used. Set only those that are not.
17382 # We use the long form for the default assignment because of an extremely
17383 # bizarre bug on SunOS 4.1.3.
17384 if $ac_need_defaults; then
17385 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17386 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17389 # Have a temporary directory for convenience. Make it in the build tree
17390 # simply because there is no reason against having it here, and in addition,
17391 # creating and moving files from /tmp can sometimes cause problems.
17392 # Hook for its removal unless debugging.
17393 # Note that there is a small window in which the directory will not be cleaned:
17394 # after its creation but before its name has been assigned to `$tmp'.
17395 $debug ||
17397 tmp=
17398 trap 'exit_status=$?
17399 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17401 trap '{ (exit 1); exit 1; }' 1 2 13 15
17403 # Create a (secure) tmp directory for tmp files.
17406 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17407 test -n "$tmp" && test -d "$tmp"
17408 } ||
17410 tmp=./conf$$-$RANDOM
17411 (umask 077 && mkdir "$tmp")
17412 } ||
17414 echo "$me: cannot create a temporary directory in ." >&2
17415 { (exit 1); exit 1; }
17419 # Set up the sed scripts for CONFIG_FILES section.
17422 # No need to generate the scripts if there are no CONFIG_FILES.
17423 # This happens for instance when ./config.status config.h
17424 if test -n "$CONFIG_FILES"; then
17426 _ACEOF
17430 ac_delim='%!_!# '
17431 for ac_last_try in false false false false false :; do
17432 cat >conf$$subs.sed <<_ACEOF
17433 SHELL!$SHELL$ac_delim
17434 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17435 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17436 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17437 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17438 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17439 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17440 exec_prefix!$exec_prefix$ac_delim
17441 prefix!$prefix$ac_delim
17442 program_transform_name!$program_transform_name$ac_delim
17443 bindir!$bindir$ac_delim
17444 sbindir!$sbindir$ac_delim
17445 libexecdir!$libexecdir$ac_delim
17446 datarootdir!$datarootdir$ac_delim
17447 datadir!$datadir$ac_delim
17448 sysconfdir!$sysconfdir$ac_delim
17449 sharedstatedir!$sharedstatedir$ac_delim
17450 localstatedir!$localstatedir$ac_delim
17451 includedir!$includedir$ac_delim
17452 oldincludedir!$oldincludedir$ac_delim
17453 docdir!$docdir$ac_delim
17454 infodir!$infodir$ac_delim
17455 htmldir!$htmldir$ac_delim
17456 dvidir!$dvidir$ac_delim
17457 pdfdir!$pdfdir$ac_delim
17458 psdir!$psdir$ac_delim
17459 libdir!$libdir$ac_delim
17460 localedir!$localedir$ac_delim
17461 mandir!$mandir$ac_delim
17462 DEFS!$DEFS$ac_delim
17463 ECHO_C!$ECHO_C$ac_delim
17464 ECHO_N!$ECHO_N$ac_delim
17465 ECHO_T!$ECHO_T$ac_delim
17466 LIBS!$LIBS$ac_delim
17467 build_alias!$build_alias$ac_delim
17468 host_alias!$host_alias$ac_delim
17469 target_alias!$target_alias$ac_delim
17470 SET_MAKE!$SET_MAKE$ac_delim
17471 CC!$CC$ac_delim
17472 CFLAGS!$CFLAGS$ac_delim
17473 LDFLAGS!$LDFLAGS$ac_delim
17474 CPPFLAGS!$CPPFLAGS$ac_delim
17475 ac_ct_CC!$ac_ct_CC$ac_delim
17476 EXEEXT!$EXEEXT$ac_delim
17477 OBJEXT!$OBJEXT$ac_delim
17478 CPP!$CPP$ac_delim
17479 GREP!$GREP$ac_delim
17480 EGREP!$EGREP$ac_delim
17481 AWK!$AWK$ac_delim
17482 STRIP!$STRIP$ac_delim
17483 CPP_MM!$CPP_MM$ac_delim
17484 XCODE_SELECT!$XCODE_SELECT$ac_delim
17485 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17486 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17487 VIMNAME!$VIMNAME$ac_delim
17488 EXNAME!$EXNAME$ac_delim
17489 VIEWNAME!$VIEWNAME$ac_delim
17490 line_break!$line_break$ac_delim
17491 dovimdiff!$dovimdiff$ac_delim
17492 dogvimdiff!$dogvimdiff$ac_delim
17493 compiledby!$compiledby$ac_delim
17494 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17495 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17496 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17497 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17498 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17499 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17500 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17501 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17502 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17503 vi_cv_perllib!$vi_cv_perllib$ac_delim
17504 shrpenv!$shrpenv$ac_delim
17505 PERL_SRC!$PERL_SRC$ac_delim
17506 PERL_OBJ!$PERL_OBJ$ac_delim
17507 PERL_PRO!$PERL_PRO$ac_delim
17508 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17509 PERL_LIBS!$PERL_LIBS$ac_delim
17510 vi_cv_path_python!$vi_cv_path_python$ac_delim
17511 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17512 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17513 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17514 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17515 PYTHON_SRC!$PYTHON_SRC$ac_delim
17516 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17517 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17518 TCL_SRC!$TCL_SRC$ac_delim
17519 TCL_OBJ!$TCL_OBJ$ac_delim
17520 TCL_PRO!$TCL_PRO$ac_delim
17521 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17522 TCL_LIBS!$TCL_LIBS$ac_delim
17523 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17524 RUBY_SRC!$RUBY_SRC$ac_delim
17525 RUBY_OBJ!$RUBY_OBJ$ac_delim
17526 RUBY_PRO!$RUBY_PRO$ac_delim
17527 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17528 RUBY_LIBS!$RUBY_LIBS$ac_delim
17529 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17530 _ACEOF
17532 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17533 break
17534 elif $ac_last_try; then
17535 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17536 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17537 { (exit 1); exit 1; }; }
17538 else
17539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17541 done
17543 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17544 if test -n "$ac_eof"; then
17545 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17546 ac_eof=`expr $ac_eof + 1`
17549 cat >>$CONFIG_STATUS <<_ACEOF
17550 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17551 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17552 _ACEOF
17553 sed '
17554 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17555 s/^/s,@/; s/!/@,|#_!!_#|/
17558 s/'"$ac_delim"'$/,g/; t
17559 s/$/\\/; p
17560 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17561 ' >>$CONFIG_STATUS <conf$$subs.sed
17562 rm -f conf$$subs.sed
17563 cat >>$CONFIG_STATUS <<_ACEOF
17564 CEOF$ac_eof
17565 _ACEOF
17568 ac_delim='%!_!# '
17569 for ac_last_try in false false false false false :; do
17570 cat >conf$$subs.sed <<_ACEOF
17571 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17572 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17573 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17574 SNIFF_SRC!$SNIFF_SRC$ac_delim
17575 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17576 xmkmfpath!$xmkmfpath$ac_delim
17577 XMKMF!$XMKMF$ac_delim
17578 X_CFLAGS!$X_CFLAGS$ac_delim
17579 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17580 X_LIBS!$X_LIBS$ac_delim
17581 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17582 X_LIB!$X_LIB$ac_delim
17583 GTK_CONFIG!$GTK_CONFIG$ac_delim
17584 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17585 PKG_CONFIG!$PKG_CONFIG$ac_delim
17586 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17587 GTK_LIBS!$GTK_LIBS$ac_delim
17588 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17589 GNOME_LIBS!$GNOME_LIBS$ac_delim
17590 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17591 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17592 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17593 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17594 NARROW_PROTO!$NARROW_PROTO$ac_delim
17595 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17596 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17597 GUITYPE!$GUITYPE$ac_delim
17598 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17599 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17600 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17601 TAGPRG!$TAGPRG$ac_delim
17602 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17603 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17604 MSGFMT!$MSGFMT$ac_delim
17605 MAKEMO!$MAKEMO$ac_delim
17606 XCODEFLAGS!$XCODEFLAGS$ac_delim
17607 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17608 LIBOBJS!$LIBOBJS$ac_delim
17609 LTLIBOBJS!$LTLIBOBJS$ac_delim
17610 _ACEOF
17612 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
17613 break
17614 elif $ac_last_try; then
17615 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17616 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17617 { (exit 1); exit 1; }; }
17618 else
17619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17621 done
17623 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17624 if test -n "$ac_eof"; then
17625 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17626 ac_eof=`expr $ac_eof + 1`
17629 cat >>$CONFIG_STATUS <<_ACEOF
17630 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17632 _ACEOF
17633 sed '
17634 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17635 s/^/s,@/; s/!/@,|#_!!_#|/
17638 s/'"$ac_delim"'$/,g/; t
17639 s/$/\\/; p
17640 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17641 ' >>$CONFIG_STATUS <conf$$subs.sed
17642 rm -f conf$$subs.sed
17643 cat >>$CONFIG_STATUS <<_ACEOF
17644 :end
17645 s/|#_!!_#|//g
17646 CEOF$ac_eof
17647 _ACEOF
17650 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17651 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17652 # trailing colons and then remove the whole line if VPATH becomes empty
17653 # (actually we leave an empty line to preserve line numbers).
17654 if test "x$srcdir" = x.; then
17655 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17656 s/:*\$(srcdir):*/:/
17657 s/:*\${srcdir}:*/:/
17658 s/:*@srcdir@:*/:/
17659 s/^\([^=]*=[ ]*\):*/\1/
17660 s/:*$//
17661 s/^[^=]*=[ ]*$//
17665 cat >>$CONFIG_STATUS <<\_ACEOF
17666 fi # test -n "$CONFIG_FILES"
17669 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
17671 case $ac_tag in
17672 :[FHLC]) ac_mode=$ac_tag; continue;;
17673 esac
17674 case $ac_mode$ac_tag in
17675 :[FHL]*:*);;
17676 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17677 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17678 { (exit 1); exit 1; }; };;
17679 :[FH]-) ac_tag=-:-;;
17680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17681 esac
17682 ac_save_IFS=$IFS
17683 IFS=:
17684 set x $ac_tag
17685 IFS=$ac_save_IFS
17686 shift
17687 ac_file=$1
17688 shift
17690 case $ac_mode in
17691 :L) ac_source=$1;;
17692 :[FH])
17693 ac_file_inputs=
17694 for ac_f
17696 case $ac_f in
17697 -) ac_f="$tmp/stdin";;
17698 *) # Look for the file first in the build tree, then in the source tree
17699 # (if the path is not absolute). The absolute path cannot be DOS-style,
17700 # because $ac_f cannot contain `:'.
17701 test -f "$ac_f" ||
17702 case $ac_f in
17703 [\\/$]*) false;;
17704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17705 esac ||
17706 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17707 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17708 { (exit 1); exit 1; }; };;
17709 esac
17710 ac_file_inputs="$ac_file_inputs $ac_f"
17711 done
17713 # Let's still pretend it is `configure' which instantiates (i.e., don't
17714 # use $as_me), people would be surprised to read:
17715 # /* config.h. Generated by config.status. */
17716 configure_input="Generated from "`IFS=:
17717 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17718 if test x"$ac_file" != x-; then
17719 configure_input="$ac_file. $configure_input"
17720 { echo "$as_me:$LINENO: creating $ac_file" >&5
17721 echo "$as_me: creating $ac_file" >&6;}
17724 case $ac_tag in
17725 *:-:* | *:-) cat >"$tmp/stdin";;
17726 esac
17728 esac
17730 ac_dir=`$as_dirname -- "$ac_file" ||
17731 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17732 X"$ac_file" : 'X\(//\)[^/]' \| \
17733 X"$ac_file" : 'X\(//\)$' \| \
17734 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17735 echo X"$ac_file" |
17736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17737 s//\1/
17740 /^X\(\/\/\)[^/].*/{
17741 s//\1/
17744 /^X\(\/\/\)$/{
17745 s//\1/
17748 /^X\(\/\).*/{
17749 s//\1/
17752 s/.*/./; q'`
17753 { as_dir="$ac_dir"
17754 case $as_dir in #(
17755 -*) as_dir=./$as_dir;;
17756 esac
17757 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17758 as_dirs=
17759 while :; do
17760 case $as_dir in #(
17761 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17762 *) as_qdir=$as_dir;;
17763 esac
17764 as_dirs="'$as_qdir' $as_dirs"
17765 as_dir=`$as_dirname -- "$as_dir" ||
17766 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17767 X"$as_dir" : 'X\(//\)[^/]' \| \
17768 X"$as_dir" : 'X\(//\)$' \| \
17769 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17770 echo X"$as_dir" |
17771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17772 s//\1/
17775 /^X\(\/\/\)[^/].*/{
17776 s//\1/
17779 /^X\(\/\/\)$/{
17780 s//\1/
17783 /^X\(\/\).*/{
17784 s//\1/
17787 s/.*/./; q'`
17788 test -d "$as_dir" && break
17789 done
17790 test -z "$as_dirs" || eval "mkdir $as_dirs"
17791 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17792 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17793 { (exit 1); exit 1; }; }; }
17794 ac_builddir=.
17796 case "$ac_dir" in
17797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17799 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17800 # A ".." for each directory in $ac_dir_suffix.
17801 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17802 case $ac_top_builddir_sub in
17803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17805 esac ;;
17806 esac
17807 ac_abs_top_builddir=$ac_pwd
17808 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17809 # for backward compatibility:
17810 ac_top_builddir=$ac_top_build_prefix
17812 case $srcdir in
17813 .) # We are building in place.
17814 ac_srcdir=.
17815 ac_top_srcdir=$ac_top_builddir_sub
17816 ac_abs_top_srcdir=$ac_pwd ;;
17817 [\\/]* | ?:[\\/]* ) # Absolute name.
17818 ac_srcdir=$srcdir$ac_dir_suffix;
17819 ac_top_srcdir=$srcdir
17820 ac_abs_top_srcdir=$srcdir ;;
17821 *) # Relative name.
17822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17823 ac_top_srcdir=$ac_top_build_prefix$srcdir
17824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17825 esac
17826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17829 case $ac_mode in
17832 # CONFIG_FILE
17835 _ACEOF
17837 cat >>$CONFIG_STATUS <<\_ACEOF
17838 # If the template does not know about datarootdir, expand it.
17839 # FIXME: This hack should be removed a few years after 2.60.
17840 ac_datarootdir_hack=; ac_datarootdir_seen=
17842 case `sed -n '/datarootdir/ {
17846 /@datadir@/p
17847 /@docdir@/p
17848 /@infodir@/p
17849 /@localedir@/p
17850 /@mandir@/p
17851 ' $ac_file_inputs` in
17852 *datarootdir*) ac_datarootdir_seen=yes;;
17853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17854 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17855 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17856 _ACEOF
17857 cat >>$CONFIG_STATUS <<_ACEOF
17858 ac_datarootdir_hack='
17859 s&@datadir@&$datadir&g
17860 s&@docdir@&$docdir&g
17861 s&@infodir@&$infodir&g
17862 s&@localedir@&$localedir&g
17863 s&@mandir@&$mandir&g
17864 s&\\\${datarootdir}&$datarootdir&g' ;;
17865 esac
17866 _ACEOF
17868 # Neutralize VPATH when `$srcdir' = `.'.
17869 # Shell code in configure.ac might set extrasub.
17870 # FIXME: do we really want to maintain this feature?
17871 cat >>$CONFIG_STATUS <<_ACEOF
17872 sed "$ac_vpsub
17873 $extrasub
17874 _ACEOF
17875 cat >>$CONFIG_STATUS <<\_ACEOF
17877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17878 s&@configure_input@&$configure_input&;t t
17879 s&@top_builddir@&$ac_top_builddir_sub&;t t
17880 s&@srcdir@&$ac_srcdir&;t t
17881 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17882 s&@top_srcdir@&$ac_top_srcdir&;t t
17883 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17884 s&@builddir@&$ac_builddir&;t t
17885 s&@abs_builddir@&$ac_abs_builddir&;t t
17886 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17887 $ac_datarootdir_hack
17888 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17890 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17891 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17892 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17893 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17894 which seems to be undefined. Please make sure it is defined." >&5
17895 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17896 which seems to be undefined. Please make sure it is defined." >&2;}
17898 rm -f "$tmp/stdin"
17899 case $ac_file in
17900 -) cat "$tmp/out"; rm -f "$tmp/out";;
17901 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17902 esac
17906 # CONFIG_HEADER
17908 _ACEOF
17910 # Transform confdefs.h into a sed script `conftest.defines', that
17911 # substitutes the proper values into config.h.in to produce config.h.
17912 rm -f conftest.defines conftest.tail
17913 # First, append a space to every undef/define line, to ease matching.
17914 echo 's/$/ /' >conftest.defines
17915 # Then, protect against being on the right side of a sed subst, or in
17916 # an unquoted here document, in config.status. If some macros were
17917 # called several times there might be several #defines for the same
17918 # symbol, which is useless. But do not sort them, since the last
17919 # AC_DEFINE must be honored.
17920 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17921 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17922 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17923 # PARAMS is the parameter list in the macro definition--in most cases, it's
17924 # just an empty string.
17925 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17926 ac_dB='\\)[ (].*,\\1define\\2'
17927 ac_dC=' '
17928 ac_dD=' ,'
17930 uniq confdefs.h |
17931 sed -n '
17932 t rset
17933 :rset
17934 s/^[ ]*#[ ]*define[ ][ ]*//
17935 t ok
17938 s/[\\&,]/\\&/g
17939 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17940 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17941 ' >>conftest.defines
17943 # Remove the space that was appended to ease matching.
17944 # Then replace #undef with comments. This is necessary, for
17945 # example, in the case of _POSIX_SOURCE, which is predefined and required
17946 # on some systems where configure will not decide to define it.
17947 # (The regexp can be short, since the line contains either #define or #undef.)
17948 echo 's/ $//
17949 s,^[ #]*u.*,/* & */,' >>conftest.defines
17951 # Break up conftest.defines:
17952 ac_max_sed_lines=50
17954 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17955 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17956 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17957 # et cetera.
17958 ac_in='$ac_file_inputs'
17959 ac_out='"$tmp/out1"'
17960 ac_nxt='"$tmp/out2"'
17962 while :
17964 # Write a here document:
17965 cat >>$CONFIG_STATUS <<_ACEOF
17966 # First, check the format of the line:
17967 cat >"\$tmp/defines.sed" <<\\CEOF
17968 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17969 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17971 :def
17972 _ACEOF
17973 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17974 echo 'CEOF
17975 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17976 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17977 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17978 grep . conftest.tail >/dev/null || break
17979 rm -f conftest.defines
17980 mv conftest.tail conftest.defines
17981 done
17982 rm -f conftest.defines conftest.tail
17984 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17985 cat >>$CONFIG_STATUS <<\_ACEOF
17986 if test x"$ac_file" != x-; then
17987 echo "/* $configure_input */" >"$tmp/config.h"
17988 cat "$ac_result" >>"$tmp/config.h"
17989 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17990 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17991 echo "$as_me: $ac_file is unchanged" >&6;}
17992 else
17993 rm -f $ac_file
17994 mv "$tmp/config.h" $ac_file
17996 else
17997 echo "/* $configure_input */"
17998 cat "$ac_result"
18000 rm -f "$tmp/out12"
18004 esac
18006 done # for ac_tag
18009 { (exit 0); exit 0; }
18010 _ACEOF
18011 chmod +x $CONFIG_STATUS
18012 ac_clean_files=$ac_clean_files_save
18015 # configure is writing to config.log, and then calls config.status.
18016 # config.status does its own redirection, appending to config.log.
18017 # Unfortunately, on DOS this fails, as config.log is still kept open
18018 # by configure, so config.status won't be able to write to it; its
18019 # output is simply discarded. So we exec the FD to /dev/null,
18020 # effectively closing config.log, so it can be properly (re)opened and
18021 # appended to by config.status. When coming back to configure, we
18022 # need to make the FD available again.
18023 if test "$no_create" != yes; then
18024 ac_cs_success=:
18025 ac_config_status_args=
18026 test "$silent" = yes &&
18027 ac_config_status_args="$ac_config_status_args --quiet"
18028 exec 5>/dev/null
18029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18030 exec 5>>config.log
18031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18032 # would make configure fail if this is the last instruction.
18033 $ac_cs_success || { (exit 1); exit 1; }