Snapshot 52
[MacVim.git] / src / auto / configure
blob1637466434b999f4d8541d53983be7c409f9fda9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 SET_MAKE
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
662 GREP
663 EGREP
665 STRIP
666 CPP_MM
667 OS_EXTRA_SRC
668 OS_EXTRA_OBJ
669 VIMNAME
670 EXNAME
671 VIEWNAME
672 line_break
673 dovimdiff
674 dogvimdiff
675 compiledby
676 vi_cv_path_mzscheme
677 MZSCHEME_SRC
678 MZSCHEME_OBJ
679 MZSCHEME_PRO
680 MZSCHEME_LIBS
681 MZSCHEME_CFLAGS
682 MZSCHEME_EXTRA
683 MZSCHEME_MZC
684 vi_cv_path_perl
685 vi_cv_perllib
686 shrpenv
687 PERL_SRC
688 PERL_OBJ
689 PERL_PRO
690 PERL_CFLAGS
691 PERL_LIBS
692 vi_cv_path_python
693 PYTHON_CONFDIR
694 PYTHON_LIBS
695 PYTHON_GETPATH_CFLAGS
696 PYTHON_CFLAGS
697 PYTHON_SRC
698 PYTHON_OBJ
699 vi_cv_path_tcl
700 TCL_SRC
701 TCL_OBJ
702 TCL_PRO
703 TCL_CFLAGS
704 TCL_LIBS
705 vi_cv_path_ruby
706 RUBY_SRC
707 RUBY_OBJ
708 RUBY_PRO
709 RUBY_CFLAGS
710 RUBY_LIBS
711 WORKSHOP_SRC
712 WORKSHOP_OBJ
713 NETBEANS_SRC
714 NETBEANS_OBJ
715 SNIFF_SRC
716 SNIFF_OBJ
717 xmkmfpath
718 XMKMF
719 X_CFLAGS
720 X_PRE_LIBS
721 X_LIBS
722 X_EXTRA_LIBS
723 X_LIB
724 GTK_CONFIG
725 GTK12_CONFIG
726 PKG_CONFIG
727 GTK_CFLAGS
728 GTK_LIBS
729 GTK_LIBNAME
730 GNOME_LIBS
731 GNOME_LIBDIR
732 GNOME_INCLUDEDIR
733 GNOME_CONFIG
734 MOTIF_LIBNAME
735 NARROW_PROTO
736 GUI_INC_LOC
737 GUI_LIB_LOC
738 GUITYPE
739 GUI_X_LIBS
740 HANGULIN_SRC
741 HANGULIN_OBJ
742 TAGPRG
743 INSTALL_LANGS
744 INSTALL_TOOL_LANGS
745 MSGFMT
746 MAKEMO
747 XCODEFLAGS
748 DEPEND_CFLAGS_FILTER
749 LIBOBJS
750 LTLIBOBJS'
751 ac_subst_files=''
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
761 XMKMF'
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
810 ac_prev=
811 ac_dashdash=
812 for ac_option
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
821 case $ac_option in
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *) ac_optarg=yes ;;
824 esac
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
830 ac_dashdash=yes ;;
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
849 --config-cache | -C)
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
874 ac_prev=docdir ;;
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 docdir=$ac_optarg ;;
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 ac_prev=dvidir ;;
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 dvidir=$ac_optarg ;;
883 -enable-* | --enable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=\$ac_optarg ;;
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
899 exec_prefix=$ac_optarg ;;
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
903 with_gas=yes ;;
905 -help | --help | --hel | --he | -h)
906 ac_init_help=long ;;
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
912 -host | --host | --hos | --ho)
913 ac_prev=host_alias ;;
914 -host=* | --host=* | --hos=* | --ho=*)
915 host_alias=$ac_optarg ;;
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 ac_prev=htmldir ;;
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 | --ht=*)
921 htmldir=$ac_optarg ;;
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
928 includedir=$ac_optarg ;;
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 ac_prev=infodir ;;
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933 infodir=$ac_optarg ;;
935 -libdir | --libdir | --libdi | --libd)
936 ac_prev=libdir ;;
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 libdir=$ac_optarg ;;
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
945 libexecdir=$ac_optarg ;;
947 -localedir | --localedir | --localedi | --localed | --locale)
948 ac_prev=localedir ;;
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
952 -localstatedir | --localstatedir | --localstatedi | --localstated \
953 | --localstate | --localstat | --localsta | --localst | --locals)
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957 localstatedir=$ac_optarg ;;
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 ac_prev=mandir ;;
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962 mandir=$ac_optarg ;;
964 -nfp | --nfp | --nf)
965 # Obsolete; use --without-fp.
966 with_fp=no ;;
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n)
970 no_create=yes ;;
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 no_recursion=yes ;;
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983 oldincludedir=$ac_optarg ;;
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 ac_prev=prefix ;;
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 prefix=$ac_optarg ;;
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995 program_prefix=$ac_optarg ;;
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002 program_suffix=$ac_optarg ;;
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1019 program_transform_name=$ac_optarg ;;
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 ac_prev=pdfdir ;;
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1026 -psdir | --psdir | --psdi | --psd | --ps)
1027 ac_prev=psdir ;;
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 psdir=$ac_optarg ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 silent=yes ;;
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1039 sbindir=$ac_optarg ;;
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1050 sharedstatedir=$ac_optarg ;;
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1055 site=$ac_optarg ;;
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1080 -with-* | --with-*)
1081 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=\$ac_optarg ;;
1089 -without-* | --without-*)
1090 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 { echo "$as_me: error: invalid package name: $ac_package" >&2
1094 { (exit 1); exit 1; }; }
1095 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1096 eval with_$ac_package=no ;;
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1116 -*) { echo "$as_me: error: unrecognized option: $ac_option
1117 Try \`$0 --help' for more information." >&2
1118 { (exit 1); exit 1; }; }
1121 *=*)
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126 { (exit 1); exit 1; }; }
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1131 # FIXME: should be removed in autoconf 3.0.
1132 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 esac
1139 done
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 { echo "$as_me: error: missing argument to $ac_option" >&2
1144 { (exit 1); exit 1; }; }
1147 # Be sure to have absolute directory names.
1148 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
1153 eval ac_val=\$$ac_var
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159 { (exit 1); exit 1; }; }
1160 done
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1165 build=$build_alias
1166 host=$host_alias
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 { echo "$as_me: error: Working directory cannot be determined" >&2
1190 { (exit 1); exit 1; }; }
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 { echo "$as_me: error: pwd does not report name of working directory" >&2
1193 { (exit 1); exit 1; }; }
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir=`$as_dirname -- "$0" ||
1201 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$0" : 'X\(//\)[^/]' \| \
1203 X"$0" : 'X\(//\)$' \| \
1204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1205 echo X"$0" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 s//\1/
1210 /^X\(\/\/\)[^/].*/{
1211 s//\1/
1214 /^X\(\/\/\)$/{
1215 s//\1/
1218 /^X\(\/\).*/{
1219 s//\1/
1222 s/.*/./; q'`
1223 srcdir=$ac_confdir
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 srcdir=..
1227 else
1228 ac_srcdir_defaulted=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1233 { (exit 1); exit 1; }; }
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1238 { (exit 1); exit 1; }; }
1239 pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 done
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1273 Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 [PREFIX]
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1317 _ACEOF
1319 cat <<\_ACEOF
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324 _ACEOF
1327 if test -n "$ac_init_help"; then
1329 cat <<\_ACEOF
1331 Optional Features:
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --disable-darwin Disable Darwin (Mac OS X) support.
1335 --disable-selinux Don't check for SELinux support.
1336 --disable-xsmp Disable XSMP session management
1337 --disable-xsmp-interact Disable XSMP interaction
1338 --enable-mzschemeinterp Include MzScheme interpreter.
1339 --enable-perlinterp Include Perl interpreter.
1340 --enable-pythoninterp Include Python interpreter.
1341 --enable-tclinterp Include Tcl interpreter.
1342 --enable-rubyinterp Include Ruby interpreter.
1343 --enable-cscope Include cscope interface.
1344 --enable-workshop Include Sun Visual Workshop support.
1345 --disable-netbeans Disable NetBeans integration support.
1346 --enable-sniff Include Sniff interface.
1347 --enable-multibyte Include multibyte editing support.
1348 --enable-hangulinput Include Hangul input support.
1349 --enable-xim Include XIM input support.
1350 --enable-fontset Include X fontset output support.
1351 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1352 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1353 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1354 --enable-gnome-check If GTK GUI, check for GNOME default=no
1355 --enable-motif-check If auto-select GUI, check for Motif default=yes
1356 --enable-athena-check If auto-select GUI, check for Athena default=yes
1357 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1358 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1359 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1360 --disable-gtktest Do not try to compile and run a test GTK program
1361 --disable-acl Don't check for ACL support.
1362 --disable-gpm Don't use gpm (Linux mouse daemon).
1363 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1364 --disable-nls Don't support NLS (gettext()).
1366 Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-macsdk=SDK SDK version (10.4, 10.5, 10.6, ...)
1370 --with-macarchs=ARCHS space separated list of archs (i386 x86_64 ppc ...)
1371 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1372 --without-local-dir do not search /usr/local for local libraries.
1373 --with-vim-name=NAME what to call the Vim executable
1374 --with-ex-name=NAME what to call the Ex executable
1375 --with-view-name=NAME what to call the View executable
1376 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1377 --with-modified-by=NAME name of who modified a release version
1378 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1379 --with-compiledby=NAME name to show in :version message
1380 --with-plthome=PLTHOME Use PLTHOME.
1381 --with-python-config-dir=PATH Python's config directory
1382 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1383 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
1384 --with-x use the X Window System
1385 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1386 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1387 --with-gnome-includes=DIR Specify location of GNOME headers
1388 --with-gnome-libs=DIR Specify location of GNOME libs
1389 --with-gnome Specify prefix for GNOME files
1390 --with-motif-lib=STRING Library for Motif
1391 --with-tlib=library terminal library to be used
1392 --with-xcodecfg=CFG Debug, Release (default: Release)
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1402 CPP C preprocessor
1403 XMKMF Path to xmkmf, Makefile generator for X Window System
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1408 _ACEOF
1409 ac_status=$?
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" || continue
1416 ac_builddir=.
1418 case "$ac_dir" in
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427 esac ;;
1428 esac
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1434 case $srcdir in
1435 .) # We are building in place.
1436 ac_srcdir=.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1443 *) # Relative name.
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 esac
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1456 echo &&
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1458 else
1459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 fi || ac_status=$?
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1462 done
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1467 cat <<\_ACEOF
1468 configure
1469 generated by GNU Autoconf 2.61
1471 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1472 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1478 cat >auto/config.log <<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1482 It was created by $as_me, which was
1483 generated by GNU Autoconf 2.61. Invocation command line was
1485 $ $0 $@
1487 _ACEOF
1488 exec 5>>auto/config.log
1490 cat <<_ASUNAME
1491 ## --------- ##
1492 ## Platform. ##
1493 ## --------- ##
1495 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1496 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1497 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1498 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1499 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1501 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1502 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1504 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1505 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1506 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1507 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1508 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1509 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1510 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1512 _ASUNAME
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 echo "PATH: $as_dir"
1520 done
1521 IFS=$as_save_IFS
1523 } >&5
1525 cat >&5 <<_ACEOF
1528 ## ----------- ##
1529 ## Core tests. ##
1530 ## ----------- ##
1532 _ACEOF
1535 # Keep a trace of the command line.
1536 # Strip out --no-create and --no-recursion so they do not pile up.
1537 # Strip out --silent because we don't want to record it for future runs.
1538 # Also quote any args containing shell meta-characters.
1539 # Make two passes to allow for proper duplicate-argument suppression.
1540 ac_configure_args=
1541 ac_configure_args0=
1542 ac_configure_args1=
1543 ac_must_keep_next=false
1544 for ac_pass in 1 2
1546 for ac_arg
1548 case $ac_arg in
1549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1551 | -silent | --silent | --silen | --sile | --sil)
1552 continue ;;
1553 *\'*)
1554 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1555 esac
1556 case $ac_pass in
1557 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true; then
1561 ac_must_keep_next=false # Got value, back to normal.
1562 else
1563 case $ac_arg in
1564 *=* | --config-cache | -C | -disable-* | --disable-* \
1565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1567 | -with-* | --with-* | -without-* | --without-* | --x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1570 esac
1572 -* ) ac_must_keep_next=true ;;
1573 esac
1575 ac_configure_args="$ac_configure_args '$ac_arg'"
1577 esac
1578 done
1579 done
1580 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1581 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583 # When interrupted or exit'd, cleanup temporary files, and complete
1584 # config.log. We remove comments because anyway the quotes in there
1585 # would cause problems or look ugly.
1586 # WARNING: Use '\'' to represent an apostrophe within the trap.
1587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1588 trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1591 echo
1593 cat <<\_ASBOX
1594 ## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##
1597 _ASBOX
1598 echo
1599 # The following way of writing the cache mishandles newlines in values,
1601 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1602 eval ac_val=\$$ac_var
1603 case $ac_val in #(
1604 *${as_nl}*)
1605 case $ac_var in #(
1606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1607 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1608 esac
1609 case $ac_var in #(
1610 _ | IFS | as_nl) ;; #(
1611 *) $as_unset $ac_var ;;
1612 esac ;;
1613 esac
1614 done
1615 (set) 2>&1 |
1616 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
1618 sed -n \
1619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1621 ;; #(
1623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1625 esac |
1626 sort
1628 echo
1630 cat <<\_ASBOX
1631 ## ----------------- ##
1632 ## Output variables. ##
1633 ## ----------------- ##
1634 _ASBOX
1635 echo
1636 for ac_var in $ac_subst_vars
1638 eval ac_val=\$$ac_var
1639 case $ac_val in
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 esac
1642 echo "$ac_var='\''$ac_val'\''"
1643 done | sort
1644 echo
1646 if test -n "$ac_subst_files"; then
1647 cat <<\_ASBOX
1648 ## ------------------- ##
1649 ## File substitutions. ##
1650 ## ------------------- ##
1651 _ASBOX
1652 echo
1653 for ac_var in $ac_subst_files
1655 eval ac_val=\$$ac_var
1656 case $ac_val in
1657 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 esac
1659 echo "$ac_var='\''$ac_val'\''"
1660 done | sort
1661 echo
1664 if test -s confdefs.h; then
1665 cat <<\_ASBOX
1666 ## ----------- ##
1667 ## confdefs.h. ##
1668 ## ----------- ##
1669 _ASBOX
1670 echo
1671 cat confdefs.h
1672 echo
1674 test "$ac_signal" != 0 &&
1675 echo "$as_me: caught signal $ac_signal"
1676 echo "$as_me: exit $exit_status"
1677 } >&5
1678 rm -f core *.core core.conftest.* &&
1679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1680 exit $exit_status
1682 for ac_signal in 1 2 13 15; do
1683 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1684 done
1685 ac_signal=0
1687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1688 rm -f -r conftest* confdefs.h
1690 # Predefined preprocessor variables.
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_NAME "$PACKAGE_NAME"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1699 _ACEOF
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1704 _ACEOF
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_STRING "$PACKAGE_STRING"
1709 _ACEOF
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1714 _ACEOF
1717 # Let the site file select an alternate cache file if it wants to.
1718 # Prefer explicitly selected file to automatically selected ones.
1719 if test -n "$CONFIG_SITE"; then
1720 set x "$CONFIG_SITE"
1721 elif test "x$prefix" != xNONE; then
1722 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1723 else
1724 set x "$ac_default_prefix/share/config.site" \
1725 "$ac_default_prefix/etc/config.site"
1727 shift
1728 for ac_site_file
1730 if test -r "$ac_site_file"; then
1731 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
1734 . "$ac_site_file"
1736 done
1738 if test -r "$cache_file"; then
1739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 echo "$as_me: loading cache $cache_file" >&6;}
1744 case $cache_file in
1745 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746 *) . "./$cache_file";;
1747 esac
1749 else
1750 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 echo "$as_me: creating cache $cache_file" >&6;}
1752 >$cache_file
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1764 set,)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,set)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,);;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778 echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780 echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1795 done
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1820 ac_ext=c
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1830 cat >>confdefs.h <<\_ACEOF
1831 #define UNIX 1
1832 _ACEOF
1834 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1836 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1837 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840 cat >conftest.make <<\_ACEOF
1841 SHELL = /bin/sh
1842 all:
1843 @echo '@@@%%%=$(MAKE)=@@@%%%'
1844 _ACEOF
1845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1847 *@@@%%%=?*=@@@%%%*)
1848 eval ac_cv_prog_make_${ac_make}_set=yes;;
1850 eval ac_cv_prog_make_${ac_make}_set=no;;
1851 esac
1852 rm -f conftest.make
1854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1855 { echo "$as_me:$LINENO: result: yes" >&5
1856 echo "${ECHO_T}yes" >&6; }
1857 SET_MAKE=
1858 else
1859 { echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6; }
1861 SET_MAKE="MAKE=${MAKE-make}"
1865 ac_ext=c
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1884 IFS=$as_save_IFS
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 break 2
1892 done
1893 done
1894 IFS=$as_save_IFS
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900 { echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6; }
1902 else
1903 { echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6; }
1909 if test -z "$ac_cv_prog_CC"; then
1910 ac_ct_CC=$CC
1911 # Extract the first word of "gcc", so it can be a program name with args.
1912 set dummy gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 else
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 for as_dir in $PATH
1924 IFS=$as_save_IFS
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_ac_ct_CC="gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 break 2
1932 done
1933 done
1934 IFS=$as_save_IFS
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6; }
1942 else
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1947 if test "x$ac_ct_CC" = x; then
1948 CC=""
1949 else
1950 case $cross_compiling:$ac_tool_warned in
1951 yes:)
1952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1953 whose name does not start with the host triplet. If you think this
1954 configuration is useful to you, please write to autoconf@gnu.org." >&5
1955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1956 whose name does not start with the host triplet. If you think this
1957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1958 ac_tool_warned=yes ;;
1959 esac
1960 CC=$ac_ct_CC
1962 else
1963 CC="$ac_cv_prog_CC"
1966 if test -z "$CC"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}cc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1981 IFS=$as_save_IFS
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="${ac_tool_prefix}cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 break 2
1989 done
1990 done
1991 IFS=$as_save_IFS
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
1999 else
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2007 if test -z "$CC"; then
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 else
2018 ac_prog_rejected=no
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027 ac_prog_rejected=yes
2028 continue
2030 ac_cv_prog_CC="cc"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 break 2
2034 done
2035 done
2036 IFS=$as_save_IFS
2038 if test $ac_prog_rejected = yes; then
2039 # We found a bogon in the path, so make sure we never use it.
2040 set dummy $ac_cv_prog_CC
2041 shift
2042 if test $# != 0; then
2043 # We chose a different compiler from the bogus one.
2044 # However, it has the same basename, so the bogon will be chosen
2045 # first if we set CC to just the basename; use the full file name.
2046 shift
2047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2052 CC=$ac_cv_prog_CC
2053 if test -n "$CC"; then
2054 { echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6; }
2056 else
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in cl.exe
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2090 IFS=$as_save_IFS
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2105 done
2107 if test -z "$CC"; then
2108 ac_ct_CC=$CC
2109 for ac_prog in cl.exe
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130 break 2
2132 done
2133 done
2134 IFS=$as_save_IFS
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2149 done
2151 if test "x$ac_ct_CC" = x; then
2152 CC=""
2153 else
2154 case $cross_compiling:$ac_tool_warned in
2155 yes:)
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2163 esac
2164 CC=$ac_ct_CC
2171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details." >&2;}
2175 { (exit 1); exit 1; }; }
2177 # Provide some information about the compiler.
2178 echo "$as_me:$LINENO: checking for C compiler version" >&5
2179 ac_compiler=`set X $ac_compile; echo $2`
2180 { (ac_try="$ac_compiler --version >&5"
2181 case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2184 esac
2185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2186 (eval "$ac_compiler --version >&5") 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2190 { (ac_try="$ac_compiler -v >&5"
2191 case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194 esac
2195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_compiler -v >&5") 2>&5
2197 ac_status=$?
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2201 case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2206 (eval "$ac_compiler -V >&5") 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2219 main ()
2223 return 0;
2225 _ACEOF
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2230 # of exeext.
2231 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2232 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2235 # List of possible output files, starting from the most likely.
2236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2237 # only as a last resort. b.out is created by i960 compilers.
2238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2240 # The IRIX 6 linker writes into existing files which may not be
2241 # executable, retaining their permissions. Remove them first so a
2242 # subsequent execution test works.
2243 ac_rmfiles=
2244 for ac_file in $ac_files
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2249 esac
2250 done
2251 rm -f $ac_rmfiles
2253 if { (ac_try="$ac_link_default"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_link_default") 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2266 # so that the user can short-circuit this test for compilers unknown to
2267 # Autoconf.
2268 for ac_file in $ac_files ''
2270 test -f "$ac_file" || continue
2271 case $ac_file in
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2274 [ab].out )
2275 # We found the default executable, but exeext='' is most
2276 # certainly right.
2277 break;;
2278 *.* )
2279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2280 then :; else
2281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 # We set ac_cv_exeext here because the later test for it is not
2284 # safe: cross compilers may not add the suffix if given an `-o'
2285 # argument, so we may need to know it at that point already.
2286 # Even if this section looks crufty: it has the advantage of
2287 # actually working.
2288 break;;
2290 break;;
2291 esac
2292 done
2293 test "$ac_cv_exeext" = no && ac_cv_exeext=
2295 else
2296 ac_file=''
2299 { echo "$as_me:$LINENO: result: $ac_file" >&5
2300 echo "${ECHO_T}$ac_file" >&6; }
2301 if test -z "$ac_file"; then
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309 { (exit 77); exit 77; }; }
2312 ac_exeext=$ac_cv_exeext
2314 # Check that the compiler produces executables we can run. If not, either
2315 # the compiler is broken, or we cross compile.
2316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2319 # If not cross compiling, check that we can run a simple program.
2320 if test "$cross_compiling" != yes; then
2321 if { ac_try='./$ac_file'
2322 { (case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2325 esac
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_try") 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 cross_compiling=no
2332 else
2333 if test "$cross_compiling" = maybe; then
2334 cross_compiling=yes
2335 else
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check that the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6; }
2358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2360 if { (ac_try="$ac_link"
2361 case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_link") 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2372 # work properly (i.e., refer to `conftest.exe'), while it won't with
2373 # `rm'.
2374 for ac_file in conftest.exe conftest conftest.*; do
2375 test -f "$ac_file" || continue
2376 case $ac_file in
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379 break;;
2380 * ) break;;
2381 esac
2382 done
2383 else
2384 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2391 rm -f conftest$ac_cv_exeext
2392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2397 ac_exeext=$EXEEXT
2398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2400 if test "${ac_cv_objext+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 cat >conftest.$ac_ext <<_ACEOF
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2411 main ()
2415 return 0;
2417 _ACEOF
2418 rm -f conftest.o conftest.obj
2419 if { (ac_try="$ac_compile"
2420 case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compile") 2>&5
2426 ac_status=$?
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 for ac_file in conftest.o conftest.obj conftest.*; do
2430 test -f "$ac_file" || continue;
2431 case $ac_file in
2432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2434 break;;
2435 esac
2436 done
2437 else
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2451 echo "${ECHO_T}$ac_cv_objext" >&6; }
2452 OBJEXT=$ac_cv_objext
2453 ac_objext=$OBJEXT
2454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h. */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2467 main ()
2469 #ifndef __GNUC__
2470 choke me
2471 #endif
2474 return 0;
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2479 case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } && {
2491 test -z "$ac_c_werror_flag" ||
2492 test ! -s conftest.err
2493 } && test -s conftest.$ac_objext; then
2494 ac_compiler_gnu=yes
2495 else
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2499 ac_compiler_gnu=no
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2508 GCC=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CFLAGS=${CFLAGS+set}
2510 ac_save_CFLAGS=$CFLAGS
2511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_cc_g+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516 ac_save_c_werror_flag=$ac_c_werror_flag
2517 ac_c_werror_flag=yes
2518 ac_cv_prog_cc_g=no
2519 CFLAGS="-g"
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h. */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2528 main ()
2532 return 0;
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2543 ac_status=$?
2544 grep -v '^ *+' conftest.er1 >conftest.err
2545 rm -f conftest.er1
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2552 ac_cv_prog_cc_g=yes
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 CFLAGS=""
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2566 main ()
2570 return 0;
2572 _ACEOF
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2581 ac_status=$?
2582 grep -v '^ *+' conftest.er1 >conftest.err
2583 rm -f conftest.er1
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } && {
2587 test -z "$ac_c_werror_flag" ||
2588 test ! -s conftest.err
2589 } && test -s conftest.$ac_objext; then
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 ac_c_werror_flag=$ac_save_c_werror_flag
2596 CFLAGS="-g"
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2605 main ()
2609 return 0;
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (ac_try="$ac_compile"
2614 case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2617 esac
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.$ac_objext; then
2629 ac_cv_prog_cc_g=yes
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2652 CFLAGS="-g -O2"
2653 else
2654 CFLAGS="-g"
2656 else
2657 if test "$GCC" = yes; then
2658 CFLAGS="-O2"
2659 else
2660 CFLAGS=
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 ac_cv_prog_cc_c89=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684 char **p;
2685 int i;
2687 return p[i];
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2691 char *s;
2692 va_list v;
2693 va_start (v,p);
2694 s = g (p, va_arg (v,int));
2695 va_end (v);
2696 return s;
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2710 #define FOO(x) 'x'
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2717 int argc;
2718 char **argv;
2720 main ()
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2724 return 0;
2726 _ACEOF
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2748 ac_cv_prog_cc_c89=$ac_arg
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f core conftest.err conftest.$ac_objext
2757 test "x$ac_cv_prog_cc_c89" != "xno" && break
2758 done
2759 rm -f conftest.$ac_ext
2760 CC=$ac_save_CC
2763 # AC_CACHE_VAL
2764 case "x$ac_cv_prog_cc_c89" in
2766 { echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6; } ;;
2768 xno)
2769 { echo "$as_me:$LINENO: result: unsupported" >&5
2770 echo "${ECHO_T}unsupported" >&6; } ;;
2772 CC="$CC $ac_cv_prog_cc_c89"
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2775 esac
2778 ac_ext=c
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2783 ac_ext=c
2784 ac_cpp='$CPP $CPPFLAGS'
2785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2790 # On Suns, sometimes $CPP names a directory.
2791 if test -n "$CPP" && test -d "$CPP"; then
2792 CPP=
2794 if test -z "$CPP"; then
2795 if test "${ac_cv_prog_CPP+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798 # Double quotes because CPP needs to be expanded
2799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2801 ac_preproc_ok=false
2802 for ac_c_preproc_warn_flag in '' yes
2804 # Use a header file that comes with gcc, so configuring glibc
2805 # with a fresh cross-compiler works.
2806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2807 # <limits.h> exists even on freestanding compilers.
2808 # On the NeXT, cc -E runs the code through the compiler's parser,
2809 # not just through cpp. "Syntax error" is here to catch this case.
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816 #ifdef __STDC__
2817 # include <limits.h>
2818 #else
2819 # include <assert.h>
2820 #endif
2821 Syntax error
2822 _ACEOF
2823 if { (ac_try="$ac_cpp conftest.$ac_ext"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } >/dev/null && {
2836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 }; then
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Broken: fails on valid input.
2845 continue
2848 rm -f conftest.err conftest.$ac_ext
2850 # OK, works on sane cases. Now check whether nonexistent headers
2851 # can be detected and how.
2852 cat >conftest.$ac_ext <<_ACEOF
2853 /* confdefs.h. */
2854 _ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 #include <ac_nonexistent.h>
2859 _ACEOF
2860 if { (ac_try="$ac_cpp conftest.$ac_ext"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2867 ac_status=$?
2868 grep -v '^ *+' conftest.er1 >conftest.err
2869 rm -f conftest.er1
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } >/dev/null && {
2873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2874 test ! -s conftest.err
2875 }; then
2876 # Broken: success on invalid input.
2877 continue
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2882 # Passes both tests.
2883 ac_preproc_ok=:
2884 break
2887 rm -f conftest.err conftest.$ac_ext
2889 done
2890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2891 rm -f conftest.err conftest.$ac_ext
2892 if $ac_preproc_ok; then
2893 break
2896 done
2897 ac_cv_prog_CPP=$CPP
2900 CPP=$ac_cv_prog_CPP
2901 else
2902 ac_cv_prog_CPP=$CPP
2904 { echo "$as_me:$LINENO: result: $CPP" >&5
2905 echo "${ECHO_T}$CPP" >&6; }
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (ac_try="$ac_cpp conftest.$ac_ext"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null && {
2941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 }; then
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Broken: fails on valid input.
2950 continue
2953 rm -f conftest.err conftest.$ac_ext
2955 # OK, works on sane cases. Now check whether nonexistent headers
2956 # can be detected and how.
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #include <ac_nonexistent.h>
2964 _ACEOF
2965 if { (ac_try="$ac_cpp conftest.$ac_ext"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } >/dev/null && {
2978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2979 test ! -s conftest.err
2980 }; then
2981 # Broken: success on invalid input.
2982 continue
2983 else
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 # Passes both tests.
2988 ac_preproc_ok=:
2989 break
2992 rm -f conftest.err conftest.$ac_ext
2994 done
2995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2996 rm -f conftest.err conftest.$ac_ext
2997 if $ac_preproc_ok; then
2999 else
3000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3003 See \`config.log' for more details." >&2;}
3004 { (exit 1); exit 1; }; }
3007 ac_ext=c
3008 ac_cpp='$CPP $CPPFLAGS'
3009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3015 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3016 if test "${ac_cv_path_GREP+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019 # Extract the first word of "grep ggrep" to use in msg output
3020 if test -z "$GREP"; then
3021 set dummy grep ggrep; ac_prog_name=$2
3022 if test "${ac_cv_path_GREP+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025 ac_path_GREP_found=false
3026 # Loop through the user's path and test for each of PROGNAME-LIST
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_prog in grep ggrep; do
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3036 # Check for GNU ac_path_GREP and select it if it is found.
3037 # Check for GNU $ac_path_GREP
3038 case `"$ac_path_GREP" --version 2>&1` in
3039 *GNU*)
3040 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3042 ac_count=0
3043 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3044 while :
3046 cat "conftest.in" "conftest.in" >"conftest.tmp"
3047 mv "conftest.tmp" "conftest.in"
3048 cp "conftest.in" "conftest.nl"
3049 echo 'GREP' >> "conftest.nl"
3050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3052 ac_count=`expr $ac_count + 1`
3053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3054 # Best one so far, save it but keep looking for a better one
3055 ac_cv_path_GREP="$ac_path_GREP"
3056 ac_path_GREP_max=$ac_count
3058 # 10*(2^10) chars as input seems more than enough
3059 test $ac_count -gt 10 && break
3060 done
3061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3062 esac
3065 $ac_path_GREP_found && break 3
3066 done
3067 done
3069 done
3070 IFS=$as_save_IFS
3075 GREP="$ac_cv_path_GREP"
3076 if test -z "$GREP"; then
3077 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3078 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3079 { (exit 1); exit 1; }; }
3082 else
3083 ac_cv_path_GREP=$GREP
3088 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3089 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3090 GREP="$ac_cv_path_GREP"
3093 { echo "$as_me:$LINENO: checking for egrep" >&5
3094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3095 if test "${ac_cv_path_EGREP+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3099 then ac_cv_path_EGREP="$GREP -E"
3100 else
3101 # Extract the first word of "egrep" to use in msg output
3102 if test -z "$EGREP"; then
3103 set dummy egrep; ac_prog_name=$2
3104 if test "${ac_cv_path_EGREP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 ac_path_EGREP_found=false
3108 # Loop through the user's path and test for each of PROGNAME-LIST
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3112 IFS=$as_save_IFS
3113 test -z "$as_dir" && as_dir=.
3114 for ac_prog in egrep; do
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3117 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3118 # Check for GNU ac_path_EGREP and select it if it is found.
3119 # Check for GNU $ac_path_EGREP
3120 case `"$ac_path_EGREP" --version 2>&1` in
3121 *GNU*)
3122 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3124 ac_count=0
3125 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3126 while :
3128 cat "conftest.in" "conftest.in" >"conftest.tmp"
3129 mv "conftest.tmp" "conftest.in"
3130 cp "conftest.in" "conftest.nl"
3131 echo 'EGREP' >> "conftest.nl"
3132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3134 ac_count=`expr $ac_count + 1`
3135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3136 # Best one so far, save it but keep looking for a better one
3137 ac_cv_path_EGREP="$ac_path_EGREP"
3138 ac_path_EGREP_max=$ac_count
3140 # 10*(2^10) chars as input seems more than enough
3141 test $ac_count -gt 10 && break
3142 done
3143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3144 esac
3147 $ac_path_EGREP_found && break 3
3148 done
3149 done
3151 done
3152 IFS=$as_save_IFS
3157 EGREP="$ac_cv_path_EGREP"
3158 if test -z "$EGREP"; then
3159 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3160 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3161 { (exit 1); exit 1; }; }
3164 else
3165 ac_cv_path_EGREP=$EGREP
3171 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3172 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3173 EGREP="$ac_cv_path_EGREP"
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h. */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3183 _ACEOF
3184 rm -f -r conftest*
3185 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3186 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3187 if test "${ac_cv_search_strerror+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 ac_func_search_save_LIBS=$LIBS
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3198 /* Override any GCC internal prototype to avoid an error.
3199 Use char because int might match the return type of a GCC
3200 builtin and then its argument prototype would still apply. */
3201 #ifdef __cplusplus
3202 extern "C"
3203 #endif
3204 char strerror ();
3206 main ()
3208 return strerror ();
3210 return 0;
3212 _ACEOF
3213 for ac_lib in '' cposix; do
3214 if test -z "$ac_lib"; then
3215 ac_res="none required"
3216 else
3217 ac_res=-l$ac_lib
3218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (ac_try="$ac_link"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_link") 2>conftest.er1
3228 ac_status=$?
3229 grep -v '^ *+' conftest.er1 >conftest.err
3230 rm -f conftest.er1
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest$ac_exeext &&
3237 $as_test_x conftest$ac_exeext; then
3238 ac_cv_search_strerror=$ac_res
3239 else
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3247 conftest$ac_exeext
3248 if test "${ac_cv_search_strerror+set}" = set; then
3249 break
3251 done
3252 if test "${ac_cv_search_strerror+set}" = set; then
3254 else
3255 ac_cv_search_strerror=no
3257 rm conftest.$ac_ext
3258 LIBS=$ac_func_search_save_LIBS
3260 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3261 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3262 ac_res=$ac_cv_search_strerror
3263 if test "$ac_res" != no; then
3264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3267 for ac_prog in gawk mawk nawk awk
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_AWK+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 if test -n "$AWK"; then
3277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_AWK="$ac_prog"
3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3290 done
3291 done
3292 IFS=$as_save_IFS
3296 AWK=$ac_cv_prog_AWK
3297 if test -n "$AWK"; then
3298 { echo "$as_me:$LINENO: result: $AWK" >&5
3299 echo "${ECHO_T}$AWK" >&6; }
3300 else
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 test -n "$AWK" && break
3307 done
3309 # Extract the first word of "strip", so it can be a program name with args.
3310 set dummy strip; ac_word=$2
3311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3313 if test "${ac_cv_prog_STRIP+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if test -n "$STRIP"; then
3317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_STRIP="strip"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3330 done
3331 done
3332 IFS=$as_save_IFS
3334 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339 { echo "$as_me:$LINENO: result: $STRIP" >&5
3340 echo "${ECHO_T}$STRIP" >&6; }
3341 else
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3352 if test "${ac_cv_header_stdc+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3361 #include <stdlib.h>
3362 #include <stdarg.h>
3363 #include <string.h>
3364 #include <float.h>
3367 main ()
3371 return 0;
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_cv_header_stdc=yes
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 ac_cv_header_stdc=no
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 if test $ac_cv_header_stdc = yes; then
3402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <string.h>
3411 _ACEOF
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 $EGREP "memchr" >/dev/null 2>&1; then
3415 else
3416 ac_cv_header_stdc=no
3418 rm -f -r conftest*
3422 if test $ac_cv_header_stdc = yes; then
3423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <stdlib.h>
3432 _ACEOF
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 $EGREP "free" >/dev/null 2>&1; then
3436 else
3437 ac_cv_header_stdc=no
3439 rm -f -r conftest*
3443 if test $ac_cv_header_stdc = yes; then
3444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3445 if test "$cross_compiling" = yes; then
3447 else
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <ctype.h>
3455 #include <stdlib.h>
3456 #if ((' ' & 0x0FF) == 0x020)
3457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3459 #else
3460 # define ISLOWER(c) \
3461 (('a' <= (c) && (c) <= 'i') \
3462 || ('j' <= (c) && (c) <= 'r') \
3463 || ('s' <= (c) && (c) <= 'z'))
3464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3465 #endif
3467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3469 main ()
3471 int i;
3472 for (i = 0; i < 256; i++)
3473 if (XOR (islower (i), ISLOWER (i))
3474 || toupper (i) != TOUPPER (i))
3475 return 2;
3476 return 0;
3478 _ACEOF
3479 rm -f conftest$ac_exeext
3480 if { (ac_try="$ac_link"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_link") 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3490 { (case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_try") 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3500 else
3501 echo "$as_me: program exited with status $ac_status" >&5
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3505 ( exit $ac_status )
3506 ac_cv_header_stdc=no
3508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3516 if test $ac_cv_header_stdc = yes; then
3518 cat >>confdefs.h <<\_ACEOF
3519 #define STDC_HEADERS 1
3520 _ACEOF
3524 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3525 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3526 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 cat >conftest.$ac_ext <<_ACEOF
3530 /* confdefs.h. */
3531 _ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <sys/types.h>
3536 #include <sys/wait.h>
3537 #ifndef WEXITSTATUS
3538 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3539 #endif
3540 #ifndef WIFEXITED
3541 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3542 #endif
3545 main ()
3547 int s;
3548 wait (&s);
3549 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3551 return 0;
3553 _ACEOF
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3562 ac_status=$?
3563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_header_sys_wait_h=yes
3572 else
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 ac_cv_header_sys_wait_h=no
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3582 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3583 if test $ac_cv_header_sys_wait_h = yes; then
3585 cat >>confdefs.h <<\_ACEOF
3586 #define HAVE_SYS_WAIT_H 1
3587 _ACEOF
3592 if test -z "$CFLAGS"; then
3593 CFLAGS="-O"
3594 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3596 if test "$GCC" = yes; then
3597 gccversion=`"$CC" -dumpversion`
3598 if test "x$gccversion" = "x"; then
3599 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3601 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3602 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3603 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3604 else
3605 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3606 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3607 CFLAGS="$CFLAGS -fno-strength-reduce"
3612 if test "$cross_compiling" = yes; then
3613 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3614 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3617 test "$GCC" = yes && CPP_MM=M;
3619 if test -f ./toolcheck; then
3620 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3621 echo "$as_me: checking for buggy tools..." >&6;}
3622 sh ./toolcheck 1>&6
3625 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3627 { echo "$as_me:$LINENO: checking for BeOS" >&5
3628 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3629 case `uname` in
3630 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3631 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; };;
3633 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6; };;
3635 esac
3637 { echo "$as_me:$LINENO: checking for QNX" >&5
3638 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3639 case `uname` in
3640 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3641 test -z "$with_x" && with_x=no
3642 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; };;
3644 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; };;
3646 esac
3648 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3649 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3650 if test "`(uname) 2>/dev/null`" = Darwin; then
3651 { echo "$as_me:$LINENO: result: yes" >&5
3652 echo "${ECHO_T}yes" >&6; }
3654 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3655 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3656 # Check whether --enable-darwin was given.
3657 if test "${enable_darwin+set}" = set; then
3658 enableval=$enable_darwin;
3659 else
3660 enable_darwin="yes"
3663 if test "$enable_darwin" = "yes"; then
3664 { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3666 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3667 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3668 if test -f os_macosx.c; then
3669 { echo "$as_me:$LINENO: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6; }
3671 else
3672 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3673 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3674 enable_darwin=no
3676 else
3677 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3678 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3682 { echo "$as_me:$LINENO: checking --with-macsdk argument" >&5
3683 echo $ECHO_N "checking --with-macsdk argument... $ECHO_C" >&6; }
3685 # Check whether --with-macsdk was given.
3686 if test "${with_macsdk+set}" = set; then
3687 withval=$with_macsdk; MACSDK="$withval"; { echo "$as_me:$LINENO: result: $MACSDK" >&5
3688 echo "${ECHO_T}$MACSDK" >&6; }
3689 else
3690 MACSDK=""; { echo "$as_me:$LINENO: result: using default" >&5
3691 echo "${ECHO_T}using default" >&6; }
3695 if test -n "$MACSDK"; then
3696 { echo "$as_me:$LINENO: checking if SDK is supported" >&5
3697 echo $ECHO_N "checking if SDK is supported... $ECHO_C" >&6; }
3698 save_cflags="$CFLAGS"
3699 save_ldflags="$LDFLAGS"
3700 sdkflags="/Developer/SDKs/MacOSX$MACSDK"
3701 if test "x$MACSDK" = "x10.4"; then
3702 sdkflags="$sdkflags""u"
3704 sdkflags="$sdkflags.sdk -mmacosx-version-min=$MACSDK"
3705 CFLAGS="$CFLAGS -isysroot $sdkflags"
3706 LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags"
3707 cat >conftest.$ac_ext <<_ACEOF
3708 /* confdefs.h. */
3709 _ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3715 main ()
3719 return 0;
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (ac_try="$ac_link"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_link") 2>conftest.er1
3730 ac_status=$?
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest$ac_exeext &&
3739 $as_test_x conftest$ac_exeext; then
3740 { echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6; }
3742 XCODEFLAGS="$XCODEFLAGS -sdk macosx$MACSDK MACOSX_DEPLOYMENT_TARGET=$MACSDK"
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6; }
3749 MACSDK=""
3750 CFLAGS="$save_cflags"
3751 LDFLAGS="$save_ldflags"
3754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3755 conftest$ac_exeext conftest.$ac_ext
3759 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3760 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3762 # Check whether --with-macarchs was given.
3763 if test "${with_macarchs+set}" = set; then
3764 withval=$with_macarchs; ARCHS="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3765 echo "${ECHO_T}$ARCHS" >&6; }
3766 else
3767 ARCHS=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3768 echo "${ECHO_T}defaulting to native arch" >&6; }
3772 if test -n "$ARCHS"; then
3773 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3774 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3775 save_cflags="$CFLAGS"
3776 save_ldflags="$LDFLAGS"
3777 archflags=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3778 CFLAGS="$CFLAGS $archflags"
3779 LDFLAGS="$LDFLAGS $archflags"
3780 cat >conftest.$ac_ext <<_ACEOF
3781 /* confdefs.h. */
3782 _ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3788 main ()
3792 return 0;
3794 _ACEOF
3795 rm -f conftest.$ac_objext conftest$ac_exeext
3796 if { (ac_try="$ac_link"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_link") 2>conftest.er1
3803 ac_status=$?
3804 grep -v '^ *+' conftest.er1 >conftest.err
3805 rm -f conftest.er1
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest$ac_exeext &&
3812 $as_test_x conftest$ac_exeext; then
3813 { echo "$as_me:$LINENO: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6; }
3815 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3821 echo "${ECHO_T}no, will build for native arch only" >&6; }
3822 ARCHS=""
3823 CFLAGS="$save_cflags"
3824 LDFLAGS="$save_ldflags"
3827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3828 conftest$ac_exeext conftest.$ac_ext
3832 if test "$enable_darwin" = "yes"; then
3833 MACOSX=yes
3834 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3835 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3836 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3838 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3849 inttypes.h stdint.h unistd.h
3851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 $ac_includes_default
3865 #include <$ac_header>
3866 _ACEOF
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compile") 2>conftest.er1
3875 ac_status=$?
3876 grep -v '^ *+' conftest.er1 >conftest.err
3877 rm -f conftest.er1
3878 cat conftest.err >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest.$ac_objext; then
3884 eval "$as_ac_Header=yes"
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 eval "$as_ac_Header=no"
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_res=`eval echo '${'$as_ac_Header'}'`
3895 { echo "$as_me:$LINENO: result: $ac_res" >&5
3896 echo "${ECHO_T}$ac_res" >&6; }
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898 cat >>confdefs.h <<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3900 _ACEOF
3904 done
3907 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3908 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3909 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3910 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3914 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3915 else
3916 # Is the header compilable?
3917 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3918 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3919 cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h. */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 $ac_includes_default
3926 #include <Carbon/Carbon.h>
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3936 ac_status=$?
3937 grep -v '^ *+' conftest.er1 >conftest.err
3938 rm -f conftest.er1
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.$ac_objext; then
3945 ac_header_compiler=yes
3946 else
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 ac_header_compiler=no
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3955 echo "${ECHO_T}$ac_header_compiler" >&6; }
3957 # Is the header present?
3958 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3959 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 #include <Carbon/Carbon.h>
3967 _ACEOF
3968 if { (ac_try="$ac_cpp conftest.$ac_ext"
3969 case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972 esac
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3975 ac_status=$?
3976 grep -v '^ *+' conftest.er1 >conftest.err
3977 rm -f conftest.er1
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } >/dev/null && {
3981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 }; then
3984 ac_header_preproc=yes
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 ac_header_preproc=no
3992 rm -f conftest.err conftest.$ac_ext
3993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3994 echo "${ECHO_T}$ac_header_preproc" >&6; }
3996 # So? What about this header?
3997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3998 yes:no: )
3999 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4000 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4002 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4003 ac_header_preproc=yes
4005 no:yes:* )
4006 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4007 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4008 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4009 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4010 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4011 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4012 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4013 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4014 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4015 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4016 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4017 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4020 esac
4021 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4022 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4023 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4028 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4029 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4032 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4033 CARBON=yes
4038 SAVE_CPPFLAGS=$CPPFLAGS
4039 SAVE_CFLAGS=$CFLAGS
4040 CPPFLAGS="$CPPFLAGS -ObjC"
4041 CFLAGS="$CFLAGS -ObjC"
4042 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4043 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4044 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4045 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4049 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4050 else
4051 # Is the header compilable?
4052 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4053 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4061 #include <Cocoa/Cocoa.h>
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (ac_try="$ac_compile"
4065 case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_header_compiler=yes
4081 else
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_header_compiler=no
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090 echo "${ECHO_T}$ac_header_compiler" >&6; }
4092 # Is the header present?
4093 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4094 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4095 cat >conftest.$ac_ext <<_ACEOF
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #include <Cocoa/Cocoa.h>
4102 _ACEOF
4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev/null && {
4116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 }; then
4119 ac_header_preproc=yes
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_header_preproc=no
4127 rm -f conftest.err conftest.$ac_ext
4128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4129 echo "${ECHO_T}$ac_header_preproc" >&6; }
4131 # So? What about this header?
4132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4133 yes:no: )
4134 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4135 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4137 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4138 ac_header_preproc=yes
4140 no:yes:* )
4141 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4142 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4144 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4146 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4148 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4150 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4152 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4155 esac
4156 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4157 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4158 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
4163 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4164 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4167 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4168 COCOA=yes
4172 CPPFLAGS=$SAVE_CPPFLAGS
4173 CFLAGS=$SAVE_CFLAGS
4175 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4176 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
4177 with_x=no
4181 else
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4189 if test "$cross_compiling" = no; then
4190 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4191 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4192 have_local_include=''
4193 have_local_lib=''
4195 # Check whether --with-local-dir was given.
4196 if test "${with_local_dir+set}" = set; then
4197 withval=$with_local_dir;
4198 local_dir="$withval"
4199 case "$withval" in
4200 */*) ;;
4202 # avoid adding local dir to LDFLAGS and CPPFLAGS
4203 have_local_dir=yes
4204 have_local_lib=yes
4206 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4207 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4208 { (exit 1); exit 1; }; } ;;
4209 esac
4210 { echo "$as_me:$LINENO: result: $local_dir" >&5
4211 echo "${ECHO_T}$local_dir" >&6; }
4213 else
4215 local_dir=/usr/local
4216 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4217 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4221 if test "$GCC" = yes -a "$local_dir" != no; then
4222 echo 'void f(){}' > conftest.c
4223 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4224 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4225 rm -f conftest.c conftest.o
4227 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4228 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4229 if test "$tt" = "$LDFLAGS"; then
4230 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4233 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4234 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4235 if test "$tt" = "$CPPFLAGS"; then
4236 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4241 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4242 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4244 # Check whether --with-vim-name was given.
4245 if test "${with_vim_name+set}" = set; then
4246 withval=$with_vim_name; VIMNAME="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4247 echo "${ECHO_T}$VIMNAME" >&6; }
4248 else
4249 VIMNAME="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4250 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4254 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4255 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4257 # Check whether --with-ex-name was given.
4258 if test "${with_ex_name+set}" = set; then
4259 withval=$with_ex_name; EXNAME="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4260 echo "${ECHO_T}$EXNAME" >&6; }
4261 else
4262 EXNAME="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4263 echo "${ECHO_T}Defaulting to ex" >&6; }
4267 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4268 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4270 # Check whether --with-view-name was given.
4271 if test "${with_view_name+set}" = set; then
4272 withval=$with_view_name; VIEWNAME="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4273 echo "${ECHO_T}$VIEWNAME" >&6; }
4274 else
4275 VIEWNAME="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4276 echo "${ECHO_T}Defaulting to view" >&6; }
4281 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4282 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4284 # Check whether --with-global-runtime was given.
4285 if test "${with_global_runtime+set}" = set; then
4286 withval=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4287 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4288 #define RUNTIME_GLOBAL "$withval"
4289 _ACEOF
4291 else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4297 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4298 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4300 # Check whether --with-modified-by was given.
4301 if test "${with_modified_by+set}" = set; then
4302 withval=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4303 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4304 #define MODIFIED_BY "$withval"
4305 _ACEOF
4307 else
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4313 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4314 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4315 cat >conftest.$ac_ext <<_ACEOF
4316 /* confdefs.h. */
4317 _ACEOF
4318 cat confdefs.h >>conftest.$ac_ext
4319 cat >>conftest.$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4323 main ()
4325 /* TryCompile function for CharSet.
4326 Treat any failure as ASCII for compatibility with existing art.
4327 Use compile-time rather than run-time tests for cross-compiler
4328 tolerance. */
4329 #if '0'!=240
4330 make an error "Character set is not EBCDIC"
4331 #endif
4333 return 0;
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (ac_try="$ac_compile"
4338 case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && {
4350 test -z "$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 } && test -s conftest.$ac_objext; then
4353 # TryCompile action if true
4354 cf_cv_ebcdic=yes
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 # TryCompile action if false
4360 cf_cv_ebcdic=no
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 # end of TryCompile ])
4365 # end of CacheVal CvEbcdic
4366 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4367 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4368 case "$cf_cv_ebcdic" in #(vi
4369 yes) cat >>confdefs.h <<\_ACEOF
4370 #define EBCDIC 1
4371 _ACEOF
4373 line_break='"\\n"'
4375 *) line_break='"\\012"';;
4376 esac
4379 if test "$cf_cv_ebcdic" = "yes"; then
4380 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4381 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4382 case `uname` in
4383 OS/390) OS390Unix="yes";
4384 if test "$CC" = "cc"; then
4385 ccm="$_CC_CCMODE"
4386 ccn="CC"
4387 else
4388 if test "$CC" = "c89"; then
4389 ccm="$_CC_C89MODE"
4390 ccn="C89"
4391 else
4392 ccm=1
4395 if test "$ccm" != "1"; then
4396 echo ""
4397 echo "------------------------------------------"
4398 echo " On OS/390 Unix, the environment variable"
4399 echo " __CC_${ccn}MODE must be set to \"1\"!"
4400 echo " Do:"
4401 echo " export _CC_${ccn}MODE=1"
4402 echo " and then call configure again."
4403 echo "------------------------------------------"
4404 exit 1
4406 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4407 { echo "$as_me:$LINENO: result: yes" >&5
4408 echo "${ECHO_T}yes" >&6; }
4410 *) OS390Unix="no";
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4414 esac
4417 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4418 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4419 # Check whether --enable-selinux was given.
4420 if test "${enable_selinux+set}" = set; then
4421 enableval=$enable_selinux;
4422 else
4423 enable_selinux="yes"
4426 if test "$enable_selinux" = "yes"; then
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4430 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4431 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-lselinux $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any GCC internal prototype to avoid an error.
4444 Use char because int might match the return type of a GCC
4445 builtin and then its argument prototype would still apply. */
4446 #ifdef __cplusplus
4447 extern "C"
4448 #endif
4449 char is_selinux_enabled ();
4451 main ()
4453 return is_selinux_enabled ();
4455 return 0;
4457 _ACEOF
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (ac_try="$ac_link"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_link") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest$ac_exeext &&
4475 $as_test_x conftest$ac_exeext; then
4476 ac_cv_lib_selinux_is_selinux_enabled=yes
4477 else
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 ac_cv_lib_selinux_is_selinux_enabled=no
4484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4485 conftest$ac_exeext conftest.$ac_ext
4486 LIBS=$ac_check_lib_save_LIBS
4488 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4489 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4490 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4491 LIBS="$LIBS -lselinux"
4492 cat >>confdefs.h <<\_ACEOF
4493 #define HAVE_SELINUX 1
4494 _ACEOF
4498 else
4499 { echo "$as_me:$LINENO: result: yes" >&5
4500 echo "${ECHO_T}yes" >&6; }
4504 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4505 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4507 # Check whether --with-features was given.
4508 if test "${with_features+set}" = set; then
4509 withval=$with_features; features="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4510 echo "${ECHO_T}$features" >&6; }
4511 else
4512 features="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4513 echo "${ECHO_T}Defaulting to normal" >&6; }
4517 dovimdiff=""
4518 dogvimdiff=""
4519 case "$features" in
4520 tiny) cat >>confdefs.h <<\_ACEOF
4521 #define FEAT_TINY 1
4522 _ACEOF
4524 small) cat >>confdefs.h <<\_ACEOF
4525 #define FEAT_SMALL 1
4526 _ACEOF
4528 normal) cat >>confdefs.h <<\_ACEOF
4529 #define FEAT_NORMAL 1
4530 _ACEOF
4531 dovimdiff="installvimdiff";
4532 dogvimdiff="installgvimdiff" ;;
4533 big) cat >>confdefs.h <<\_ACEOF
4534 #define FEAT_BIG 1
4535 _ACEOF
4536 dovimdiff="installvimdiff";
4537 dogvimdiff="installgvimdiff" ;;
4538 huge) cat >>confdefs.h <<\_ACEOF
4539 #define FEAT_HUGE 1
4540 _ACEOF
4541 dovimdiff="installvimdiff";
4542 dogvimdiff="installgvimdiff" ;;
4543 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4544 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4545 esac
4550 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4551 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4553 # Check whether --with-compiledby was given.
4554 if test "${with_compiledby+set}" = set; then
4555 withval=$with_compiledby; compiledby="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4556 echo "${ECHO_T}$withval" >&6; }
4557 else
4558 compiledby=""; { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4564 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4565 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4566 # Check whether --enable-xsmp was given.
4567 if test "${enable_xsmp+set}" = set; then
4568 enableval=$enable_xsmp;
4569 else
4570 enable_xsmp="yes"
4574 if test "$enable_xsmp" = "yes"; then
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4577 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4578 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4579 # Check whether --enable-xsmp-interact was given.
4580 if test "${enable_xsmp_interact+set}" = set; then
4581 enableval=$enable_xsmp_interact;
4582 else
4583 enable_xsmp_interact="yes"
4586 if test "$enable_xsmp_interact" = "yes"; then
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 cat >>confdefs.h <<\_ACEOF
4590 #define USE_XSMP_INTERACT 1
4591 _ACEOF
4593 else
4594 { echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6; }
4597 else
4598 { echo "$as_me:$LINENO: result: yes" >&5
4599 echo "${ECHO_T}yes" >&6; }
4602 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4603 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4604 # Check whether --enable-mzschemeinterp was given.
4605 if test "${enable_mzschemeinterp+set}" = set; then
4606 enableval=$enable_mzschemeinterp;
4607 else
4608 enable_mzschemeinterp="no"
4611 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4612 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4614 if test "$enable_mzschemeinterp" = "yes"; then
4617 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4618 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4620 # Check whether --with-plthome was given.
4621 if test "${with_plthome+set}" = set; then
4622 withval=$with_plthome; with_plthome="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4623 echo "${ECHO_T}$with_plthome" >&6; }
4624 else
4625 with_plthome="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4626 echo "${ECHO_T}\"no\"" >&6; }
4630 if test "X$with_plthome" != "X"; then
4631 vi_cv_path_mzscheme_pfx="$with_plthome"
4632 else
4633 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4634 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4635 if test "X$PLTHOME" != "X"; then
4636 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4637 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4638 vi_cv_path_mzscheme_pfx="$PLTHOME"
4639 else
4640 { echo "$as_me:$LINENO: result: not set" >&5
4641 echo "${ECHO_T}not set" >&6; }
4642 # Extract the first word of "mzscheme", so it can be a program name with args.
4643 set dummy mzscheme; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 case $vi_cv_path_mzscheme in
4650 [\\/]* | ?:[\\/]*)
4651 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4665 done
4666 done
4667 IFS=$as_save_IFS
4670 esac
4672 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4673 if test -n "$vi_cv_path_mzscheme"; then
4674 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4675 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4676 else
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4683 if test "X$vi_cv_path_mzscheme" != "X"; then
4684 lsout=`ls -l $vi_cv_path_mzscheme`
4685 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4686 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4690 if test "X$vi_cv_path_mzscheme" != "X"; then
4691 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4692 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4693 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 echo "(display (simplify-path \
4697 (build-path (call-with-values \
4698 (lambda () (split-path (find-system-path (quote exec-file)))) \
4699 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4700 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4701 sed -e 's+/$++'`
4703 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4704 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4705 rm -f mzdirs.scm
4710 SCHEME_INC=
4711 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4712 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4713 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4714 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4715 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4718 else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4722 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4723 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }
4726 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4727 else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4731 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4732 if test -f /usr/include/plt/scheme.h; then
4733 { echo "$as_me:$LINENO: result: yes" >&5
4734 echo "${ECHO_T}yes" >&6; }
4735 SCHEME_INC=/usr/include/plt
4736 else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 vi_cv_path_mzscheme_pfx=
4745 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4746 if test "x$MACOSX" = "xyes"; then
4747 MZSCHEME_LIBS="-framework PLT_MzScheme"
4748 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4749 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4750 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4751 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4752 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4753 else
4754 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4755 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4756 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4757 else
4758 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4760 if test "$GCC" = yes; then
4761 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4762 elif test "`(uname) 2>/dev/null`" = SunOS &&
4763 uname -r | grep '^5' >/dev/null; then
4764 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4767 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4768 SCHEME_COLLECTS=lib/plt/
4770 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4771 MZSCHEME_EXTRA="mzscheme_base.c"
4772 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4773 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4775 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4776 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4777 MZSCHEME_SRC="if_mzsch.c"
4778 MZSCHEME_OBJ="objects/if_mzsch.o"
4779 MZSCHEME_PRO="if_mzsch.pro"
4780 cat >>confdefs.h <<\_ACEOF
4781 #define FEAT_MZSCHEME 1
4782 _ACEOF
4795 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4796 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4797 # Check whether --enable-perlinterp was given.
4798 if test "${enable_perlinterp+set}" = set; then
4799 enableval=$enable_perlinterp;
4800 else
4801 enable_perlinterp="no"
4804 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4805 echo "${ECHO_T}$enable_perlinterp" >&6; }
4806 if test "$enable_perlinterp" = "yes"; then
4808 # Extract the first word of "perl", so it can be a program name with args.
4809 set dummy perl; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 case $vi_cv_path_perl in
4816 [\\/]* | ?:[\\/]*)
4817 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4836 esac
4838 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4839 if test -n "$vi_cv_path_perl"; then
4840 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4841 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4842 else
4843 { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4848 if test "X$vi_cv_path_perl" != "X"; then
4849 { echo "$as_me:$LINENO: checking Perl version" >&5
4850 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4851 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4852 eval `$vi_cv_path_perl -V:usethreads`
4853 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4854 badthreads=no
4855 else
4856 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4857 eval `$vi_cv_path_perl -V:use5005threads`
4858 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4859 badthreads=no
4860 else
4861 badthreads=yes
4862 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4863 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4865 else
4866 badthreads=yes
4867 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4868 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4871 if test $badthreads = no; then
4872 { echo "$as_me:$LINENO: result: OK" >&5
4873 echo "${ECHO_T}OK" >&6; }
4874 eval `$vi_cv_path_perl -V:shrpenv`
4875 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4876 shrpenv=""
4878 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4880 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4881 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4882 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4883 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4884 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4885 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4886 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4888 if test "x$MACOSX" = "xyes"; then
4889 perllibs=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4890 perlcppflags=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4893 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4894 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4895 cflags_save=$CFLAGS
4896 libs_save=$LIBS
4897 ldflags_save=$LDFLAGS
4898 CFLAGS="$CFLAGS $perlcppflags"
4899 LIBS="$LIBS $perllibs"
4900 LDFLAGS="$perlldflags $LDFLAGS"
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h. */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4909 main ()
4913 return 0;
4915 _ACEOF
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (ac_try="$ac_link"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_link") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest$ac_exeext &&
4933 $as_test_x conftest$ac_exeext; then
4934 { echo "$as_me:$LINENO: result: yes" >&5
4935 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
4936 else
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4941 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
4944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4945 conftest$ac_exeext conftest.$ac_ext
4946 CFLAGS=$cflags_save
4947 LIBS=$libs_save
4948 LDFLAGS=$ldflags_save
4949 if test $perl_ok = yes; then
4950 if test "X$perlcppflags" != "X"; then
4951 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4953 if test "X$perlldflags" != "X"; then
4954 LDFLAGS="$perlldflags $LDFLAGS"
4956 PERL_LIBS=$perllibs
4957 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4958 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4959 PERL_PRO="if_perl.pro if_perlsfio.pro"
4960 cat >>confdefs.h <<\_ACEOF
4961 #define FEAT_PERL 1
4962 _ACEOF
4966 else
4967 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4968 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4972 if test "x$MACOSX" = "xyes"; then
4973 dir=/System/Library/Perl
4974 darwindir=$dir/darwin
4975 if test -d $darwindir; then
4976 PERL=/usr/bin/perl
4977 else
4978 dir=/System/Library/Perl/5.8.1
4979 darwindir=$dir/darwin-thread-multi-2level
4980 if test -d $darwindir; then
4981 PERL=/usr/bin/perl
4984 if test -n "$PERL"; then
4985 PERL_DIR="$dir"
4986 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4987 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4988 PERL_LIBS="-L$darwindir/CORE -lperl"
4999 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5000 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
5001 # Check whether --enable-pythoninterp was given.
5002 if test "${enable_pythoninterp+set}" = set; then
5003 enableval=$enable_pythoninterp;
5004 else
5005 enable_pythoninterp="no"
5008 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5009 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5010 if test "$enable_pythoninterp" = "yes"; then
5011 # Extract the first word of "python", so it can be a program name with args.
5012 set dummy python; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 case $vi_cv_path_python in
5019 [\\/]* | ?:[\\/]*)
5020 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5034 done
5035 done
5036 IFS=$as_save_IFS
5039 esac
5041 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5042 if test -n "$vi_cv_path_python"; then
5043 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5044 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5045 else
5046 { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5051 if test "X$vi_cv_path_python" != "X"; then
5053 { echo "$as_me:$LINENO: checking Python version" >&5
5054 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5055 if test "${vi_cv_var_python_version+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 vi_cv_var_python_version=`
5059 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5062 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5063 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5065 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5066 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5067 if ${vi_cv_path_python} -c \
5068 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5069 then
5070 { echo "$as_me:$LINENO: result: yep" >&5
5071 echo "${ECHO_T}yep" >&6; }
5073 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5074 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5075 if test "${vi_cv_path_python_pfx+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 vi_cv_path_python_pfx=`
5079 ${vi_cv_path_python} -c \
5080 "import sys; print sys.prefix"`
5082 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5083 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5085 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5086 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5087 if test "${vi_cv_path_python_epfx+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 vi_cv_path_python_epfx=`
5091 ${vi_cv_path_python} -c \
5092 "import sys; print sys.exec_prefix"`
5094 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5095 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5098 if test "${vi_cv_path_pythonpath+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 vi_cv_path_pythonpath=`
5102 unset PYTHONPATH;
5103 ${vi_cv_path_python} -c \
5104 "import sys, string; print string.join(sys.path,':')"`
5110 # Check whether --with-python-config-dir was given.
5111 if test "${with_python_config_dir+set}" = set; then
5112 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5116 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5117 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5118 if test "${vi_cv_path_python_conf+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5122 vi_cv_path_python_conf=
5123 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5124 for subdir in lib64 lib share; do
5125 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5126 if test -d "$d" && test -f "$d/config.c"; then
5127 vi_cv_path_python_conf="$d"
5129 done
5130 done
5133 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5134 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5136 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5138 if test "X$PYTHON_CONFDIR" = "X"; then
5139 { echo "$as_me:$LINENO: result: can't find it!" >&5
5140 echo "${ECHO_T}can't find it!" >&6; }
5141 else
5143 if test "${vi_cv_path_python_plibs+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5147 pwd=`pwd`
5148 tmp_mkf="$pwd/config-PyMake$$"
5149 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5151 @echo "python_MODLIBS='$(MODLIBS)'"
5152 @echo "python_LIBS='$(LIBS)'"
5153 @echo "python_SYSLIBS='$(SYSLIBS)'"
5154 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5156 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5157 rm -f -- "${tmp_mkf}"
5158 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5159 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5160 vi_cv_path_python_plibs="-framework Python"
5161 else
5162 if test "${vi_cv_var_python_version}" = "1.4"; then
5163 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5164 else
5165 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5167 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5168 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5174 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5175 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5176 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5177 else
5178 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}"
5180 PYTHON_SRC="if_python.c"
5181 if test "x$MACOSX" = "xyes"; then
5182 PYTHON_OBJ="objects/if_python.o"
5183 else
5184 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5186 if test "${vi_cv_var_python_version}" = "1.4"; then
5187 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5189 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5191 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5192 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5193 threadsafe_flag=
5194 thread_lib=
5195 if test "`(uname) 2>/dev/null`" != Darwin; then
5196 test "$GCC" = yes && threadsafe_flag="-pthread"
5197 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5198 threadsafe_flag="-D_THREAD_SAFE"
5199 thread_lib="-pthread"
5202 libs_save_old=$LIBS
5203 if test -n "$threadsafe_flag"; then
5204 cflags_save=$CFLAGS
5205 CFLAGS="$CFLAGS $threadsafe_flag"
5206 LIBS="$LIBS $thread_lib"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5215 main ()
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (ac_try="$ac_link"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_link") 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest$ac_exeext &&
5239 $as_test_x conftest$ac_exeext; then
5240 { echo "$as_me:$LINENO: result: yes" >&5
5241 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5242 else
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }; LIBS=$libs_save_old
5251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5252 conftest$ac_exeext conftest.$ac_ext
5253 CFLAGS=$cflags_save
5254 else
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5259 if test -n "$MACSDK"; then
5260 PYTHON_CFLAGS=
5261 PYTHON_LIBS=-framework Python
5262 PYTHON_CONFDIR=
5263 PYTHON_GETPATH_CFLAGS=
5266 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5267 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5268 cflags_save=$CFLAGS
5269 libs_save=$LIBS
5270 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5271 LIBS="$LIBS $PYTHON_LIBS"
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5280 main ()
5284 return 0;
5286 _ACEOF
5287 rm -f conftest.$ac_objext conftest$ac_exeext
5288 if { (ac_try="$ac_link"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest$ac_exeext &&
5304 $as_test_x conftest$ac_exeext; then
5305 { echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5312 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5316 conftest$ac_exeext conftest.$ac_ext
5317 CFLAGS=$cflags_save
5318 LIBS=$libs_save
5319 if test $python_ok = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define FEAT_PYTHON 1
5322 _ACEOF
5324 else
5325 LIBS=$libs_save_old
5326 PYTHON_SRC=
5327 PYTHON_OBJ=
5328 PYTHON_LIBS=
5329 PYTHON_CFLAGS=
5333 else
5334 { echo "$as_me:$LINENO: result: too old" >&5
5335 echo "${ECHO_T}too old" >&6; }
5346 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5347 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5348 # Check whether --enable-tclinterp was given.
5349 if test "${enable_tclinterp+set}" = set; then
5350 enableval=$enable_tclinterp;
5351 else
5352 enable_tclinterp="no"
5355 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5356 echo "${ECHO_T}$enable_tclinterp" >&6; }
5358 if test "$enable_tclinterp" = "yes"; then
5360 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5361 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5363 # Check whether --with-tclsh was given.
5364 if test "${with_tclsh+set}" = set; then
5365 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5366 echo "${ECHO_T}$tclsh_name" >&6; }
5367 else
5368 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6; }
5372 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5373 set dummy $tclsh_name; ac_word=$2
5374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5376 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379 case $vi_cv_path_tcl in
5380 [\\/]* | ?:[\\/]*)
5381 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5400 esac
5402 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5403 if test -n "$vi_cv_path_tcl"; then
5404 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5405 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5406 else
5407 { echo "$as_me:$LINENO: result: no" >&5
5408 echo "${ECHO_T}no" >&6; }
5414 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5415 tclsh_name="tclsh8.4"
5416 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5417 set dummy $tclsh_name; ac_word=$2
5418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5420 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 case $vi_cv_path_tcl in
5424 [\\/]* | ?:[\\/]*)
5425 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5444 esac
5446 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5447 if test -n "$vi_cv_path_tcl"; then
5448 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5449 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5450 else
5451 { echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6; }
5457 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5458 tclsh_name="tclsh8.2"
5459 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5460 set dummy $tclsh_name; ac_word=$2
5461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5463 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 case $vi_cv_path_tcl in
5467 [\\/]* | ?:[\\/]*)
5468 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5482 done
5483 done
5484 IFS=$as_save_IFS
5487 esac
5489 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5490 if test -n "$vi_cv_path_tcl"; then
5491 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5492 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5493 else
5494 { echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6; }
5500 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5501 tclsh_name="tclsh8.0"
5502 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5503 set dummy $tclsh_name; ac_word=$2
5504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 case $vi_cv_path_tcl in
5510 [\\/]* | ?:[\\/]*)
5511 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523 break 2
5525 done
5526 done
5527 IFS=$as_save_IFS
5530 esac
5532 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5533 if test -n "$vi_cv_path_tcl"; then
5534 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5535 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5536 else
5537 { echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6; }
5543 if test "X$vi_cv_path_tcl" = "X"; then
5544 tclsh_name="tclsh"
5545 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5546 set dummy $tclsh_name; ac_word=$2
5547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5549 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 case $vi_cv_path_tcl in
5553 [\\/]* | ?:[\\/]*)
5554 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5570 IFS=$as_save_IFS
5573 esac
5575 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5576 if test -n "$vi_cv_path_tcl"; then
5577 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5578 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5579 else
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5586 if test "X$vi_cv_path_tcl" != "X"; then
5587 { echo "$as_me:$LINENO: checking Tcl version" >&5
5588 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5589 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5590 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5591 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5592 echo "${ECHO_T}$tclver - OK" >&6; };
5593 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 -`
5595 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5596 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5597 if test "x$MACOSX" != "xyes"; then
5598 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5599 else
5600 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5602 TCL_INC=
5603 for try in $tclinc; do
5604 if test -f "$try/tcl.h"; then
5605 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5606 echo "${ECHO_T}$try/tcl.h" >&6; }
5607 TCL_INC=$try
5608 break
5610 done
5611 if test -z "$TCL_INC"; then
5612 { echo "$as_me:$LINENO: result: <not found>" >&5
5613 echo "${ECHO_T}<not found>" >&6; }
5614 SKIP_TCL=YES
5616 if test -z "$SKIP_TCL"; then
5617 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5618 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5619 if test "x$MACOSX" != "xyes"; then
5620 tclcnf=`echo $tclinc | sed s/include/lib/g`
5621 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5622 else
5623 tclcnf="/System/Library/Frameworks/Tcl.framework"
5625 for try in $tclcnf; do
5626 if test -f $try/tclConfig.sh; then
5627 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5628 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5629 . $try/tclConfig.sh
5630 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5631 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'`
5632 break
5634 done
5635 if test -z "$TCL_LIBS"; then
5636 { echo "$as_me:$LINENO: result: <not found>" >&5
5637 echo "${ECHO_T}<not found>" >&6; }
5638 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5639 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5640 tcllib=`echo $tclinc | sed s/include/lib/g`
5641 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5642 for ext in .so .a ; do
5643 for ver in "" $tclver ; do
5644 for try in $tcllib ; do
5645 trylib=tcl$ver$ext
5646 if test -f $try/lib$trylib ; then
5647 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5648 echo "${ECHO_T}$try/lib$trylib" >&6; }
5649 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5650 if test "`(uname) 2>/dev/null`" = SunOS &&
5651 uname -r | grep '^5' >/dev/null; then
5652 TCL_LIBS="$TCL_LIBS -R $try"
5654 break 3
5656 done
5657 done
5658 done
5659 if test -z "$TCL_LIBS"; then
5660 { echo "$as_me:$LINENO: result: <not found>" >&5
5661 echo "${ECHO_T}<not found>" >&6; }
5662 SKIP_TCL=YES
5665 if test -z "$SKIP_TCL"; then
5666 cat >>confdefs.h <<\_ACEOF
5667 #define FEAT_TCL 1
5668 _ACEOF
5670 TCL_SRC=if_tcl.c
5671 TCL_OBJ=objects/if_tcl.o
5672 TCL_PRO=if_tcl.pro
5673 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5676 else
5677 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5678 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5688 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5689 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5690 # Check whether --enable-rubyinterp was given.
5691 if test "${enable_rubyinterp+set}" = set; then
5692 enableval=$enable_rubyinterp;
5693 else
5694 enable_rubyinterp="no"
5697 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5698 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5699 if test "$enable_rubyinterp" = "yes"; then
5700 { echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5701 echo $ECHO_N "checking --with-ruby-command argument... $ECHO_C" >&6; }
5703 # Check whether --with-ruby-command was given.
5704 if test "${with_ruby_command+set}" = set; then
5705 withval=$with_ruby_command; RUBY_CMD="$withval"; { echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5706 echo "${ECHO_T}$RUBY_CMD" >&6; }
5707 else
5708 RUBY_CMD="ruby"; { echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5709 echo "${ECHO_T}defaulting to $RUBY_CMD" >&6; }
5713 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5714 set dummy $RUBY_CMD; ac_word=$2
5715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5717 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 else
5720 case $vi_cv_path_ruby in
5721 [\\/]* | ?:[\\/]*)
5722 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5741 esac
5743 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5744 if test -n "$vi_cv_path_ruby"; then
5745 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5746 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5747 else
5748 { echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6; }
5753 if test "X$vi_cv_path_ruby" != "X"; then
5754 { echo "$as_me:$LINENO: checking Ruby version" >&5
5755 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5756 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5757 { echo "$as_me:$LINENO: result: OK" >&5
5758 echo "${ECHO_T}OK" >&6; }
5759 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5760 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5761 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5762 if test "X$rubyhdrdir" != "X"; then
5763 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5764 echo "${ECHO_T}$rubyhdrdir" >&6; }
5765 RUBY_CFLAGS="-I$rubyhdrdir"
5766 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5767 if test -d "$rubyhdrdir/$rubyarch"; then
5768 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5770 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5771 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5772 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5773 if test "X$rubylibs" != "X"; then
5774 RUBY_LIBS="$rubylibs"
5776 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5777 if test -f "$rubyhdrdir/$librubyarg"; then
5778 librubyarg="$rubyhdrdir/$librubyarg"
5779 else
5780 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5781 if test -d "/System/Library/Frameworks/Ruby.framework"; then
5782 RUBY_LIBS="-framework Ruby"
5783 RUBY_CFLAGS=
5784 librubyarg=
5785 elif test -f "$rubylibdir/$librubyarg"; then
5786 librubyarg="$rubylibdir/$librubyarg"
5787 elif test "$librubyarg" = "libruby.a"; then
5788 librubyarg="-lruby"
5789 else
5790 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5794 if test "X$librubyarg" != "X"; then
5795 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5797 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5798 if test "x$MACOSX" = "xyes"; then
5799 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch[^-]*//g'`
5801 if test "X$rubyldflags" != "X"; then
5802 LDFLAGS="$rubyldflags $LDFLAGS"
5804 RUBY_SRC="if_ruby.c"
5805 RUBY_OBJ="objects/if_ruby.o"
5806 RUBY_PRO="if_ruby.pro"
5808 cat >>confdefs.h <<\_ACEOF
5809 #define FEAT_RUBY 1
5810 _ACEOF
5812 else
5813 { echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5814 echo "${ECHO_T}not found; disabling Ruby" >&6; }
5816 else
5817 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5818 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5828 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5829 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5830 # Check whether --enable-cscope was given.
5831 if test "${enable_cscope+set}" = set; then
5832 enableval=$enable_cscope;
5833 else
5834 enable_cscope="no"
5837 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5838 echo "${ECHO_T}$enable_cscope" >&6; }
5839 if test "$enable_cscope" = "yes"; then
5840 cat >>confdefs.h <<\_ACEOF
5841 #define FEAT_CSCOPE 1
5842 _ACEOF
5846 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5847 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5848 # Check whether --enable-workshop was given.
5849 if test "${enable_workshop+set}" = set; then
5850 enableval=$enable_workshop;
5851 else
5852 enable_workshop="no"
5855 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5856 echo "${ECHO_T}$enable_workshop" >&6; }
5857 if test "$enable_workshop" = "yes"; then
5858 cat >>confdefs.h <<\_ACEOF
5859 #define FEAT_SUN_WORKSHOP 1
5860 _ACEOF
5862 WORKSHOP_SRC="workshop.c integration.c"
5864 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5866 if test "${enable_gui-xxx}" = xxx; then
5867 enable_gui=motif
5871 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5872 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5873 # Check whether --enable-netbeans was given.
5874 if test "${enable_netbeans+set}" = set; then
5875 enableval=$enable_netbeans;
5876 else
5877 enable_netbeans="yes"
5880 if test "$enable_netbeans" = "yes"; then
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5884 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5885 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5886 if test "${ac_cv_lib_socket_socket+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889 ac_check_lib_save_LIBS=$LIBS
5890 LIBS="-lsocket $LIBS"
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 /* Override any GCC internal prototype to avoid an error.
5899 Use char because int might match the return type of a GCC
5900 builtin and then its argument prototype would still apply. */
5901 #ifdef __cplusplus
5902 extern "C"
5903 #endif
5904 char socket ();
5906 main ()
5908 return socket ();
5910 return 0;
5912 _ACEOF
5913 rm -f conftest.$ac_objext conftest$ac_exeext
5914 if { (ac_try="$ac_link"
5915 case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_link") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && {
5927 test -z "$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 } && test -s conftest$ac_exeext &&
5930 $as_test_x conftest$ac_exeext; then
5931 ac_cv_lib_socket_socket=yes
5932 else
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5936 ac_cv_lib_socket_socket=no
5939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5940 conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5943 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5944 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5945 if test $ac_cv_lib_socket_socket = yes; then
5946 cat >>confdefs.h <<_ACEOF
5947 #define HAVE_LIBSOCKET 1
5948 _ACEOF
5950 LIBS="-lsocket $LIBS"
5955 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5956 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5957 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lnsl $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 /* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
5972 #ifdef __cplusplus
5973 extern "C"
5974 #endif
5975 char gethostbyname ();
5977 main ()
5979 return gethostbyname ();
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (ac_try="$ac_link"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_link") 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest$ac_exeext &&
6001 $as_test_x conftest$ac_exeext; then
6002 ac_cv_lib_nsl_gethostbyname=yes
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_lib_nsl_gethostbyname=no
6010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6011 conftest$ac_exeext conftest.$ac_ext
6012 LIBS=$ac_check_lib_save_LIBS
6014 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6015 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6016 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_LIBNSL 1
6019 _ACEOF
6021 LIBS="-lnsl $LIBS"
6025 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6026 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
6027 cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h. */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6034 #include <stdio.h>
6035 #include <stdlib.h>
6036 #include <stdarg.h>
6037 #include <fcntl.h>
6038 #include <netdb.h>
6039 #include <netinet/in.h>
6040 #include <errno.h>
6041 #include <sys/types.h>
6042 #include <sys/socket.h>
6043 /* Check bitfields */
6044 struct nbbuf {
6045 unsigned int initDone:1;
6046 ushort signmaplen;
6050 main ()
6053 /* Check creating a socket. */
6054 struct sockaddr_in server;
6055 (void)socket(AF_INET, SOCK_STREAM, 0);
6056 (void)htons(100);
6057 (void)gethostbyname("microsoft.com");
6058 if (errno == ECONNREFUSED)
6059 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (ac_try="$ac_link"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_link") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest$ac_exeext &&
6082 $as_test_x conftest$ac_exeext; then
6083 { echo "$as_me:$LINENO: result: yes" >&5
6084 echo "${ECHO_T}yes" >&6; }
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }; enable_netbeans="no"
6093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6094 conftest$ac_exeext conftest.$ac_ext
6095 else
6096 { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6099 if test "$enable_netbeans" = "yes"; then
6100 cat >>confdefs.h <<\_ACEOF
6101 #define FEAT_NETBEANS_INTG 1
6102 _ACEOF
6104 NETBEANS_SRC="netbeans.c"
6106 NETBEANS_OBJ="objects/netbeans.o"
6110 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6111 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6112 # Check whether --enable-sniff was given.
6113 if test "${enable_sniff+set}" = set; then
6114 enableval=$enable_sniff;
6115 else
6116 enable_sniff="no"
6119 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6120 echo "${ECHO_T}$enable_sniff" >&6; }
6121 if test "$enable_sniff" = "yes"; then
6122 cat >>confdefs.h <<\_ACEOF
6123 #define FEAT_SNIFF 1
6124 _ACEOF
6126 SNIFF_SRC="if_sniff.c"
6128 SNIFF_OBJ="objects/if_sniff.o"
6132 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6133 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6134 # Check whether --enable-multibyte was given.
6135 if test "${enable_multibyte+set}" = set; then
6136 enableval=$enable_multibyte;
6137 else
6138 enable_multibyte="no"
6141 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6142 echo "${ECHO_T}$enable_multibyte" >&6; }
6143 if test "$enable_multibyte" = "yes"; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define FEAT_MBYTE 1
6146 _ACEOF
6150 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6151 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6152 # Check whether --enable-hangulinput was given.
6153 if test "${enable_hangulinput+set}" = set; then
6154 enableval=$enable_hangulinput;
6155 else
6156 enable_hangulinput="no"
6159 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6160 echo "${ECHO_T}$enable_hangulinput" >&6; }
6162 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6163 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6164 # Check whether --enable-xim was given.
6165 if test "${enable_xim+set}" = set; then
6166 enableval=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6167 echo "${ECHO_T}$enable_xim" >&6; }
6168 else
6169 enable_xim="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6170 echo "${ECHO_T}defaulting to auto" >&6; }
6174 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6175 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6176 # Check whether --enable-fontset was given.
6177 if test "${enable_fontset+set}" = set; then
6178 enableval=$enable_fontset;
6179 else
6180 enable_fontset="no"
6183 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6184 echo "${ECHO_T}$enable_fontset" >&6; }
6186 test -z "$with_x" && with_x=yes
6187 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6188 if test "$with_x" = no; then
6189 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6190 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6191 else
6193 # Extract the first word of "xmkmf", so it can be a program name with args.
6194 set dummy xmkmf; ac_word=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 case $xmkmfpath in
6201 [\\/]* | ?:[\\/]*)
6202 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6216 done
6217 done
6218 IFS=$as_save_IFS
6221 esac
6223 xmkmfpath=$ac_cv_path_xmkmfpath
6224 if test -n "$xmkmfpath"; then
6225 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6226 echo "${ECHO_T}$xmkmfpath" >&6; }
6227 else
6228 { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6234 { echo "$as_me:$LINENO: checking for X" >&5
6235 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6238 # Check whether --with-x was given.
6239 if test "${with_x+set}" = set; then
6240 withval=$with_x;
6243 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6244 if test "x$with_x" = xno; then
6245 # The user explicitly disabled X.
6246 have_x=disabled
6247 else
6248 case $x_includes,$x_libraries in #(
6249 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6250 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6251 { (exit 1); exit 1; }; };; #(
6252 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 # One or both of the vars are not set, and there is no cached value.
6256 ac_x_includes=no ac_x_libraries=no
6257 rm -f -r conftest.dir
6258 if mkdir conftest.dir; then
6259 cd conftest.dir
6260 cat >Imakefile <<'_ACEOF'
6261 incroot:
6262 @echo incroot='${INCROOT}'
6263 usrlibdir:
6264 @echo usrlibdir='${USRLIBDIR}'
6265 libdir:
6266 @echo libdir='${LIBDIR}'
6267 _ACEOF
6268 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6270 for ac_var in incroot usrlibdir libdir; do
6271 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6272 done
6273 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6274 for ac_extension in a so sl dylib la dll; do
6275 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6276 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6277 ac_im_usrlibdir=$ac_im_libdir; break
6279 done
6280 # Screen out bogus values from the imake configuration. They are
6281 # bogus both because they are the default anyway, and because
6282 # using them would break gcc on systems where it needs fixed includes.
6283 case $ac_im_incroot in
6284 /usr/include) ac_x_includes= ;;
6285 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6286 esac
6287 case $ac_im_usrlibdir in
6288 /usr/lib | /lib) ;;
6289 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6290 esac
6292 cd ..
6293 rm -f -r conftest.dir
6296 # Standard set of common directories for X headers.
6297 # Check X11 before X11Rn because it is often a symlink to the current release.
6298 ac_x_header_dirs='
6299 /usr/X11/include
6300 /usr/X11R6/include
6301 /usr/X11R5/include
6302 /usr/X11R4/include
6304 /usr/include/X11
6305 /usr/include/X11R6
6306 /usr/include/X11R5
6307 /usr/include/X11R4
6309 /usr/local/X11/include
6310 /usr/local/X11R6/include
6311 /usr/local/X11R5/include
6312 /usr/local/X11R4/include
6314 /usr/local/include/X11
6315 /usr/local/include/X11R6
6316 /usr/local/include/X11R5
6317 /usr/local/include/X11R4
6319 /usr/X386/include
6320 /usr/x386/include
6321 /usr/XFree86/include/X11
6323 /usr/include
6324 /usr/local/include
6325 /usr/unsupported/include
6326 /usr/athena/include
6327 /usr/local/x11r5/include
6328 /usr/lpp/Xamples/include
6330 /usr/openwin/include
6331 /usr/openwin/share/include'
6333 if test "$ac_x_includes" = no; then
6334 # Guess where to find include files, by looking for Xlib.h.
6335 # First, try using that file with no special directory specified.
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <X11/Xlib.h>
6343 _ACEOF
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348 esac
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 }; then
6360 # We can compile using X headers with no special include directory.
6361 ac_x_includes=
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 for ac_dir in $ac_x_header_dirs; do
6367 if test -r "$ac_dir/X11/Xlib.h"; then
6368 ac_x_includes=$ac_dir
6369 break
6371 done
6374 rm -f conftest.err conftest.$ac_ext
6375 fi # $ac_x_includes = no
6377 if test "$ac_x_libraries" = no; then
6378 # Check for the libraries.
6379 # See if we find them without any special options.
6380 # Don't add to $LIBS permanently.
6381 ac_save_LIBS=$LIBS
6382 LIBS="-lX11 $LIBS"
6383 cat >conftest.$ac_ext <<_ACEOF
6384 /* confdefs.h. */
6385 _ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 #include <X11/Xlib.h>
6391 main ()
6393 XrmInitialize ()
6395 return 0;
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (ac_try="$ac_link"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_link") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest$ac_exeext &&
6415 $as_test_x conftest$ac_exeext; then
6416 LIBS=$ac_save_LIBS
6417 # We can link X programs with no special library path.
6418 ac_x_libraries=
6419 else
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 LIBS=$ac_save_LIBS
6424 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6426 # Don't even attempt the hair of trying to link an X program!
6427 for ac_extension in a so sl dylib la dll; do
6428 if test -r "$ac_dir/libX11.$ac_extension"; then
6429 ac_x_libraries=$ac_dir
6430 break 2
6432 done
6433 done
6436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6437 conftest$ac_exeext conftest.$ac_ext
6438 fi # $ac_x_libraries = no
6440 case $ac_x_includes,$ac_x_libraries in #(
6441 no,* | *,no | *\'*)
6442 # Didn't find X, or a directory has "'" in its name.
6443 ac_cv_have_x="have_x=no";; #(
6445 # Record where we found X for the cache.
6446 ac_cv_have_x="have_x=yes\
6447 ac_x_includes='$ac_x_includes'\
6448 ac_x_libraries='$ac_x_libraries'"
6449 esac
6451 ;; #(
6452 *) have_x=yes;;
6453 esac
6454 eval "$ac_cv_have_x"
6455 fi # $with_x != no
6457 if test "$have_x" != yes; then
6458 { echo "$as_me:$LINENO: result: $have_x" >&5
6459 echo "${ECHO_T}$have_x" >&6; }
6460 no_x=yes
6461 else
6462 # If each of the values was on the command line, it overrides each guess.
6463 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6464 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6465 # Update the cache value to reflect the command line values.
6466 ac_cv_have_x="have_x=yes\
6467 ac_x_includes='$x_includes'\
6468 ac_x_libraries='$x_libraries'"
6469 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6470 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6473 if test "$no_x" = yes; then
6474 # Not all programs may use this symbol, but it does not hurt to define it.
6476 cat >>confdefs.h <<\_ACEOF
6477 #define X_DISPLAY_MISSING 1
6478 _ACEOF
6480 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6481 else
6482 if test -n "$x_includes"; then
6483 X_CFLAGS="$X_CFLAGS -I$x_includes"
6486 # It would also be nice to do this for all -L options, not just this one.
6487 if test -n "$x_libraries"; then
6488 X_LIBS="$X_LIBS -L$x_libraries"
6489 # For Solaris; some versions of Sun CC require a space after -R and
6490 # others require no space. Words are not sufficient . . . .
6491 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6492 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6493 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6494 ac_xsave_c_werror_flag=$ac_c_werror_flag
6495 ac_c_werror_flag=yes
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6504 main ()
6508 return 0;
6510 _ACEOF
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (ac_try="$ac_link"
6513 case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_link") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest$ac_exeext &&
6528 $as_test_x conftest$ac_exeext; then
6529 { echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6; }
6531 X_LIBS="$X_LIBS -R$x_libraries"
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 LIBS="$ac_xsave_LIBS -R $x_libraries"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6545 main ()
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_link") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest$ac_exeext &&
6569 $as_test_x conftest$ac_exeext; then
6570 { echo "$as_me:$LINENO: result: yes" >&5
6571 echo "${ECHO_T}yes" >&6; }
6572 X_LIBS="$X_LIBS -R $x_libraries"
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6577 { echo "$as_me:$LINENO: result: neither works" >&5
6578 echo "${ECHO_T}neither works" >&6; }
6581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6582 conftest$ac_exeext conftest.$ac_ext
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586 conftest$ac_exeext conftest.$ac_ext
6587 ac_c_werror_flag=$ac_xsave_c_werror_flag
6588 LIBS=$ac_xsave_LIBS
6591 # Check for system-dependent libraries X programs must link with.
6592 # Do this before checking for the system-independent R6 libraries
6593 # (-lICE), since we may need -lsocket or whatever for X linking.
6595 if test "$ISC" = yes; then
6596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6597 else
6598 # Martyn Johnson says this is needed for Ultrix, if the X
6599 # libraries were built with DECnet support. And Karl Berry says
6600 # the Alpha needs dnet_stub (dnet does not exist).
6601 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6609 /* Override any GCC internal prototype to avoid an error.
6610 Use char because int might match the return type of a GCC
6611 builtin and then its argument prototype would still apply. */
6612 #ifdef __cplusplus
6613 extern "C"
6614 #endif
6615 char XOpenDisplay ();
6617 main ()
6619 return XOpenDisplay ();
6621 return 0;
6623 _ACEOF
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (ac_try="$ac_link"
6626 case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6629 esac
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_link") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest$ac_exeext &&
6641 $as_test_x conftest$ac_exeext; then
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6648 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6649 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 ac_check_lib_save_LIBS=$LIBS
6653 LIBS="-ldnet $LIBS"
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6661 /* Override any GCC internal prototype to avoid an error.
6662 Use char because int might match the return type of a GCC
6663 builtin and then its argument prototype would still apply. */
6664 #ifdef __cplusplus
6665 extern "C"
6666 #endif
6667 char dnet_ntoa ();
6669 main ()
6671 return dnet_ntoa ();
6673 return 0;
6675 _ACEOF
6676 rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (ac_try="$ac_link"
6678 case "(($ac_try" in
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6681 esac
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_link") 2>conftest.er1
6684 ac_status=$?
6685 grep -v '^ *+' conftest.er1 >conftest.err
6686 rm -f conftest.er1
6687 cat conftest.err >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest$ac_exeext &&
6693 $as_test_x conftest$ac_exeext; then
6694 ac_cv_lib_dnet_dnet_ntoa=yes
6695 else
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_lib_dnet_dnet_ntoa=no
6702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6703 conftest$ac_exeext conftest.$ac_ext
6704 LIBS=$ac_check_lib_save_LIBS
6706 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6707 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6708 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6709 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6712 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6713 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6714 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6715 if test "${ac_cv_lib_dnet_stub_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_stub $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_stub_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_stub_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_stub_dnet_ntoa" >&5
6773 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6774 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6782 conftest$ac_exeext conftest.$ac_ext
6783 LIBS="$ac_xsave_LIBS"
6785 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6786 # to get the SysV transport functions.
6787 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6788 # needs -lnsl.
6789 # The nsl library prevents programs from opening the X display
6790 # on Irix 5.2, according to T.E. Dickey.
6791 # The functions gethostbyname, getservbyname, and inet_addr are
6792 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6793 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6794 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6795 if test "${ac_cv_func_gethostbyname+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6806 #define gethostbyname innocuous_gethostbyname
6808 /* System header to define __stub macros and hopefully few prototypes,
6809 which can conflict with char gethostbyname (); below.
6810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6811 <limits.h> exists even on freestanding compilers. */
6813 #ifdef __STDC__
6814 # include <limits.h>
6815 #else
6816 # include <assert.h>
6817 #endif
6819 #undef gethostbyname
6821 /* Override any GCC internal prototype to avoid an error.
6822 Use char because int might match the return type of a GCC
6823 builtin and then its argument prototype would still apply. */
6824 #ifdef __cplusplus
6825 extern "C"
6826 #endif
6827 char gethostbyname ();
6828 /* The GNU C library defines this for functions which it implements
6829 to always fail with ENOSYS. Some functions are actually named
6830 something starting with __ and the normal name is an alias. */
6831 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6832 choke me
6833 #endif
6836 main ()
6838 return gethostbyname ();
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (ac_try="$ac_link"
6845 case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848 esac
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_link") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest$ac_exeext &&
6860 $as_test_x conftest$ac_exeext; then
6861 ac_cv_func_gethostbyname=yes
6862 else
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_cv_func_gethostbyname=no
6869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6870 conftest$ac_exeext conftest.$ac_ext
6872 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6873 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6875 if test $ac_cv_func_gethostbyname = no; then
6876 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6877 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6878 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 ac_check_lib_save_LIBS=$LIBS
6882 LIBS="-lnsl $LIBS"
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6890 /* Override any GCC internal prototype to avoid an error.
6891 Use char because int might match the return type of a GCC
6892 builtin and then its argument prototype would still apply. */
6893 #ifdef __cplusplus
6894 extern "C"
6895 #endif
6896 char gethostbyname ();
6898 main ()
6900 return gethostbyname ();
6902 return 0;
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6913 ac_status=$?
6914 grep -v '^ *+' conftest.er1 >conftest.err
6915 rm -f conftest.er1
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6923 ac_cv_lib_nsl_gethostbyname=yes
6924 else
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_cv_lib_nsl_gethostbyname=no
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932 conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6936 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6937 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6941 if test $ac_cv_lib_nsl_gethostbyname = no; then
6942 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6943 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6944 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947 ac_check_lib_save_LIBS=$LIBS
6948 LIBS="-lbsd $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_bsd_gethostbyname=yes
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_cv_lib_bsd_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_bsd_gethostbyname" >&5
7002 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
7003 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7010 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7011 # socket/setsockopt and other routines are undefined under SCO ODT
7012 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7013 # on later versions), says Simon Leinen: it contains gethostby*
7014 # variants that don't use the name server (or something). -lsocket
7015 # must be given before -lnsl if both are needed. We assume that
7016 # if connect needs -lnsl, so does gethostbyname.
7017 { echo "$as_me:$LINENO: checking for connect" >&5
7018 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7019 if test "${ac_cv_func_connect+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7030 #define connect innocuous_connect
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char connect (); below.
7034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 <limits.h> exists even on freestanding compilers. */
7037 #ifdef __STDC__
7038 # include <limits.h>
7039 #else
7040 # include <assert.h>
7041 #endif
7043 #undef connect
7045 /* Override any GCC internal prototype to avoid an error.
7046 Use char because int might match the return type of a GCC
7047 builtin and then its argument prototype would still apply. */
7048 #ifdef __cplusplus
7049 extern "C"
7050 #endif
7051 char connect ();
7052 /* The GNU C library defines this for functions which it implements
7053 to always fail with ENOSYS. Some functions are actually named
7054 something starting with __ and the normal name is an alias. */
7055 #if defined __stub_connect || defined __stub___connect
7056 choke me
7057 #endif
7060 main ()
7062 return connect ();
7064 return 0;
7066 _ACEOF
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (ac_try="$ac_link"
7069 case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_link") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest$ac_exeext &&
7084 $as_test_x conftest$ac_exeext; then
7085 ac_cv_func_connect=yes
7086 else
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_func_connect=no
7093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7094 conftest$ac_exeext conftest.$ac_ext
7096 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7097 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7099 if test $ac_cv_func_connect = no; then
7100 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7101 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7102 if test "${ac_cv_lib_socket_connect+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7114 /* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
7117 #ifdef __cplusplus
7118 extern "C"
7119 #endif
7120 char connect ();
7122 main ()
7124 return connect ();
7126 return 0;
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7131 case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134 esac
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_link") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest$ac_exeext &&
7146 $as_test_x conftest$ac_exeext; then
7147 ac_cv_lib_socket_connect=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_lib_socket_connect=no
7155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7156 conftest$ac_exeext conftest.$ac_ext
7157 LIBS=$ac_check_lib_save_LIBS
7159 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7160 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7161 if test $ac_cv_lib_socket_connect = yes; then
7162 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7167 # Guillermo Gomez says -lposix is necessary on A/UX.
7168 { echo "$as_me:$LINENO: checking for remove" >&5
7169 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7170 if test "${ac_cv_func_remove+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
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. */
7179 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7181 #define remove innocuous_remove
7183 /* System header to define __stub macros and hopefully few prototypes,
7184 which can conflict with char remove (); below.
7185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7186 <limits.h> exists even on freestanding compilers. */
7188 #ifdef __STDC__
7189 # include <limits.h>
7190 #else
7191 # include <assert.h>
7192 #endif
7194 #undef remove
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7199 #ifdef __cplusplus
7200 extern "C"
7201 #endif
7202 char remove ();
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined __stub_remove || defined __stub___remove
7207 choke me
7208 #endif
7211 main ()
7213 return remove ();
7215 return 0;
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (ac_try="$ac_link"
7220 case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7223 esac
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_link") 2>conftest.er1
7226 ac_status=$?
7227 grep -v '^ *+' conftest.er1 >conftest.err
7228 rm -f conftest.er1
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest$ac_exeext &&
7235 $as_test_x conftest$ac_exeext; then
7236 ac_cv_func_remove=yes
7237 else
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 ac_cv_func_remove=no
7244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7245 conftest$ac_exeext conftest.$ac_ext
7247 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7248 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7250 if test $ac_cv_func_remove = no; then
7251 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7252 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7253 if test "${ac_cv_lib_posix_remove+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 ac_check_lib_save_LIBS=$LIBS
7257 LIBS="-lposix $LIBS"
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7265 /* Override any GCC internal prototype to avoid an error.
7266 Use char because int might match the return type of a GCC
7267 builtin and then its argument prototype would still apply. */
7268 #ifdef __cplusplus
7269 extern "C"
7270 #endif
7271 char remove ();
7273 main ()
7275 return remove ();
7277 return 0;
7279 _ACEOF
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>conftest.er1
7288 ac_status=$?
7289 grep -v '^ *+' conftest.er1 >conftest.err
7290 rm -f conftest.er1
7291 cat conftest.err >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest$ac_exeext &&
7297 $as_test_x conftest$ac_exeext; then
7298 ac_cv_lib_posix_remove=yes
7299 else
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_cv_lib_posix_remove=no
7306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7307 conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7310 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7311 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7312 if test $ac_cv_lib_posix_remove = yes; then
7313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7318 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7319 { echo "$as_me:$LINENO: checking for shmat" >&5
7320 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7321 if test "${ac_cv_func_shmat+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
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. */
7330 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7332 #define shmat innocuous_shmat
7334 /* System header to define __stub macros and hopefully few prototypes,
7335 which can conflict with char shmat (); below.
7336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337 <limits.h> exists even on freestanding compilers. */
7339 #ifdef __STDC__
7340 # include <limits.h>
7341 #else
7342 # include <assert.h>
7343 #endif
7345 #undef shmat
7347 /* Override any GCC internal prototype to avoid an error.
7348 Use char because int might match the return type of a GCC
7349 builtin and then its argument prototype would still apply. */
7350 #ifdef __cplusplus
7351 extern "C"
7352 #endif
7353 char shmat ();
7354 /* The GNU C library defines this for functions which it implements
7355 to always fail with ENOSYS. Some functions are actually named
7356 something starting with __ and the normal name is an alias. */
7357 #if defined __stub_shmat || defined __stub___shmat
7358 choke me
7359 #endif
7362 main ()
7364 return shmat ();
7366 return 0;
7368 _ACEOF
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (ac_try="$ac_link"
7371 case "(($ac_try" in
7372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7374 esac
7375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376 (eval "$ac_link") 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && {
7383 test -z "$ac_c_werror_flag" ||
7384 test ! -s conftest.err
7385 } && test -s conftest$ac_exeext &&
7386 $as_test_x conftest$ac_exeext; then
7387 ac_cv_func_shmat=yes
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7392 ac_cv_func_shmat=no
7395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7396 conftest$ac_exeext conftest.$ac_ext
7398 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7399 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7401 if test $ac_cv_func_shmat = no; then
7402 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7403 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7404 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407 ac_check_lib_save_LIBS=$LIBS
7408 LIBS="-lipc $LIBS"
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7416 /* Override any GCC internal prototype to avoid an error.
7417 Use char because int might match the return type of a GCC
7418 builtin and then its argument prototype would still apply. */
7419 #ifdef __cplusplus
7420 extern "C"
7421 #endif
7422 char shmat ();
7424 main ()
7426 return shmat ();
7428 return 0;
7430 _ACEOF
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && {
7445 test -z "$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 } && test -s conftest$ac_exeext &&
7448 $as_test_x conftest$ac_exeext; then
7449 ac_cv_lib_ipc_shmat=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 ac_cv_lib_ipc_shmat=no
7457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7458 conftest$ac_exeext conftest.$ac_ext
7459 LIBS=$ac_check_lib_save_LIBS
7461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7462 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7463 if test $ac_cv_lib_ipc_shmat = yes; then
7464 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7470 # Check for libraries that X11R6 Xt/Xaw programs need.
7471 ac_save_LDFLAGS=$LDFLAGS
7472 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7473 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7474 # check for ICE first), but we must link in the order -lSM -lICE or
7475 # we get undefined symbols. So assume we have SM if we have ICE.
7476 # These have to be linked with before -lX11, unlike the other
7477 # libraries we check for below, so use a different variable.
7478 # John Interrante, Karl Berry
7479 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7480 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7481 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484 ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any GCC internal prototype to avoid an error.
7494 Use char because int might match the return type of a GCC
7495 builtin and then its argument prototype would still apply. */
7496 #ifdef __cplusplus
7497 extern "C"
7498 #endif
7499 char IceConnectionNumber ();
7501 main ()
7503 return IceConnectionNumber ();
7505 return 0;
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (ac_try="$ac_link"
7510 case "(($ac_try" in
7511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7513 esac
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_link") 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest$ac_exeext &&
7525 $as_test_x conftest$ac_exeext; then
7526 ac_cv_lib_ICE_IceConnectionNumber=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_cv_lib_ICE_IceConnectionNumber=no
7534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7535 conftest$ac_exeext conftest.$ac_ext
7536 LIBS=$ac_check_lib_save_LIBS
7538 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7539 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7540 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7541 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7544 LDFLAGS=$ac_save_LDFLAGS
7549 if test "$OS390Unix" = "yes"; then
7550 CFLAGS="$CFLAGS -W c,dll"
7551 LDFLAGS="$LDFLAGS -W l,dll"
7552 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7556 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7557 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7558 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7559 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7560 X_LIBS="$X_LIBS -L$x_libraries"
7561 if test "`(uname) 2>/dev/null`" = SunOS &&
7562 uname -r | grep '^5' >/dev/null; then
7563 X_LIBS="$X_LIBS -R $x_libraries"
7567 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7568 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7569 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7570 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7571 X_CFLAGS="$X_CFLAGS -I$x_includes"
7574 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7575 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7576 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7579 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7580 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7581 cflags_save=$CFLAGS
7582 CFLAGS="$CFLAGS $X_CFLAGS"
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <X11/Xlib.h>
7590 #include <X11/Intrinsic.h>
7592 main ()
7596 return 0;
7598 _ACEOF
7599 rm -f conftest.$ac_objext
7600 if { (ac_try="$ac_compile"
7601 case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604 esac
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_compile") 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.$ac_objext; then
7616 { echo "$as_me:$LINENO: result: yes" >&5
7617 echo "${ECHO_T}yes" >&6; }
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }; no_x=yes
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 CFLAGS=$cflags_save
7629 if test "${no_x-no}" = yes; then
7630 with_x=no
7631 else
7632 cat >>confdefs.h <<\_ACEOF
7633 #define HAVE_X11 1
7634 _ACEOF
7636 X_LIB="-lXt -lX11";
7639 ac_save_LDFLAGS="$LDFLAGS"
7640 LDFLAGS="-L$x_libraries $LDFLAGS"
7642 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7643 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7644 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 ac_check_lib_save_LIBS=$LIBS
7648 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
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. */
7656 /* Override any GCC internal prototype to avoid an error.
7657 Use char because int might match the return type of a GCC
7658 builtin and then its argument prototype would still apply. */
7659 #ifdef __cplusplus
7660 extern "C"
7661 #endif
7662 char _XdmcpAuthDoIt ();
7664 main ()
7666 return _XdmcpAuthDoIt ();
7668 return 0;
7670 _ACEOF
7671 rm -f conftest.$ac_objext conftest$ac_exeext
7672 if { (ac_try="$ac_link"
7673 case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676 esac
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_link") 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest$ac_exeext &&
7688 $as_test_x conftest$ac_exeext; then
7689 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7698 conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7701 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7702 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7703 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7708 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7709 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7710 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-lICE $X_EXTRA_LIBS $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 IceOpenConnection ();
7730 main ()
7732 return IceOpenConnection ();
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_ICE_IceOpenConnection=yes
7756 else
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_cv_lib_ICE_IceOpenConnection=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_ICE_IceOpenConnection" >&5
7768 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7769 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7770 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7774 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7775 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7776 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7777 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780 ac_check_lib_save_LIBS=$LIBS
7781 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7782 cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h. */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7789 /* Override any GCC internal prototype to avoid an error.
7790 Use char because int might match the return type of a GCC
7791 builtin and then its argument prototype would still apply. */
7792 #ifdef __cplusplus
7793 extern "C"
7794 #endif
7795 char XpmCreatePixmapFromData ();
7797 main ()
7799 return XpmCreatePixmapFromData ();
7801 return 0;
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (ac_try="$ac_link"
7806 case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_link") 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest$ac_exeext &&
7821 $as_test_x conftest$ac_exeext; then
7822 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7831 conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7834 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7835 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7836 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7837 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7841 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7842 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7843 cflags_save=$CFLAGS
7844 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h. */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 #include <X11/Xlib.h>
7853 main ()
7857 return 0;
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7879 else
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7883 CFLAGS="$CFLAGS -Wno-implicit-int"
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h. */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 #include <X11/Xlib.h>
7892 main ()
7896 return 0;
7898 _ACEOF
7899 rm -f conftest.$ac_objext
7900 if { (ac_try="$ac_compile"
7901 case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_compile") 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && {
7913 test -z "$ac_c_werror_flag" ||
7914 test ! -s conftest.err
7915 } && test -s conftest.$ac_objext; then
7916 { echo "$as_me:$LINENO: result: yes" >&5
7917 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 { echo "$as_me:$LINENO: result: test failed" >&5
7923 echo "${ECHO_T}test failed" >&6; }
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 CFLAGS=$cflags_save
7934 LDFLAGS="$ac_save_LDFLAGS"
7936 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
7937 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
7938 if test "${ac_cv_small_wchar_t+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941 if test "$cross_compiling" = yes; then
7942 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
7943 echo "$as_me: error: failed to compile test program" >&2;}
7944 { (exit 1); exit 1; }; }
7945 else
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h. */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7953 #include <X11/Xlib.h>
7954 #if STDC_HEADERS
7955 # include <stdlib.h>
7956 # include <stddef.h>
7957 #endif
7958 main()
7960 if (sizeof(wchar_t) <= 2)
7961 exit(1);
7962 exit(0);
7964 _ACEOF
7965 rm -f conftest$ac_exeext
7966 if { (ac_try="$ac_link"
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_link") 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7976 { (case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_small_wchar_t="no"
7986 else
7987 echo "$as_me: program exited with status $ac_status" >&5
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 ( exit $ac_status )
7992 ac_cv_small_wchar_t="yes"
7994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8000 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8001 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
8002 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8003 cat >>confdefs.h <<\_ACEOF
8004 #define SMALL_WCHAR_T 1
8005 _ACEOF
8012 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8014 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8015 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
8016 # Check whether --enable-gui was given.
8017 if test "${enable_gui+set}" = set; then
8018 enableval=$enable_gui;
8019 else
8020 enable_gui="auto"
8024 enable_gui_canon=`echo "_$enable_gui" | \
8025 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8027 SKIP_GTK=YES
8028 SKIP_GTK2=YES
8029 SKIP_GNOME=YES
8030 SKIP_MOTIF=YES
8031 SKIP_ATHENA=YES
8032 SKIP_NEXTAW=YES
8033 SKIP_PHOTON=YES
8034 SKIP_CARBON=YES
8035 SKIP_MACVIM=YES
8036 GUITYPE=NONE
8038 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8039 SKIP_PHOTON=
8040 case "$enable_gui_canon" in
8041 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8042 echo "${ECHO_T}no GUI support" >&6; }
8043 SKIP_PHOTON=YES ;;
8044 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8045 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8046 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8047 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8048 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8049 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8050 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8051 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8052 SKIP_PHOTON=YES ;;
8053 esac
8055 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8056 SKIP_CARBON=
8057 SKIP_MACVIM=
8058 case "$enable_gui_canon" in
8059 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8060 echo "${ECHO_T}no GUI support" >&6; }
8061 SKIP_CARBON=YES
8062 SKIP_MACVIM=YES ;;
8063 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8064 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8065 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8066 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8067 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8068 echo "${ECHO_T}Carbon GUI support" >&6; }
8069 SKIP_MACVIM=YES ;;
8070 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8071 echo "${ECHO_T}MacVim GUI support" >&6; }
8072 SKIP_CARBON=YES ;;
8073 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8074 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8075 SKIP_CARBON=YES
8076 SKIP_MACVIM=YES ;;
8077 esac
8079 else
8081 case "$enable_gui_canon" in
8082 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8083 echo "${ECHO_T}no GUI support" >&6; } ;;
8084 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8085 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8086 SKIP_GTK=
8087 SKIP_GTK2=
8088 SKIP_GNOME=
8089 SKIP_MOTIF=
8090 SKIP_ATHENA=
8091 SKIP_NEXTAW=
8092 SKIP_MACVIM=
8093 SKIP_CARBON=;;
8094 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8095 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8096 SKIP_GTK=;;
8097 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8098 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8099 SKIP_GTK=
8100 SKIP_GTK2=;;
8101 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8102 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8103 SKIP_GNOME=
8104 SKIP_GTK=;;
8105 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8106 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8107 SKIP_GNOME=
8108 SKIP_GTK=
8109 SKIP_GTK2=;;
8110 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8111 echo "${ECHO_T}Motif GUI support" >&6; }
8112 SKIP_MOTIF=;;
8113 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8114 echo "${ECHO_T}Athena GUI support" >&6; }
8115 SKIP_ATHENA=;;
8116 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8117 echo "${ECHO_T}neXtaw GUI support" >&6; }
8118 SKIP_NEXTAW=;;
8119 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8120 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8121 esac
8125 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8126 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8127 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8128 # Check whether --enable-gtk-check was given.
8129 if test "${enable_gtk_check+set}" = set; then
8130 enableval=$enable_gtk_check;
8131 else
8132 enable_gtk_check="yes"
8135 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8136 echo "${ECHO_T}$enable_gtk_check" >&6; }
8137 if test "x$enable_gtk_check" = "xno"; then
8138 SKIP_GTK=YES
8139 SKIP_GNOME=YES
8143 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8144 -a "$enable_gui_canon" != "gnome2"; then
8145 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8146 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8147 # Check whether --enable-gtk2-check was given.
8148 if test "${enable_gtk2_check+set}" = set; then
8149 enableval=$enable_gtk2_check;
8150 else
8151 enable_gtk2_check="yes"
8154 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8155 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8156 if test "x$enable_gtk2_check" = "xno"; then
8157 SKIP_GTK2=YES
8161 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8162 -a "$enable_gui_canon" != "gnome2"; then
8163 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8164 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8165 # Check whether --enable-gnome-check was given.
8166 if test "${enable_gnome_check+set}" = set; then
8167 enableval=$enable_gnome_check;
8168 else
8169 enable_gnome_check="no"
8172 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8173 echo "${ECHO_T}$enable_gnome_check" >&6; }
8174 if test "x$enable_gnome_check" = "xno"; then
8175 SKIP_GNOME=YES
8179 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8180 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8181 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8182 # Check whether --enable-motif-check was given.
8183 if test "${enable_motif_check+set}" = set; then
8184 enableval=$enable_motif_check;
8185 else
8186 enable_motif_check="yes"
8189 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8190 echo "${ECHO_T}$enable_motif_check" >&6; }
8191 if test "x$enable_motif_check" = "xno"; then
8192 SKIP_MOTIF=YES
8196 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8197 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8198 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8199 # Check whether --enable-athena-check was given.
8200 if test "${enable_athena_check+set}" = set; then
8201 enableval=$enable_athena_check;
8202 else
8203 enable_athena_check="yes"
8206 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8207 echo "${ECHO_T}$enable_athena_check" >&6; }
8208 if test "x$enable_athena_check" = "xno"; then
8209 SKIP_ATHENA=YES
8213 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8214 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8215 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8216 # Check whether --enable-nextaw-check was given.
8217 if test "${enable_nextaw_check+set}" = set; then
8218 enableval=$enable_nextaw_check;
8219 else
8220 enable_nextaw_check="yes"
8223 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8224 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8225 if test "x$enable_nextaw_check" = "xno"; then
8226 SKIP_NEXTAW=YES
8230 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8231 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8232 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8233 # Check whether --enable-carbon-check was given.
8234 if test "${enable_carbon_check+set}" = set; then
8235 enableval=$enable_carbon_check;
8236 else
8237 enable_carbon_check="yes"
8240 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8241 echo "${ECHO_T}$enable_carbon_check" >&6; };
8242 if test "x$enable_carbon_check" = "xno"; then
8243 SKIP_CARBON=YES
8247 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8248 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8249 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8250 # Check whether --enable-macvim-check was given.
8251 if test "${enable_macvim_check+set}" = set; then
8252 enableval=$enable_macvim_check;
8253 else
8254 enable_macvim_check="yes"
8257 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8258 echo "${ECHO_T}$enable_macvim_check" >&6; };
8259 if test "x$enable_macvim_check" = "xno"; then
8260 SKIP_MACVIM=YES
8264 if test "x$MACOSX" = "xyes"; then
8265 if test x$prefix = xNONE; then
8266 prefix=/Applications
8269 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8270 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8271 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8272 { echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6; };
8274 GUITYPE=MACVIMGUI
8275 datadir='${prefix}/MacVim.app/Contents/Resources'
8276 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8277 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8278 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8279 { echo "$as_me:$LINENO: result: yes" >&5
8280 echo "${ECHO_T}yes" >&6; };
8281 GUITYPE=CARBONGUI
8282 datadir='${prefix}/Vim.app/Contents/Resources'
8284 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
8287 if test "$VIMNAME" = "vim"; then
8288 VIMNAME=Vim
8291 SKIP_GTK=YES;
8292 SKIP_GTK2=YES;
8293 SKIP_GNOME=YES;
8294 SKIP_MOTIF=YES;
8295 SKIP_ATHENA=YES;
8296 SKIP_NEXTAW=YES;
8297 SKIP_PHOTON=YES;
8298 SKIP_MACVIM=YES;
8299 SKIP_CARBON=YES
8310 if test -z "$SKIP_GTK"; then
8312 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8313 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8315 # Check whether --with-gtk-prefix was given.
8316 if test "${with_gtk_prefix+set}" = set; then
8317 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8318 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8319 else
8320 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8325 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8326 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8328 # Check whether --with-gtk-exec-prefix was given.
8329 if test "${with_gtk_exec_prefix+set}" = set; then
8330 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8331 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8332 else
8333 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6; }
8338 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8339 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8340 # Check whether --enable-gtktest was given.
8341 if test "${enable_gtktest+set}" = set; then
8342 enableval=$enable_gtktest;
8343 else
8344 enable_gtktest=yes
8347 if test "x$enable_gtktest" = "xyes" ; then
8348 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8349 echo "${ECHO_T}gtk test enabled" >&6; }
8350 else
8351 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8352 echo "${ECHO_T}gtk test disabled" >&6; }
8355 if test "x$gtk_config_prefix" != "x" ; then
8356 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8357 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8359 if test "x$gtk_config_exec_prefix" != "x" ; then
8360 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8361 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8363 if test "X$GTK_CONFIG" = "X"; then
8364 # Extract the first word of "gtk-config", so it can be a program name with args.
8365 set dummy gtk-config; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371 case $GTK_CONFIG in
8372 [\\/]* | ?:[\\/]*)
8373 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8387 done
8388 done
8389 IFS=$as_save_IFS
8391 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8393 esac
8395 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8396 if test -n "$GTK_CONFIG"; then
8397 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8398 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8399 else
8400 { echo "$as_me:$LINENO: result: no" >&5
8401 echo "${ECHO_T}no" >&6; }
8405 if test "X$GTK_CONFIG" = "Xno"; then
8406 # Extract the first word of "gtk12-config", so it can be a program name with args.
8407 set dummy gtk12-config; ac_word=$2
8408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8410 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 case $GTK12_CONFIG in
8414 [\\/]* | ?:[\\/]*)
8415 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 for as_dir in $PATH
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 break 2
8429 done
8430 done
8431 IFS=$as_save_IFS
8433 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8435 esac
8437 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8438 if test -n "$GTK12_CONFIG"; then
8439 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8440 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8441 else
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8447 GTK_CONFIG="$GTK12_CONFIG"
8449 else
8450 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8451 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8453 if test "X$PKG_CONFIG" = "X"; then
8454 # Extract the first word of "pkg-config", so it can be a program name with args.
8455 set dummy pkg-config; ac_word=$2
8456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8458 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461 case $PKG_CONFIG in
8462 [\\/]* | ?:[\\/]*)
8463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 for as_dir in $PATH
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 break 2
8477 done
8478 done
8479 IFS=$as_save_IFS
8481 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8483 esac
8485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8486 if test -n "$PKG_CONFIG"; then
8487 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8488 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8489 else
8490 { echo "$as_me:$LINENO: result: no" >&5
8491 echo "${ECHO_T}no" >&6; }
8497 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8498 if test "X$SKIP_GTK2" != "XYES"; then
8500 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8502 min_gtk_version=2.2.0
8503 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8504 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8505 no_gtk=""
8506 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8507 && $PKG_CONFIG --exists gtk+-2.0; then
8509 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8510 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8511 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8512 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8513 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8514 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8515 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8516 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8517 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8519 elif test "X$GTK_CONFIG" != "Xno"; then
8521 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8522 GTK_LIBDIR=
8523 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8524 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8525 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8526 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8527 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8528 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8529 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8531 else
8532 no_gtk=yes
8535 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8537 ac_save_CFLAGS="$CFLAGS"
8538 ac_save_LIBS="$LIBS"
8539 CFLAGS="$CFLAGS $GTK_CFLAGS"
8540 LIBS="$LIBS $GTK_LIBS"
8542 rm -f conf.gtktest
8543 if test "$cross_compiling" = yes; then
8544 echo $ac_n "cross compiling; assumed OK... $ac_c"
8545 else
8546 cat >conftest.$ac_ext <<_ACEOF
8547 /* confdefs.h. */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 #include <gtk/gtk.h>
8554 #include <stdio.h>
8555 #if STDC_HEADERS
8556 # include <stdlib.h>
8557 # include <stddef.h>
8558 #endif
8561 main ()
8563 int major, minor, micro;
8564 char *tmp_version;
8566 system ("touch conf.gtktest");
8568 /* HP/UX 9 (%@#!) writes to sscanf strings */
8569 tmp_version = g_strdup("$min_gtk_version");
8570 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8571 printf("%s, bad version string\n", "$min_gtk_version");
8572 exit(1);
8575 if ((gtk_major_version > major) ||
8576 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8577 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8578 (gtk_micro_version >= micro)))
8580 return 0;
8582 return 1;
8585 _ACEOF
8586 rm -f conftest$ac_exeext
8587 if { (ac_try="$ac_link"
8588 case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_link") 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8607 else
8608 echo "$as_me: program exited with status $ac_status" >&5
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ( exit $ac_status )
8613 no_gtk=yes
8615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8619 CFLAGS="$ac_save_CFLAGS"
8620 LIBS="$ac_save_LIBS"
8623 if test "x$no_gtk" = x ; then
8624 if test "x$enable_gtktest" = "xyes"; then
8625 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8626 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8627 else
8628 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8629 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8631 GUI_LIB_LOC="$GTK_LIBDIR"
8632 GTK_LIBNAME="$GTK_LIBS"
8633 GUI_INC_LOC="$GTK_CFLAGS"
8634 else
8636 { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8638 GTK_CFLAGS=""
8639 GTK_LIBS=""
8644 else
8645 GTK_CFLAGS=""
8646 GTK_LIBS=""
8651 rm -f conf.gtktest
8653 if test "x$GTK_CFLAGS" != "x"; then
8654 SKIP_ATHENA=YES
8655 SKIP_NEXTAW=YES
8656 SKIP_MOTIF=YES
8657 GUITYPE=GTK
8662 if test "x$GUITYPE" != "xGTK"; then
8663 SKIP_GTK2=YES
8665 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8667 min_gtk_version=1.1.16
8668 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8669 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8670 no_gtk=""
8671 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8672 && $PKG_CONFIG --exists gtk+-2.0; then
8674 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8675 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8676 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8677 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8678 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8679 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8680 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8681 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8682 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8684 elif test "X$GTK_CONFIG" != "Xno"; then
8686 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8687 GTK_LIBDIR=
8688 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8689 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8690 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8691 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8692 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8693 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8694 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8696 else
8697 no_gtk=yes
8700 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8702 ac_save_CFLAGS="$CFLAGS"
8703 ac_save_LIBS="$LIBS"
8704 CFLAGS="$CFLAGS $GTK_CFLAGS"
8705 LIBS="$LIBS $GTK_LIBS"
8707 rm -f conf.gtktest
8708 if test "$cross_compiling" = yes; then
8709 echo $ac_n "cross compiling; assumed OK... $ac_c"
8710 else
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h. */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8718 #include <gtk/gtk.h>
8719 #include <stdio.h>
8720 #if STDC_HEADERS
8721 # include <stdlib.h>
8722 # include <stddef.h>
8723 #endif
8726 main ()
8728 int major, minor, micro;
8729 char *tmp_version;
8731 system ("touch conf.gtktest");
8733 /* HP/UX 9 (%@#!) writes to sscanf strings */
8734 tmp_version = g_strdup("$min_gtk_version");
8735 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8736 printf("%s, bad version string\n", "$min_gtk_version");
8737 exit(1);
8740 if ((gtk_major_version > major) ||
8741 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8742 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8743 (gtk_micro_version >= micro)))
8745 return 0;
8747 return 1;
8750 _ACEOF
8751 rm -f conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8762 { (case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_try") 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8772 else
8773 echo "$as_me: program exited with status $ac_status" >&5
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 ( exit $ac_status )
8778 no_gtk=yes
8780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8784 CFLAGS="$ac_save_CFLAGS"
8785 LIBS="$ac_save_LIBS"
8788 if test "x$no_gtk" = x ; then
8789 if test "x$enable_gtktest" = "xyes"; then
8790 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8791 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8792 else
8793 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8794 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8796 GTK_LIBNAME="$GTK_LIBS"
8797 GUI_INC_LOC="$GTK_CFLAGS"
8798 else
8800 { echo "$as_me:$LINENO: result: no" >&5
8801 echo "${ECHO_T}no" >&6; }
8802 GTK_CFLAGS=""
8803 GTK_LIBS=""
8808 else
8809 GTK_CFLAGS=""
8810 GTK_LIBS=""
8815 rm -f conf.gtktest
8817 if test "x$GTK_CFLAGS" != "x"; then
8818 SKIP_ATHENA=YES
8819 SKIP_NEXTAW=YES
8820 SKIP_MOTIF=YES
8821 GUITYPE=GTK
8826 if test "x$GUITYPE" = "xGTK"; then
8827 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8828 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8829 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8830 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8831 else
8833 if test "0$gtk_major_version" -ge 2; then
8834 cat >>confdefs.h <<\_ACEOF
8835 #define HAVE_GTK2 1
8836 _ACEOF
8838 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8839 || test "0$gtk_minor_version" -ge 2 \
8840 || test "0$gtk_major_version" -gt 2; then
8841 cat >>confdefs.h <<\_ACEOF
8842 #define HAVE_GTK_MULTIHEAD 1
8843 _ACEOF
8847 if test -z "$SKIP_GNOME"; then
8855 # Check whether --with-gnome-includes was given.
8856 if test "${with_gnome_includes+set}" = set; then
8857 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8863 # Check whether --with-gnome-libs was given.
8864 if test "${with_gnome_libs+set}" = set; then
8865 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8871 # Check whether --with-gnome was given.
8872 if test "${with_gnome+set}" = set; then
8873 withval=$with_gnome; if test x$withval = xyes; then
8874 want_gnome=yes
8875 have_gnome=yes
8876 else
8877 if test "x$withval" = xno; then
8878 want_gnome=no
8879 else
8880 want_gnome=yes
8881 LDFLAGS="$LDFLAGS -L$withval/lib"
8882 CFLAGS="$CFLAGS -I$withval/include"
8883 gnome_prefix=$withval/lib
8886 else
8887 want_gnome=yes
8891 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8893 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8894 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8895 if $PKG_CONFIG --exists libgnomeui-2.0; then
8896 { echo "$as_me:$LINENO: result: yes" >&5
8897 echo "${ECHO_T}yes" >&6; }
8898 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8899 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8900 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8902 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8903 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8904 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8905 { echo "$as_me:$LINENO: result: yes" >&5
8906 echo "${ECHO_T}yes" >&6; }
8907 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8908 GNOME_LIBS="$GNOME_LIBS -pthread"
8909 else
8910 { echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6; }
8913 have_gnome=yes
8914 else
8915 { echo "$as_me:$LINENO: result: not found" >&5
8916 echo "${ECHO_T}not found" >&6; }
8917 if test "x" = xfail; then
8918 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8919 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8920 { (exit 1); exit 1; }; }
8924 elif test "x$want_gnome" = xyes; then
8926 # Extract the first word of "gnome-config", so it can be a program name with args.
8927 set dummy gnome-config; ac_word=$2
8928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8930 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 case $GNOME_CONFIG in
8934 [\\/]* | ?:[\\/]*)
8935 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 break 2
8949 done
8950 done
8951 IFS=$as_save_IFS
8953 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8955 esac
8957 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8958 if test -n "$GNOME_CONFIG"; then
8959 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8960 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
8961 else
8962 { echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6; }
8967 if test "$GNOME_CONFIG" = "no"; then
8968 no_gnome_config="yes"
8969 else
8970 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8971 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
8972 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8973 { echo "$as_me:$LINENO: result: yes" >&5
8974 echo "${ECHO_T}yes" >&6; }
8975 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8976 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8977 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8978 have_gnome=yes
8979 else
8980 { echo "$as_me:$LINENO: result: no" >&5
8981 echo "${ECHO_T}no" >&6; }
8982 no_gnome_config="yes"
8986 if test x$exec_prefix = xNONE; then
8987 if test x$prefix = xNONE; then
8988 gnome_prefix=$ac_default_prefix/lib
8989 else
8990 gnome_prefix=$prefix/lib
8992 else
8993 gnome_prefix=`eval echo \`echo $libdir\``
8996 if test "$no_gnome_config" = "yes"; then
8997 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8998 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
8999 if test -f $gnome_prefix/gnomeConf.sh; then
9000 { echo "$as_me:$LINENO: result: found" >&5
9001 echo "${ECHO_T}found" >&6; }
9002 echo "loading gnome configuration from" \
9003 "$gnome_prefix/gnomeConf.sh"
9004 . $gnome_prefix/gnomeConf.sh
9005 have_gnome=yes
9006 else
9007 { echo "$as_me:$LINENO: result: not found" >&5
9008 echo "${ECHO_T}not found" >&6; }
9009 if test x = xfail; then
9010 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9011 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9012 { (exit 1); exit 1; }; }
9019 if test x$have_gnome = xyes ; then
9020 cat >>confdefs.h <<\_ACEOF
9021 #define FEAT_GUI_GNOME 1
9022 _ACEOF
9024 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9025 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9035 if test -z "$SKIP_MOTIF"; then
9036 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"
9037 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9039 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9040 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9041 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9042 GUI_INC_LOC=
9043 for try in $gui_includes; do
9044 if test -f "$try/Xm/Xm.h"; then
9045 GUI_INC_LOC=$try
9047 done
9048 if test -n "$GUI_INC_LOC"; then
9049 if test "$GUI_INC_LOC" = /usr/include; then
9050 GUI_INC_LOC=
9051 { echo "$as_me:$LINENO: result: in default path" >&5
9052 echo "${ECHO_T}in default path" >&6; }
9053 else
9054 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9055 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9057 else
9058 { echo "$as_me:$LINENO: result: <not found>" >&5
9059 echo "${ECHO_T}<not found>" >&6; }
9060 SKIP_MOTIF=YES
9065 if test -z "$SKIP_MOTIF"; then
9066 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9067 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9069 # Check whether --with-motif-lib was given.
9070 if test "${with_motif_lib+set}" = set; then
9071 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9075 if test -n "$MOTIF_LIBNAME"; then
9076 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9077 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9078 GUI_LIB_LOC=
9079 else
9080 { echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6; }
9083 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9085 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9086 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9087 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"
9088 GUI_LIB_LOC=
9089 for try in $gui_libs; do
9090 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9091 if test -f "$libtry"; then
9092 GUI_LIB_LOC=$try
9094 done
9095 done
9096 if test -n "$GUI_LIB_LOC"; then
9097 if test "$GUI_LIB_LOC" = /usr/lib; then
9098 GUI_LIB_LOC=
9099 { echo "$as_me:$LINENO: result: in default path" >&5
9100 echo "${ECHO_T}in default path" >&6; }
9101 else
9102 if test -n "$GUI_LIB_LOC"; then
9103 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9104 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9105 if test "`(uname) 2>/dev/null`" = SunOS &&
9106 uname -r | grep '^5' >/dev/null; then
9107 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9111 MOTIF_LIBNAME=-lXm
9112 else
9113 { echo "$as_me:$LINENO: result: <not found>" >&5
9114 echo "${ECHO_T}<not found>" >&6; }
9115 SKIP_MOTIF=YES
9120 if test -z "$SKIP_MOTIF"; then
9121 SKIP_ATHENA=YES
9122 SKIP_NEXTAW=YES
9123 GUITYPE=MOTIF
9128 GUI_X_LIBS=
9130 if test -z "$SKIP_ATHENA"; then
9131 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9132 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9133 cflags_save=$CFLAGS
9134 CFLAGS="$CFLAGS $X_CFLAGS"
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h. */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9142 #include <X11/Intrinsic.h>
9143 #include <X11/Xaw/Paned.h>
9145 main ()
9149 return 0;
9151 _ACEOF
9152 rm -f conftest.$ac_objext
9153 if { (ac_try="$ac_compile"
9154 case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157 esac
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_compile") 2>conftest.er1
9160 ac_status=$?
9161 grep -v '^ *+' conftest.er1 >conftest.err
9162 rm -f conftest.er1
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && {
9166 test -z "$ac_c_werror_flag" ||
9167 test ! -s conftest.err
9168 } && test -s conftest.$ac_objext; then
9169 { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9171 else
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 { echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA=YES
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 CFLAGS=$cflags_save
9183 if test -z "$SKIP_ATHENA"; then
9184 GUITYPE=ATHENA
9187 if test -z "$SKIP_NEXTAW"; then
9188 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9189 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9190 cflags_save=$CFLAGS
9191 CFLAGS="$CFLAGS $X_CFLAGS"
9192 cat >conftest.$ac_ext <<_ACEOF
9193 /* confdefs.h. */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9199 #include <X11/Intrinsic.h>
9200 #include <X11/neXtaw/Paned.h>
9202 main ()
9206 return 0;
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9211 case "(($ac_try" in
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9214 esac
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_compile") 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
9225 } && test -s conftest.$ac_objext; then
9226 { echo "$as_me:$LINENO: result: yes" >&5
9227 echo "${ECHO_T}yes" >&6; }
9228 else
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 { echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 CFLAGS=$cflags_save
9240 if test -z "$SKIP_NEXTAW"; then
9241 GUITYPE=NEXTAW
9244 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9245 if test -n "$GUI_INC_LOC"; then
9246 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9248 if test -n "$GUI_LIB_LOC"; then
9249 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9252 ldflags_save=$LDFLAGS
9253 LDFLAGS="$X_LIBS $LDFLAGS"
9254 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9255 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9256 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 ac_check_lib_save_LIBS=$LIBS
9260 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h. */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9268 /* Override any GCC internal prototype to avoid an error.
9269 Use char because int might match the return type of a GCC
9270 builtin and then its argument prototype would still apply. */
9271 #ifdef __cplusplus
9272 extern "C"
9273 #endif
9274 char XShapeQueryExtension ();
9276 main ()
9278 return XShapeQueryExtension ();
9280 return 0;
9282 _ACEOF
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (ac_try="$ac_link"
9285 case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288 esac
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_link") 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_c_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest$ac_exeext &&
9300 $as_test_x conftest$ac_exeext; then
9301 ac_cv_lib_Xext_XShapeQueryExtension=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9306 ac_cv_lib_Xext_XShapeQueryExtension=no
9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9314 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9315 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9316 GUI_X_LIBS="-lXext"
9319 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9320 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9321 if test "${ac_cv_lib_w_wslen+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 ac_check_lib_save_LIBS=$LIBS
9325 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h. */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char wslen ();
9341 main ()
9343 return wslen ();
9345 return 0;
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9350 case "(($ac_try" in
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9353 esac
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext &&
9365 $as_test_x conftest$ac_exeext; then
9366 ac_cv_lib_w_wslen=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_lib_w_wslen=no
9374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9378 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9379 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9380 if test $ac_cv_lib_w_wslen = yes; then
9381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9384 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9385 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9386 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389 ac_check_lib_save_LIBS=$LIBS
9390 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9391 cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h. */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 char dlsym ();
9406 main ()
9408 return dlsym ();
9410 return 0;
9412 _ACEOF
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9415 case "(($ac_try" in
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9418 esac
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_link") 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && {
9427 test -z "$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest$ac_exeext &&
9430 $as_test_x conftest$ac_exeext; then
9431 ac_cv_lib_dl_dlsym=yes
9432 else
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9436 ac_cv_lib_dl_dlsym=no
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LIBS=$ac_check_lib_save_LIBS
9443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9444 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9445 if test $ac_cv_lib_dl_dlsym = yes; then
9446 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9449 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9450 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9451 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454 ac_check_lib_save_LIBS=$LIBS
9455 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9456 cat >conftest.$ac_ext <<_ACEOF
9457 /* confdefs.h. */
9458 _ACEOF
9459 cat confdefs.h >>conftest.$ac_ext
9460 cat >>conftest.$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9466 #ifdef __cplusplus
9467 extern "C"
9468 #endif
9469 char XmuCreateStippledPixmap ();
9471 main ()
9473 return XmuCreateStippledPixmap ();
9475 return 0;
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9480 case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483 esac
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9497 else
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9508 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9509 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9510 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9511 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9514 if test -z "$SKIP_MOTIF"; then
9515 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9516 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lXp $GUI_X_LIBS -lXm -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 XpEndJob ();
9537 main ()
9539 return XpEndJob ();
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_Xp_XpEndJob=yes
9563 else
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_lib_Xp_XpEndJob=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_Xp_XpEndJob" >&5
9575 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9576 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9577 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9581 LDFLAGS=$ldflags_save
9583 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9584 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9585 NARROW_PROTO=
9586 rm -fr conftestdir
9587 if mkdir conftestdir; then
9588 cd conftestdir
9589 cat > Imakefile <<'EOF'
9590 acfindx:
9591 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9593 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9594 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9596 cd ..
9597 rm -fr conftestdir
9599 if test -z "$NARROW_PROTO"; then
9600 { echo "$as_me:$LINENO: result: no" >&5
9601 echo "${ECHO_T}no" >&6; }
9602 else
9603 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9604 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9609 if test "$enable_xsmp" = "yes"; then
9610 cppflags_save=$CPPFLAGS
9611 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9613 for ac_header in X11/SM/SMlib.h
9615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 ac_res=`eval echo '${'$as_ac_Header'}'`
9623 { echo "$as_me:$LINENO: result: $ac_res" >&5
9624 echo "${ECHO_T}$ac_res" >&6; }
9625 else
9626 # Is the header compilable?
9627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9629 cat >conftest.$ac_ext <<_ACEOF
9630 /* confdefs.h. */
9631 _ACEOF
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9636 #include <$ac_header>
9637 _ACEOF
9638 rm -f conftest.$ac_objext
9639 if { (ac_try="$ac_compile"
9640 case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_compile") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest.$ac_objext; then
9655 ac_header_compiler=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_header_compiler=no
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9665 echo "${ECHO_T}$ac_header_compiler" >&6; }
9667 # Is the header present?
9668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9670 cat >conftest.$ac_ext <<_ACEOF
9671 /* confdefs.h. */
9672 _ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #include <$ac_header>
9677 _ACEOF
9678 if { (ac_try="$ac_cpp conftest.$ac_ext"
9679 case "(($ac_try" in
9680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9682 esac
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } >/dev/null && {
9691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9692 test ! -s conftest.err
9693 }; then
9694 ac_header_preproc=yes
9695 else
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_header_preproc=no
9702 rm -f conftest.err conftest.$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704 echo "${ECHO_T}$ac_header_preproc" >&6; }
9706 # So? What about this header?
9707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9708 yes:no: )
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713 ac_header_preproc=yes
9715 no:yes:* )
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9730 esac
9731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736 eval "$as_ac_Header=\$ac_header_preproc"
9738 ac_res=`eval echo '${'$as_ac_Header'}'`
9739 { echo "$as_me:$LINENO: result: $ac_res" >&5
9740 echo "${ECHO_T}$ac_res" >&6; }
9743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9744 cat >>confdefs.h <<_ACEOF
9745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9746 _ACEOF
9750 done
9752 CPPFLAGS=$cppflags_save
9756 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9757 cppflags_save=$CPPFLAGS
9758 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9761 for ac_header in X11/xpm.h X11/Sunkeysym.h
9763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_res=`eval echo '${'$as_ac_Header'}'`
9771 { echo "$as_me:$LINENO: result: $ac_res" >&5
9772 echo "${ECHO_T}$ac_res" >&6; }
9773 else
9774 # Is the header compilable?
9775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9777 cat >conftest.$ac_ext <<_ACEOF
9778 /* confdefs.h. */
9779 _ACEOF
9780 cat confdefs.h >>conftest.$ac_ext
9781 cat >>conftest.$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9784 #include <$ac_header>
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9788 case "(($ac_try" in
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9803 ac_header_compiler=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_header_compiler=no
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9813 echo "${ECHO_T}$ac_header_compiler" >&6; }
9815 # Is the header present?
9816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 #include <$ac_header>
9825 _ACEOF
9826 if { (ac_try="$ac_cpp conftest.$ac_ext"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } >/dev/null && {
9839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 }; then
9842 ac_header_preproc=yes
9843 else
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_preproc=no
9850 rm -f conftest.err conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9852 echo "${ECHO_T}$ac_header_preproc" >&6; }
9854 # So? What about this header?
9855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9856 yes:no: )
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9861 ac_header_preproc=yes
9863 no:yes:* )
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9878 esac
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 eval "$as_ac_Header=\$ac_header_preproc"
9886 ac_res=`eval echo '${'$as_ac_Header'}'`
9887 { echo "$as_me:$LINENO: result: $ac_res" >&5
9888 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9894 _ACEOF
9898 done
9901 if test ! "$enable_xim" = "no"; then
9902 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9903 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9904 cat >conftest.$ac_ext <<_ACEOF
9905 /* confdefs.h. */
9906 _ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 #include <X11/Xlib.h>
9911 _ACEOF
9912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9913 $EGREP "XIMText" >/dev/null 2>&1; then
9914 { echo "$as_me:$LINENO: result: yes" >&5
9915 echo "${ECHO_T}yes" >&6; }
9916 else
9917 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9918 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim = "no"
9920 rm -f -r conftest*
9923 CPPFLAGS=$cppflags_save
9925 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9926 -a "x$GUITYPE" != "xNONE" ; then
9927 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9928 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9929 enable_xim="yes"
9933 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9934 cppflags_save=$CPPFLAGS
9935 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9936 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9937 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
9938 cat >conftest.$ac_ext <<_ACEOF
9939 /* confdefs.h. */
9940 _ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 #include <X11/Intrinsic.h>
9946 #include <X11/Xmu/Editres.h>
9948 main ()
9950 int i; i = 0;
9952 return 0;
9954 _ACEOF
9955 rm -f conftest.$ac_objext
9956 if { (ac_try="$ac_compile"
9957 case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_compile") 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest.$ac_objext; then
9972 { echo "$as_me:$LINENO: result: yes" >&5
9973 echo "${ECHO_T}yes" >&6; }
9974 cat >>confdefs.h <<\_ACEOF
9975 #define HAVE_X11_XMU_EDITRES_H 1
9976 _ACEOF
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 { echo "$as_me:$LINENO: result: no" >&5
9983 echo "${ECHO_T}no" >&6; }
9986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 CPPFLAGS=$cppflags_save
9990 if test -z "$SKIP_MOTIF"; then
9991 cppflags_save=$CPPFLAGS
9992 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10000 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10001 Xm/UnhighlightT.h Xm/Notebook.h
10003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 ac_res=`eval echo '${'$as_ac_Header'}'`
10011 { echo "$as_me:$LINENO: result: $ac_res" >&5
10012 echo "${ECHO_T}$ac_res" >&6; }
10013 else
10014 # Is the header compilable?
10015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 $ac_includes_default
10024 #include <$ac_header>
10025 _ACEOF
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_compile") 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest.$ac_objext; then
10043 ac_header_compiler=yes
10044 else
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_header_compiler=no
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10053 echo "${ECHO_T}$ac_header_compiler" >&6; }
10055 # Is the header present?
10056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10058 cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h. */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 #include <$ac_header>
10065 _ACEOF
10066 if { (ac_try="$ac_cpp conftest.$ac_ext"
10067 case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } >/dev/null && {
10079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10080 test ! -s conftest.err
10081 }; then
10082 ac_header_preproc=yes
10083 else
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_header_preproc=no
10090 rm -f conftest.err conftest.$ac_ext
10091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10092 echo "${ECHO_T}$ac_header_preproc" >&6; }
10094 # So? What about this header?
10095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10096 yes:no: )
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10101 ac_header_preproc=yes
10103 no:yes:* )
10104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10118 esac
10119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 eval "$as_ac_Header=\$ac_header_preproc"
10126 ac_res=`eval echo '${'$as_ac_Header'}'`
10127 { echo "$as_me:$LINENO: result: $ac_res" >&5
10128 echo "${ECHO_T}$ac_res" >&6; }
10131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10134 _ACEOF
10138 done
10141 if test $ac_cv_header_Xm_XpmP_h = yes; then
10142 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10143 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <Xm/XpmP.h>
10152 main ()
10154 XpmAttributes_21 attr;
10156 return 0;
10158 _ACEOF
10159 rm -f conftest.$ac_objext
10160 if { (ac_try="$ac_compile"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164 esac
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_compile") 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest.$ac_objext; then
10176 { echo "$as_me:$LINENO: result: yes" >&5
10177 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10178 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10179 _ACEOF
10181 else
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 { echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h <<\_ACEOF
10187 #define XPMATTRIBUTES_TYPE XpmAttributes
10188 _ACEOF
10193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10194 else
10195 cat >>confdefs.h <<\_ACEOF
10196 #define XPMATTRIBUTES_TYPE XpmAttributes
10197 _ACEOF
10200 CPPFLAGS=$cppflags_save
10203 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10204 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10205 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10206 enable_xim="no"
10208 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10209 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10210 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10211 enable_fontset="no"
10213 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10214 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10215 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10216 enable_fontset="no"
10219 if test -z "$SKIP_PHOTON"; then
10220 GUITYPE=PHOTONGUI
10228 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10229 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10230 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10231 { (exit 1); exit 1; }; }
10234 if test "$enable_xim" = "yes"; then
10235 cat >>confdefs.h <<\_ACEOF
10236 #define FEAT_XIM 1
10237 _ACEOF
10240 if test "$enable_fontset" = "yes"; then
10241 cat >>confdefs.h <<\_ACEOF
10242 #define FEAT_XFONTSET 1
10243 _ACEOF
10250 if test "$enable_hangulinput" = "yes"; then
10251 if test "x$GUITYPE" = "xNONE"; then
10252 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10253 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10254 enable_hangulinput=no
10255 else
10256 cat >>confdefs.h <<\_ACEOF
10257 #define FEAT_HANGULIN 1
10258 _ACEOF
10260 HANGULIN_SRC=hangulin.c
10262 HANGULIN_OBJ=objects/hangulin.o
10268 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10269 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10270 if test "${vim_cv_toupper_broken+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10274 if test "$cross_compiling" = yes; then
10276 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10277 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10278 { (exit 1); exit 1; }; }
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10283 #include "confdefs.h"
10284 #include <ctype.h>
10285 #if STDC_HEADERS
10286 # include <stdlib.h>
10287 # include <stddef.h>
10288 #endif
10289 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10291 _ACEOF
10292 rm -f conftest$ac_exeext
10293 if { (ac_try="$ac_link"
10294 case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10313 vim_cv_toupper_broken=yes
10315 else
10316 echo "$as_me: program exited with status $ac_status" >&5
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ( exit $ac_status )
10322 vim_cv_toupper_broken=no
10325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10330 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10331 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10333 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10334 cat >>confdefs.h <<\_ACEOF
10335 #define BROKEN_TOUPPER 1
10336 _ACEOF
10340 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10341 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348 #include <stdio.h>
10350 main ()
10352 printf("(" __DATE__ " " __TIME__ ")");
10354 return 0;
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.$ac_objext; then
10374 { echo "$as_me:$LINENO: result: yes" >&5
10375 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10376 #define HAVE_DATE_TIME 1
10377 _ACEOF
10379 else
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 { echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6; }
10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10390 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10391 cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h. */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 #include <stdio.h>
10399 main ()
10401 int x __attribute__((unused));
10403 return 0;
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411 esac
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_compile") 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest.$ac_objext; then
10423 { echo "$as_me:$LINENO: result: yes" >&5
10424 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10425 #define HAVE_ATTRIBUTE_UNUSED 1
10426 _ACEOF
10428 else
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.$ac_ext >&5
10432 { echo "$as_me:$LINENO: result: no" >&5
10433 echo "${ECHO_T}no" >&6; }
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 if test "${ac_cv_header_elf_h+set}" = set; then
10439 { echo "$as_me:$LINENO: checking for elf.h" >&5
10440 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10441 if test "${ac_cv_header_elf_h+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10445 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10446 else
10447 # Is the header compilable?
10448 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10449 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10450 cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h. */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 $ac_includes_default
10457 #include <elf.h>
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (ac_try="$ac_compile"
10461 case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10464 esac
10465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10467 ac_status=$?
10468 grep -v '^ *+' conftest.er1 >conftest.err
10469 rm -f conftest.er1
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10477 else
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 echo "${ECHO_T}$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10490 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h. */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <elf.h>
10498 _ACEOF
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } >/dev/null && {
10512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 }; then
10515 ac_header_preproc=yes
10516 else
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_header_preproc=no
10523 rm -f conftest.err conftest.$ac_ext
10524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10525 echo "${ECHO_T}$ac_header_preproc" >&6; }
10527 # So? What about this header?
10528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10529 yes:no: )
10530 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10531 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10533 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10534 ac_header_preproc=yes
10536 no:yes:* )
10537 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10538 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10540 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10542 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10544 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10548 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10551 esac
10552 { echo "$as_me:$LINENO: checking for elf.h" >&5
10553 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10554 if test "${ac_cv_header_elf_h+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557 ac_cv_header_elf_h=$ac_header_preproc
10559 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10560 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10563 if test $ac_cv_header_elf_h = yes; then
10564 HAS_ELF=1
10568 if test "$HAS_ELF" = 1; then
10570 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10571 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_elf_main+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lelf $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h. */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10586 main ()
10588 return main ();
10590 return 0;
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 ac_cv_lib_elf_main=yes
10612 else
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_lib_elf_main=no
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10623 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10624 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10625 if test $ac_cv_lib_elf_main = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define HAVE_LIBELF 1
10628 _ACEOF
10630 LIBS="-lelf $LIBS"
10641 ac_header_dirent=no
10642 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10643 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10644 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10645 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <sys/types.h>
10656 #include <$ac_hdr>
10659 main ()
10661 if ((DIR *) 0)
10662 return 0;
10664 return 0;
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_compile") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest.$ac_objext; then
10684 eval "$as_ac_Header=yes"
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 eval "$as_ac_Header=no"
10692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10694 ac_res=`eval echo '${'$as_ac_Header'}'`
10695 { echo "$as_me:$LINENO: result: $ac_res" >&5
10696 echo "${ECHO_T}$ac_res" >&6; }
10697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10698 cat >>confdefs.h <<_ACEOF
10699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10700 _ACEOF
10702 ac_header_dirent=$ac_hdr; break
10705 done
10706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10707 if test $ac_header_dirent = dirent.h; then
10708 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10710 if test "${ac_cv_search_opendir+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 ac_func_search_save_LIBS=$LIBS
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h. */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char opendir ();
10729 main ()
10731 return opendir ();
10733 return 0;
10735 _ACEOF
10736 for ac_lib in '' dir; do
10737 if test -z "$ac_lib"; then
10738 ac_res="none required"
10739 else
10740 ac_res=-l$ac_lib
10741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_link") 2>conftest.er1
10751 ac_status=$?
10752 grep -v '^ *+' conftest.er1 >conftest.err
10753 rm -f conftest.er1
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext &&
10760 $as_test_x conftest$ac_exeext; then
10761 ac_cv_search_opendir=$ac_res
10762 else
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770 conftest$ac_exeext
10771 if test "${ac_cv_search_opendir+set}" = set; then
10772 break
10774 done
10775 if test "${ac_cv_search_opendir+set}" = set; then
10777 else
10778 ac_cv_search_opendir=no
10780 rm conftest.$ac_ext
10781 LIBS=$ac_func_search_save_LIBS
10783 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10784 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10785 ac_res=$ac_cv_search_opendir
10786 if test "$ac_res" != no; then
10787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10791 else
10792 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10793 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10794 if test "${ac_cv_search_opendir+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 ac_func_search_save_LIBS=$LIBS
10798 cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h. */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10808 #ifdef __cplusplus
10809 extern "C"
10810 #endif
10811 char opendir ();
10813 main ()
10815 return opendir ();
10817 return 0;
10819 _ACEOF
10820 for ac_lib in '' x; do
10821 if test -z "$ac_lib"; then
10822 ac_res="none required"
10823 else
10824 ac_res=-l$ac_lib
10825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10835 ac_status=$?
10836 grep -v '^ *+' conftest.er1 >conftest.err
10837 rm -f conftest.er1
10838 cat conftest.err >&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest$ac_exeext &&
10844 $as_test_x conftest$ac_exeext; then
10845 ac_cv_search_opendir=$ac_res
10846 else
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10854 conftest$ac_exeext
10855 if test "${ac_cv_search_opendir+set}" = set; then
10856 break
10858 done
10859 if test "${ac_cv_search_opendir+set}" = set; then
10861 else
10862 ac_cv_search_opendir=no
10864 rm conftest.$ac_ext
10865 LIBS=$ac_func_search_save_LIBS
10867 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10868 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10869 ac_res=$ac_cv_search_opendir
10870 if test "$ac_res" != no; then
10871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10878 if test $ac_cv_header_sys_wait_h = no; then
10879 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10880 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <sys/wait.h>
10889 main ()
10891 union wait xx, yy; xx = yy
10893 return 0;
10895 _ACEOF
10896 rm -f conftest.$ac_objext
10897 if { (ac_try="$ac_compile"
10898 case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901 esac
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_compile") 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest.$ac_objext; then
10913 { echo "$as_me:$LINENO: result: yes" >&5
10914 echo "${ECHO_T}yes" >&6; }
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_SYS_WAIT_H 1
10917 _ACEOF
10919 cat >>confdefs.h <<\_ACEOF
10920 #define HAVE_UNION_WAIT 1
10921 _ACEOF
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10975 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10976 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10977 sys/resource.h sys/systeminfo.h locale.h \
10978 sys/stream.h termios.h libc.h sys/statfs.h \
10979 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10980 libgen.h util/debug.h util/msg18n.h frame.h \
10981 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
10983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 ac_res=`eval echo '${'$as_ac_Header'}'`
10991 { echo "$as_me:$LINENO: result: $ac_res" >&5
10992 echo "${ECHO_T}$ac_res" >&6; }
10993 else
10994 # Is the header compilable?
10995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h. */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 $ac_includes_default
11004 #include <$ac_header>
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (ac_try="$ac_compile"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_compile") 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest.$ac_objext; then
11023 ac_header_compiler=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_header_compiler=no
11031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033 echo "${ECHO_T}$ac_header_compiler" >&6; }
11035 # Is the header present?
11036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 #include <$ac_header>
11045 _ACEOF
11046 if { (ac_try="$ac_cpp conftest.$ac_ext"
11047 case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } >/dev/null && {
11059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 }; then
11062 ac_header_preproc=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_header_preproc=no
11070 rm -f conftest.err conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11072 echo "${ECHO_T}$ac_header_preproc" >&6; }
11074 # So? What about this header?
11075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11076 yes:no: )
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11081 ac_header_preproc=yes
11083 no:yes:* )
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098 esac
11099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 eval "$as_ac_Header=\$ac_header_preproc"
11106 ac_res=`eval echo '${'$as_ac_Header'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11112 cat >>confdefs.h <<_ACEOF
11113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11114 _ACEOF
11118 done
11122 for ac_header in sys/ptem.h
11124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 else
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h. */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 #if defined HAVE_SYS_STREAM_H
11137 # include <sys/stream.h>
11138 #endif
11140 #include <$ac_header>
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (ac_try="$ac_compile"
11144 case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147 esac
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_compile") 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest.$ac_objext; then
11159 eval "$as_ac_Header=yes"
11160 else
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11164 eval "$as_ac_Header=no"
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11173 cat >>confdefs.h <<_ACEOF
11174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11175 _ACEOF
11179 done
11183 for ac_header in sys/sysctl.h
11185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191 cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h. */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 #if defined HAVE_SYS_PARAM_H
11198 # include <sys/param.h>
11199 #endif
11201 #include <$ac_header>
11202 _ACEOF
11203 rm -f conftest.$ac_objext
11204 if { (ac_try="$ac_compile"
11205 case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11220 eval "$as_ac_Header=yes"
11221 else
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 eval "$as_ac_Header=no"
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 ac_res=`eval echo '${'$as_ac_Header'}'`
11231 { echo "$as_me:$LINENO: result: $ac_res" >&5
11232 echo "${ECHO_T}$ac_res" >&6; }
11233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11234 cat >>confdefs.h <<_ACEOF
11235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11236 _ACEOF
11240 done
11244 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11245 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11253 #include <pthread.h>
11254 #include <pthread_np.h>
11256 main ()
11258 int i; i = 0;
11260 return 0;
11262 _ACEOF
11263 rm -f conftest.$ac_objext
11264 if { (ac_try="$ac_compile"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_compile") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } && {
11277 test -z "$ac_c_werror_flag" ||
11278 test ! -s conftest.err
11279 } && test -s conftest.$ac_objext; then
11280 { echo "$as_me:$LINENO: result: yes" >&5
11281 echo "${ECHO_T}yes" >&6; }
11282 cat >>confdefs.h <<\_ACEOF
11283 #define HAVE_PTHREAD_NP_H 1
11284 _ACEOF
11286 else
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 { echo "$as_me:$LINENO: result: no" >&5
11291 echo "${ECHO_T}no" >&6; }
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 for ac_header in strings.h
11299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 ac_res=`eval echo '${'$as_ac_Header'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11309 else
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 #include <$ac_header>
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <$ac_header>
11361 _ACEOF
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev/null && {
11375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 }; then
11378 ac_header_preproc=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_preproc=no
11386 rm -f conftest.err conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11392 yes:no: )
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc=yes
11399 no:yes:* )
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11414 esac
11415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 eval "$as_ac_Header=\$ac_header_preproc"
11422 ac_res=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h <<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11430 _ACEOF
11434 done
11436 if test "x$MACOSX" = "xyes"; then
11437 cat >>confdefs.h <<\_ACEOF
11438 #define NO_STRINGS_WITH_STRING_H 1
11439 _ACEOF
11441 else
11443 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11444 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11445 cppflags_save=$CPPFLAGS
11446 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11454 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11455 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11456 /* but don't do it on AIX 5.1 (Uribarri) */
11457 #endif
11458 #ifdef HAVE_XM_XM_H
11459 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11460 #endif
11461 #ifdef HAVE_STRING_H
11462 # include <string.h>
11463 #endif
11464 #if defined(HAVE_STRINGS_H)
11465 # include <strings.h>
11466 #endif
11469 main ()
11471 int i; i = 0;
11473 return 0;
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481 esac
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 { echo "$as_me:$LINENO: result: yes" >&5
11494 echo "${ECHO_T}yes" >&6; }
11495 else
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 cat >>confdefs.h <<\_ACEOF
11500 #define NO_STRINGS_WITH_STRING_H 1
11501 _ACEOF
11503 { echo "$as_me:$LINENO: result: no" >&5
11504 echo "${ECHO_T}no" >&6; }
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 CPPFLAGS=$cppflags_save
11511 if test $ac_cv_c_compiler_gnu = yes; then
11512 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11513 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11514 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517 ac_pattern="Autoconf.*'x'"
11518 cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h. */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <sgtty.h>
11525 Autoconf TIOCGETP
11526 _ACEOF
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11529 ac_cv_prog_gcc_traditional=yes
11530 else
11531 ac_cv_prog_gcc_traditional=no
11533 rm -f -r conftest*
11536 if test $ac_cv_prog_gcc_traditional = no; then
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <termio.h>
11544 Autoconf TCGETA
11545 _ACEOF
11546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11547 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11548 ac_cv_prog_gcc_traditional=yes
11550 rm -f -r conftest*
11554 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11555 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11556 if test $ac_cv_prog_gcc_traditional = yes; then
11557 CC="$CC -traditional"
11561 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11563 if test "${ac_cv_c_const+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11574 main ()
11576 /* FIXME: Include the comments suggested by Paul. */
11577 #ifndef __cplusplus
11578 /* Ultrix mips cc rejects this. */
11579 typedef int charset[2];
11580 const charset cs;
11581 /* SunOS 4.1.1 cc rejects this. */
11582 char const *const *pcpcc;
11583 char **ppc;
11584 /* NEC SVR4.0.2 mips cc rejects this. */
11585 struct point {int x, y;};
11586 static struct point const zero = {0,0};
11587 /* AIX XL C 1.02.0.0 rejects this.
11588 It does not let you subtract one const X* pointer from another in
11589 an arm of an if-expression whose if-part is not a constant
11590 expression */
11591 const char *g = "string";
11592 pcpcc = &g + (g ? g-g : 0);
11593 /* HPUX 7.0 cc rejects these. */
11594 ++pcpcc;
11595 ppc = (char**) pcpcc;
11596 pcpcc = (char const *const *) ppc;
11597 { /* SCO 3.2v4 cc rejects this. */
11598 char *t;
11599 char const *s = 0 ? (char *) 0 : (char const *) 0;
11601 *t++ = 0;
11602 if (s) return 0;
11604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11605 int x[] = {25, 17};
11606 const int *foo = &x[0];
11607 ++foo;
11609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11610 typedef const int *iptr;
11611 iptr p = 0;
11612 ++p;
11614 { /* AIX XL C 1.02.0.0 rejects this saying
11615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11616 struct s { int j; const int *ap[3]; };
11617 struct s *b; b->j = 5;
11619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11620 const int foo = 10;
11621 if (!foo) return 0;
11623 return !cs[0] && !zero.x;
11624 #endif
11627 return 0;
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_compile") 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && {
11644 test -z "$ac_c_werror_flag" ||
11645 test ! -s conftest.err
11646 } && test -s conftest.$ac_objext; then
11647 ac_cv_c_const=yes
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.$ac_ext >&5
11652 ac_cv_c_const=no
11655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11658 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11659 if test $ac_cv_c_const = no; then
11661 cat >>confdefs.h <<\_ACEOF
11662 #define const
11663 _ACEOF
11667 { echo "$as_me:$LINENO: checking for working volatile" >&5
11668 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11669 if test "${ac_cv_c_volatile+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11680 main ()
11683 volatile int x;
11684 int * volatile y = (int *) 0;
11685 return !x && !y;
11687 return 0;
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_cv_c_volatile=yes
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_c_volatile=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11718 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11719 if test $ac_cv_c_volatile = no; then
11721 cat >>confdefs.h <<\_ACEOF
11722 #define volatile
11723 _ACEOF
11727 { echo "$as_me:$LINENO: checking for mode_t" >&5
11728 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11729 if test "${ac_cv_type_mode_t+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 else
11732 cat >conftest.$ac_ext <<_ACEOF
11733 /* confdefs.h. */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 typedef mode_t ac__type_new_;
11741 main ()
11743 if ((ac__type_new_ *) 0)
11744 return 0;
11745 if (sizeof (ac__type_new_))
11746 return 0;
11748 return 0;
11750 _ACEOF
11751 rm -f conftest.$ac_objext
11752 if { (ac_try="$ac_compile"
11753 case "(($ac_try" in
11754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11755 *) ac_try_echo=$ac_try;;
11756 esac
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11759 ac_status=$?
11760 grep -v '^ *+' conftest.er1 >conftest.err
11761 rm -f conftest.er1
11762 cat conftest.err >&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest.$ac_objext; then
11768 ac_cv_type_mode_t=yes
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_type_mode_t=no
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11779 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11780 if test $ac_cv_type_mode_t = yes; then
11782 else
11784 cat >>confdefs.h <<_ACEOF
11785 #define mode_t int
11786 _ACEOF
11790 { echo "$as_me:$LINENO: checking for off_t" >&5
11791 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11792 if test "${ac_cv_type_off_t+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795 cat >conftest.$ac_ext <<_ACEOF
11796 /* confdefs.h. */
11797 _ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 $ac_includes_default
11802 typedef off_t ac__type_new_;
11804 main ()
11806 if ((ac__type_new_ *) 0)
11807 return 0;
11808 if (sizeof (ac__type_new_))
11809 return 0;
11811 return 0;
11813 _ACEOF
11814 rm -f conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
11831 ac_cv_type_off_t=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_type_off_t=no
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11842 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11843 if test $ac_cv_type_off_t = yes; then
11845 else
11847 cat >>confdefs.h <<_ACEOF
11848 #define off_t long int
11849 _ACEOF
11853 { echo "$as_me:$LINENO: checking for pid_t" >&5
11854 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11855 if test "${ac_cv_type_pid_t+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 $ac_includes_default
11865 typedef pid_t ac__type_new_;
11867 main ()
11869 if ((ac__type_new_ *) 0)
11870 return 0;
11871 if (sizeof (ac__type_new_))
11872 return 0;
11874 return 0;
11876 _ACEOF
11877 rm -f conftest.$ac_objext
11878 if { (ac_try="$ac_compile"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
11894 ac_cv_type_pid_t=yes
11895 else
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_cv_type_pid_t=no
11902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11905 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11906 if test $ac_cv_type_pid_t = yes; then
11908 else
11910 cat >>confdefs.h <<_ACEOF
11911 #define pid_t int
11912 _ACEOF
11916 { echo "$as_me:$LINENO: checking for size_t" >&5
11917 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11918 if test "${ac_cv_type_size_t+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 $ac_includes_default
11928 typedef size_t ac__type_new_;
11930 main ()
11932 if ((ac__type_new_ *) 0)
11933 return 0;
11934 if (sizeof (ac__type_new_))
11935 return 0;
11937 return 0;
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (ac_try="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_compile") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest.$ac_objext; then
11957 ac_cv_type_size_t=yes
11958 else
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_type_size_t=no
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11968 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11969 if test $ac_cv_type_size_t = yes; then
11971 else
11973 cat >>confdefs.h <<_ACEOF
11974 #define size_t unsigned int
11975 _ACEOF
11979 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11980 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11981 if test "${ac_cv_type_uid_t+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h. */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #include <sys/types.h>
11992 _ACEOF
11993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11994 $EGREP "uid_t" >/dev/null 2>&1; then
11995 ac_cv_type_uid_t=yes
11996 else
11997 ac_cv_type_uid_t=no
11999 rm -f -r conftest*
12002 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12003 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
12004 if test $ac_cv_type_uid_t = no; then
12006 cat >>confdefs.h <<\_ACEOF
12007 #define uid_t int
12008 _ACEOF
12011 cat >>confdefs.h <<\_ACEOF
12012 #define gid_t int
12013 _ACEOF
12017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12019 if test "${ac_cv_header_time+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h. */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 #include <sys/types.h>
12029 #include <sys/time.h>
12030 #include <time.h>
12033 main ()
12035 if ((struct tm *) 0)
12036 return 0;
12038 return 0;
12040 _ACEOF
12041 rm -f conftest.$ac_objext
12042 if { (ac_try="$ac_compile"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12046 esac
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_compile") 2>conftest.er1
12049 ac_status=$?
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest.$ac_objext; then
12058 ac_cv_header_time=yes
12059 else
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ac_cv_header_time=no
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12070 if test $ac_cv_header_time = yes; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define TIME_WITH_SYS_TIME 1
12074 _ACEOF
12078 { echo "$as_me:$LINENO: checking for ino_t" >&5
12079 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12080 if test "${ac_cv_type_ino_t+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12090 typedef ino_t ac__type_new_;
12092 main ()
12094 if ((ac__type_new_ *) 0)
12095 return 0;
12096 if (sizeof (ac__type_new_))
12097 return 0;
12099 return 0;
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 if { (ac_try="$ac_compile"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107 esac
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 ac_cv_type_ino_t=yes
12120 else
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_type_ino_t=no
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12130 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12131 if test $ac_cv_type_ino_t = yes; then
12133 else
12135 cat >>confdefs.h <<_ACEOF
12136 #define ino_t long
12137 _ACEOF
12141 { echo "$as_me:$LINENO: checking for dev_t" >&5
12142 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12143 if test "${ac_cv_type_dev_t+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 else
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 typedef dev_t ac__type_new_;
12155 main ()
12157 if ((ac__type_new_ *) 0)
12158 return 0;
12159 if (sizeof (ac__type_new_))
12160 return 0;
12162 return 0;
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_type_dev_t=yes
12183 else
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_type_dev_t=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12193 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12194 if test $ac_cv_type_dev_t = yes; then
12196 else
12198 cat >>confdefs.h <<_ACEOF
12199 #define dev_t unsigned
12200 _ACEOF
12205 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12206 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12207 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12208 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12209 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12218 #include <sys/types.h>
12219 #if STDC_HEADERS
12220 # include <stdlib.h>
12221 # include <stddef.h>
12222 #endif
12223 #ifdef HAVE_SYS_RESOURCE_H
12224 # include <sys/resource.h>
12225 #endif
12227 _ACEOF
12228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12229 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12230 ac_cv_type_rlim_t=yes
12231 else
12232 ac_cv_type_rlim_t=no
12234 rm -f -r conftest*
12236 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12237 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12239 if test $ac_cv_type_rlim_t = no; then
12240 cat >> confdefs.h <<\EOF
12241 #define rlim_t unsigned long
12245 { echo "$as_me:$LINENO: checking for stack_t" >&5
12246 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12247 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12248 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12249 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12250 else
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 #include <sys/types.h>
12259 #if STDC_HEADERS
12260 # include <stdlib.h>
12261 # include <stddef.h>
12262 #endif
12263 #include <signal.h>
12265 _ACEOF
12266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12267 $EGREP "stack_t" >/dev/null 2>&1; then
12268 ac_cv_type_stack_t=yes
12269 else
12270 ac_cv_type_stack_t=no
12272 rm -f -r conftest*
12274 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12275 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12277 if test $ac_cv_type_stack_t = no; then
12278 cat >> confdefs.h <<\EOF
12279 #define stack_t struct sigaltstack
12283 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12284 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h. */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12292 #include <sys/types.h>
12293 #if STDC_HEADERS
12294 # include <stdlib.h>
12295 # include <stddef.h>
12296 #endif
12297 #include <signal.h>
12298 #include "confdefs.h"
12301 main ()
12303 stack_t sigstk; sigstk.ss_base = 0;
12305 return 0;
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12325 { echo "$as_me:$LINENO: result: yes" >&5
12326 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_SS_BASE 1
12328 _ACEOF
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 { echo "$as_me:$LINENO: result: no" >&5
12335 echo "${ECHO_T}no" >&6; }
12338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 olibs="$LIBS"
12341 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12342 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12344 # Check whether --with-tlib was given.
12345 if test "${with_tlib+set}" = set; then
12346 withval=$with_tlib;
12349 if test -n "$with_tlib"; then
12350 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12351 echo "${ECHO_T}$with_tlib" >&6; }
12352 LIBS="$LIBS -l$with_tlib"
12353 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12354 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h. */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12363 main ()
12367 return 0;
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (ac_try="$ac_link"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } && {
12384 test -z "$ac_c_werror_flag" ||
12385 test ! -s conftest.err
12386 } && test -s conftest$ac_exeext &&
12387 $as_test_x conftest$ac_exeext; then
12388 { echo "$as_me:$LINENO: result: OK" >&5
12389 echo "${ECHO_T}OK" >&6; }
12390 else
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 { { echo "$as_me:$LINENO: error: FAILED" >&5
12395 echo "$as_me: error: FAILED" >&2;}
12396 { (exit 1); exit 1; }; }
12399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12400 conftest$ac_exeext conftest.$ac_ext
12401 olibs="$LIBS"
12402 else
12403 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12404 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12405 case "`uname -s 2>/dev/null`" in
12406 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12407 *) tlibs="ncurses termlib termcap curses";;
12408 esac
12409 for libname in $tlibs; do
12411 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12412 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12413 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12414 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-l${libname} $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h. */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12426 /* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12429 #ifdef __cplusplus
12430 extern "C"
12431 #endif
12432 char tgetent ();
12434 main ()
12436 return tgetent ();
12438 return 0;
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12449 ac_status=$?
12450 grep -v '^ *+' conftest.er1 >conftest.err
12451 rm -f conftest.er1
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } && {
12455 test -z "$ac_c_werror_flag" ||
12456 test ! -s conftest.err
12457 } && test -s conftest$ac_exeext &&
12458 $as_test_x conftest$ac_exeext; then
12459 eval "$as_ac_Lib=yes"
12460 else
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 eval "$as_ac_Lib=no"
12467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 ac_res=`eval echo '${'$as_ac_Lib'}'`
12472 { echo "$as_me:$LINENO: result: $ac_res" >&5
12473 echo "${ECHO_T}$ac_res" >&6; }
12474 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12475 cat >>confdefs.h <<_ACEOF
12476 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12477 _ACEOF
12479 LIBS="-l${libname} $LIBS"
12483 if test "x$olibs" != "x$LIBS"; then
12484 if test "$cross_compiling" = yes; then
12485 res="FAIL"
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12494 #ifdef HAVE_TERMCAP_H
12495 # include <termcap.h>
12496 #endif
12497 #if STDC_HEADERS
12498 # include <stdlib.h>
12499 # include <stddef.h>
12500 #endif
12501 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 res="OK"
12524 else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ( exit $ac_status )
12530 res="FAIL"
12532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12536 if test "$res" = "OK"; then
12537 break
12539 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12540 echo "${ECHO_T}$libname library is not usable" >&6; }
12541 LIBS="$olibs"
12543 done
12544 if test "x$olibs" = "x$LIBS"; then
12545 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12546 echo "${ECHO_T}no terminal library found" >&6; }
12550 if test "x$olibs" = "x$LIBS"; then
12551 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12552 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
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. */
12561 main ()
12563 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_link") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest$ac_exeext &&
12585 $as_test_x conftest$ac_exeext; then
12586 { echo "$as_me:$LINENO: result: yes" >&5
12587 echo "${ECHO_T}yes" >&6; }
12588 else
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 { { echo "$as_me:$LINENO: error: NOT FOUND!
12593 You need to install a terminal library; for example ncurses.
12594 Or specify the name of the library with --with-tlib." >&5
12595 echo "$as_me: error: NOT FOUND!
12596 You need to install a terminal library; for example ncurses.
12597 Or specify the name of the library with --with-tlib." >&2;}
12598 { (exit 1); exit 1; }; }
12601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12602 conftest$ac_exeext conftest.$ac_ext
12605 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12606 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12607 if test "${vim_cv_terminfo+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12611 if test "$cross_compiling" = yes; then
12613 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12614 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12615 { (exit 1); exit 1; }; }
12617 else
12618 cat >conftest.$ac_ext <<_ACEOF
12620 #include "confdefs.h"
12621 #ifdef HAVE_TERMCAP_H
12622 # include <termcap.h>
12623 #endif
12624 #ifdef HAVE_STRING_H
12625 # include <string.h>
12626 #endif
12627 #if STDC_HEADERS
12628 # include <stdlib.h>
12629 # include <stddef.h>
12630 #endif
12631 main()
12632 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12634 _ACEOF
12635 rm -f conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12656 vim_cv_terminfo=no
12658 else
12659 echo "$as_me: program exited with status $ac_status" >&5
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 ( exit $ac_status )
12665 vim_cv_terminfo=yes
12668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12674 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12675 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12677 if test "x$vim_cv_terminfo" = "xyes" ; then
12678 cat >>confdefs.h <<\_ACEOF
12679 #define TERMINFO 1
12680 _ACEOF
12684 if test "x$olibs" != "x$LIBS"; then
12685 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12686 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12687 if test "${vim_cv_tgent+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12691 if test "$cross_compiling" = yes; then
12693 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12694 echo "$as_me: error: failed to compile test program." >&2;}
12695 { (exit 1); exit 1; }; }
12697 else
12698 cat >conftest.$ac_ext <<_ACEOF
12700 #include "confdefs.h"
12701 #ifdef HAVE_TERMCAP_H
12702 # include <termcap.h>
12703 #endif
12704 #if STDC_HEADERS
12705 # include <stdlib.h>
12706 # include <stddef.h>
12707 #endif
12708 main()
12709 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12711 _ACEOF
12712 rm -f conftest$ac_exeext
12713 if { (ac_try="$ac_link"
12714 case "(($ac_try" in
12715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12717 esac
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_link") 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12733 vim_cv_tgent=zero
12735 else
12736 echo "$as_me: program exited with status $ac_status" >&5
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.$ac_ext >&5
12740 ( exit $ac_status )
12742 vim_cv_tgent=non-zero
12745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12751 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12752 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12754 if test "x$vim_cv_tgent" = "xzero" ; then
12755 cat >>confdefs.h <<\_ACEOF
12756 #define TGETENT_ZERO_ERR 0
12757 _ACEOF
12762 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12763 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h. */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 #ifdef HAVE_TERMCAP_H
12772 # include <termcap.h>
12773 #endif
12776 main ()
12778 ospeed = 20000
12780 return 0;
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (ac_try="$ac_link"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_link") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest$ac_exeext &&
12800 $as_test_x conftest$ac_exeext; then
12801 { echo "$as_me:$LINENO: result: yes" >&5
12802 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12803 #define HAVE_OSPEED 1
12804 _ACEOF
12806 else
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 { echo "$as_me:$LINENO: result: no" >&5
12811 echo "${ECHO_T}no" >&6; }
12812 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12813 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12821 #ifdef HAVE_TERMCAP_H
12822 # include <termcap.h>
12823 #endif
12824 extern short ospeed;
12827 main ()
12829 ospeed = 20000
12831 return 0;
12833 _ACEOF
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (ac_try="$ac_link"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839 esac
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_link") 2>conftest.er1
12842 ac_status=$?
12843 grep -v '^ *+' conftest.er1 >conftest.err
12844 rm -f conftest.er1
12845 cat conftest.err >&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } && {
12848 test -z "$ac_c_werror_flag" ||
12849 test ! -s conftest.err
12850 } && test -s conftest$ac_exeext &&
12851 $as_test_x conftest$ac_exeext; then
12852 { echo "$as_me:$LINENO: result: yes" >&5
12853 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12854 #define OSPEED_EXTERN 1
12855 _ACEOF
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 { echo "$as_me:$LINENO: result: no" >&5
12862 echo "${ECHO_T}no" >&6; }
12865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12866 conftest$ac_exeext conftest.$ac_ext
12870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12871 conftest$ac_exeext conftest.$ac_ext
12873 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12874 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 #ifdef HAVE_TERMCAP_H
12883 # include <termcap.h>
12884 #endif
12887 main ()
12889 if (UP == 0 && BC == 0) PC = 1
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_link") 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest$ac_exeext &&
12911 $as_test_x conftest$ac_exeext; then
12912 { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_UP_BC_PC 1
12915 _ACEOF
12917 else
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 { echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6; }
12923 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12924 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h. */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12932 #ifdef HAVE_TERMCAP_H
12933 # include <termcap.h>
12934 #endif
12935 extern char *UP, *BC, PC;
12938 main ()
12940 if (UP == 0 && BC == 0) PC = 1
12942 return 0;
12944 _ACEOF
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950 esac
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>conftest.er1
12953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && {
12959 test -z "$ac_c_werror_flag" ||
12960 test ! -s conftest.err
12961 } && test -s conftest$ac_exeext &&
12962 $as_test_x conftest$ac_exeext; then
12963 { echo "$as_me:$LINENO: result: yes" >&5
12964 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12965 #define UP_BC_PC_EXTERN 1
12966 _ACEOF
12968 else
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 { echo "$as_me:$LINENO: result: no" >&5
12973 echo "${ECHO_T}no" >&6; }
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
12981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12982 conftest$ac_exeext conftest.$ac_ext
12984 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12985 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h. */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12993 #ifdef HAVE_TERMCAP_H
12994 # include <termcap.h>
12995 #endif
12998 main ()
13000 extern int xx(); tputs("test", 1, (outfuntype)xx)
13002 return 0;
13004 _ACEOF
13005 rm -f conftest.$ac_objext
13006 if { (ac_try="$ac_compile"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_compile") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest.$ac_objext; then
13022 { echo "$as_me:$LINENO: result: yes" >&5
13023 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13024 #define HAVE_OUTFUNTYPE 1
13025 _ACEOF
13027 else
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 { echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6; }
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13038 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 #include <sys/types.h>
13047 #include <sys/time.h>
13048 #include <sys/select.h>
13050 main ()
13054 return 0;
13056 _ACEOF
13057 rm -f conftest.$ac_objext
13058 if { (ac_try="$ac_compile"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_compile") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest.$ac_objext; then
13074 { echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6; }
13076 cat >>confdefs.h <<\_ACEOF
13077 #define SYS_SELECT_WITH_SYS_TIME 1
13078 _ACEOF
13080 else
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.$ac_ext >&5
13084 { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13092 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13093 if test -r /dev/ptc; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define HAVE_DEV_PTC 1
13096 _ACEOF
13098 { echo "$as_me:$LINENO: result: yes" >&5
13099 echo "${ECHO_T}yes" >&6; }
13100 else
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13105 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13106 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13107 if test -c /dev/ptmx ; then
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h. */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13116 main ()
13118 ptsname(0);grantpt(0);unlockpt(0);
13120 return 0;
13122 _ACEOF
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
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_link") 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_exeext &&
13140 $as_test_x conftest$ac_exeext; then
13141 { echo "$as_me:$LINENO: result: yes" >&5
13142 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13143 #define HAVE_SVR4_PTYS 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_ipa8_conftest.oo \
13155 conftest$ac_exeext conftest.$ac_ext
13156 else
13157 { echo "$as_me:$LINENO: result: no" >&5
13158 echo "${ECHO_T}no" >&6; }
13161 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13162 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13163 if test -d /dev/ptym ; then
13164 pdir='/dev/ptym'
13165 else
13166 pdir='/dev'
13168 cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h. */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13174 #ifdef M_UNIX
13175 yes;
13176 #endif
13178 _ACEOF
13179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13180 $EGREP "yes" >/dev/null 2>&1; then
13181 ptys=`echo /dev/ptyp??`
13182 else
13183 ptys=`echo $pdir/pty??`
13185 rm -f -r conftest*
13187 if test "$ptys" != "$pdir/pty??" ; then
13188 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13189 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13190 cat >>confdefs.h <<_ACEOF
13191 #define PTYRANGE0 "$p0"
13192 _ACEOF
13194 cat >>confdefs.h <<_ACEOF
13195 #define PTYRANGE1 "$p1"
13196 _ACEOF
13198 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13199 echo "${ECHO_T}$p0 / $p1" >&6; }
13200 else
13201 { echo "$as_me:$LINENO: result: don't know" >&5
13202 echo "${ECHO_T}don't know" >&6; }
13205 rm -f conftest_grp
13206 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13207 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13208 if test "${vim_cv_tty_group+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13212 if test "$cross_compiling" = yes; then
13214 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13215 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13216 { (exit 1); exit 1; }; }
13218 else
13219 cat >conftest.$ac_ext <<_ACEOF
13221 #include "confdefs.h"
13222 #include <sys/types.h>
13223 #if STDC_HEADERS
13224 # include <stdlib.h>
13225 # include <stddef.h>
13226 #endif
13227 #ifdef HAVE_UNISTD_H
13228 #include <unistd.h>
13229 #endif
13230 #include <sys/stat.h>
13231 #include <stdio.h>
13232 main()
13234 struct stat sb;
13235 char *x,*ttyname();
13236 int om, m;
13237 FILE *fp;
13239 if (!(x = ttyname(0))) exit(1);
13240 if (stat(x, &sb)) exit(1);
13241 om = sb.st_mode;
13242 if (om & 002) exit(0);
13243 m = system("mesg y");
13244 if (m == -1 || m == 127) exit(1);
13245 if (stat(x, &sb)) exit(1);
13246 m = sb.st_mode;
13247 if (chmod(x, om)) exit(1);
13248 if (m & 002) exit(0);
13249 if (sb.st_gid == getgid()) exit(1);
13250 if (!(fp=fopen("conftest_grp", "w")))
13251 exit(1);
13252 fprintf(fp, "%d\n", sb.st_gid);
13253 fclose(fp);
13254 exit(0);
13257 _ACEOF
13258 rm -f conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13269 { (case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13279 if test -f conftest_grp; then
13280 vim_cv_tty_group=`cat conftest_grp`
13281 if test "x$vim_cv_tty_mode" = "x" ; then
13282 vim_cv_tty_mode=0620
13284 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13285 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13286 else
13287 vim_cv_tty_group=world
13288 { echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13289 echo "${ECHO_T}ptys are world accessible" >&6; }
13292 else
13293 echo "$as_me: program exited with status $ac_status" >&5
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ( exit $ac_status )
13299 vim_cv_tty_group=world
13300 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13301 echo "${ECHO_T}can't determine - assume ptys are world accessible" >&6; }
13304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13310 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13311 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13312 rm -f conftest_grp
13314 if test "x$vim_cv_tty_group" != "xworld" ; then
13315 cat >>confdefs.h <<_ACEOF
13316 #define PTYGROUP $vim_cv_tty_group
13317 _ACEOF
13319 if test "x$vim_cv_tty_mode" = "x" ; then
13320 { { 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
13321 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;}
13322 { (exit 1); exit 1; }; }
13323 else
13324 cat >>confdefs.h <<\_ACEOF
13325 #define PTYMODE 0620
13326 _ACEOF
13332 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13333 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13334 if test "${ac_cv_type_signal+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h. */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 #include <sys/types.h>
13344 #include <signal.h>
13347 main ()
13349 return *(signal (0, 0)) (0) == 1;
13351 return 0;
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (ac_try="$ac_compile"
13356 case "(($ac_try" in
13357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13358 *) ac_try_echo=$ac_try;;
13359 esac
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compile") 2>conftest.er1
13362 ac_status=$?
13363 grep -v '^ *+' conftest.er1 >conftest.err
13364 rm -f conftest.er1
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } && {
13368 test -z "$ac_c_werror_flag" ||
13369 test ! -s conftest.err
13370 } && test -s conftest.$ac_objext; then
13371 ac_cv_type_signal=int
13372 else
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13376 ac_cv_type_signal=void
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13382 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13384 cat >>confdefs.h <<_ACEOF
13385 #define RETSIGTYPE $ac_cv_type_signal
13386 _ACEOF
13390 if test $ac_cv_type_signal = void; then
13391 cat >>confdefs.h <<\_ACEOF
13392 #define SIGRETURN return
13393 _ACEOF
13395 else
13396 cat >>confdefs.h <<\_ACEOF
13397 #define SIGRETURN return 0
13398 _ACEOF
13402 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13403 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13404 cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h. */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13411 #include <signal.h>
13412 test_sig()
13414 struct sigcontext *scont;
13415 scont = (struct sigcontext *)0;
13416 return 1;
13419 main ()
13423 return 0;
13425 _ACEOF
13426 rm -f conftest.$ac_objext
13427 if { (ac_try="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 { echo "$as_me:$LINENO: result: yes" >&5
13444 echo "${ECHO_T}yes" >&6; }
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_SIGCONTEXT 1
13447 _ACEOF
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 { echo "$as_me:$LINENO: result: no" >&5
13454 echo "${ECHO_T}no" >&6; }
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13460 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13461 if test "${vim_cv_getcwd_broken+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13465 if test "$cross_compiling" = yes; then
13467 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13468 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13469 { (exit 1); exit 1; }; }
13471 else
13472 cat >conftest.$ac_ext <<_ACEOF
13474 #include "confdefs.h"
13475 #ifdef HAVE_UNISTD_H
13476 #include <unistd.h>
13477 #endif
13478 char *dagger[] = { "IFS=pwd", 0 };
13479 main()
13481 char buffer[500];
13482 extern char **environ;
13483 environ = dagger;
13484 return getcwd(buffer, 500) ? 0 : 1;
13487 _ACEOF
13488 rm -f conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_link") 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13502 esac
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13505 ac_status=$?
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13509 vim_cv_getcwd_broken=no
13511 else
13512 echo "$as_me: program exited with status $ac_status" >&5
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 ( exit $ac_status )
13518 vim_cv_getcwd_broken=yes
13521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13527 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13528 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13530 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13531 cat >>confdefs.h <<\_ACEOF
13532 #define BAD_GETCWD 1
13533 _ACEOF
13582 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
13583 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13584 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
13585 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13586 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13587 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13588 usleep utime utimes
13590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 else
13596 cat >conftest.$ac_ext <<_ACEOF
13597 /* confdefs.h. */
13598 _ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13604 #define $ac_func innocuous_$ac_func
13606 /* System header to define __stub macros and hopefully few prototypes,
13607 which can conflict with char $ac_func (); below.
13608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609 <limits.h> exists even on freestanding compilers. */
13611 #ifdef __STDC__
13612 # include <limits.h>
13613 #else
13614 # include <assert.h>
13615 #endif
13617 #undef $ac_func
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13622 #ifdef __cplusplus
13623 extern "C"
13624 #endif
13625 char $ac_func ();
13626 /* The GNU C library defines this for functions which it implements
13627 to always fail with ENOSYS. Some functions are actually named
13628 something starting with __ and the normal name is an alias. */
13629 #if defined __stub_$ac_func || defined __stub___$ac_func
13630 choke me
13631 #endif
13634 main ()
13636 return $ac_func ();
13638 return 0;
13640 _ACEOF
13641 rm -f conftest.$ac_objext conftest$ac_exeext
13642 if { (ac_try="$ac_link"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_link") 2>conftest.er1
13649 ac_status=$?
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest$ac_exeext &&
13658 $as_test_x conftest$ac_exeext; then
13659 eval "$as_ac_var=yes"
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 eval "$as_ac_var=no"
13667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13668 conftest$ac_exeext conftest.$ac_ext
13670 ac_res=`eval echo '${'$as_ac_var'}'`
13671 { echo "$as_me:$LINENO: result: $ac_res" >&5
13672 echo "${ECHO_T}$ac_res" >&6; }
13673 if test `eval echo '${'$as_ac_var'}'` = yes; then
13674 cat >>confdefs.h <<_ACEOF
13675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13676 _ACEOF
13679 done
13681 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13682 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
13683 if test "${ac_cv_sys_largefile_source+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13685 else
13686 while :; do
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #include <stdio.h>
13695 main ()
13697 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13699 return 0;
13701 _ACEOF
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (ac_try="$ac_link"
13704 case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
13710 ac_status=$?
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest$ac_exeext &&
13719 $as_test_x conftest$ac_exeext; then
13720 ac_cv_sys_largefile_source=no; break
13721 else
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729 conftest$ac_exeext conftest.$ac_ext
13730 cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h. */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #define _LARGEFILE_SOURCE 1
13737 #include <stdio.h>
13739 main ()
13741 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13743 return 0;
13745 _ACEOF
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest$ac_exeext &&
13763 $as_test_x conftest$ac_exeext; then
13764 ac_cv_sys_largefile_source=1; break
13765 else
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13773 conftest$ac_exeext conftest.$ac_ext
13774 ac_cv_sys_largefile_source=unknown
13775 break
13776 done
13778 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13779 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
13780 case $ac_cv_sys_largefile_source in #(
13781 no | unknown) ;;
13783 cat >>confdefs.h <<_ACEOF
13784 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13785 _ACEOF
13787 esac
13788 rm -f -r conftest*
13790 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13791 # in glibc 2.1.3, but that breaks too many other things.
13792 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13793 if test $ac_cv_sys_largefile_source != unknown; then
13795 cat >>confdefs.h <<\_ACEOF
13796 #define HAVE_FSEEKO 1
13797 _ACEOF
13802 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13803 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h. */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13810 #include <sys/types.h>
13811 #include <sys/stat.h>
13813 main ()
13815 struct stat st;
13816 int n;
13818 stat("/", &st);
13819 n = (int)st.st_blksize;
13821 return 0;
13823 _ACEOF
13824 rm -f conftest.$ac_objext
13825 if { (ac_try="$ac_compile"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_compile") 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 } && test -s conftest.$ac_objext; then
13841 { echo "$as_me:$LINENO: result: yes" >&5
13842 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_ST_BLKSIZE 1
13844 _ACEOF
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 { echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6; }
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13857 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13858 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13862 if test "$cross_compiling" = yes; then
13864 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13865 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13866 { (exit 1); exit 1; }; }
13868 else
13869 cat >conftest.$ac_ext <<_ACEOF
13871 #include "confdefs.h"
13872 #if STDC_HEADERS
13873 # include <stdlib.h>
13874 # include <stddef.h>
13875 #endif
13876 #include <sys/types.h>
13877 #include <sys/stat.h>
13878 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13880 _ACEOF
13881 rm -f conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13902 vim_cv_stat_ignores_slash=yes
13904 else
13905 echo "$as_me: program exited with status $ac_status" >&5
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 ( exit $ac_status )
13911 vim_cv_stat_ignores_slash=no
13914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13920 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13921 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13923 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13924 cat >>confdefs.h <<\_ACEOF
13925 #define STAT_IGNORES_SLASH 1
13926 _ACEOF
13930 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13931 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13932 save_LIBS="$LIBS"
13933 LIBS="$LIBS -liconv"
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13941 #ifdef HAVE_ICONV_H
13942 # include <iconv.h>
13943 #endif
13946 main ()
13948 iconv_open("fr", "to");
13950 return 0;
13952 _ACEOF
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (ac_try="$ac_link"
13955 case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13958 esac
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_link") 2>conftest.er1
13961 ac_status=$?
13962 grep -v '^ *+' conftest.er1 >conftest.err
13963 rm -f conftest.er1
13964 cat conftest.err >&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && {
13967 test -z "$ac_c_werror_flag" ||
13968 test ! -s conftest.err
13969 } && test -s conftest$ac_exeext &&
13970 $as_test_x conftest$ac_exeext; then
13971 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13972 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
13973 #define HAVE_ICONV 1
13974 _ACEOF
13976 else
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 LIBS="$save_LIBS"
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h. */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13988 #ifdef HAVE_ICONV_H
13989 # include <iconv.h>
13990 #endif
13993 main ()
13995 iconv_open("fr", "to");
13997 return 0;
13999 _ACEOF
14000 rm -f conftest.$ac_objext conftest$ac_exeext
14001 if { (ac_try="$ac_link"
14002 case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14008 ac_status=$?
14009 grep -v '^ *+' conftest.er1 >conftest.err
14010 rm -f conftest.er1
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest$ac_exeext &&
14017 $as_test_x conftest$ac_exeext; then
14018 { echo "$as_me:$LINENO: result: yes" >&5
14019 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_ICONV 1
14021 _ACEOF
14023 else
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 { echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6; }
14031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14032 conftest$ac_exeext conftest.$ac_ext
14035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14036 conftest$ac_exeext conftest.$ac_ext
14039 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14040 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h. */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 #ifdef HAVE_LANGINFO_H
14049 # include <langinfo.h>
14050 #endif
14053 main ()
14055 char *cs = nl_langinfo(CODESET);
14057 return 0;
14059 _ACEOF
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14064 *) ac_try_echo=$ac_try;;
14065 esac
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } && {
14074 test -z "$ac_c_werror_flag" ||
14075 test ! -s conftest.err
14076 } && test -s conftest$ac_exeext &&
14077 $as_test_x conftest$ac_exeext; then
14078 { echo "$as_me:$LINENO: result: yes" >&5
14079 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14080 #define HAVE_NL_LANGINFO_CODESET 1
14081 _ACEOF
14083 else
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 { echo "$as_me:$LINENO: result: no" >&5
14088 echo "${ECHO_T}no" >&6; }
14091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14092 conftest$ac_exeext conftest.$ac_ext
14095 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14096 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_m_strtod+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lm $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h. */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char strtod ();
14117 main ()
14119 return strtod ();
14121 return 0;
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext &&
14141 $as_test_x conftest$ac_exeext; then
14142 ac_cv_lib_m_strtod=yes
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_lib_m_strtod=no
14150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14151 conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14155 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14156 if test $ac_cv_lib_m_strtod = yes; then
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_LIBM 1
14159 _ACEOF
14161 LIBS="-lm $LIBS"
14165 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14166 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14174 #ifdef HAVE_MATH_H
14175 # include <math.h>
14176 #endif
14177 #if STDC_HEADERS
14178 # include <stdlib.h>
14179 # include <stddef.h>
14180 #endif
14183 main ()
14185 char *s; double d;
14186 d = strtod("1.1", &s);
14187 d = fabs(1.11);
14188 d = ceil(1.11);
14189 d = floor(1.11);
14190 d = log10(1.11);
14191 d = pow(1.11, 2.22);
14192 d = sqrt(1.11);
14193 d = sin(1.11);
14194 d = cos(1.11);
14195 d = atan(1.11);
14198 return 0;
14200 _ACEOF
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (ac_try="$ac_link"
14203 case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_link") 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } && {
14215 test -z "$ac_c_werror_flag" ||
14216 test ! -s conftest.err
14217 } && test -s conftest$ac_exeext &&
14218 $as_test_x conftest$ac_exeext; then
14219 { echo "$as_me:$LINENO: result: yes" >&5
14220 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14221 #define HAVE_FLOAT_FUNCS 1
14222 _ACEOF
14224 else
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 { echo "$as_me:$LINENO: result: no" >&5
14229 echo "${ECHO_T}no" >&6; }
14232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14233 conftest$ac_exeext conftest.$ac_ext
14235 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14236 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14237 # Check whether --enable-acl was given.
14238 if test "${enable_acl+set}" = set; then
14239 enableval=$enable_acl;
14240 else
14241 enable_acl="yes"
14244 if test "$enable_acl" = "yes"; then
14245 { echo "$as_me:$LINENO: result: no" >&5
14246 echo "${ECHO_T}no" >&6; }
14247 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14248 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14249 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252 ac_check_lib_save_LIBS=$LIBS
14253 LIBS="-lposix1e $LIBS"
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char acl_get_file ();
14269 main ()
14271 return acl_get_file ();
14273 return 0;
14275 _ACEOF
14276 rm -f conftest.$ac_objext conftest$ac_exeext
14277 if { (ac_try="$ac_link"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281 esac
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
14284 ac_status=$?
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest$ac_exeext &&
14293 $as_test_x conftest$ac_exeext; then
14294 ac_cv_lib_posix1e_acl_get_file=yes
14295 else
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_posix1e_acl_get_file=no
14302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14303 conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14306 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14307 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14308 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14309 LIBS="$LIBS -lposix1e"
14310 else
14311 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14312 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14313 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316 ac_check_lib_save_LIBS=$LIBS
14317 LIBS="-lacl $LIBS"
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h. */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14328 #ifdef __cplusplus
14329 extern "C"
14330 #endif
14331 char acl_get_file ();
14333 main ()
14335 return acl_get_file ();
14337 return 0;
14339 _ACEOF
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (ac_try="$ac_link"
14342 case "(($ac_try" in
14343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344 *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_link") 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest$ac_exeext &&
14357 $as_test_x conftest$ac_exeext; then
14358 ac_cv_lib_acl_acl_get_file=yes
14359 else
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.$ac_ext >&5
14363 ac_cv_lib_acl_acl_get_file=no
14366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14367 conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14370 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14371 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14372 if test $ac_cv_lib_acl_acl_get_file = yes; then
14373 LIBS="$LIBS -lacl"
14374 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14375 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14376 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379 ac_check_lib_save_LIBS=$LIBS
14380 LIBS="-lattr $LIBS"
14381 cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h. */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14391 #ifdef __cplusplus
14392 extern "C"
14393 #endif
14394 char fgetxattr ();
14396 main ()
14398 return fgetxattr ();
14400 return 0;
14402 _ACEOF
14403 rm -f conftest.$ac_objext conftest$ac_exeext
14404 if { (ac_try="$ac_link"
14405 case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_link") 2>conftest.er1
14411 ac_status=$?
14412 grep -v '^ *+' conftest.er1 >conftest.err
14413 rm -f conftest.er1
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest$ac_exeext &&
14420 $as_test_x conftest$ac_exeext; then
14421 ac_cv_lib_attr_fgetxattr=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_lib_attr_fgetxattr=no
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14433 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14434 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14435 if test $ac_cv_lib_attr_fgetxattr = yes; then
14436 LIBS="$LIBS -lattr"
14444 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14445 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h. */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14453 #include <sys/types.h>
14454 #ifdef HAVE_SYS_ACL_H
14455 # include <sys/acl.h>
14456 #endif
14457 acl_t acl;
14459 main ()
14461 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14462 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14463 acl_free(acl);
14465 return 0;
14467 _ACEOF
14468 rm -f conftest.$ac_objext conftest$ac_exeext
14469 if { (ac_try="$ac_link"
14470 case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14473 esac
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_link") 2>conftest.er1
14476 ac_status=$?
14477 grep -v '^ *+' conftest.er1 >conftest.err
14478 rm -f conftest.er1
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest$ac_exeext &&
14485 $as_test_x conftest$ac_exeext; then
14486 { echo "$as_me:$LINENO: result: yes" >&5
14487 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14488 #define HAVE_POSIX_ACL 1
14489 _ACEOF
14491 else
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14495 { echo "$as_me:$LINENO: result: no" >&5
14496 echo "${ECHO_T}no" >&6; }
14499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14500 conftest$ac_exeext conftest.$ac_ext
14502 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14503 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14511 #ifdef HAVE_SYS_ACL_H
14512 # include <sys/acl.h>
14513 #endif
14515 main ()
14517 acl("foo", GETACLCNT, 0, NULL);
14520 return 0;
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (ac_try="$ac_link"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_link") 2>conftest.er1
14531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest$ac_exeext &&
14540 $as_test_x conftest$ac_exeext; then
14541 { echo "$as_me:$LINENO: result: yes" >&5
14542 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_SOLARIS_ACL 1
14544 _ACEOF
14546 else
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 { echo "$as_me:$LINENO: result: no" >&5
14551 echo "${ECHO_T}no" >&6; }
14554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14555 conftest$ac_exeext conftest.$ac_ext
14557 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14558 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14566 #if STDC_HEADERS
14567 # include <stdlib.h>
14568 # include <stddef.h>
14569 #endif
14570 #ifdef HAVE_SYS_ACL_H
14571 # include <sys/acl.h>
14572 #endif
14573 #ifdef HAVE_SYS_ACCESS_H
14574 # include <sys/access.h>
14575 #endif
14576 #define _ALL_SOURCE
14578 #include <sys/stat.h>
14580 int aclsize;
14581 struct acl *aclent;
14583 main ()
14585 aclsize = sizeof(struct acl);
14586 aclent = (void *)malloc(aclsize);
14587 statacl("foo", STX_NORMAL, aclent, aclsize);
14590 return 0;
14592 _ACEOF
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_link") 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } && {
14607 test -z "$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 } && test -s conftest$ac_exeext &&
14610 $as_test_x conftest$ac_exeext; then
14611 { echo "$as_me:$LINENO: result: yes" >&5
14612 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14613 #define HAVE_AIX_ACL 1
14614 _ACEOF
14616 else
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14620 { echo "$as_me:$LINENO: result: no" >&5
14621 echo "${ECHO_T}no" >&6; }
14624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14625 conftest$ac_exeext conftest.$ac_ext
14626 else
14627 { echo "$as_me:$LINENO: result: yes" >&5
14628 echo "${ECHO_T}yes" >&6; }
14631 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14632 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14633 # Check whether --enable-gpm was given.
14634 if test "${enable_gpm+set}" = set; then
14635 enableval=$enable_gpm;
14636 else
14637 enable_gpm="yes"
14641 if test "$enable_gpm" = "yes"; then
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14644 { echo "$as_me:$LINENO: checking for gpm" >&5
14645 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14646 if test "${vi_cv_have_gpm+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 olibs="$LIBS" ; LIBS="-lgpm"
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <gpm.h>
14657 #include <linux/keyboard.h>
14659 main ()
14661 Gpm_GetLibVersion(NULL);
14663 return 0;
14665 _ACEOF
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671 esac
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14684 vi_cv_have_gpm=yes
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 vi_cv_have_gpm=no
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14694 LIBS="$olibs"
14697 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14698 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14699 if test $vi_cv_have_gpm = yes; then
14700 LIBS="$LIBS -lgpm"
14701 cat >>confdefs.h <<\_ACEOF
14702 #define HAVE_GPM 1
14703 _ACEOF
14706 else
14707 { echo "$as_me:$LINENO: result: yes" >&5
14708 echo "${ECHO_T}yes" >&6; }
14711 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14712 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14713 # Check whether --enable-sysmouse was given.
14714 if test "${enable_sysmouse+set}" = set; then
14715 enableval=$enable_sysmouse;
14716 else
14717 enable_sysmouse="yes"
14721 if test "$enable_sysmouse" = "yes"; then
14722 { echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6; }
14724 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14725 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14726 if test "${vi_cv_have_sysmouse+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728 else
14729 cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h. */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 #include <sys/consio.h>
14736 #include <signal.h>
14737 #include <sys/fbio.h>
14739 main ()
14741 struct mouse_info mouse;
14742 mouse.operation = MOUSE_MODE;
14743 mouse.operation = MOUSE_SHOW;
14744 mouse.u.mode.mode = 0;
14745 mouse.u.mode.signal = SIGUSR2;
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
14768 vi_cv_have_sysmouse=yes
14769 else
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 vi_cv_have_sysmouse=no
14776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14777 conftest$ac_exeext conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14781 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14782 if test $vi_cv_have_sysmouse = yes; then
14783 cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_SYSMOUSE 1
14785 _ACEOF
14788 else
14789 { echo "$as_me:$LINENO: result: yes" >&5
14790 echo "${ECHO_T}yes" >&6; }
14793 { echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
14794 echo $ECHO_N "checking for FD_CLOEXEC... $ECHO_C" >&6; }
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 #if HAVE_FCNTL_H
14802 # include <fcntl.h>
14803 #endif
14805 main ()
14807 int flag = FD_CLOEXEC;
14809 return 0;
14811 _ACEOF
14812 rm -f conftest.$ac_objext
14813 if { (ac_try="$ac_compile"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817 esac
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_compile") 2>conftest.er1
14820 ac_status=$?
14821 grep -v '^ *+' conftest.er1 >conftest.err
14822 rm -f conftest.er1
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest.$ac_objext; then
14829 { echo "$as_me:$LINENO: result: yes" >&5
14830 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14831 #define HAVE_FD_CLOEXEC 1
14832 _ACEOF
14834 else
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 { echo "$as_me:$LINENO: result: not usable" >&5
14839 echo "${ECHO_T}not usable" >&6; }
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 { echo "$as_me:$LINENO: checking for rename" >&5
14845 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14846 cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h. */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 #include <stdio.h>
14854 main ()
14856 rename("this", "that")
14858 return 0;
14860 _ACEOF
14861 rm -f conftest.$ac_objext conftest$ac_exeext
14862 if { (ac_try="$ac_link"
14863 case "(($ac_try" in
14864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865 *) ac_try_echo=$ac_try;;
14866 esac
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_link") 2>conftest.er1
14869 ac_status=$?
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && {
14875 test -z "$ac_c_werror_flag" ||
14876 test ! -s conftest.err
14877 } && test -s conftest$ac_exeext &&
14878 $as_test_x conftest$ac_exeext; then
14879 { echo "$as_me:$LINENO: result: yes" >&5
14880 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_RENAME 1
14882 _ACEOF
14884 else
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 { echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6; }
14892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14893 conftest$ac_exeext conftest.$ac_ext
14895 { echo "$as_me:$LINENO: checking for sysctl" >&5
14896 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 #include <sys/types.h>
14904 #include <sys/sysctl.h>
14906 main ()
14908 int mib[2], r;
14909 size_t len;
14911 mib[0] = CTL_HW;
14912 mib[1] = HW_USERMEM;
14913 len = sizeof(r);
14914 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14917 return 0;
14919 _ACEOF
14920 rm -f conftest.$ac_objext
14921 if { (ac_try="$ac_compile"
14922 case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.$ac_objext; then
14937 { echo "$as_me:$LINENO: result: yes" >&5
14938 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_SYSCTL 1
14940 _ACEOF
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 { echo "$as_me:$LINENO: result: not usable" >&5
14947 echo "${ECHO_T}not usable" >&6; }
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 { echo "$as_me:$LINENO: checking for sysinfo" >&5
14953 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <sys/types.h>
14961 #include <sys/sysinfo.h>
14963 main ()
14965 struct sysinfo sinfo;
14966 int t;
14968 (void)sysinfo(&sinfo);
14969 t = sinfo.totalram;
14972 return 0;
14974 _ACEOF
14975 rm -f conftest.$ac_objext
14976 if { (ac_try="$ac_compile"
14977 case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14983 ac_status=$?
14984 grep -v '^ *+' conftest.er1 >conftest.err
14985 rm -f conftest.er1
14986 cat conftest.err >&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.$ac_objext; then
14992 { echo "$as_me:$LINENO: result: yes" >&5
14993 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_SYSINFO 1
14995 _ACEOF
14997 else
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 { echo "$as_me:$LINENO: result: not usable" >&5
15002 echo "${ECHO_T}not usable" >&6; }
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15008 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
15009 cat >conftest.$ac_ext <<_ACEOF
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <sys/types.h>
15016 #include <sys/sysinfo.h>
15018 main ()
15020 struct sysinfo sinfo;
15021 sinfo.mem_unit = 1;
15024 return 0;
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (ac_try="$ac_compile"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15032 esac
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_compile") 2>conftest.er1
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest.$ac_objext; then
15044 { echo "$as_me:$LINENO: result: yes" >&5
15045 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_SYSINFO_MEM_UNIT 1
15047 _ACEOF
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 { echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6; }
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 { echo "$as_me:$LINENO: checking for sysconf" >&5
15060 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <unistd.h>
15069 main ()
15071 (void)sysconf(_SC_PAGESIZE);
15072 (void)sysconf(_SC_PHYS_PAGES);
15075 return 0;
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15086 ac_status=$?
15087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest.$ac_objext; then
15095 { echo "$as_me:$LINENO: result: yes" >&5
15096 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_SYSCONF 1
15098 _ACEOF
15100 else
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15104 { echo "$as_me:$LINENO: result: not usable" >&5
15105 echo "${ECHO_T}not usable" >&6; }
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 { echo "$as_me:$LINENO: checking size of int" >&5
15112 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15113 if test "${ac_cv_sizeof_int+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116 if test "$cross_compiling" = yes; then
15117 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
15118 echo "$as_me: error: failed to compile test program" >&2;}
15119 { (exit 1); exit 1; }; }
15120 else
15121 cat >conftest.$ac_ext <<_ACEOF
15122 /* confdefs.h. */
15123 _ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15128 #include <stdio.h>
15129 #if STDC_HEADERS
15130 # include <stdlib.h>
15131 # include <stddef.h>
15132 #endif
15133 main()
15135 FILE *f=fopen("conftestval", "w");
15136 if (!f) exit(1);
15137 fprintf(f, "%d\n", (int)sizeof(int));
15138 exit(0);
15140 _ACEOF
15141 rm -f conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_cv_sizeof_int=`cat conftestval`
15162 else
15163 echo "$as_me: program exited with status $ac_status" >&5
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ( exit $ac_status )
15168 ac_cv_sizeof_int=0
15170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15177 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15178 cat >>confdefs.h <<_ACEOF
15179 #define SIZEOF_INT $ac_cv_sizeof_int
15180 _ACEOF
15184 bcopy_test_prog='
15185 #include "confdefs.h"
15186 #ifdef HAVE_STRING_H
15187 # include <string.h>
15188 #endif
15189 #if STDC_HEADERS
15190 # include <stdlib.h>
15191 # include <stddef.h>
15192 #endif
15193 main() {
15194 char buf[10];
15195 strcpy(buf, "abcdefghi");
15196 mch_memmove(buf, buf + 2, 3);
15197 if (strncmp(buf, "ababcf", 6))
15198 exit(1);
15199 strcpy(buf, "abcdefghi");
15200 mch_memmove(buf + 2, buf, 3);
15201 if (strncmp(buf, "cdedef", 6))
15202 exit(1);
15203 exit(0); /* libc version works properly. */
15206 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15207 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15208 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15210 else
15212 if test "$cross_compiling" = yes; then
15214 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15215 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15216 { (exit 1); exit 1; }; }
15218 else
15219 cat >conftest.$ac_ext <<_ACEOF
15220 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15221 _ACEOF
15222 rm -f conftest$ac_exeext
15223 if { (ac_try="$ac_link"
15224 case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15227 esac
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_link") 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15243 vim_cv_memmove_handles_overlap=yes
15245 else
15246 echo "$as_me: program exited with status $ac_status" >&5
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ( exit $ac_status )
15252 vim_cv_memmove_handles_overlap=no
15255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15261 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15262 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15264 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define USEMEMMOVE 1
15267 _ACEOF
15269 else
15270 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15271 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15272 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 else
15276 if test "$cross_compiling" = yes; then
15278 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15279 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15280 { (exit 1); exit 1; }; }
15282 else
15283 cat >conftest.$ac_ext <<_ACEOF
15284 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15285 _ACEOF
15286 rm -f conftest$ac_exeext
15287 if { (ac_try="$ac_link"
15288 case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291 esac
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_link") 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15297 { (case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_try") 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15307 vim_cv_bcopy_handles_overlap=yes
15309 else
15310 echo "$as_me: program exited with status $ac_status" >&5
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ( exit $ac_status )
15316 vim_cv_bcopy_handles_overlap=no
15319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15325 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15326 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15328 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define USEBCOPY 1
15331 _ACEOF
15333 else
15334 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15335 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15336 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15340 if test "$cross_compiling" = yes; then
15342 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15343 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15344 { (exit 1); exit 1; }; }
15346 else
15347 cat >conftest.$ac_ext <<_ACEOF
15348 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15349 _ACEOF
15350 rm -f conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364 esac
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15371 vim_cv_memcpy_handles_overlap=yes
15373 else
15374 echo "$as_me: program exited with status $ac_status" >&5
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ( exit $ac_status )
15380 vim_cv_memcpy_handles_overlap=no
15383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15389 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15390 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15392 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15393 cat >>confdefs.h <<\_ACEOF
15394 #define USEMEMCPY 1
15395 _ACEOF
15403 if test "$enable_multibyte" = "yes"; then
15404 cflags_save=$CFLAGS
15405 ldflags_save=$LDFLAGS
15406 if test "x$x_includes" != "xNONE" ; then
15407 CFLAGS="$CFLAGS -I$x_includes"
15408 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15409 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15410 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <X11/Xlocale.h>
15419 main ()
15423 return 0;
15425 _ACEOF
15426 rm -f conftest.$ac_objext
15427 if { (ac_try="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest.$ac_objext; then
15443 cat >conftest.$ac_ext <<_ACEOF
15444 /* confdefs.h. */
15445 _ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15453 #ifdef __cplusplus
15454 extern "C"
15455 #endif
15456 char _Xsetlocale ();
15458 main ()
15460 return _Xsetlocale ();
15462 return 0;
15464 _ACEOF
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest$ac_exeext &&
15482 $as_test_x conftest$ac_exeext; then
15483 { echo "$as_me:$LINENO: result: yes" >&5
15484 echo "${ECHO_T}yes" >&6; }
15485 cat >>confdefs.h <<\_ACEOF
15486 #define X_LOCALE 1
15487 _ACEOF
15489 else
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 { echo "$as_me:$LINENO: result: no" >&5
15494 echo "${ECHO_T}no" >&6; }
15497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15498 conftest$ac_exeext conftest.$ac_ext
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 { echo "$as_me:$LINENO: result: no" >&5
15504 echo "${ECHO_T}no" >&6; }
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 CFLAGS=$cflags_save
15510 LDFLAGS=$ldflags_save
15513 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15514 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15515 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518 ac_check_lib_save_LIBS=$LIBS
15519 LIBS="-lxpg4 $LIBS"
15520 cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h. */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15527 /* Override any GCC internal prototype to avoid an error.
15528 Use char because int might match the return type of a GCC
15529 builtin and then its argument prototype would still apply. */
15530 #ifdef __cplusplus
15531 extern "C"
15532 #endif
15533 char _xpg4_setrunelocale ();
15535 main ()
15537 return _xpg4_setrunelocale ();
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest$ac_exeext &&
15559 $as_test_x conftest$ac_exeext; then
15560 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15561 else
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15569 conftest$ac_exeext conftest.$ac_ext
15570 LIBS=$ac_check_lib_save_LIBS
15572 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15573 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15574 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15575 LIBS="$LIBS -lxpg4"
15579 { echo "$as_me:$LINENO: checking how to create tags" >&5
15580 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15581 test -f tags && mv tags tags.save
15582 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15583 TAGPRG="ctags -I INIT+ --fields=+S"
15584 else
15585 TAGPRG="ctags"
15586 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15587 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15588 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15589 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15590 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15591 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15592 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15594 test -f tags.save && mv tags.save tags
15595 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15596 echo "${ECHO_T}$TAGPRG" >&6; }
15598 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15599 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15600 MANDEF="man"
15601 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15602 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15603 echo "${ECHO_T}$MANDEF" >&6; }
15604 if test "$MANDEF" = "man -s"; then
15605 cat >>confdefs.h <<\_ACEOF
15606 #define USEMAN_S 1
15607 _ACEOF
15611 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15612 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15613 # Check whether --enable-nls was given.
15614 if test "${enable_nls+set}" = set; then
15615 enableval=$enable_nls;
15616 else
15617 enable_nls="yes"
15621 if test "$enable_nls" = "yes"; then
15622 { echo "$as_me:$LINENO: result: no" >&5
15623 echo "${ECHO_T}no" >&6; }
15625 INSTALL_LANGS=install-languages
15627 INSTALL_TOOL_LANGS=install-tool-languages
15630 # Extract the first word of "msgfmt", so it can be a program name with args.
15631 set dummy msgfmt; ac_word=$2
15632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15634 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 if test -n "$MSGFMT"; then
15638 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15639 else
15640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641 for as_dir in $PATH
15643 IFS=$as_save_IFS
15644 test -z "$as_dir" && as_dir=.
15645 for ac_exec_ext in '' $ac_executable_extensions; do
15646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15647 ac_cv_prog_MSGFMT="msgfmt"
15648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15649 break 2
15651 done
15652 done
15653 IFS=$as_save_IFS
15657 MSGFMT=$ac_cv_prog_MSGFMT
15658 if test -n "$MSGFMT"; then
15659 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15660 echo "${ECHO_T}$MSGFMT" >&6; }
15661 else
15662 { echo "$as_me:$LINENO: result: no" >&5
15663 echo "${ECHO_T}no" >&6; }
15667 { echo "$as_me:$LINENO: checking for NLS" >&5
15668 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15669 if test -f po/Makefile; then
15670 have_gettext="no"
15671 if test -n "$MSGFMT"; then
15672 cat >conftest.$ac_ext <<_ACEOF
15673 /* confdefs.h. */
15674 _ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <libintl.h>
15680 main ()
15682 gettext("Test");
15684 return 0;
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_link") 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest$ac_exeext &&
15704 $as_test_x conftest$ac_exeext; then
15705 { echo "$as_me:$LINENO: result: gettext() works" >&5
15706 echo "${ECHO_T}gettext() works" >&6; }; have_gettext="yes"
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 olibs=$LIBS
15712 LIBS="$LIBS -lintl"
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <libintl.h>
15721 main ()
15723 gettext("Test");
15725 return 0;
15727 _ACEOF
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15733 esac
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_link") 2>conftest.er1
15736 ac_status=$?
15737 grep -v '^ *+' conftest.er1 >conftest.err
15738 rm -f conftest.er1
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && {
15742 test -z "$ac_c_werror_flag" ||
15743 test ! -s conftest.err
15744 } && test -s conftest$ac_exeext &&
15745 $as_test_x conftest$ac_exeext; then
15746 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15747 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15748 else
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15753 echo "${ECHO_T}gettext() doesn't work" >&6; };
15754 LIBS=$olibs
15757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15758 conftest$ac_exeext conftest.$ac_ext
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762 conftest$ac_exeext conftest.$ac_ext
15763 else
15764 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15765 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15767 if test $have_gettext = "yes"; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_GETTEXT 1
15770 _ACEOF
15772 MAKEMO=yes
15775 for ac_func in bind_textdomain_codeset
15777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 else
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15791 #define $ac_func innocuous_$ac_func
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func (); below.
15795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15796 <limits.h> exists even on freestanding compilers. */
15798 #ifdef __STDC__
15799 # include <limits.h>
15800 #else
15801 # include <assert.h>
15802 #endif
15804 #undef $ac_func
15806 /* Override any GCC internal prototype to avoid an error.
15807 Use char because int might match the return type of a GCC
15808 builtin and then its argument prototype would still apply. */
15809 #ifdef __cplusplus
15810 extern "C"
15811 #endif
15812 char $ac_func ();
15813 /* The GNU C library defines this for functions which it implements
15814 to always fail with ENOSYS. Some functions are actually named
15815 something starting with __ and the normal name is an alias. */
15816 #if defined __stub_$ac_func || defined __stub___$ac_func
15817 choke me
15818 #endif
15821 main ()
15823 return $ac_func ();
15825 return 0;
15827 _ACEOF
15828 rm -f conftest.$ac_objext conftest$ac_exeext
15829 if { (ac_try="$ac_link"
15830 case "(($ac_try" in
15831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832 *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_link") 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } && {
15842 test -z "$ac_c_werror_flag" ||
15843 test ! -s conftest.err
15844 } && test -s conftest$ac_exeext &&
15845 $as_test_x conftest$ac_exeext; then
15846 eval "$as_ac_var=yes"
15847 else
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15851 eval "$as_ac_var=no"
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15857 ac_res=`eval echo '${'$as_ac_var'}'`
15858 { echo "$as_me:$LINENO: result: $ac_res" >&5
15859 echo "${ECHO_T}$ac_res" >&6; }
15860 if test `eval echo '${'$as_ac_var'}'` = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15863 _ACEOF
15866 done
15868 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15869 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <libintl.h>
15877 extern int _nl_msg_cat_cntr;
15879 main ()
15881 ++_nl_msg_cat_cntr;
15883 return 0;
15885 _ACEOF
15886 rm -f conftest.$ac_objext conftest$ac_exeext
15887 if { (ac_try="$ac_link"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_link") 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } && {
15900 test -z "$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 } && test -s conftest$ac_exeext &&
15903 $as_test_x conftest$ac_exeext; then
15904 { echo "$as_me:$LINENO: result: yes" >&5
15905 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_NL_MSG_CAT_CNTR 1
15907 _ACEOF
15909 else
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 { echo "$as_me:$LINENO: result: no" >&5
15914 echo "${ECHO_T}no" >&6; }
15917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15918 conftest$ac_exeext conftest.$ac_ext
15920 else
15921 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15922 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15924 else
15925 { echo "$as_me:$LINENO: result: yes" >&5
15926 echo "${ECHO_T}yes" >&6; }
15929 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15930 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15931 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15932 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15936 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15937 else
15938 # Is the header compilable?
15939 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15940 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h. */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 $ac_includes_default
15948 #include <dlfcn.h>
15949 _ACEOF
15950 rm -f conftest.$ac_objext
15951 if { (ac_try="$ac_compile"
15952 case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15955 esac
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest.$ac_objext; then
15967 ac_header_compiler=yes
15968 else
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15972 ac_header_compiler=no
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15977 echo "${ECHO_T}$ac_header_compiler" >&6; }
15979 # Is the header present?
15980 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15981 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
15982 cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h. */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15988 #include <dlfcn.h>
15989 _ACEOF
15990 if { (ac_try="$ac_cpp conftest.$ac_ext"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } >/dev/null && {
16003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 }; then
16006 ac_header_preproc=yes
16007 else
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_header_preproc=no
16014 rm -f conftest.err conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6; }
16018 # So? What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16020 yes:no: )
16021 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16025 ac_header_preproc=yes
16027 no:yes:* )
16028 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16042 esac
16043 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16044 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
16045 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048 ac_cv_header_dlfcn_h=$ac_header_preproc
16050 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16051 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
16054 if test $ac_cv_header_dlfcn_h = yes; then
16055 DLL=dlfcn.h
16056 else
16057 if test "${ac_cv_header_dl_h+set}" = set; then
16058 { echo "$as_me:$LINENO: checking for dl.h" >&5
16059 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16060 if test "${ac_cv_header_dl_h+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16064 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16065 else
16066 # Is the header compilable?
16067 { echo "$as_me:$LINENO: checking dl.h usability" >&5
16068 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
16069 cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h. */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 $ac_includes_default
16076 #include <dl.h>
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (ac_try="$ac_compile"
16080 case "(($ac_try" in
16081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16082 *) ac_try_echo=$ac_try;;
16083 esac
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_compile") 2>conftest.er1
16086 ac_status=$?
16087 grep -v '^ *+' conftest.er1 >conftest.err
16088 rm -f conftest.er1
16089 cat conftest.err >&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } && {
16092 test -z "$ac_c_werror_flag" ||
16093 test ! -s conftest.err
16094 } && test -s conftest.$ac_objext; then
16095 ac_header_compiler=yes
16096 else
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_header_compiler=no
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16105 echo "${ECHO_T}$ac_header_compiler" >&6; }
16107 # Is the header present?
16108 { echo "$as_me:$LINENO: checking dl.h presence" >&5
16109 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
16110 cat >conftest.$ac_ext <<_ACEOF
16111 /* confdefs.h. */
16112 _ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 #include <dl.h>
16117 _ACEOF
16118 if { (ac_try="$ac_cpp conftest.$ac_ext"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16125 ac_status=$?
16126 grep -v '^ *+' conftest.er1 >conftest.err
16127 rm -f conftest.er1
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } >/dev/null && {
16131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16132 test ! -s conftest.err
16133 }; then
16134 ac_header_preproc=yes
16135 else
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ac_header_preproc=no
16142 rm -f conftest.err conftest.$ac_ext
16143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16144 echo "${ECHO_T}$ac_header_preproc" >&6; }
16146 # So? What about this header?
16147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16148 yes:no: )
16149 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16150 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16152 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16153 ac_header_preproc=yes
16155 no:yes:* )
16156 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16157 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16159 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16161 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16163 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16165 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16167 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16170 esac
16171 { echo "$as_me:$LINENO: checking for dl.h" >&5
16172 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16173 if test "${ac_cv_header_dl_h+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176 ac_cv_header_dl_h=$ac_header_preproc
16178 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16179 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16182 if test $ac_cv_header_dl_h = yes; then
16183 DLL=dl.h
16190 if test x${DLL} = xdlfcn.h; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_DLFCN_H 1
16194 _ACEOF
16196 { echo "$as_me:$LINENO: checking for dlopen()" >&5
16197 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h. */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16206 main ()
16209 extern void* dlopen();
16210 dlopen();
16213 return 0;
16215 _ACEOF
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16221 esac
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_link") 2>conftest.er1
16224 ac_status=$?
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest$ac_exeext &&
16233 $as_test_x conftest$ac_exeext; then
16234 { echo "$as_me:$LINENO: result: yes" >&5
16235 echo "${ECHO_T}yes" >&6; };
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_DLOPEN 1
16239 _ACEOF
16241 else
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16245 { echo "$as_me:$LINENO: result: no" >&5
16246 echo "${ECHO_T}no" >&6; };
16247 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16248 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16249 olibs=$LIBS
16250 LIBS="$LIBS -ldl"
16251 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16259 main ()
16262 extern void* dlopen();
16263 dlopen();
16266 return 0;
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16277 ac_status=$?
16278 grep -v '^ *+' conftest.er1 >conftest.err
16279 rm -f conftest.er1
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext &&
16286 $as_test_x conftest$ac_exeext; then
16287 { echo "$as_me:$LINENO: result: yes" >&5
16288 echo "${ECHO_T}yes" >&6; };
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_DLOPEN 1
16292 _ACEOF
16294 else
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 { echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6; };
16300 LIBS=$olibs
16303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16304 conftest$ac_exeext conftest.$ac_ext
16307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16308 conftest$ac_exeext conftest.$ac_ext
16309 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16310 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16319 main ()
16322 extern void* dlsym();
16323 dlsym();
16326 return 0;
16328 _ACEOF
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (ac_try="$ac_link"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16334 esac
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_link") 2>conftest.er1
16337 ac_status=$?
16338 grep -v '^ *+' conftest.er1 >conftest.err
16339 rm -f conftest.er1
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } && {
16343 test -z "$ac_c_werror_flag" ||
16344 test ! -s conftest.err
16345 } && test -s conftest$ac_exeext &&
16346 $as_test_x conftest$ac_exeext; then
16347 { echo "$as_me:$LINENO: result: yes" >&5
16348 echo "${ECHO_T}yes" >&6; };
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_DLSYM 1
16352 _ACEOF
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 { echo "$as_me:$LINENO: result: no" >&5
16359 echo "${ECHO_T}no" >&6; };
16360 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16361 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16362 olibs=$LIBS
16363 LIBS="$LIBS -ldl"
16364 cat >conftest.$ac_ext <<_ACEOF
16365 /* confdefs.h. */
16366 _ACEOF
16367 cat confdefs.h >>conftest.$ac_ext
16368 cat >>conftest.$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16372 main ()
16375 extern void* dlsym();
16376 dlsym();
16379 return 0;
16381 _ACEOF
16382 rm -f conftest.$ac_objext conftest$ac_exeext
16383 if { (ac_try="$ac_link"
16384 case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16390 ac_status=$?
16391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest$ac_exeext &&
16399 $as_test_x conftest$ac_exeext; then
16400 { echo "$as_me:$LINENO: result: yes" >&5
16401 echo "${ECHO_T}yes" >&6; };
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_DLSYM 1
16405 _ACEOF
16407 else
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 { echo "$as_me:$LINENO: result: no" >&5
16412 echo "${ECHO_T}no" >&6; };
16413 LIBS=$olibs
16416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16417 conftest$ac_exeext conftest.$ac_ext
16420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16421 conftest$ac_exeext conftest.$ac_ext
16422 elif test x${DLL} = xdl.h; then
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_DL_H 1
16426 _ACEOF
16428 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16429 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
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* shl_load();
16442 shl_load();
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_SHL_LOAD 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 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16480 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16481 olibs=$LIBS
16482 LIBS="$LIBS -ldld"
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16491 main ()
16494 extern void* shl_load();
16495 shl_load();
16498 return 0;
16500 _ACEOF
16501 rm -f conftest.$ac_objext conftest$ac_exeext
16502 if { (ac_try="$ac_link"
16503 case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16506 esac
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_link") 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } && {
16515 test -z "$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16517 } && test -s conftest$ac_exeext &&
16518 $as_test_x conftest$ac_exeext; then
16519 { echo "$as_me:$LINENO: result: yes" >&5
16520 echo "${ECHO_T}yes" >&6; };
16522 cat >>confdefs.h <<\_ACEOF
16523 #define HAVE_SHL_LOAD 1
16524 _ACEOF
16526 else
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 { echo "$as_me:$LINENO: result: no" >&5
16531 echo "${ECHO_T}no" >&6; };
16532 LIBS=$olibs
16535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16536 conftest$ac_exeext conftest.$ac_ext
16539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16540 conftest$ac_exeext conftest.$ac_ext
16543 for ac_header in setjmp.h
16545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 ac_res=`eval echo '${'$as_ac_Header'}'`
16553 { echo "$as_me:$LINENO: result: $ac_res" >&5
16554 echo "${ECHO_T}$ac_res" >&6; }
16555 else
16556 # Is the header compilable?
16557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h. */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 $ac_includes_default
16566 #include <$ac_header>
16567 _ACEOF
16568 rm -f conftest.$ac_objext
16569 if { (ac_try="$ac_compile"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16573 esac
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_compile") 2>conftest.er1
16576 ac_status=$?
16577 grep -v '^ *+' conftest.er1 >conftest.err
16578 rm -f conftest.er1
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && {
16582 test -z "$ac_c_werror_flag" ||
16583 test ! -s conftest.err
16584 } && test -s conftest.$ac_objext; then
16585 ac_header_compiler=yes
16586 else
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.$ac_ext >&5
16590 ac_header_compiler=no
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16595 echo "${ECHO_T}$ac_header_compiler" >&6; }
16597 # Is the header present?
16598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16600 cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h. */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 #include <$ac_header>
16607 _ACEOF
16608 if { (ac_try="$ac_cpp conftest.$ac_ext"
16609 case "(($ac_try" in
16610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16615 ac_status=$?
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } >/dev/null && {
16621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16623 }; then
16624 ac_header_preproc=yes
16625 else
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16638 yes:no: )
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16645 no:yes:* )
16646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16660 esac
16661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 else
16666 eval "$as_ac_Header=\$ac_header_preproc"
16668 ac_res=`eval echo '${'$as_ac_Header'}'`
16669 { echo "$as_me:$LINENO: result: $ac_res" >&5
16670 echo "${ECHO_T}$ac_res" >&6; }
16673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16674 cat >>confdefs.h <<_ACEOF
16675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16676 _ACEOF
16680 done
16683 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16684 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16685 LIBS=`echo $LIBS | sed s/-ldl//`
16686 PERL_LIBS="$PERL_LIBS -ldl"
16690 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16691 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16692 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16693 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16694 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16695 || test "x$features" = "xhuge"; then
16696 LIBS="$LIBS -framework Carbon"
16697 { echo "$as_me:$LINENO: result: yes" >&5
16698 echo "${ECHO_T}yes" >&6; }
16699 else
16700 { echo "$as_me:$LINENO: result: no" >&5
16701 echo "${ECHO_T}no" >&6; }
16705 if test "x$MACOSX" = "xyes"; then
16706 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16707 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16709 # Check whether --with-xcodecfg was given.
16710 if test "${with_xcodecfg+set}" = set; then
16711 withval=$with_xcodecfg; XCODEFLAGS="$XCODEFLAGS -configuration $withval"
16712 { echo "$as_me:$LINENO: result: $withval" >&5
16713 echo "${ECHO_T}$withval" >&6; }
16714 else
16715 { echo "$as_me:$LINENO: result: using default" >&5
16716 echo "${ECHO_T}using default" >&6; }
16724 DEPEND_CFLAGS_FILTER=
16725 if test "$GCC" = yes; then
16726 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16727 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16728 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16729 if test "$gccmajor" -gt "2"; then
16730 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16731 { echo "$as_me:$LINENO: result: yes" >&5
16732 echo "${ECHO_T}yes" >&6; }
16733 else
16734 { echo "$as_me:$LINENO: result: no" >&5
16735 echo "${ECHO_T}no" >&6; }
16737 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16738 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16739 if test "$gccmajor" -gt "3"; then
16740 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
16741 { echo "$as_me:$LINENO: result: yes" >&5
16742 echo "${ECHO_T}yes" >&6; }
16743 else
16744 { echo "$as_me:$LINENO: result: no" >&5
16745 echo "${ECHO_T}no" >&6; }
16750 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16752 cat >confcache <<\_ACEOF
16753 # This file is a shell script that caches the results of configure
16754 # tests run on this system so they can be shared between configure
16755 # scripts and configure runs, see configure's option --config-cache.
16756 # It is not useful on other systems. If it contains results you don't
16757 # want to keep, you may remove or edit it.
16759 # config.status only pays attention to the cache file if you give it
16760 # the --recheck option to rerun configure.
16762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16764 # following values.
16766 _ACEOF
16768 # The following way of writing the cache mishandles newlines in values,
16769 # but we know of no workaround that is simple, portable, and efficient.
16770 # So, we kill variables containing newlines.
16771 # Ultrix sh set writes to stderr and can't be redirected directly,
16772 # and sets the high bit in the cache file unless we assign to the vars.
16774 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16775 eval ac_val=\$$ac_var
16776 case $ac_val in #(
16777 *${as_nl}*)
16778 case $ac_var in #(
16779 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16781 esac
16782 case $ac_var in #(
16783 _ | IFS | as_nl) ;; #(
16784 *) $as_unset $ac_var ;;
16785 esac ;;
16786 esac
16787 done
16789 (set) 2>&1 |
16790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16791 *${as_nl}ac_space=\ *)
16792 # `set' does not quote correctly, so add quotes (double-quote
16793 # substitution turns \\\\ into \\, and sed turns \\ into \).
16794 sed -n \
16795 "s/'/'\\\\''/g;
16796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16797 ;; #(
16799 # `set' quotes correctly as required by POSIX, so do not add quotes.
16800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16802 esac |
16803 sort
16805 sed '
16806 /^ac_cv_env_/b end
16807 t clear
16808 :clear
16809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16810 t end
16811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16812 :end' >>confcache
16813 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16814 if test -w "$cache_file"; then
16815 test "x$cache_file" != "x/dev/null" &&
16816 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16817 echo "$as_me: updating cache $cache_file" >&6;}
16818 cat confcache >$cache_file
16819 else
16820 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16821 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16824 rm -f confcache
16826 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16827 # Let make expand exec_prefix.
16828 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16830 DEFS=-DHAVE_CONFIG_H
16832 ac_libobjs=
16833 ac_ltlibobjs=
16834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16835 # 1. Remove the extension, and $U if already installed.
16836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16837 ac_i=`echo "$ac_i" | sed "$ac_script"`
16838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16839 # will be set to the directory where LIBOBJS objects are built.
16840 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16841 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16842 done
16843 LIBOBJS=$ac_libobjs
16845 LTLIBOBJS=$ac_ltlibobjs
16849 : ${CONFIG_STATUS=./config.status}
16850 ac_clean_files_save=$ac_clean_files
16851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16852 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16853 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16854 cat >$CONFIG_STATUS <<_ACEOF
16855 #! $SHELL
16856 # Generated by $as_me.
16857 # Run this file to recreate the current configuration.
16858 # Compiler output produced by configure, useful for debugging
16859 # configure, is in config.log if it exists.
16861 debug=false
16862 ac_cs_recheck=false
16863 ac_cs_silent=false
16864 SHELL=\${CONFIG_SHELL-$SHELL}
16865 _ACEOF
16867 cat >>$CONFIG_STATUS <<\_ACEOF
16868 ## --------------------- ##
16869 ## M4sh Initialization. ##
16870 ## --------------------- ##
16872 # Be more Bourne compatible
16873 DUALCASE=1; export DUALCASE # for MKS sh
16874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16875 emulate sh
16876 NULLCMD=:
16877 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16878 # is contrary to our usage. Disable this feature.
16879 alias -g '${1+"$@"}'='"$@"'
16880 setopt NO_GLOB_SUBST
16881 else
16882 case `(set -o) 2>/dev/null` in
16883 *posix*) set -o posix ;;
16884 esac
16891 # PATH needs CR
16892 # Avoid depending upon Character Ranges.
16893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16896 as_cr_digits='0123456789'
16897 as_cr_alnum=$as_cr_Letters$as_cr_digits
16899 # The user is always right.
16900 if test "${PATH_SEPARATOR+set}" != set; then
16901 echo "#! /bin/sh" >conf$$.sh
16902 echo "exit 0" >>conf$$.sh
16903 chmod +x conf$$.sh
16904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16905 PATH_SEPARATOR=';'
16906 else
16907 PATH_SEPARATOR=:
16909 rm -f conf$$.sh
16912 # Support unset when possible.
16913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16914 as_unset=unset
16915 else
16916 as_unset=false
16920 # IFS
16921 # We need space, tab and new line, in precisely that order. Quoting is
16922 # there to prevent editors from complaining about space-tab.
16923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16924 # splitting by setting IFS to empty value.)
16925 as_nl='
16927 IFS=" "" $as_nl"
16929 # Find who we are. Look in the path if we contain no directory separator.
16930 case $0 in
16931 *[\\/]* ) as_myself=$0 ;;
16932 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16933 for as_dir in $PATH
16935 IFS=$as_save_IFS
16936 test -z "$as_dir" && as_dir=.
16937 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16938 done
16939 IFS=$as_save_IFS
16942 esac
16943 # We did not find ourselves, most probably we were run as `sh COMMAND'
16944 # in which case we are not to be found in the path.
16945 if test "x$as_myself" = x; then
16946 as_myself=$0
16948 if test ! -f "$as_myself"; then
16949 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16950 { (exit 1); exit 1; }
16953 # Work around bugs in pre-3.0 UWIN ksh.
16954 for as_var in ENV MAIL MAILPATH
16955 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16956 done
16957 PS1='$ '
16958 PS2='> '
16959 PS4='+ '
16961 # NLS nuisances.
16962 for as_var in \
16963 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16964 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16965 LC_TELEPHONE LC_TIME
16967 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16968 eval $as_var=C; export $as_var
16969 else
16970 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16972 done
16974 # Required to use basename.
16975 if expr a : '\(a\)' >/dev/null 2>&1 &&
16976 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16977 as_expr=expr
16978 else
16979 as_expr=false
16982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16983 as_basename=basename
16984 else
16985 as_basename=false
16989 # Name of the executable.
16990 as_me=`$as_basename -- "$0" ||
16991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16992 X"$0" : 'X\(//\)$' \| \
16993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16994 echo X/"$0" |
16995 sed '/^.*\/\([^/][^/]*\)\/*$/{
16996 s//\1/
16999 /^X\/\(\/\/\)$/{
17000 s//\1/
17003 /^X\/\(\/\).*/{
17004 s//\1/
17007 s/.*/./; q'`
17009 # CDPATH.
17010 $as_unset CDPATH
17014 as_lineno_1=$LINENO
17015 as_lineno_2=$LINENO
17016 test "x$as_lineno_1" != "x$as_lineno_2" &&
17017 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17019 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17020 # uniformly replaced by the line number. The first 'sed' inserts a
17021 # line-number line after each line using $LINENO; the second 'sed'
17022 # does the real work. The second script uses 'N' to pair each
17023 # line-number line with the line containing $LINENO, and appends
17024 # trailing '-' during substitution so that $LINENO is not a special
17025 # case at line end.
17026 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17027 # scripts with optimization help from Paolo Bonzini. Blame Lee
17028 # E. McMahon (1931-1989) for sed's syntax. :-)
17029 sed -n '
17031 /[$]LINENO/=
17032 ' <$as_myself |
17033 sed '
17034 s/[$]LINENO.*/&-/
17035 t lineno
17037 :lineno
17039 :loop
17040 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17041 t loop
17042 s/-\n.*//
17043 ' >$as_me.lineno &&
17044 chmod +x "$as_me.lineno" ||
17045 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17046 { (exit 1); exit 1; }; }
17048 # Don't try to exec as it changes $[0], causing all sort of problems
17049 # (the dirname of $[0] is not the place where we might find the
17050 # original and so on. Autoconf is especially sensitive to this).
17051 . "./$as_me.lineno"
17052 # Exit status is that of the last command.
17053 exit
17057 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17058 as_dirname=dirname
17059 else
17060 as_dirname=false
17063 ECHO_C= ECHO_N= ECHO_T=
17064 case `echo -n x` in
17065 -n*)
17066 case `echo 'x\c'` in
17067 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17068 *) ECHO_C='\c';;
17069 esac;;
17071 ECHO_N='-n';;
17072 esac
17074 if expr a : '\(a\)' >/dev/null 2>&1 &&
17075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17076 as_expr=expr
17077 else
17078 as_expr=false
17081 rm -f conf$$ conf$$.exe conf$$.file
17082 if test -d conf$$.dir; then
17083 rm -f conf$$.dir/conf$$.file
17084 else
17085 rm -f conf$$.dir
17086 mkdir conf$$.dir
17088 echo >conf$$.file
17089 if ln -s conf$$.file conf$$ 2>/dev/null; then
17090 as_ln_s='ln -s'
17091 # ... but there are two gotchas:
17092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17094 # In both cases, we have to default to `cp -p'.
17095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17096 as_ln_s='cp -p'
17097 elif ln conf$$.file conf$$ 2>/dev/null; then
17098 as_ln_s=ln
17099 else
17100 as_ln_s='cp -p'
17102 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17103 rmdir conf$$.dir 2>/dev/null
17105 if mkdir -p . 2>/dev/null; then
17106 as_mkdir_p=:
17107 else
17108 test -d ./-p && rmdir ./-p
17109 as_mkdir_p=false
17112 if test -x / >/dev/null 2>&1; then
17113 as_test_x='test -x'
17114 else
17115 if ls -dL / >/dev/null 2>&1; then
17116 as_ls_L_option=L
17117 else
17118 as_ls_L_option=
17120 as_test_x='
17121 eval sh -c '\''
17122 if test -d "$1"; then
17123 test -d "$1/.";
17124 else
17125 case $1 in
17126 -*)set "./$1";;
17127 esac;
17128 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17129 ???[sx]*):;;*)false;;esac;fi
17130 '\'' sh
17133 as_executable_p=$as_test_x
17135 # Sed expression to map a string onto a valid CPP name.
17136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17138 # Sed expression to map a string onto a valid variable name.
17139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17142 exec 6>&1
17144 # Save the log message, to keep $[0] and so on meaningful, and to
17145 # report actual input values of CONFIG_FILES etc. instead of their
17146 # values after options handling.
17147 ac_log="
17148 This file was extended by $as_me, which was
17149 generated by GNU Autoconf 2.61. Invocation command line was
17151 CONFIG_FILES = $CONFIG_FILES
17152 CONFIG_HEADERS = $CONFIG_HEADERS
17153 CONFIG_LINKS = $CONFIG_LINKS
17154 CONFIG_COMMANDS = $CONFIG_COMMANDS
17155 $ $0 $@
17157 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17160 _ACEOF
17162 cat >>$CONFIG_STATUS <<_ACEOF
17163 # Files that config.status was made for.
17164 config_files="$ac_config_files"
17165 config_headers="$ac_config_headers"
17167 _ACEOF
17169 cat >>$CONFIG_STATUS <<\_ACEOF
17170 ac_cs_usage="\
17171 \`$as_me' instantiates files from templates according to the
17172 current configuration.
17174 Usage: $0 [OPTIONS] [FILE]...
17176 -h, --help print this help, then exit
17177 -V, --version print version number and configuration settings, then exit
17178 -q, --quiet do not print progress messages
17179 -d, --debug don't remove temporary files
17180 --recheck update $as_me by reconfiguring in the same conditions
17181 --file=FILE[:TEMPLATE]
17182 instantiate the configuration file FILE
17183 --header=FILE[:TEMPLATE]
17184 instantiate the configuration header FILE
17186 Configuration files:
17187 $config_files
17189 Configuration headers:
17190 $config_headers
17192 Report bugs to <bug-autoconf@gnu.org>."
17194 _ACEOF
17195 cat >>$CONFIG_STATUS <<_ACEOF
17196 ac_cs_version="\\
17197 config.status
17198 configured by $0, generated by GNU Autoconf 2.61,
17199 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17201 Copyright (C) 2006 Free Software Foundation, Inc.
17202 This config.status script is free software; the Free Software Foundation
17203 gives unlimited permission to copy, distribute and modify it."
17205 ac_pwd='$ac_pwd'
17206 srcdir='$srcdir'
17207 _ACEOF
17209 cat >>$CONFIG_STATUS <<\_ACEOF
17210 # If no file are specified by the user, then we need to provide default
17211 # value. By we need to know if files were specified by the user.
17212 ac_need_defaults=:
17213 while test $# != 0
17215 case $1 in
17216 --*=*)
17217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17219 ac_shift=:
17222 ac_option=$1
17223 ac_optarg=$2
17224 ac_shift=shift
17226 esac
17228 case $ac_option in
17229 # Handling of the options.
17230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17231 ac_cs_recheck=: ;;
17232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17233 echo "$ac_cs_version"; exit ;;
17234 --debug | --debu | --deb | --de | --d | -d )
17235 debug=: ;;
17236 --file | --fil | --fi | --f )
17237 $ac_shift
17238 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17239 ac_need_defaults=false;;
17240 --header | --heade | --head | --hea )
17241 $ac_shift
17242 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17243 ac_need_defaults=false;;
17244 --he | --h)
17245 # Conflict between --help and --header
17246 { echo "$as_me: error: ambiguous option: $1
17247 Try \`$0 --help' for more information." >&2
17248 { (exit 1); exit 1; }; };;
17249 --help | --hel | -h )
17250 echo "$ac_cs_usage"; exit ;;
17251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17253 ac_cs_silent=: ;;
17255 # This is an error.
17256 -*) { echo "$as_me: error: unrecognized option: $1
17257 Try \`$0 --help' for more information." >&2
17258 { (exit 1); exit 1; }; } ;;
17260 *) ac_config_targets="$ac_config_targets $1"
17261 ac_need_defaults=false ;;
17263 esac
17264 shift
17265 done
17267 ac_configure_extra_args=
17269 if $ac_cs_silent; then
17270 exec 6>/dev/null
17271 ac_configure_extra_args="$ac_configure_extra_args --silent"
17274 _ACEOF
17275 cat >>$CONFIG_STATUS <<_ACEOF
17276 if \$ac_cs_recheck; then
17277 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17278 CONFIG_SHELL=$SHELL
17279 export CONFIG_SHELL
17280 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17283 _ACEOF
17284 cat >>$CONFIG_STATUS <<\_ACEOF
17285 exec 5>>auto/config.log
17287 echo
17288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17289 ## Running $as_me. ##
17290 _ASBOX
17291 echo "$ac_log"
17292 } >&5
17294 _ACEOF
17295 cat >>$CONFIG_STATUS <<_ACEOF
17296 _ACEOF
17298 cat >>$CONFIG_STATUS <<\_ACEOF
17300 # Handling of arguments.
17301 for ac_config_target in $ac_config_targets
17303 case $ac_config_target in
17304 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17305 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17307 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17308 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17309 { (exit 1); exit 1; }; };;
17310 esac
17311 done
17314 # If the user did not use the arguments to specify the items to instantiate,
17315 # then the envvar interface is used. Set only those that are not.
17316 # We use the long form for the default assignment because of an extremely
17317 # bizarre bug on SunOS 4.1.3.
17318 if $ac_need_defaults; then
17319 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17320 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17323 # Have a temporary directory for convenience. Make it in the build tree
17324 # simply because there is no reason against having it here, and in addition,
17325 # creating and moving files from /tmp can sometimes cause problems.
17326 # Hook for its removal unless debugging.
17327 # Note that there is a small window in which the directory will not be cleaned:
17328 # after its creation but before its name has been assigned to `$tmp'.
17329 $debug ||
17331 tmp=
17332 trap 'exit_status=$?
17333 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17335 trap '{ (exit 1); exit 1; }' 1 2 13 15
17337 # Create a (secure) tmp directory for tmp files.
17340 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17341 test -n "$tmp" && test -d "$tmp"
17342 } ||
17344 tmp=./conf$$-$RANDOM
17345 (umask 077 && mkdir "$tmp")
17346 } ||
17348 echo "$me: cannot create a temporary directory in ." >&2
17349 { (exit 1); exit 1; }
17353 # Set up the sed scripts for CONFIG_FILES section.
17356 # No need to generate the scripts if there are no CONFIG_FILES.
17357 # This happens for instance when ./config.status config.h
17358 if test -n "$CONFIG_FILES"; then
17360 _ACEOF
17364 ac_delim='%!_!# '
17365 for ac_last_try in false false false false false :; do
17366 cat >conf$$subs.sed <<_ACEOF
17367 SHELL!$SHELL$ac_delim
17368 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17369 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17370 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17371 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17372 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17373 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17374 exec_prefix!$exec_prefix$ac_delim
17375 prefix!$prefix$ac_delim
17376 program_transform_name!$program_transform_name$ac_delim
17377 bindir!$bindir$ac_delim
17378 sbindir!$sbindir$ac_delim
17379 libexecdir!$libexecdir$ac_delim
17380 datarootdir!$datarootdir$ac_delim
17381 datadir!$datadir$ac_delim
17382 sysconfdir!$sysconfdir$ac_delim
17383 sharedstatedir!$sharedstatedir$ac_delim
17384 localstatedir!$localstatedir$ac_delim
17385 includedir!$includedir$ac_delim
17386 oldincludedir!$oldincludedir$ac_delim
17387 docdir!$docdir$ac_delim
17388 infodir!$infodir$ac_delim
17389 htmldir!$htmldir$ac_delim
17390 dvidir!$dvidir$ac_delim
17391 pdfdir!$pdfdir$ac_delim
17392 psdir!$psdir$ac_delim
17393 libdir!$libdir$ac_delim
17394 localedir!$localedir$ac_delim
17395 mandir!$mandir$ac_delim
17396 DEFS!$DEFS$ac_delim
17397 ECHO_C!$ECHO_C$ac_delim
17398 ECHO_N!$ECHO_N$ac_delim
17399 ECHO_T!$ECHO_T$ac_delim
17400 LIBS!$LIBS$ac_delim
17401 build_alias!$build_alias$ac_delim
17402 host_alias!$host_alias$ac_delim
17403 target_alias!$target_alias$ac_delim
17404 SET_MAKE!$SET_MAKE$ac_delim
17405 CC!$CC$ac_delim
17406 CFLAGS!$CFLAGS$ac_delim
17407 LDFLAGS!$LDFLAGS$ac_delim
17408 CPPFLAGS!$CPPFLAGS$ac_delim
17409 ac_ct_CC!$ac_ct_CC$ac_delim
17410 EXEEXT!$EXEEXT$ac_delim
17411 OBJEXT!$OBJEXT$ac_delim
17412 CPP!$CPP$ac_delim
17413 GREP!$GREP$ac_delim
17414 EGREP!$EGREP$ac_delim
17415 AWK!$AWK$ac_delim
17416 STRIP!$STRIP$ac_delim
17417 CPP_MM!$CPP_MM$ac_delim
17418 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17419 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17420 VIMNAME!$VIMNAME$ac_delim
17421 EXNAME!$EXNAME$ac_delim
17422 VIEWNAME!$VIEWNAME$ac_delim
17423 line_break!$line_break$ac_delim
17424 dovimdiff!$dovimdiff$ac_delim
17425 dogvimdiff!$dogvimdiff$ac_delim
17426 compiledby!$compiledby$ac_delim
17427 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17428 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17429 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17430 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17431 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17432 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17433 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17434 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17435 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17436 vi_cv_perllib!$vi_cv_perllib$ac_delim
17437 shrpenv!$shrpenv$ac_delim
17438 PERL_SRC!$PERL_SRC$ac_delim
17439 PERL_OBJ!$PERL_OBJ$ac_delim
17440 PERL_PRO!$PERL_PRO$ac_delim
17441 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17442 PERL_LIBS!$PERL_LIBS$ac_delim
17443 vi_cv_path_python!$vi_cv_path_python$ac_delim
17444 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17445 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17446 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17447 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17448 PYTHON_SRC!$PYTHON_SRC$ac_delim
17449 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17450 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17451 TCL_SRC!$TCL_SRC$ac_delim
17452 TCL_OBJ!$TCL_OBJ$ac_delim
17453 TCL_PRO!$TCL_PRO$ac_delim
17454 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17455 TCL_LIBS!$TCL_LIBS$ac_delim
17456 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17457 RUBY_SRC!$RUBY_SRC$ac_delim
17458 RUBY_OBJ!$RUBY_OBJ$ac_delim
17459 RUBY_PRO!$RUBY_PRO$ac_delim
17460 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17461 RUBY_LIBS!$RUBY_LIBS$ac_delim
17462 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17463 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17464 _ACEOF
17466 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17467 break
17468 elif $ac_last_try; then
17469 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17470 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17471 { (exit 1); exit 1; }; }
17472 else
17473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17475 done
17477 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17478 if test -n "$ac_eof"; then
17479 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17480 ac_eof=`expr $ac_eof + 1`
17483 cat >>$CONFIG_STATUS <<_ACEOF
17484 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17486 _ACEOF
17487 sed '
17488 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17489 s/^/s,@/; s/!/@,|#_!!_#|/
17492 s/'"$ac_delim"'$/,g/; t
17493 s/$/\\/; p
17494 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17495 ' >>$CONFIG_STATUS <conf$$subs.sed
17496 rm -f conf$$subs.sed
17497 cat >>$CONFIG_STATUS <<_ACEOF
17498 CEOF$ac_eof
17499 _ACEOF
17502 ac_delim='%!_!# '
17503 for ac_last_try in false false false false false :; do
17504 cat >conf$$subs.sed <<_ACEOF
17505 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17506 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17507 SNIFF_SRC!$SNIFF_SRC$ac_delim
17508 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17509 xmkmfpath!$xmkmfpath$ac_delim
17510 XMKMF!$XMKMF$ac_delim
17511 X_CFLAGS!$X_CFLAGS$ac_delim
17512 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17513 X_LIBS!$X_LIBS$ac_delim
17514 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17515 X_LIB!$X_LIB$ac_delim
17516 GTK_CONFIG!$GTK_CONFIG$ac_delim
17517 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17518 PKG_CONFIG!$PKG_CONFIG$ac_delim
17519 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17520 GTK_LIBS!$GTK_LIBS$ac_delim
17521 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17522 GNOME_LIBS!$GNOME_LIBS$ac_delim
17523 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17524 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17525 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17526 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17527 NARROW_PROTO!$NARROW_PROTO$ac_delim
17528 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17529 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17530 GUITYPE!$GUITYPE$ac_delim
17531 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17532 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17533 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17534 TAGPRG!$TAGPRG$ac_delim
17535 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17536 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17537 MSGFMT!$MSGFMT$ac_delim
17538 MAKEMO!$MAKEMO$ac_delim
17539 XCODEFLAGS!$XCODEFLAGS$ac_delim
17540 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17541 LIBOBJS!$LIBOBJS$ac_delim
17542 LTLIBOBJS!$LTLIBOBJS$ac_delim
17543 _ACEOF
17545 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
17546 break
17547 elif $ac_last_try; then
17548 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17549 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17550 { (exit 1); exit 1; }; }
17551 else
17552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17554 done
17556 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17557 if test -n "$ac_eof"; then
17558 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17559 ac_eof=`expr $ac_eof + 1`
17562 cat >>$CONFIG_STATUS <<_ACEOF
17563 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17565 _ACEOF
17566 sed '
17567 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17568 s/^/s,@/; s/!/@,|#_!!_#|/
17571 s/'"$ac_delim"'$/,g/; t
17572 s/$/\\/; p
17573 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17574 ' >>$CONFIG_STATUS <conf$$subs.sed
17575 rm -f conf$$subs.sed
17576 cat >>$CONFIG_STATUS <<_ACEOF
17577 :end
17578 s/|#_!!_#|//g
17579 CEOF$ac_eof
17580 _ACEOF
17583 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17584 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17585 # trailing colons and then remove the whole line if VPATH becomes empty
17586 # (actually we leave an empty line to preserve line numbers).
17587 if test "x$srcdir" = x.; then
17588 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17589 s/:*\$(srcdir):*/:/
17590 s/:*\${srcdir}:*/:/
17591 s/:*@srcdir@:*/:/
17592 s/^\([^=]*=[ ]*\):*/\1/
17593 s/:*$//
17594 s/^[^=]*=[ ]*$//
17598 cat >>$CONFIG_STATUS <<\_ACEOF
17599 fi # test -n "$CONFIG_FILES"
17602 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
17604 case $ac_tag in
17605 :[FHLC]) ac_mode=$ac_tag; continue;;
17606 esac
17607 case $ac_mode$ac_tag in
17608 :[FHL]*:*);;
17609 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17610 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17611 { (exit 1); exit 1; }; };;
17612 :[FH]-) ac_tag=-:-;;
17613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17614 esac
17615 ac_save_IFS=$IFS
17616 IFS=:
17617 set x $ac_tag
17618 IFS=$ac_save_IFS
17619 shift
17620 ac_file=$1
17621 shift
17623 case $ac_mode in
17624 :L) ac_source=$1;;
17625 :[FH])
17626 ac_file_inputs=
17627 for ac_f
17629 case $ac_f in
17630 -) ac_f="$tmp/stdin";;
17631 *) # Look for the file first in the build tree, then in the source tree
17632 # (if the path is not absolute). The absolute path cannot be DOS-style,
17633 # because $ac_f cannot contain `:'.
17634 test -f "$ac_f" ||
17635 case $ac_f in
17636 [\\/$]*) false;;
17637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17638 esac ||
17639 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17640 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17641 { (exit 1); exit 1; }; };;
17642 esac
17643 ac_file_inputs="$ac_file_inputs $ac_f"
17644 done
17646 # Let's still pretend it is `configure' which instantiates (i.e., don't
17647 # use $as_me), people would be surprised to read:
17648 # /* config.h. Generated by config.status. */
17649 configure_input="Generated from "`IFS=:
17650 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17651 if test x"$ac_file" != x-; then
17652 configure_input="$ac_file. $configure_input"
17653 { echo "$as_me:$LINENO: creating $ac_file" >&5
17654 echo "$as_me: creating $ac_file" >&6;}
17657 case $ac_tag in
17658 *:-:* | *:-) cat >"$tmp/stdin";;
17659 esac
17661 esac
17663 ac_dir=`$as_dirname -- "$ac_file" ||
17664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17665 X"$ac_file" : 'X\(//\)[^/]' \| \
17666 X"$ac_file" : 'X\(//\)$' \| \
17667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17668 echo X"$ac_file" |
17669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17670 s//\1/
17673 /^X\(\/\/\)[^/].*/{
17674 s//\1/
17677 /^X\(\/\/\)$/{
17678 s//\1/
17681 /^X\(\/\).*/{
17682 s//\1/
17685 s/.*/./; q'`
17686 { as_dir="$ac_dir"
17687 case $as_dir in #(
17688 -*) as_dir=./$as_dir;;
17689 esac
17690 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17691 as_dirs=
17692 while :; do
17693 case $as_dir in #(
17694 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17695 *) as_qdir=$as_dir;;
17696 esac
17697 as_dirs="'$as_qdir' $as_dirs"
17698 as_dir=`$as_dirname -- "$as_dir" ||
17699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17700 X"$as_dir" : 'X\(//\)[^/]' \| \
17701 X"$as_dir" : 'X\(//\)$' \| \
17702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17703 echo X"$as_dir" |
17704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17705 s//\1/
17708 /^X\(\/\/\)[^/].*/{
17709 s//\1/
17712 /^X\(\/\/\)$/{
17713 s//\1/
17716 /^X\(\/\).*/{
17717 s//\1/
17720 s/.*/./; q'`
17721 test -d "$as_dir" && break
17722 done
17723 test -z "$as_dirs" || eval "mkdir $as_dirs"
17724 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17725 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17726 { (exit 1); exit 1; }; }; }
17727 ac_builddir=.
17729 case "$ac_dir" in
17730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17733 # A ".." for each directory in $ac_dir_suffix.
17734 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17735 case $ac_top_builddir_sub in
17736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17738 esac ;;
17739 esac
17740 ac_abs_top_builddir=$ac_pwd
17741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17742 # for backward compatibility:
17743 ac_top_builddir=$ac_top_build_prefix
17745 case $srcdir in
17746 .) # We are building in place.
17747 ac_srcdir=.
17748 ac_top_srcdir=$ac_top_builddir_sub
17749 ac_abs_top_srcdir=$ac_pwd ;;
17750 [\\/]* | ?:[\\/]* ) # Absolute name.
17751 ac_srcdir=$srcdir$ac_dir_suffix;
17752 ac_top_srcdir=$srcdir
17753 ac_abs_top_srcdir=$srcdir ;;
17754 *) # Relative name.
17755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17756 ac_top_srcdir=$ac_top_build_prefix$srcdir
17757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17758 esac
17759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17762 case $ac_mode in
17765 # CONFIG_FILE
17768 _ACEOF
17770 cat >>$CONFIG_STATUS <<\_ACEOF
17771 # If the template does not know about datarootdir, expand it.
17772 # FIXME: This hack should be removed a few years after 2.60.
17773 ac_datarootdir_hack=; ac_datarootdir_seen=
17775 case `sed -n '/datarootdir/ {
17779 /@datadir@/p
17780 /@docdir@/p
17781 /@infodir@/p
17782 /@localedir@/p
17783 /@mandir@/p
17784 ' $ac_file_inputs` in
17785 *datarootdir*) ac_datarootdir_seen=yes;;
17786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17787 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17788 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17789 _ACEOF
17790 cat >>$CONFIG_STATUS <<_ACEOF
17791 ac_datarootdir_hack='
17792 s&@datadir@&$datadir&g
17793 s&@docdir@&$docdir&g
17794 s&@infodir@&$infodir&g
17795 s&@localedir@&$localedir&g
17796 s&@mandir@&$mandir&g
17797 s&\\\${datarootdir}&$datarootdir&g' ;;
17798 esac
17799 _ACEOF
17801 # Neutralize VPATH when `$srcdir' = `.'.
17802 # Shell code in configure.ac might set extrasub.
17803 # FIXME: do we really want to maintain this feature?
17804 cat >>$CONFIG_STATUS <<_ACEOF
17805 sed "$ac_vpsub
17806 $extrasub
17807 _ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF
17810 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17811 s&@configure_input@&$configure_input&;t t
17812 s&@top_builddir@&$ac_top_builddir_sub&;t t
17813 s&@srcdir@&$ac_srcdir&;t t
17814 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17815 s&@top_srcdir@&$ac_top_srcdir&;t t
17816 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17817 s&@builddir@&$ac_builddir&;t t
17818 s&@abs_builddir@&$ac_abs_builddir&;t t
17819 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17820 $ac_datarootdir_hack
17821 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17823 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17824 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17826 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17827 which seems to be undefined. Please make sure it is defined." >&5
17828 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17829 which seems to be undefined. Please make sure it is defined." >&2;}
17831 rm -f "$tmp/stdin"
17832 case $ac_file in
17833 -) cat "$tmp/out"; rm -f "$tmp/out";;
17834 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17835 esac
17839 # CONFIG_HEADER
17841 _ACEOF
17843 # Transform confdefs.h into a sed script `conftest.defines', that
17844 # substitutes the proper values into config.h.in to produce config.h.
17845 rm -f conftest.defines conftest.tail
17846 # First, append a space to every undef/define line, to ease matching.
17847 echo 's/$/ /' >conftest.defines
17848 # Then, protect against being on the right side of a sed subst, or in
17849 # an unquoted here document, in config.status. If some macros were
17850 # called several times there might be several #defines for the same
17851 # symbol, which is useless. But do not sort them, since the last
17852 # AC_DEFINE must be honored.
17853 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17854 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17855 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17856 # PARAMS is the parameter list in the macro definition--in most cases, it's
17857 # just an empty string.
17858 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17859 ac_dB='\\)[ (].*,\\1define\\2'
17860 ac_dC=' '
17861 ac_dD=' ,'
17863 uniq confdefs.h |
17864 sed -n '
17865 t rset
17866 :rset
17867 s/^[ ]*#[ ]*define[ ][ ]*//
17868 t ok
17871 s/[\\&,]/\\&/g
17872 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17873 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17874 ' >>conftest.defines
17876 # Remove the space that was appended to ease matching.
17877 # Then replace #undef with comments. This is necessary, for
17878 # example, in the case of _POSIX_SOURCE, which is predefined and required
17879 # on some systems where configure will not decide to define it.
17880 # (The regexp can be short, since the line contains either #define or #undef.)
17881 echo 's/ $//
17882 s,^[ #]*u.*,/* & */,' >>conftest.defines
17884 # Break up conftest.defines:
17885 ac_max_sed_lines=50
17887 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17888 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17889 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17890 # et cetera.
17891 ac_in='$ac_file_inputs'
17892 ac_out='"$tmp/out1"'
17893 ac_nxt='"$tmp/out2"'
17895 while :
17897 # Write a here document:
17898 cat >>$CONFIG_STATUS <<_ACEOF
17899 # First, check the format of the line:
17900 cat >"\$tmp/defines.sed" <<\\CEOF
17901 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17902 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17904 :def
17905 _ACEOF
17906 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17907 echo 'CEOF
17908 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17909 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17910 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17911 grep . conftest.tail >/dev/null || break
17912 rm -f conftest.defines
17913 mv conftest.tail conftest.defines
17914 done
17915 rm -f conftest.defines conftest.tail
17917 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17918 cat >>$CONFIG_STATUS <<\_ACEOF
17919 if test x"$ac_file" != x-; then
17920 echo "/* $configure_input */" >"$tmp/config.h"
17921 cat "$ac_result" >>"$tmp/config.h"
17922 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17923 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17924 echo "$as_me: $ac_file is unchanged" >&6;}
17925 else
17926 rm -f $ac_file
17927 mv "$tmp/config.h" $ac_file
17929 else
17930 echo "/* $configure_input */"
17931 cat "$ac_result"
17933 rm -f "$tmp/out12"
17937 esac
17939 done # for ac_tag
17942 { (exit 0); exit 0; }
17943 _ACEOF
17944 chmod +x $CONFIG_STATUS
17945 ac_clean_files=$ac_clean_files_save
17948 # configure is writing to config.log, and then calls config.status.
17949 # config.status does its own redirection, appending to config.log.
17950 # Unfortunately, on DOS this fails, as config.log is still kept open
17951 # by configure, so config.status won't be able to write to it; its
17952 # output is simply discarded. So we exec the FD to /dev/null,
17953 # effectively closing config.log, so it can be properly (re)opened and
17954 # appended to by config.status. When coming back to configure, we
17955 # need to make the FD available again.
17956 if test "$no_create" != yes; then
17957 ac_cs_success=:
17958 ac_config_status_args=
17959 test "$silent" = yes &&
17960 ac_config_status_args="$ac_config_status_args --quiet"
17961 exec 5>/dev/null
17962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17963 exec 5>>auto/config.log
17964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17965 # would make configure fail if this is the last instruction.
17966 $ac_cs_success || { (exit 1); exit 1; }