Merge branch 'vim-with-runtime'
[vim_extended.git] / src / auto / configure
blob58c9cca3000ac1955acfa5113bbd16b770e2d7d6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 DEPEND_CFLAGS_FILTER
641 MAKEMO
642 MSGFMT
643 INSTALL_TOOL_LANGS
644 INSTALL_LANGS
645 TAGPRG
646 HANGULIN_OBJ
647 HANGULIN_SRC
648 GUI_X_LIBS
649 GUITYPE
650 GUI_LIB_LOC
651 GUI_INC_LOC
652 NARROW_PROTO
653 MOTIF_LIBNAME
654 GNOME_CONFIG
655 GNOME_INCLUDEDIR
656 GNOME_LIBDIR
657 GNOME_LIBS
658 GTK_LIBNAME
659 GTK_LIBS
660 GTK_CFLAGS
661 PKG_CONFIG
662 GTK12_CONFIG
663 GTK_CONFIG
664 X_LIB
665 X_EXTRA_LIBS
666 X_LIBS
667 X_PRE_LIBS
668 X_CFLAGS
669 XMKMF
670 xmkmfpath
671 SNIFF_OBJ
672 SNIFF_SRC
673 NETBEANS_OBJ
674 NETBEANS_SRC
675 WORKSHOP_OBJ
676 WORKSHOP_SRC
677 RUBY_LIBS
678 RUBY_CFLAGS
679 RUBY_PRO
680 RUBY_OBJ
681 RUBY_SRC
682 vi_cv_path_ruby
683 TCL_LIBS
684 TCL_CFLAGS
685 TCL_PRO
686 TCL_OBJ
687 TCL_SRC
688 vi_cv_path_tcl
689 PYTHON_OBJ
690 PYTHON_SRC
691 PYTHON_CFLAGS
692 PYTHON_GETPATH_CFLAGS
693 PYTHON_LIBS
694 PYTHON_CONFDIR
695 vi_cv_path_python
696 ECL_OBJ
697 ECL_SRC
698 ECL_CFLAGS
699 ECL_LIBS
700 vi_cv_path_ecl_config
701 PERL_LIBS
702 PERL_CFLAGS
703 PERL_PRO
704 PERL_OBJ
705 PERL_SRC
706 shrpenv
707 vi_cv_perllib
708 vi_cv_path_perl
709 MZSCHEME_MZC
710 MZSCHEME_EXTRA
711 MZSCHEME_CFLAGS
712 MZSCHEME_LIBS
713 MZSCHEME_PRO
714 MZSCHEME_OBJ
715 MZSCHEME_SRC
716 vi_cv_path_mzscheme
717 LUA_CFLAGS
718 LUA_LIBS
719 LUA_PRO
720 LUA_OBJ
721 LUA_SRC
722 vi_cv_path_lua
723 compiledby
724 dogvimdiff
725 dovimdiff
726 line_break
727 VIEWNAME
728 EXNAME
729 VIMNAME
730 OS_EXTRA_OBJ
731 OS_EXTRA_SRC
732 XCODE_SELECT
733 CPP_MM
734 STRIP
736 EGREP
737 GREP
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
746 SET_MAKE
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_darwin
788 with_mac_arch
789 with_developer_dir
790 with_local_dir
791 with_vim_name
792 with_ex_name
793 with_view_name
794 with_global_runtime
795 with_modified_by
796 enable_selinux
797 with_features
798 with_compiledby
799 enable_xsmp
800 enable_xsmp_interact
801 enable_luainterp
802 with_lua_prefix
803 enable_mzschemeinterp
804 with_plthome
805 enable_perlinterp
806 enable_eclinterp
807 enable_pythoninterp
808 with_python_config_dir
809 enable_tclinterp
810 with_tclsh
811 enable_rubyinterp
812 with_ruby_command
813 enable_cscope
814 enable_workshop
815 enable_netbeans
816 enable_sniff
817 enable_multibyte
818 enable_hangulinput
819 enable_xim
820 enable_fontset
821 with_x
822 enable_gui
823 enable_gtk_check
824 enable_gtk2_check
825 enable_gnome_check
826 enable_motif_check
827 enable_athena_check
828 enable_nextaw_check
829 enable_carbon_check
830 with_gtk_prefix
831 with_gtk_exec_prefix
832 enable_gtktest
833 with_gnome_includes
834 with_gnome_libs
835 with_gnome
836 with_motif_lib
837 with_tlib
838 enable_largefile
839 enable_acl
840 enable_gpm
841 enable_sysmouse
842 enable_nls
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 XMKMF'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
963 { (exit 1); exit 1; }; }
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
976 ac_prev=docdir ;;
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978 docdir=$ac_optarg ;;
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 ac_prev=dvidir ;;
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983 dvidir=$ac_optarg ;;
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1013 with_gas=yes ;;
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 ac_prev=htmldir ;;
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 | --ht=*)
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 ac_prev=infodir ;;
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1046 ac_prev=libdir ;;
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 ac_prev=mandir ;;
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1076 with_fp=no ;;
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1080 no_create=yes ;;
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 no_recursion=yes ;;
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 ac_prev=prefix ;;
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 ac_prev=pdfdir ;;
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1137 ac_prev=psdir ;;
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 psdir=$ac_optarg ;;
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1143 silent=yes ;;
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 ac_prev=sbindir ;;
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 | --sbi=* | --sb=*)
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1154 | --sha | --sh)
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 | --sha=* | --sh=*)
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1163 ac_prev=site ;;
1164 -site=* | --site=* | --sit=*)
1165 site=$ac_optarg ;;
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 ac_prev=srcdir ;;
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 verbose=yes ;;
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1190 -with-* | --with-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=\$ac_optarg ;;
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1264 esac
1265 done
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1277 { (exit 1); exit 1; }; } ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1302 done
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1356 /^X\(\/\/\)$/{
1357 s//\1/
1360 /^X\(\/\).*/{
1361 s//\1/
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1369 else
1370 ac_srcdir_defaulted=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures this package to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1461 cat <<\_ACEOF
1463 X features:
1464 --x-includes=DIR X include files are in DIR
1465 --x-libraries=DIR X library files are in DIR
1466 _ACEOF
1469 if test -n "$ac_init_help"; then
1471 cat <<\_ACEOF
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-darwin Disable Darwin (Mac OS X) support.
1478 --disable-selinux Don't check for SELinux support.
1479 --disable-xsmp Disable XSMP session management
1480 --disable-xsmp-interact Disable XSMP interaction
1481 --enable-luainterp Include Lua interpreter.
1482 --enable-mzschemeinterp Include MzScheme interpreter.
1483 --enable-perlinterp Include Perl interpreter.
1484 --enable-eclinterp Include ECL compiler.
1485 --enable-pythoninterp Include Python interpreter.
1486 --enable-tclinterp Include Tcl interpreter.
1487 --enable-rubyinterp Include Ruby interpreter.
1488 --enable-cscope Include cscope interface.
1489 --enable-workshop Include Sun Visual Workshop support.
1490 --disable-netbeans Disable NetBeans integration support.
1491 --enable-sniff Include Sniff interface.
1492 --enable-multibyte Include multibyte editing support.
1493 --enable-hangulinput Include Hangul input support.
1494 --enable-xim Include XIM input support.
1495 --enable-fontset Include X fontset output support.
1496 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1497 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1498 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1499 --enable-gnome-check If GTK GUI, check for GNOME default=no
1500 --enable-motif-check If auto-select GUI, check for Motif default=yes
1501 --enable-athena-check If auto-select GUI, check for Athena default=yes
1502 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1503 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1504 --disable-gtktest Do not try to compile and run a test GTK program
1505 --disable-largefile omit support for large files
1506 --disable-acl Don't check for ACL support.
1507 --disable-gpm Don't use gpm (Linux mouse daemon).
1508 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1509 --disable-nls Don't support NLS (gettext()).
1511 Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-mac-arch=ARCH current, intel, ppc or both
1515 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1516 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1517 --without-local-dir do not search /usr/local for local libraries.
1518 --with-vim-name=NAME what to call the Vim executable
1519 --with-ex-name=NAME what to call the Ex executable
1520 --with-view-name=NAME what to call the View executable
1521 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1522 --with-modified-by=NAME name of who modified a release version
1523 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1524 --with-compiledby=NAME name to show in :version message
1525 --with-lua-prefix=PFX Prefix where Lua is installed.
1526 --with-plthome=PLTHOME Use PLTHOME.
1527 --with-python-config-dir=PATH Python's config directory
1528 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1529 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
1530 --with-x use the X Window System
1531 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1532 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1533 --with-gnome-includes=DIR Specify location of GNOME headers
1534 --with-gnome-libs=DIR Specify location of GNOME libs
1535 --with-gnome Specify prefix for GNOME files
1536 --with-motif-lib=STRING Library for Motif
1537 --with-tlib=library terminal library to be used
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1547 CPP C preprocessor
1548 XMKMF Path to xmkmf, Makefile generator for X Window System
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1553 _ACEOF
1554 ac_status=$?
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562 continue
1563 ac_builddir=.
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1581 case $srcdir in
1582 .) # We are building in place.
1583 ac_srcdir=.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1590 *) # Relative name.
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1605 else
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 fi || ac_status=$?
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1609 done
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614 cat <<\_ACEOF
1615 configure
1616 generated by GNU Autoconf 2.63
1618 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1619 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623 exit
1625 cat >auto/config.log <<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1629 It was created by $as_me, which was
1630 generated by GNU Autoconf 2.63. Invocation command line was
1632 $ $0 $@
1634 _ACEOF
1635 exec 5>>auto/config.log
1637 cat <<_ASUNAME
1638 ## --------- ##
1639 ## Platform. ##
1640 ## --------- ##
1642 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1643 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1644 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1645 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1646 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1649 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1651 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1652 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1653 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1654 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1655 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1656 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1657 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1659 _ASUNAME
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 $as_echo "PATH: $as_dir"
1667 done
1668 IFS=$as_save_IFS
1670 } >&5
1672 cat >&5 <<_ACEOF
1675 ## ----------- ##
1676 ## Core tests. ##
1677 ## ----------- ##
1679 _ACEOF
1682 # Keep a trace of the command line.
1683 # Strip out --no-create and --no-recursion so they do not pile up.
1684 # Strip out --silent because we don't want to record it for future runs.
1685 # Also quote any args containing shell meta-characters.
1686 # Make two passes to allow for proper duplicate-argument suppression.
1687 ac_configure_args=
1688 ac_configure_args0=
1689 ac_configure_args1=
1690 ac_must_keep_next=false
1691 for ac_pass in 1 2
1693 for ac_arg
1695 case $ac_arg in
1696 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1698 | -silent | --silent | --silen | --sile | --sil)
1699 continue ;;
1700 *\'*)
1701 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1702 esac
1703 case $ac_pass in
1704 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1707 if test $ac_must_keep_next = true; then
1708 ac_must_keep_next=false # Got value, back to normal.
1709 else
1710 case $ac_arg in
1711 *=* | --config-cache | -C | -disable-* | --disable-* \
1712 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1713 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1714 | -with-* | --with-* | -without-* | --without-* | --x)
1715 case "$ac_configure_args0 " in
1716 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1717 esac
1719 -* ) ac_must_keep_next=true ;;
1720 esac
1722 ac_configure_args="$ac_configure_args '$ac_arg'"
1724 esac
1725 done
1726 done
1727 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1728 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730 # When interrupted or exit'd, cleanup temporary files, and complete
1731 # config.log. We remove comments because anyway the quotes in there
1732 # would cause problems or look ugly.
1733 # WARNING: Use '\'' to represent an apostrophe within the trap.
1734 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1735 trap 'exit_status=$?
1736 # Save into config.log some information that might help in debugging.
1738 echo
1740 cat <<\_ASBOX
1741 ## ---------------- ##
1742 ## Cache variables. ##
1743 ## ---------------- ##
1744 _ASBOX
1745 echo
1746 # The following way of writing the cache mishandles newlines in values,
1748 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1749 eval ac_val=\$$ac_var
1750 case $ac_val in #(
1751 *${as_nl}*)
1752 case $ac_var in #(
1753 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1755 esac
1756 case $ac_var in #(
1757 _ | IFS | as_nl) ;; #(
1758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1759 *) $as_unset $ac_var ;;
1760 esac ;;
1761 esac
1762 done
1763 (set) 2>&1 |
1764 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765 *${as_nl}ac_space=\ *)
1766 sed -n \
1767 "s/'\''/'\''\\\\'\'''\''/g;
1768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769 ;; #(
1771 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1773 esac |
1774 sort
1776 echo
1778 cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783 echo
1784 for ac_var in $ac_subst_vars
1786 eval ac_val=\$$ac_var
1787 case $ac_val in
1788 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 esac
1790 $as_echo "$ac_var='\''$ac_val'\''"
1791 done | sort
1792 echo
1794 if test -n "$ac_subst_files"; then
1795 cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800 echo
1801 for ac_var in $ac_subst_files
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 $as_echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1812 if test -s confdefs.h; then
1813 cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818 echo
1819 cat confdefs.h
1820 echo
1822 test "$ac_signal" != 0 &&
1823 $as_echo "$as_me: caught signal $ac_signal"
1824 $as_echo "$as_me: exit $exit_status"
1825 } >&5
1826 rm -f core *.core core.conftest.* &&
1827 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828 exit $exit_status
1830 for ac_signal in 1 2 13 15; do
1831 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1838 # Predefined preprocessor variables.
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer an explicitly selected file to automatically selected ones.
1867 ac_site_file1=NONE
1868 ac_site_file2=NONE
1869 if test -n "$CONFIG_SITE"; then
1870 ac_site_file1=$CONFIG_SITE
1871 elif test "x$prefix" != xNONE; then
1872 ac_site_file1=$prefix/share/config.site
1873 ac_site_file2=$prefix/etc/config.site
1874 else
1875 ac_site_file1=$ac_default_prefix/share/config.site
1876 ac_site_file2=$ac_default_prefix/etc/config.site
1878 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1880 test "x$ac_site_file" = xNONE && continue
1881 if test -r "$ac_site_file"; then
1882 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1884 sed 's/^/| /' "$ac_site_file" >&5
1885 . "$ac_site_file"
1887 done
1889 if test -r "$cache_file"; then
1890 # Some versions of bash will fail to source /dev/null (special
1891 # files actually), so we avoid doing that.
1892 if test -f "$cache_file"; then
1893 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 $as_echo "$as_me: loading cache $cache_file" >&6;}
1895 case $cache_file in
1896 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897 *) . "./$cache_file";;
1898 esac
1900 else
1901 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 $as_echo "$as_me: creating cache $cache_file" >&6;}
1903 >$cache_file
1906 # Check that the precious variables saved in the cache have kept the same
1907 # value.
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911 eval ac_new_set=\$ac_env_${ac_var}_set
1912 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913 eval ac_new_val=\$ac_env_${ac_var}_value
1914 case $ac_old_set,$ac_new_set in
1915 set,)
1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918 ac_cache_corrupted=: ;;
1919 ,set)
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922 ac_cache_corrupted=: ;;
1923 ,);;
1925 if test "x$ac_old_val" != "x$ac_new_val"; then
1926 # differences in whitespace do not lead to failure.
1927 ac_old_val_w=`echo x $ac_old_val`
1928 ac_new_val_w=`echo x $ac_new_val`
1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1931 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1932 ac_cache_corrupted=:
1933 else
1934 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1935 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1936 eval $ac_var=\$ac_old_val
1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1939 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1942 fi;;
1943 esac
1944 # Pass precious variables to config.status.
1945 if test "$ac_new_set" = set; then
1946 case $ac_new_val in
1947 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 *) ac_arg=$ac_var=$ac_new_val ;;
1949 esac
1950 case " $ac_configure_args " in
1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1953 esac
1955 done
1956 if $ac_cache_corrupted; then
1957 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1959 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1960 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1961 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1962 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1963 { (exit 1); exit 1; }; }
1982 ac_ext=c
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1992 cat >>confdefs.h <<\_ACEOF
1993 #define UNIX 1
1994 _ACEOF
1996 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1997 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1998 set x ${MAKE-make}
1999 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2000 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2001 $as_echo_n "(cached) " >&6
2002 else
2003 cat >conftest.make <<\_ACEOF
2004 SHELL = /bin/sh
2005 all:
2006 @echo '@@@%%%=$(MAKE)=@@@%%%'
2007 _ACEOF
2008 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2009 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2010 *@@@%%%=?*=@@@%%%*)
2011 eval ac_cv_prog_make_${ac_make}_set=yes;;
2013 eval ac_cv_prog_make_${ac_make}_set=no;;
2014 esac
2015 rm -f conftest.make
2017 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2018 { $as_echo "$as_me:$LINENO: result: yes" >&5
2019 $as_echo "yes" >&6; }
2020 SET_MAKE=
2021 else
2022 { $as_echo "$as_me:$LINENO: result: no" >&5
2023 $as_echo "no" >&6; }
2024 SET_MAKE="MAKE=${MAKE-make}"
2028 ac_ext=c
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 $as_echo_n "checking for $ac_word... " >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 $as_echo_n "(cached) " >&6
2040 else
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2055 done
2056 done
2057 IFS=$as_save_IFS
2061 CC=$ac_cv_prog_CC
2062 if test -n "$CC"; then
2063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2064 $as_echo "$CC" >&6; }
2065 else
2066 { $as_echo "$as_me:$LINENO: result: no" >&5
2067 $as_echo "no" >&6; }
2072 if test -z "$ac_cv_prog_CC"; then
2073 ac_ct_CC=$CC
2074 # Extract the first word of "gcc", so it can be a program name with args.
2075 set dummy gcc; ac_word=$2
2076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 $as_echo_n "checking for $ac_word... " >&6; }
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 $as_echo_n "(cached) " >&6
2080 else
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 else
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 for as_dir in $PATH
2087 IFS=$as_save_IFS
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_ac_ct_CC="gcc"
2092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093 break 2
2095 done
2096 done
2097 IFS=$as_save_IFS
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 $as_echo "$ac_ct_CC" >&6; }
2105 else
2106 { $as_echo "$as_me:$LINENO: result: no" >&5
2107 $as_echo "no" >&6; }
2110 if test "x$ac_ct_CC" = x; then
2111 CC=""
2112 else
2113 case $cross_compiling:$ac_tool_warned in
2114 yes:)
2115 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2117 ac_tool_warned=yes ;;
2118 esac
2119 CC=$ac_ct_CC
2121 else
2122 CC="$ac_cv_prog_CC"
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}cc; ac_word=$2
2129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 $as_echo_n "checking for $ac_word... " >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 $as_echo_n "(cached) " >&6
2133 else
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_CC="${ac_tool_prefix}cc"
2145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2148 done
2149 done
2150 IFS=$as_save_IFS
2154 CC=$ac_cv_prog_CC
2155 if test -n "$CC"; then
2156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2157 $as_echo "$CC" >&6; }
2158 else
2159 { $as_echo "$as_me:$LINENO: result: no" >&5
2160 $as_echo "no" >&6; }
2166 if test -z "$CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168 set dummy cc; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2173 else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 ac_prog_rejected=no
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186 ac_prog_rejected=yes
2187 continue
2189 ac_cv_prog_CC="cc"
2190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2193 done
2194 done
2195 IFS=$as_save_IFS
2197 if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2200 shift
2201 if test $# != 0; then
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2205 shift
2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2211 CC=$ac_cv_prog_CC
2212 if test -n "$CC"; then
2213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2214 $as_echo "$CC" >&6; }
2215 else
2216 { $as_echo "$as_me:$LINENO: result: no" >&5
2217 $as_echo "no" >&6; }
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl.exe
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 $as_echo_n "checking for $ac_word... " >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 $as_echo_n "(cached) " >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2249 IFS=$as_save_IFS
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2256 $as_echo "$CC" >&6; }
2257 else
2258 { $as_echo "$as_me:$LINENO: result: no" >&5
2259 $as_echo "no" >&6; }
2263 test -n "$CC" && break
2264 done
2266 if test -z "$CC"; then
2267 ac_ct_CC=$CC
2268 for ac_prog in cl.exe
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 $as_echo_n "checking for $ac_word... " >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 $as_echo_n "(cached) " >&6
2276 else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2291 done
2292 done
2293 IFS=$as_save_IFS
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 $as_echo "$ac_ct_CC" >&6; }
2301 else
2302 { $as_echo "$as_me:$LINENO: result: no" >&5
2303 $as_echo "no" >&6; }
2307 test -n "$ac_ct_CC" && break
2308 done
2310 if test "x$ac_ct_CC" = x; then
2311 CC=""
2312 else
2313 case $cross_compiling:$ac_tool_warned in
2314 yes:)
2315 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2317 ac_tool_warned=yes ;;
2318 esac
2319 CC=$ac_ct_CC
2326 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }; }
2334 # Provide some information about the compiler.
2335 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2336 set X $ac_compile
2337 ac_compiler=$2
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
2346 ac_status=$?
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2349 { (ac_try="$ac_compiler -v >&5"
2350 case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2355 $as_echo "$ac_try_echo") >&5
2356 (eval "$ac_compiler -v >&5") 2>&5
2357 ac_status=$?
2358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (ac_try="$ac_compiler -V >&5"
2361 case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2366 $as_echo "$ac_try_echo") >&5
2367 (eval "$ac_compiler -V >&5") 2>&5
2368 ac_status=$?
2369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h. */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2380 main ()
2384 return 0;
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 $as_echo_n "checking for C compiler default output file name... " >&6; }
2394 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2396 # The possible output files:
2397 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2399 ac_rmfiles=
2400 for ac_file in $ac_files
2402 case $ac_file in
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2405 esac
2406 done
2407 rm -f $ac_rmfiles
2409 if { (ac_try="$ac_link_default"
2410 case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2413 esac
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416 (eval "$ac_link_default") 2>&5
2417 ac_status=$?
2418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; then
2420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2422 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2424 # Autoconf.
2425 for ac_file in $ac_files ''
2427 test -f "$ac_file" || continue
2428 case $ac_file in
2429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2431 [ab].out )
2432 # We found the default executable, but exeext='' is most
2433 # certainly right.
2434 break;;
2435 *.* )
2436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2437 then :; else
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 # We set ac_cv_exeext here because the later test for it is not
2441 # safe: cross compilers may not add the suffix if given an `-o'
2442 # argument, so we may need to know it at that point already.
2443 # Even if this section looks crufty: it has the advantage of
2444 # actually working.
2445 break;;
2447 break;;
2448 esac
2449 done
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2452 else
2453 ac_file=''
2456 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2457 $as_echo "$ac_file" >&6; }
2458 if test -z "$ac_file"; then
2459 $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&5
2466 $as_echo "$as_me: error: C compiler cannot create executables
2467 See \`config.log' for more details." >&2;}
2468 { (exit 77); exit 77; }; }; }
2471 ac_exeext=$ac_cv_exeext
2473 # Check that the compiler produces executables we can run. If not, either
2474 # the compiler is broken, or we cross compile.
2475 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2476 $as_echo_n "checking whether the C compiler works... " >&6; }
2477 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478 # If not cross compiling, check that we can run a simple program.
2479 if test "$cross_compiling" != yes; then
2480 if { ac_try='./$ac_file'
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484 esac
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487 (eval "$ac_try") 2>&5
2488 ac_status=$?
2489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 cross_compiling=no
2492 else
2493 if test "$cross_compiling" = maybe; then
2494 cross_compiling=yes
2495 else
2496 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2499 If you meant to cross compile, use \`--host'.
2500 See \`config.log' for more details." >&5
2501 $as_echo "$as_me: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \`config.log' for more details." >&2;}
2504 { (exit 1); exit 1; }; }; }
2508 { $as_echo "$as_me:$LINENO: result: yes" >&5
2509 $as_echo "yes" >&6; }
2511 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2512 ac_clean_files=$ac_clean_files_save
2513 # Check that the compiler produces executables we can run. If not, either
2514 # the compiler is broken, or we cross compile.
2515 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2516 $as_echo_n "checking whether we are cross compiling... " >&6; }
2517 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2518 $as_echo "$cross_compiling" >&6; }
2520 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2521 $as_echo_n "checking for suffix of executables... " >&6; }
2522 if { (ac_try="$ac_link"
2523 case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526 esac
2527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528 $as_echo "$ac_try_echo") >&5
2529 (eval "$ac_link") 2>&5
2530 ac_status=$?
2531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2536 # `rm'.
2537 for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2539 case $ac_file in
2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542 break;;
2543 * ) break;;
2544 esac
2545 done
2546 else
2547 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2549 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log' for more details." >&5
2551 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }; }
2556 rm -f conftest$ac_cv_exeext
2557 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558 $as_echo "$ac_cv_exeext" >&6; }
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2562 ac_exeext=$EXEEXT
2563 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564 $as_echo_n "checking for suffix of object files... " >&6; }
2565 if test "${ac_cv_objext+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2567 else
2568 cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h. */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2576 main ()
2580 return 0;
2582 _ACEOF
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591 (eval "$ac_compile") 2>&5
2592 ac_status=$?
2593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; then
2595 for ac_file in conftest.o conftest.obj conftest.*; do
2596 test -f "$ac_file" || continue;
2597 case $ac_file in
2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2600 break;;
2601 esac
2602 done
2603 else
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2607 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2610 See \`config.log' for more details." >&5
2611 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }; }
2616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2618 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2619 $as_echo "$ac_cv_objext" >&6; }
2620 OBJEXT=$ac_cv_objext
2621 ac_objext=$OBJEXT
2622 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2625 $as_echo_n "(cached) " >&6
2626 else
2627 cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h. */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2635 main ()
2637 #ifndef __GNUC__
2638 choke me
2639 #endif
2642 return 0;
2644 _ACEOF
2645 rm -f conftest.$ac_objext
2646 if { (ac_try="$ac_compile"
2647 case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2652 $as_echo "$ac_try_echo") >&5
2653 (eval "$ac_compile") 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } && {
2660 test -z "$ac_c_werror_flag" ||
2661 test ! -s conftest.err
2662 } && test -s conftest.$ac_objext; then
2663 ac_compiler_gnu=yes
2664 else
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 ac_compiler_gnu=no
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2677 if test $ac_compiler_gnu = yes; then
2678 GCC=yes
2679 else
2680 GCC=
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2684 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2686 if test "${ac_cv_prog_cc_g+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2688 else
2689 ac_save_c_werror_flag=$ac_c_werror_flag
2690 ac_c_werror_flag=yes
2691 ac_cv_prog_cc_g=no
2692 CFLAGS="-g"
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2701 main ()
2705 return 0;
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2715 $as_echo "$ac_try_echo") >&5
2716 (eval "$ac_compile") 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.$ac_objext; then
2726 ac_cv_prog_cc_g=yes
2727 else
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2731 CFLAGS=""
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2740 main ()
2744 return 0;
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755 (eval "$ac_compile") 2>conftest.er1
2756 ac_status=$?
2757 grep -v '^ *+' conftest.er1 >conftest.err
2758 rm -f conftest.er1
2759 cat conftest.err >&5
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } && {
2762 test -z "$ac_c_werror_flag" ||
2763 test ! -s conftest.err
2764 } && test -s conftest.$ac_objext; then
2766 else
2767 $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2771 CFLAGS="-g"
2772 cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h. */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2780 main ()
2784 return 0;
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (ac_try="$ac_compile"
2789 case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792 esac
2793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2794 $as_echo "$ac_try_echo") >&5
2795 (eval "$ac_compile") 2>conftest.er1
2796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
2800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } && {
2802 test -z "$ac_c_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest.$ac_objext; then
2805 ac_cv_prog_cc_g=yes
2806 else
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 ac_c_werror_flag=$ac_save_c_werror_flag
2822 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2823 $as_echo "$ac_cv_prog_cc_g" >&6; }
2824 if test "$ac_test_CFLAGS" = set; then
2825 CFLAGS=$ac_save_CFLAGS
2826 elif test $ac_cv_prog_cc_g = yes; then
2827 if test "$GCC" = yes; then
2828 CFLAGS="-g -O2"
2829 else
2830 CFLAGS="-g"
2832 else
2833 if test "$GCC" = yes; then
2834 CFLAGS="-O2"
2835 else
2836 CFLAGS=
2839 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2841 if test "${ac_cv_prog_cc_c89+set}" = set; then
2842 $as_echo_n "(cached) " >&6
2843 else
2844 ac_cv_prog_cc_c89=no
2845 ac_save_CC=$CC
2846 cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h. */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2852 #include <stdarg.h>
2853 #include <stdio.h>
2854 #include <sys/types.h>
2855 #include <sys/stat.h>
2856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2857 struct buf { int x; };
2858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2859 static char *e (p, i)
2860 char **p;
2861 int i;
2863 return p[i];
2865 static char *f (char * (*g) (char **, int), char **p, ...)
2867 char *s;
2868 va_list v;
2869 va_start (v,p);
2870 s = g (p, va_arg (v,int));
2871 va_end (v);
2872 return s;
2875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2876 function prototypes and stuff, but not '\xHH' hex character constants.
2877 These don't provoke an error unfortunately, instead are silently treated
2878 as 'x'. The following induces an error, until -std is added to get
2879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2880 array size at least. It's necessary to write '\x00'==0 to get something
2881 that's true only with -std. */
2882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2885 inside strings and character constants. */
2886 #define FOO(x) 'x'
2887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2889 int test (int i, double x);
2890 struct s1 {int (*f) (int a);};
2891 struct s2 {int (*f) (double a);};
2892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2893 int argc;
2894 char **argv;
2896 main ()
2898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2900 return 0;
2902 _ACEOF
2903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2906 CC="$ac_save_CC $ac_arg"
2907 rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2914 $as_echo "$ac_try_echo") >&5
2915 (eval "$ac_compile") 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } && {
2922 test -z "$ac_c_werror_flag" ||
2923 test ! -s conftest.err
2924 } && test -s conftest.$ac_objext; then
2925 ac_cv_prog_cc_c89=$ac_arg
2926 else
2927 $as_echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2933 rm -f core conftest.err conftest.$ac_objext
2934 test "x$ac_cv_prog_cc_c89" != "xno" && break
2935 done
2936 rm -f conftest.$ac_ext
2937 CC=$ac_save_CC
2940 # AC_CACHE_VAL
2941 case "x$ac_cv_prog_cc_c89" in
2943 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2944 $as_echo "none needed" >&6; } ;;
2945 xno)
2946 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2947 $as_echo "unsupported" >&6; } ;;
2949 CC="$CC $ac_cv_prog_cc_c89"
2950 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2952 esac
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2967 # On Suns, sometimes $CPP names a directory.
2968 if test -n "$CPP" && test -d "$CPP"; then
2969 CPP=
2971 if test -z "$CPP"; then
2972 if test "${ac_cv_prog_CPP+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974 else
2975 # Double quotes because CPP needs to be expanded
2976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2978 ac_preproc_ok=false
2979 for ac_c_preproc_warn_flag in '' yes
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat >conftest.$ac_ext <<_ACEOF
2988 /* confdefs.h. */
2989 _ACEOF
2990 cat confdefs.h >>conftest.$ac_ext
2991 cat >>conftest.$ac_ext <<_ACEOF
2992 /* end confdefs.h. */
2993 #ifdef __STDC__
2994 # include <limits.h>
2995 #else
2996 # include <assert.h>
2997 #endif
2998 Syntax error
2999 _ACEOF
3000 if { (ac_try="$ac_cpp conftest.$ac_ext"
3001 case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004 esac
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3008 ac_status=$?
3009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev/null && {
3014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 }; then
3018 else
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3022 # Broken: fails on valid input.
3023 continue
3026 rm -f conftest.err conftest.$ac_ext
3028 # OK, works on sane cases. Now check whether nonexistent headers
3029 # can be detected and how.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #include <ac_nonexistent.h>
3037 _ACEOF
3038 if { (ac_try="$ac_cpp conftest.$ac_ext"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3044 $as_echo "$ac_try_echo") >&5
3045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null && {
3052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3053 test ! -s conftest.err
3054 }; then
3055 # Broken: success on invalid input.
3056 continue
3057 else
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 # Passes both tests.
3062 ac_preproc_ok=:
3063 break
3066 rm -f conftest.err conftest.$ac_ext
3068 done
3069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3070 rm -f conftest.err conftest.$ac_ext
3071 if $ac_preproc_ok; then
3072 break
3075 done
3076 ac_cv_prog_CPP=$CPP
3079 CPP=$ac_cv_prog_CPP
3080 else
3081 ac_cv_prog_CPP=$CPP
3083 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3084 $as_echo "$CPP" >&6; }
3085 ac_preproc_ok=false
3086 for ac_c_preproc_warn_flag in '' yes
3088 # Use a header file that comes with gcc, so configuring glibc
3089 # with a fresh cross-compiler works.
3090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3091 # <limits.h> exists even on freestanding compilers.
3092 # On the NeXT, cc -E runs the code through the compiler's parser,
3093 # not just through cpp. "Syntax error" is here to catch this case.
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3100 #ifdef __STDC__
3101 # include <limits.h>
3102 #else
3103 # include <assert.h>
3104 #endif
3105 Syntax error
3106 _ACEOF
3107 if { (ac_try="$ac_cpp conftest.$ac_ext"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113 $as_echo "$ac_try_echo") >&5
3114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3115 ac_status=$?
3116 grep -v '^ *+' conftest.er1 >conftest.err
3117 rm -f conftest.er1
3118 cat conftest.err >&5
3119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); } >/dev/null && {
3121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3122 test ! -s conftest.err
3123 }; then
3125 else
3126 $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 # Broken: fails on valid input.
3130 continue
3133 rm -f conftest.err conftest.$ac_ext
3135 # OK, works on sane cases. Now check whether nonexistent headers
3136 # can be detected and how.
3137 cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h. */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3143 #include <ac_nonexistent.h>
3144 _ACEOF
3145 if { (ac_try="$ac_cpp conftest.$ac_ext"
3146 case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3149 esac
3150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3151 $as_echo "$ac_try_echo") >&5
3152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } >/dev/null && {
3159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3160 test ! -s conftest.err
3161 }; then
3162 # Broken: success on invalid input.
3163 continue
3164 else
3165 $as_echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.$ac_ext >&5
3168 # Passes both tests.
3169 ac_preproc_ok=:
3170 break
3173 rm -f conftest.err conftest.$ac_ext
3175 done
3176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3177 rm -f conftest.err conftest.$ac_ext
3178 if $ac_preproc_ok; then
3180 else
3181 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3184 See \`config.log' for more details." >&5
3185 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }; }
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3199 if test "${ac_cv_path_GREP+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -z "$GREP"; then
3203 ac_path_GREP_found=false
3204 # Loop through the user's path and test for each of PROGNAME-LIST
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_prog in grep ggrep; do
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3214 # Check for GNU ac_path_GREP and select it if it is found.
3215 # Check for GNU $ac_path_GREP
3216 case `"$ac_path_GREP" --version 2>&1` in
3217 *GNU*)
3218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3220 ac_count=0
3221 $as_echo_n 0123456789 >"conftest.in"
3222 while :
3224 cat "conftest.in" "conftest.in" >"conftest.tmp"
3225 mv "conftest.tmp" "conftest.in"
3226 cp "conftest.in" "conftest.nl"
3227 $as_echo 'GREP' >> "conftest.nl"
3228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3230 ac_count=`expr $ac_count + 1`
3231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3232 # Best one so far, save it but keep looking for a better one
3233 ac_cv_path_GREP="$ac_path_GREP"
3234 ac_path_GREP_max=$ac_count
3236 # 10*(2^10) chars as input seems more than enough
3237 test $ac_count -gt 10 && break
3238 done
3239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3240 esac
3242 $ac_path_GREP_found && break 3
3243 done
3244 done
3245 done
3246 IFS=$as_save_IFS
3247 if test -z "$ac_cv_path_GREP"; then
3248 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3249 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3250 { (exit 1); exit 1; }; }
3252 else
3253 ac_cv_path_GREP=$GREP
3257 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3258 $as_echo "$ac_cv_path_GREP" >&6; }
3259 GREP="$ac_cv_path_GREP"
3262 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3263 $as_echo_n "checking for egrep... " >&6; }
3264 if test "${ac_cv_path_EGREP+set}" = set; then
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3268 then ac_cv_path_EGREP="$GREP -E"
3269 else
3270 if test -z "$EGREP"; then
3271 ac_path_EGREP_found=false
3272 # Loop through the user's path and test for each of PROGNAME-LIST
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_prog in egrep; do
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3282 # Check for GNU ac_path_EGREP and select it if it is found.
3283 # Check for GNU $ac_path_EGREP
3284 case `"$ac_path_EGREP" --version 2>&1` in
3285 *GNU*)
3286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3288 ac_count=0
3289 $as_echo_n 0123456789 >"conftest.in"
3290 while :
3292 cat "conftest.in" "conftest.in" >"conftest.tmp"
3293 mv "conftest.tmp" "conftest.in"
3294 cp "conftest.in" "conftest.nl"
3295 $as_echo 'EGREP' >> "conftest.nl"
3296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3298 ac_count=`expr $ac_count + 1`
3299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3300 # Best one so far, save it but keep looking for a better one
3301 ac_cv_path_EGREP="$ac_path_EGREP"
3302 ac_path_EGREP_max=$ac_count
3304 # 10*(2^10) chars as input seems more than enough
3305 test $ac_count -gt 10 && break
3306 done
3307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3308 esac
3310 $ac_path_EGREP_found && break 3
3311 done
3312 done
3313 done
3314 IFS=$as_save_IFS
3315 if test -z "$ac_cv_path_EGREP"; then
3316 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3317 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3318 { (exit 1); exit 1; }; }
3320 else
3321 ac_cv_path_EGREP=$EGREP
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3327 $as_echo "$ac_cv_path_EGREP" >&6; }
3328 EGREP="$ac_cv_path_EGREP"
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3338 _ACEOF
3339 rm -f conftest*
3340 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3341 $as_echo_n "checking for library containing strerror... " >&6; }
3342 if test "${ac_cv_search_strerror+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3344 else
3345 ac_func_search_save_LIBS=$LIBS
3346 cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3353 /* Override any GCC internal prototype to avoid an error.
3354 Use char because int might match the return type of a GCC
3355 builtin and then its argument prototype would still apply. */
3356 #ifdef __cplusplus
3357 extern "C"
3358 #endif
3359 char strerror ();
3361 main ()
3363 return strerror ();
3365 return 0;
3367 _ACEOF
3368 for ac_lib in '' cposix; do
3369 if test -z "$ac_lib"; then
3370 ac_res="none required"
3371 else
3372 ac_res=-l$ac_lib
3373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3375 rm -f conftest.$ac_objext conftest$ac_exeext
3376 if { (ac_try="$ac_link"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382 $as_echo "$ac_try_echo") >&5
3383 (eval "$ac_link") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } && {
3390 test -z "$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 } && test -s conftest$ac_exeext && {
3393 test "$cross_compiling" = yes ||
3394 $as_test_x conftest$ac_exeext
3395 }; then
3396 ac_cv_search_strerror=$ac_res
3397 else
3398 $as_echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -rf conftest.dSYM
3405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3406 conftest$ac_exeext
3407 if test "${ac_cv_search_strerror+set}" = set; then
3408 break
3410 done
3411 if test "${ac_cv_search_strerror+set}" = set; then
3413 else
3414 ac_cv_search_strerror=no
3416 rm conftest.$ac_ext
3417 LIBS=$ac_func_search_save_LIBS
3419 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3420 $as_echo "$ac_cv_search_strerror" >&6; }
3421 ac_res=$ac_cv_search_strerror
3422 if test "$ac_res" != no; then
3423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3426 for ac_prog in gawk mawk nawk awk
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy $ac_prog; ac_word=$2
3430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_AWK+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$AWK"; then
3436 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_AWK="$ac_prog"
3446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3449 done
3450 done
3451 IFS=$as_save_IFS
3455 AWK=$ac_cv_prog_AWK
3456 if test -n "$AWK"; then
3457 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3458 $as_echo "$AWK" >&6; }
3459 else
3460 { $as_echo "$as_me:$LINENO: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$AWK" && break
3466 done
3468 # Extract the first word of "strip", so it can be a program name with args.
3469 set dummy strip; ac_word=$2
3470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_STRIP+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$STRIP"; then
3476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_STRIP="strip"
3486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3489 done
3490 done
3491 IFS=$as_save_IFS
3493 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3496 STRIP=$ac_cv_prog_STRIP
3497 if test -n "$STRIP"; then
3498 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3499 $as_echo "$STRIP" >&6; }
3500 else
3501 { $as_echo "$as_me:$LINENO: result: no" >&5
3502 $as_echo "no" >&6; }
3509 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3510 $as_echo_n "checking for ANSI C header files... " >&6; }
3511 if test "${ac_cv_header_stdc+set}" = set; then
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <stdlib.h>
3521 #include <stdarg.h>
3522 #include <string.h>
3523 #include <float.h>
3526 main ()
3530 return 0;
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (ac_try="$ac_compile"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3551 ac_cv_header_stdc=yes
3552 else
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 ac_cv_header_stdc=no
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 if test $ac_cv_header_stdc = yes; then
3562 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 #include <string.h>
3571 _ACEOF
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 $EGREP "memchr" >/dev/null 2>&1; then
3575 else
3576 ac_cv_header_stdc=no
3578 rm -f conftest*
3582 if test $ac_cv_header_stdc = yes; then
3583 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3584 cat >conftest.$ac_ext <<_ACEOF
3585 /* confdefs.h. */
3586 _ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3590 #include <stdlib.h>
3592 _ACEOF
3593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3594 $EGREP "free" >/dev/null 2>&1; then
3596 else
3597 ac_cv_header_stdc=no
3599 rm -f conftest*
3603 if test $ac_cv_header_stdc = yes; then
3604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3605 if test "$cross_compiling" = yes; then
3607 else
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h. */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 #include <ctype.h>
3615 #include <stdlib.h>
3616 #if ((' ' & 0x0FF) == 0x020)
3617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3619 #else
3620 # define ISLOWER(c) \
3621 (('a' <= (c) && (c) <= 'i') \
3622 || ('j' <= (c) && (c) <= 'r') \
3623 || ('s' <= (c) && (c) <= 'z'))
3624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3625 #endif
3627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3629 main ()
3631 int i;
3632 for (i = 0; i < 256; i++)
3633 if (XOR (islower (i), ISLOWER (i))
3634 || toupper (i) != TOUPPER (i))
3635 return 2;
3636 return 0;
3638 _ACEOF
3639 rm -f conftest$ac_exeext
3640 if { (ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3651 { (case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_try") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3662 else
3663 $as_echo "$as_me: program exited with status $ac_status" >&5
3664 $as_echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.$ac_ext >&5
3667 ( exit $ac_status )
3668 ac_cv_header_stdc=no
3670 rm -rf conftest.dSYM
3671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3678 $as_echo "$ac_cv_header_stdc" >&6; }
3679 if test $ac_cv_header_stdc = yes; then
3681 cat >>confdefs.h <<\_ACEOF
3682 #define STDC_HEADERS 1
3683 _ACEOF
3687 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3688 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3689 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <sys/types.h>
3699 #include <sys/wait.h>
3700 #ifndef WEXITSTATUS
3701 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3702 #endif
3703 #ifndef WIFEXITED
3704 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3705 #endif
3708 main ()
3710 int s;
3711 wait (&s);
3712 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_header_sys_wait_h=yes
3736 else
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_cv_header_sys_wait_h=no
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3746 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3747 if test $ac_cv_header_sys_wait_h = yes; then
3749 cat >>confdefs.h <<\_ACEOF
3750 #define HAVE_SYS_WAIT_H 1
3751 _ACEOF
3756 if test -z "$CFLAGS"; then
3757 CFLAGS="-O"
3758 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3760 if test "$GCC" = yes; then
3761 gccversion=`"$CC" -dumpversion`
3762 if test "x$gccversion" = "x"; then
3763 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3765 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3766 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3767 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3768 else
3769 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3770 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3771 CFLAGS="$CFLAGS -fno-strength-reduce"
3776 if test "$cross_compiling" = yes; then
3777 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3778 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3781 test "$GCC" = yes && CPP_MM=M;
3783 if test -f ./toolcheck; then
3784 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3785 $as_echo "$as_me: checking for buggy tools..." >&6;}
3786 sh ./toolcheck 1>&6
3789 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3791 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3792 $as_echo_n "checking for BeOS... " >&6; }
3793 case `uname` in
3794 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3795 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3796 $as_echo "yes" >&6; };;
3797 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3798 $as_echo "no" >&6; };;
3799 esac
3801 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3802 $as_echo_n "checking for QNX... " >&6; }
3803 case `uname` in
3804 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3805 test -z "$with_x" && with_x=no
3806 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3807 $as_echo "yes" >&6; };;
3808 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3809 $as_echo "no" >&6; };;
3810 esac
3812 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3813 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3814 if test "`(uname) 2>/dev/null`" = Darwin; then
3815 { $as_echo "$as_me:$LINENO: result: yes" >&5
3816 $as_echo "yes" >&6; }
3818 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3819 $as_echo_n "checking --disable-darwin argument... " >&6; }
3820 # Check whether --enable-darwin was given.
3821 if test "${enable_darwin+set}" = set; then
3822 enableval=$enable_darwin;
3823 else
3824 enable_darwin="yes"
3827 if test "$enable_darwin" = "yes"; then
3828 { $as_echo "$as_me:$LINENO: result: no" >&5
3829 $as_echo "no" >&6; }
3830 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3831 $as_echo_n "checking if Darwin files are there... " >&6; }
3832 if test -f os_macosx.c; then
3833 { $as_echo "$as_me:$LINENO: result: yes" >&5
3834 $as_echo "yes" >&6; }
3835 else
3836 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3837 $as_echo "no, Darwin support disabled" >&6; }
3838 enable_darwin=no
3840 else
3841 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3842 $as_echo "yes, Darwin support excluded" >&6; }
3845 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3846 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3848 # Check whether --with-mac-arch was given.
3849 if test "${with_mac_arch+set}" = set; then
3850 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3851 $as_echo "$MACARCH" >&6; }
3852 else
3853 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3854 $as_echo "defaulting to $MACARCH" >&6; }
3858 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3859 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3861 # Check whether --with-developer-dir was given.
3862 if test "${with_developer_dir+set}" = set; then
3863 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3864 $as_echo "$DEVELOPER_DIR" >&6; }
3865 else
3866 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3867 $as_echo "not present" >&6; }
3871 if test "x$DEVELOPER_DIR" = "x"; then
3872 # Extract the first word of "xcode-select", so it can be a program name with args.
3873 set dummy xcode-select; ac_word=$2
3874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3877 $as_echo_n "(cached) " >&6
3878 else
3879 case $XCODE_SELECT in
3880 [\\/]* | ?:[\\/]*)
3881 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3895 done
3896 done
3897 IFS=$as_save_IFS
3900 esac
3902 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3903 if test -n "$XCODE_SELECT"; then
3904 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3905 $as_echo "$XCODE_SELECT" >&6; }
3906 else
3907 { $as_echo "$as_me:$LINENO: result: no" >&5
3908 $as_echo "no" >&6; }
3912 if test "x$XCODE_SELECT" != "x"; then
3913 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3914 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3915 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3916 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3917 $as_echo "$DEVELOPER_DIR" >&6; }
3918 else
3919 DEVELOPER_DIR=/Developer
3923 if test "x$MACARCH" = "xboth"; then
3924 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3925 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3926 save_cppflags="$CPPFLAGS"
3927 save_cflags="$CFLAGS"
3928 save_ldflags="$LDFLAGS"
3929 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3938 main ()
3942 return 0;
3944 _ACEOF
3945 rm -f conftest.$ac_objext conftest$ac_exeext
3946 if { (ac_try="$ac_link"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953 (eval "$ac_link") 2>conftest.er1
3954 ac_status=$?
3955 grep -v '^ *+' conftest.er1 >conftest.err
3956 rm -f conftest.er1
3957 cat conftest.err >&5
3958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest$ac_exeext && {
3963 test "$cross_compiling" = yes ||
3964 $as_test_x conftest$ac_exeext
3965 }; then
3966 { $as_echo "$as_me:$LINENO: result: found" >&5
3967 $as_echo "found" >&6; }
3968 else
3969 $as_echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 { $as_echo "$as_me:$LINENO: result: not found" >&5
3973 $as_echo "not found" >&6; }
3974 CFLAGS="$save_cflags"
3975 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3976 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3977 CPPFLAGS="$CPPFLAGS -arch i386"
3978 LDFLAGS="$save_ldflags -arch i386"
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3987 main ()
3991 return 0;
3993 _ACEOF
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_link") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest$ac_exeext && {
4012 test "$cross_compiling" = yes ||
4013 $as_test_x conftest$ac_exeext
4014 }; then
4015 { $as_echo "$as_me:$LINENO: result: yes" >&5
4016 $as_echo "yes" >&6; }; MACARCH="intel"
4017 else
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 { $as_echo "$as_me:$LINENO: result: no" >&5
4022 $as_echo "no" >&6; }
4023 MACARCH="ppc"
4024 CPPFLAGS="$save_cppflags -arch ppc"
4025 LDFLAGS="$save_ldflags -arch ppc"
4028 rm -rf conftest.dSYM
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4033 rm -rf conftest.dSYM
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035 conftest$ac_exeext conftest.$ac_ext
4036 elif test "x$MACARCH" = "xintel"; then
4037 CPPFLAGS="$CPPFLAGS -arch intel"
4038 LDFLAGS="$LDFLAGS -arch intel"
4039 elif test "x$MACARCH" = "xppc"; then
4040 CPPFLAGS="$CPPFLAGS -arch ppc"
4041 LDFLAGS="$LDFLAGS -arch ppc"
4044 if test "$enable_darwin" = "yes"; then
4045 MACOSX=yes
4046 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4047 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4048 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4049 if test "x$MACARCH" = "xboth"; then
4050 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4051 else
4052 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4055 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4065 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4066 inttypes.h stdint.h unistd.h
4068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4070 $as_echo_n "checking for $ac_header... " >&6; }
4071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4072 $as_echo_n "(cached) " >&6
4073 else
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 $ac_includes_default
4082 #include <$ac_header>
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4086 case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089 esac
4090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4091 $as_echo "$ac_try_echo") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 eval "$as_ac_Header=yes"
4103 else
4104 $as_echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 eval "$as_ac_Header=no"
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_res=`eval 'as_val=${'$as_ac_Header'}
4113 $as_echo "$as_val"'`
4114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4115 $as_echo "$ac_res" >&6; }
4116 as_val=`eval 'as_val=${'$as_ac_Header'}
4117 $as_echo "$as_val"'`
4118 if test "x$as_val" = x""yes; then
4119 cat >>confdefs.h <<_ACEOF
4120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4121 _ACEOF
4125 done
4128 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4129 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4130 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4131 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4132 $as_echo_n "(cached) " >&6
4134 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4135 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4136 else
4137 # Is the header compilable?
4138 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4139 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4140 cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h. */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 $ac_includes_default
4147 #include <Carbon/Carbon.h>
4148 _ACEOF
4149 rm -f conftest.$ac_objext
4150 if { (ac_try="$ac_compile"
4151 case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4156 $as_echo "$ac_try_echo") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } && {
4164 test -z "$ac_c_werror_flag" ||
4165 test ! -s conftest.err
4166 } && test -s conftest.$ac_objext; then
4167 ac_header_compiler=yes
4168 else
4169 $as_echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4172 ac_header_compiler=no
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4177 $as_echo "$ac_header_compiler" >&6; }
4179 # Is the header present?
4180 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4181 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 #include <Carbon/Carbon.h>
4189 _ACEOF
4190 if { (ac_try="$ac_cpp conftest.$ac_ext"
4191 case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194 esac
4195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4196 $as_echo "$ac_try_echo") >&5
4197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } >/dev/null && {
4204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4205 test ! -s conftest.err
4206 }; then
4207 ac_header_preproc=yes
4208 else
4209 $as_echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 ac_header_preproc=no
4215 rm -f conftest.err conftest.$ac_ext
4216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4217 $as_echo "$ac_header_preproc" >&6; }
4219 # So? What about this header?
4220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4221 yes:no: )
4222 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4223 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4224 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4225 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4226 ac_header_preproc=yes
4228 no:yes:* )
4229 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4230 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4231 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4232 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4233 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4234 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4235 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4236 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4237 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4238 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4239 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4240 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4243 esac
4244 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4245 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4246 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4252 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4255 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4256 CARBON=yes
4260 if test "x$CARBON" = "xyes"; then
4261 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
4262 with_x=no
4267 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4268 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4271 else
4272 { $as_echo "$as_me:$LINENO: result: no" >&5
4273 $as_echo "no" >&6; }
4279 if test "$cross_compiling" = no; then
4280 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4281 $as_echo_n "checking --with-local-dir argument... " >&6; }
4282 have_local_include=''
4283 have_local_lib=''
4285 # Check whether --with-local-dir was given.
4286 if test "${with_local_dir+set}" = set; then
4287 withval=$with_local_dir;
4288 local_dir="$withval"
4289 case "$withval" in
4290 */*) ;;
4292 # avoid adding local dir to LDFLAGS and CPPFLAGS
4293 have_local_dir=yes
4294 have_local_lib=yes
4296 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4297 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4298 { (exit 1); exit 1; }; } ;;
4299 esac
4300 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4301 $as_echo "$local_dir" >&6; }
4303 else
4305 local_dir=/usr/local
4306 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4307 $as_echo "Defaulting to $local_dir" >&6; }
4311 if test "$GCC" = yes -a "$local_dir" != no; then
4312 echo 'void f(){}' > conftest.c
4313 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4314 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4315 rm -f conftest.c conftest.o
4317 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4318 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4319 if test "$tt" = "$LDFLAGS"; then
4320 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4323 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4324 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4325 if test "$tt" = "$CPPFLAGS"; then
4326 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4331 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4332 $as_echo_n "checking --with-vim-name argument... " >&6; }
4334 # Check whether --with-vim-name was given.
4335 if test "${with_vim_name+set}" = set; then
4336 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4337 $as_echo "$VIMNAME" >&6; }
4338 else
4339 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4340 $as_echo "Defaulting to $VIMNAME" >&6; }
4344 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4345 $as_echo_n "checking --with-ex-name argument... " >&6; }
4347 # Check whether --with-ex-name was given.
4348 if test "${with_ex_name+set}" = set; then
4349 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4350 $as_echo "$EXNAME" >&6; }
4351 else
4352 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4353 $as_echo "Defaulting to ex" >&6; }
4357 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4358 $as_echo_n "checking --with-view-name argument... " >&6; }
4360 # Check whether --with-view-name was given.
4361 if test "${with_view_name+set}" = set; then
4362 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4363 $as_echo "$VIEWNAME" >&6; }
4364 else
4365 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4366 $as_echo "Defaulting to view" >&6; }
4371 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4372 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4374 # Check whether --with-global-runtime was given.
4375 if test "${with_global_runtime+set}" = set; then
4376 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4377 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4378 #define RUNTIME_GLOBAL "$withval"
4379 _ACEOF
4381 else
4382 { $as_echo "$as_me:$LINENO: result: no" >&5
4383 $as_echo "no" >&6; }
4387 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4388 $as_echo_n "checking --with-modified-by argument... " >&6; }
4390 # Check whether --with-modified-by was given.
4391 if test "${with_modified_by+set}" = set; then
4392 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4393 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4394 #define MODIFIED_BY "$withval"
4395 _ACEOF
4397 else
4398 { $as_echo "$as_me:$LINENO: result: no" >&5
4399 $as_echo "no" >&6; }
4403 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4404 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4413 main ()
4415 /* TryCompile function for CharSet.
4416 Treat any failure as ASCII for compatibility with existing art.
4417 Use compile-time rather than run-time tests for cross-compiler
4418 tolerance. */
4419 #if '0'!=240
4420 make an error "Character set is not EBCDIC"
4421 #endif
4423 return 0;
4425 _ACEOF
4426 rm -f conftest.$ac_objext
4427 if { (ac_try="$ac_compile"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4433 $as_echo "$ac_try_echo") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 # TryCompile action if true
4445 cf_cv_ebcdic=yes
4446 else
4447 $as_echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4450 # TryCompile action if false
4451 cf_cv_ebcdic=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 # end of TryCompile ])
4456 # end of CacheVal CvEbcdic
4457 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4458 $as_echo "$cf_cv_ebcdic" >&6; }
4459 case "$cf_cv_ebcdic" in #(vi
4460 yes) cat >>confdefs.h <<\_ACEOF
4461 #define EBCDIC 1
4462 _ACEOF
4464 line_break='"\\n"'
4466 *) line_break='"\\012"';;
4467 esac
4470 if test "$cf_cv_ebcdic" = "yes"; then
4471 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4472 $as_echo_n "checking for OS/390 Unix... " >&6; }
4473 case `uname` in
4474 OS/390) OS390Unix="yes";
4475 if test "$CC" = "cc"; then
4476 ccm="$_CC_CCMODE"
4477 ccn="CC"
4478 else
4479 if test "$CC" = "c89"; then
4480 ccm="$_CC_C89MODE"
4481 ccn="C89"
4482 else
4483 ccm=1
4486 if test "$ccm" != "1"; then
4487 echo ""
4488 echo "------------------------------------------"
4489 echo " On OS/390 Unix, the environment variable"
4490 echo " __CC_${ccn}MODE must be set to \"1\"!"
4491 echo " Do:"
4492 echo " export _CC_${ccn}MODE=1"
4493 echo " and then call configure again."
4494 echo "------------------------------------------"
4495 exit 1
4497 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4498 { $as_echo "$as_me:$LINENO: result: yes" >&5
4499 $as_echo "yes" >&6; }
4501 *) OS390Unix="no";
4502 { $as_echo "$as_me:$LINENO: result: no" >&5
4503 $as_echo "no" >&6; }
4505 esac
4508 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4509 $as_echo_n "checking --disable-selinux argument... " >&6; }
4510 # Check whether --enable-selinux was given.
4511 if test "${enable_selinux+set}" = set; then
4512 enableval=$enable_selinux;
4513 else
4514 enable_selinux="yes"
4517 if test "$enable_selinux" = "yes"; then
4518 { $as_echo "$as_me:$LINENO: result: no" >&5
4519 $as_echo "no" >&6; }
4520 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4521 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4522 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4523 $as_echo_n "(cached) " >&6
4524 else
4525 ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lselinux $LIBS"
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4534 /* Override any GCC internal prototype to avoid an error.
4535 Use char because int might match the return type of a GCC
4536 builtin and then its argument prototype would still apply. */
4537 #ifdef __cplusplus
4538 extern "C"
4539 #endif
4540 char is_selinux_enabled ();
4542 main ()
4544 return is_selinux_enabled ();
4546 return 0;
4548 _ACEOF
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (ac_try="$ac_link"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557 (eval "$ac_link") 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && {
4564 test -z "$ac_c_werror_flag" ||
4565 test ! -s conftest.err
4566 } && test -s conftest$ac_exeext && {
4567 test "$cross_compiling" = yes ||
4568 $as_test_x conftest$ac_exeext
4569 }; then
4570 ac_cv_lib_selinux_is_selinux_enabled=yes
4571 else
4572 $as_echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.$ac_ext >&5
4575 ac_cv_lib_selinux_is_selinux_enabled=no
4578 rm -rf conftest.dSYM
4579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4580 conftest$ac_exeext conftest.$ac_ext
4581 LIBS=$ac_check_lib_save_LIBS
4583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4584 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4585 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4586 LIBS="$LIBS -lselinux"
4587 cat >>confdefs.h <<\_ACEOF
4588 #define HAVE_SELINUX 1
4589 _ACEOF
4593 else
4594 { $as_echo "$as_me:$LINENO: result: yes" >&5
4595 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4600 $as_echo_n "checking --with-features argument... " >&6; }
4602 # Check whether --with-features was given.
4603 if test "${with_features+set}" = set; then
4604 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4605 $as_echo "$features" >&6; }
4606 else
4607 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4608 $as_echo "Defaulting to normal" >&6; }
4612 dovimdiff=""
4613 dogvimdiff=""
4614 case "$features" in
4615 tiny) cat >>confdefs.h <<\_ACEOF
4616 #define FEAT_TINY 1
4617 _ACEOF
4619 small) cat >>confdefs.h <<\_ACEOF
4620 #define FEAT_SMALL 1
4621 _ACEOF
4623 normal) cat >>confdefs.h <<\_ACEOF
4624 #define FEAT_NORMAL 1
4625 _ACEOF
4626 dovimdiff="installvimdiff";
4627 dogvimdiff="installgvimdiff" ;;
4628 big) cat >>confdefs.h <<\_ACEOF
4629 #define FEAT_BIG 1
4630 _ACEOF
4631 dovimdiff="installvimdiff";
4632 dogvimdiff="installgvimdiff" ;;
4633 huge) cat >>confdefs.h <<\_ACEOF
4634 #define FEAT_HUGE 1
4635 _ACEOF
4636 dovimdiff="installvimdiff";
4637 dogvimdiff="installgvimdiff" ;;
4638 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4639 $as_echo "Sorry, $features is not supported" >&6; } ;;
4640 esac
4645 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4646 $as_echo_n "checking --with-compiledby argument... " >&6; }
4648 # Check whether --with-compiledby was given.
4649 if test "${with_compiledby+set}" = set; then
4650 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4651 $as_echo "$withval" >&6; }
4652 else
4653 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4654 $as_echo "no" >&6; }
4659 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4660 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4661 # Check whether --enable-xsmp was given.
4662 if test "${enable_xsmp+set}" = set; then
4663 enableval=$enable_xsmp;
4664 else
4665 enable_xsmp="yes"
4669 if test "$enable_xsmp" = "yes"; then
4670 { $as_echo "$as_me:$LINENO: result: no" >&5
4671 $as_echo "no" >&6; }
4672 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4673 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4674 # Check whether --enable-xsmp-interact was given.
4675 if test "${enable_xsmp_interact+set}" = set; then
4676 enableval=$enable_xsmp_interact;
4677 else
4678 enable_xsmp_interact="yes"
4681 if test "$enable_xsmp_interact" = "yes"; then
4682 { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4684 cat >>confdefs.h <<\_ACEOF
4685 #define USE_XSMP_INTERACT 1
4686 _ACEOF
4688 else
4689 { $as_echo "$as_me:$LINENO: result: yes" >&5
4690 $as_echo "yes" >&6; }
4692 else
4693 { $as_echo "$as_me:$LINENO: result: yes" >&5
4694 $as_echo "yes" >&6; }
4697 { $as_echo "$as_me:$LINENO: checking --enable-luainterp argument" >&5
4698 $as_echo_n "checking --enable-luainterp argument... " >&6; }
4699 # Check whether --enable-luainterp was given.
4700 if test "${enable_luainterp+set}" = set; then
4701 enableval=$enable_luainterp;
4702 else
4703 enable_luainterp="no"
4706 { $as_echo "$as_me:$LINENO: result: $enable_luainterp" >&5
4707 $as_echo "$enable_luainterp" >&6; }
4709 if test "$enable_luainterp" = "yes"; then
4712 { $as_echo "$as_me:$LINENO: checking --with-lua-prefix argument" >&5
4713 $as_echo_n "checking --with-lua-prefix argument... " >&6; }
4715 # Check whether --with-lua_prefix was given.
4716 if test "${with_lua_prefix+set}" = set; then
4717 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $with_lua_prefix" >&5
4718 $as_echo "$with_lua_prefix" >&6; }
4719 else
4720 with_lua_prefix="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4721 $as_echo "\"no\"" >&6; }
4725 if test "X$with_lua_prefix" != "X"; then
4726 vi_cv_path_lua_pfx="$with_lua_prefix"
4727 else
4728 { $as_echo "$as_me:$LINENO: checking LUA_PREFIX environment var" >&5
4729 $as_echo_n "checking LUA_PREFIX environment var... " >&6; }
4730 if test "X$LUA_PREFIX" != "X"; then
4731 { $as_echo "$as_me:$LINENO: result: \"$LUA_PREFIX\"" >&5
4732 $as_echo "\"$LUA_PREFIX\"" >&6; }
4733 vi_cv_path_lua_pfx="$LUA_PREFIX"
4734 else
4735 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4736 $as_echo "\"not set\"" >&6; }
4740 LUA_INC=
4741 if test "X$vi_cv_path_lua_pfx" != "X"; then
4742 { $as_echo "$as_me:$LINENO: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5
4743 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; }
4744 if test -f $vi_cv_path_lua_pfx/include/lua.h; then
4745 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4746 $as_echo "\"yes\"" >&6; }
4747 else
4748 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4749 $as_echo "\"no\"" >&6; }
4750 # Extract the first word of "lua", so it can be a program name with args.
4751 set dummy lua; ac_word=$2
4752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_path_vi_cv_path_lua+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4756 else
4757 case $vi_cv_path_lua in
4758 [\\/]* | ?:[\\/]*)
4759 ac_cv_path_vi_cv_path_lua="$vi_cv_path_lua" # Let the user override the test with a path.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_path_vi_cv_path_lua="$as_dir/$ac_word$ac_exec_ext"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4773 done
4774 done
4775 IFS=$as_save_IFS
4778 esac
4780 vi_cv_path_lua=$ac_cv_path_vi_cv_path_lua
4781 if test -n "$vi_cv_path_lua"; then
4782 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_lua" >&5
4783 $as_echo "$vi_cv_path_lua" >&6; }
4784 else
4785 { $as_echo "$as_me:$LINENO: result: no" >&5
4786 $as_echo "no" >&6; }
4790 if test "X$vi_cv_path_lua" != "X"; then
4791 { $as_echo "$as_me:$LINENO: checking Lua version" >&5
4792 $as_echo_n "checking Lua version... " >&6; }
4793 if test "${vi_cv_version_lua+set}" = set; then
4794 $as_echo_n "(cached) " >&6
4795 else
4796 vi_cv_version_lua=`${vi_cv_path_lua} -e "print(_VERSION:sub(5,7))"`
4798 { $as_echo "$as_me:$LINENO: result: $vi_cv_version_lua" >&5
4799 $as_echo "$vi_cv_version_lua" >&6; }
4800 { $as_echo "$as_me:$LINENO: checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua" >&5
4801 $as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; }
4802 if test -f $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h; then
4803 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4804 $as_echo "\"yes\"" >&6; }
4805 LUA_INC=/lua$vi_cv_version_lua
4806 else
4807 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4808 $as_echo "\"no\"" >&6; }
4809 vi_cv_path_lua_pfx=
4815 if test "X$vi_cv_path_lua_pfx" != "X"; then
4816 if test "X$vi_cv_version_lua" != "X"; then
4817 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua"
4818 else
4819 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua"
4821 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}"
4822 LUA_SRC="if_lua.c"
4823 LUA_OBJ="objects/if_lua.o"
4824 LUA_PRO="if_lua.pro"
4825 cat >>confdefs.h <<\_ACEOF
4826 #define FEAT_LUA 1
4827 _ACEOF
4838 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4839 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4840 # Check whether --enable-mzschemeinterp was given.
4841 if test "${enable_mzschemeinterp+set}" = set; then
4842 enableval=$enable_mzschemeinterp;
4843 else
4844 enable_mzschemeinterp="no"
4847 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4848 $as_echo "$enable_mzschemeinterp" >&6; }
4850 if test "$enable_mzschemeinterp" = "yes"; then
4853 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4854 $as_echo_n "checking --with-plthome argument... " >&6; }
4856 # Check whether --with-plthome was given.
4857 if test "${with_plthome+set}" = set; then
4858 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4859 $as_echo "$with_plthome" >&6; }
4860 else
4861 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4862 $as_echo "\"no\"" >&6; }
4866 if test "X$with_plthome" != "X"; then
4867 vi_cv_path_mzscheme_pfx="$with_plthome"
4868 else
4869 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4870 $as_echo_n "checking PLTHOME environment var... " >&6; }
4871 if test "X$PLTHOME" != "X"; then
4872 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4873 $as_echo "\"$PLTHOME\"" >&6; }
4874 vi_cv_path_mzscheme_pfx="$PLTHOME"
4875 else
4876 { $as_echo "$as_me:$LINENO: result: not set" >&5
4877 $as_echo "not set" >&6; }
4878 # Extract the first word of "mzscheme", so it can be a program name with args.
4879 set dummy mzscheme; ac_word=$2
4880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4883 $as_echo_n "(cached) " >&6
4884 else
4885 case $vi_cv_path_mzscheme in
4886 [\\/]* | ?:[\\/]*)
4887 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4893 IFS=$as_save_IFS
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4899 break 2
4901 done
4902 done
4903 IFS=$as_save_IFS
4906 esac
4908 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4909 if test -n "$vi_cv_path_mzscheme"; then
4910 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4911 $as_echo "$vi_cv_path_mzscheme" >&6; }
4912 else
4913 { $as_echo "$as_me:$LINENO: result: no" >&5
4914 $as_echo "no" >&6; }
4919 if test "X$vi_cv_path_mzscheme" != "X"; then
4920 lsout=`ls -l $vi_cv_path_mzscheme`
4921 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4922 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4926 if test "X$vi_cv_path_mzscheme" != "X"; then
4927 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4928 $as_echo_n "checking MzScheme install prefix... " >&6; }
4929 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4930 $as_echo_n "(cached) " >&6
4931 else
4932 echo "(display (simplify-path \
4933 (build-path (call-with-values \
4934 (lambda () (split-path (find-system-path (quote exec-file)))) \
4935 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4936 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4937 sed -e 's+/$++'`
4939 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4940 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4941 rm -f mzdirs.scm
4946 SCHEME_INC=
4947 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4948 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4949 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4950 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4951 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4952 { $as_echo "$as_me:$LINENO: result: yes" >&5
4953 $as_echo "yes" >&6; }
4954 else
4955 { $as_echo "$as_me:$LINENO: result: no" >&5
4956 $as_echo "no" >&6; }
4957 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4958 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4959 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4960 { $as_echo "$as_me:$LINENO: result: yes" >&5
4961 $as_echo "yes" >&6; }
4962 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4963 else
4964 { $as_echo "$as_me:$LINENO: result: no" >&5
4965 $as_echo "no" >&6; }
4966 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4967 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4968 if test -f /usr/include/plt/scheme.h; then
4969 { $as_echo "$as_me:$LINENO: result: yes" >&5
4970 $as_echo "yes" >&6; }
4971 SCHEME_INC=/usr/include/plt
4972 else
4973 { $as_echo "$as_me:$LINENO: result: no" >&5
4974 $as_echo "no" >&6; }
4975 vi_cv_path_mzscheme_pfx=
4981 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4982 if test "x$MACOSX" = "xyes"; then
4983 MZSCHEME_LIBS="-framework PLT_MzScheme"
4984 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4985 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4986 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4987 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4988 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4989 else
4990 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4991 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4992 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4993 else
4994 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4996 if test "$GCC" = yes; then
4997 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4998 elif test "`(uname) 2>/dev/null`" = SunOS &&
4999 uname -r | grep '^5' >/dev/null; then
5000 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
5003 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
5004 SCHEME_COLLECTS=lib/plt/
5006 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
5007 MZSCHEME_EXTRA="mzscheme_base.c"
5008 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
5009 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
5011 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
5012 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
5013 MZSCHEME_SRC="if_mzsch.c"
5014 MZSCHEME_OBJ="objects/if_mzsch.o"
5015 MZSCHEME_PRO="if_mzsch.pro"
5016 cat >>confdefs.h <<\_ACEOF
5017 #define FEAT_MZSCHEME 1
5018 _ACEOF
5031 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
5032 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
5033 # Check whether --enable-perlinterp was given.
5034 if test "${enable_perlinterp+set}" = set; then
5035 enableval=$enable_perlinterp;
5036 else
5037 enable_perlinterp="no"
5040 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
5041 $as_echo "$enable_perlinterp" >&6; }
5042 if test "$enable_perlinterp" = "yes"; then
5044 # Extract the first word of "perl", so it can be a program name with args.
5045 set dummy perl; ac_word=$2
5046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5050 else
5051 case $vi_cv_path_perl in
5052 [\\/]* | ?:[\\/]*)
5053 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5072 esac
5074 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
5075 if test -n "$vi_cv_path_perl"; then
5076 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
5077 $as_echo "$vi_cv_path_perl" >&6; }
5078 else
5079 { $as_echo "$as_me:$LINENO: result: no" >&5
5080 $as_echo "no" >&6; }
5084 if test "X$vi_cv_path_perl" != "X"; then
5085 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
5086 $as_echo_n "checking Perl version... " >&6; }
5087 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5088 eval `$vi_cv_path_perl -V:usethreads`
5089 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5090 badthreads=no
5091 else
5092 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5093 eval `$vi_cv_path_perl -V:use5005threads`
5094 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5095 badthreads=no
5096 else
5097 badthreads=yes
5098 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5099 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5101 else
5102 badthreads=yes
5103 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5104 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5107 if test $badthreads = no; then
5108 { $as_echo "$as_me:$LINENO: result: OK" >&5
5109 $as_echo "OK" >&6; }
5110 eval `$vi_cv_path_perl -V:shrpenv`
5111 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5112 shrpenv=""
5114 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5116 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5117 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
5118 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5119 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5120 -e 's/-bE:perl.exp//' -e 's/-lc //'`
5121 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5122 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5124 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
5125 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5126 cflags_save=$CFLAGS
5127 libs_save=$LIBS
5128 ldflags_save=$LDFLAGS
5129 CFLAGS="$CFLAGS $perlcppflags"
5130 LIBS="$LIBS $perllibs"
5131 LDFLAGS="$perlldflags $LDFLAGS"
5132 cat >conftest.$ac_ext <<_ACEOF
5133 /* confdefs.h. */
5134 _ACEOF
5135 cat confdefs.h >>conftest.$ac_ext
5136 cat >>conftest.$ac_ext <<_ACEOF
5137 /* end confdefs.h. */
5140 main ()
5144 return 0;
5146 _ACEOF
5147 rm -f conftest.$ac_objext conftest$ac_exeext
5148 if { (ac_try="$ac_link"
5149 case "(($ac_try" in
5150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5151 *) ac_try_echo=$ac_try;;
5152 esac
5153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5154 $as_echo "$ac_try_echo") >&5
5155 (eval "$ac_link") 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } && {
5162 test -z "$ac_c_werror_flag" ||
5163 test ! -s conftest.err
5164 } && test -s conftest$ac_exeext && {
5165 test "$cross_compiling" = yes ||
5166 $as_test_x conftest$ac_exeext
5167 }; then
5168 { $as_echo "$as_me:$LINENO: result: yes" >&5
5169 $as_echo "yes" >&6; }; perl_ok=yes
5170 else
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5175 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5178 rm -rf conftest.dSYM
5179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5180 conftest$ac_exeext conftest.$ac_ext
5181 CFLAGS=$cflags_save
5182 LIBS=$libs_save
5183 LDFLAGS=$ldflags_save
5184 if test $perl_ok = yes; then
5185 if test "X$perlcppflags" != "X"; then
5186 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5188 if test "X$perlldflags" != "X"; then
5189 LDFLAGS="$perlldflags $LDFLAGS"
5191 PERL_LIBS=$perllibs
5192 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5193 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5194 PERL_PRO="if_perl.pro if_perlsfio.pro"
5195 cat >>confdefs.h <<\_ACEOF
5196 #define FEAT_PERL 1
5197 _ACEOF
5201 else
5202 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5203 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5207 if test "x$MACOSX" = "xyes"; then
5208 dir=/System/Library/Perl
5209 darwindir=$dir/darwin
5210 if test -d $darwindir; then
5211 PERL=/usr/bin/perl
5212 else
5213 dir=/System/Library/Perl/5.8.1
5214 darwindir=$dir/darwin-thread-multi-2level
5215 if test -d $darwindir; then
5216 PERL=/usr/bin/perl
5219 if test -n "$PERL"; then
5220 PERL_DIR="$dir"
5221 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5222 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5223 PERL_LIBS="-L$darwindir/CORE -lperl"
5234 { $as_echo "$as_me:$LINENO: checking --enable-eclinterp argument" >&5
5235 $as_echo_n "checking --enable-eclinterp argument... " >&6; }
5236 # Check whether --enable-eclinterp was given.
5237 if test "${enable_eclinterp+set}" = set; then
5238 enableval=$enable_eclinterp;
5239 else
5240 enable_eclinterp="no"
5243 { $as_echo "$as_me:$LINENO: result: $enable_eclinterp" >&5
5244 $as_echo "$enable_eclinterp" >&6; }
5245 if test "$enable_eclinterp" = "yes"; then
5246 # Extract the first word of "ecl-config", so it can be a program name with args.
5247 set dummy ecl-config; ac_word=$2
5248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_path_vi_cv_path_ecl_config+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 case $vi_cv_path_ecl_config in
5254 [\\/]* | ?:[\\/]*)
5255 ac_cv_path_vi_cv_path_ecl_config="$vi_cv_path_ecl_config" # Let the user override the test with a path.
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_vi_cv_path_ecl_config="$as_dir/$ac_word$ac_exec_ext"
5266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5269 done
5270 done
5271 IFS=$as_save_IFS
5274 esac
5276 vi_cv_path_ecl_config=$ac_cv_path_vi_cv_path_ecl_config
5277 if test -n "$vi_cv_path_ecl_config"; then
5278 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ecl_config" >&5
5279 $as_echo "$vi_cv_path_ecl_config" >&6; }
5280 else
5281 { $as_echo "$as_me:$LINENO: result: no" >&5
5282 $as_echo "no" >&6; }
5286 if test "X$vi_cv_path_ecl_config" != "X"; then
5288 if test "${vi_cv_path_ecl_plibs+set}" = set; then
5289 $as_echo_n "(cached) " >&6
5290 else
5292 vi_cv_path_ecl_plibs=`ecl-config --libs`
5297 ECL_LIBS="${vi_cv_path_ecl_plibs}"
5298 if test "${vi_cv_path_ecl_cflags+set}" = set; then
5299 $as_echo_n "(cached) " >&6
5300 else
5302 vi_cv_path_ecl_cflags=`ecl-config --cflags`
5306 ECL_CFLAGS="${vi_cv_path_ecl_cflags}"
5308 ECL_SRC="if_ecl.c"
5309 ECL_OBJ="objects/if_ecl.o"
5311 { $as_echo "$as_me:$LINENO: checking if compile and link flags for ECL are sane" >&5
5312 $as_echo_n "checking if compile and link flags for ECL are sane... " >&6; }
5313 cflags_save=$CFLAGS
5314 libs_save=$LIBS
5315 CFLAGS="$CFLAGS $ECL_CFLAGS"
5316 LIBS="$LIBS $ECL_LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5325 main ()
5329 return 0;
5331 _ACEOF
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (ac_try="$ac_link"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5339 $as_echo "$ac_try_echo") >&5
5340 (eval "$ac_link") 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } && {
5347 test -z "$ac_c_werror_flag" ||
5348 test ! -s conftest.err
5349 } && test -s conftest$ac_exeext && {
5350 test "$cross_compiling" = yes ||
5351 $as_test_x conftest$ac_exeext
5352 }; then
5353 { $as_echo "$as_me:$LINENO: result: yes" >&5
5354 $as_echo "yes" >&6; }; ecl_ok=yes
5355 else
5356 $as_echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 { $as_echo "$as_me:$LINENO: result: no: ECL DISABLED" >&5
5360 $as_echo "no: ECL DISABLED" >&6; }; ecl_ok=no
5363 rm -rf conftest.dSYM
5364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5365 conftest$ac_exeext conftest.$ac_ext
5366 CFLAGS=$cflags_save
5367 LIBS=$libs_save
5368 if test $ecl_ok = yes; then
5369 cat >>confdefs.h <<\_ACEOF
5370 #define FEAT_ECL 1
5371 _ACEOF
5373 else
5374 ECL_SRC=
5375 ECL_OBJ=
5376 ECL_LIBS=
5377 ECL_CFLAGS=
5386 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5387 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5388 # Check whether --enable-pythoninterp was given.
5389 if test "${enable_pythoninterp+set}" = set; then
5390 enableval=$enable_pythoninterp;
5391 else
5392 enable_pythoninterp="no"
5395 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5396 $as_echo "$enable_pythoninterp" >&6; }
5397 if test "$enable_pythoninterp" = "yes"; then
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5403 $as_echo_n "(cached) " >&6
5404 else
5405 case $vi_cv_path_python in
5406 [\\/]* | ?:[\\/]*)
5407 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5421 done
5422 done
5423 IFS=$as_save_IFS
5426 esac
5428 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5429 if test -n "$vi_cv_path_python"; then
5430 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5431 $as_echo "$vi_cv_path_python" >&6; }
5432 else
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434 $as_echo "no" >&6; }
5438 if test "X$vi_cv_path_python" != "X"; then
5440 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5441 $as_echo_n "checking Python version... " >&6; }
5442 if test "${vi_cv_var_python_version+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5444 else
5445 vi_cv_var_python_version=`
5446 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5449 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5450 $as_echo "$vi_cv_var_python_version" >&6; }
5452 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5453 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5454 if ${vi_cv_path_python} -c \
5455 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5456 then
5457 { $as_echo "$as_me:$LINENO: result: yep" >&5
5458 $as_echo "yep" >&6; }
5460 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5461 $as_echo_n "checking Python's install prefix... " >&6; }
5462 if test "${vi_cv_path_python_pfx+set}" = set; then
5463 $as_echo_n "(cached) " >&6
5464 else
5465 vi_cv_path_python_pfx=`
5466 ${vi_cv_path_python} -c \
5467 "import sys; print sys.prefix"`
5469 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5470 $as_echo "$vi_cv_path_python_pfx" >&6; }
5472 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5473 $as_echo_n "checking Python's execution prefix... " >&6; }
5474 if test "${vi_cv_path_python_epfx+set}" = set; then
5475 $as_echo_n "(cached) " >&6
5476 else
5477 vi_cv_path_python_epfx=`
5478 ${vi_cv_path_python} -c \
5479 "import sys; print sys.exec_prefix"`
5481 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5482 $as_echo "$vi_cv_path_python_epfx" >&6; }
5485 if test "${vi_cv_path_pythonpath+set}" = set; then
5486 $as_echo_n "(cached) " >&6
5487 else
5488 vi_cv_path_pythonpath=`
5489 unset PYTHONPATH;
5490 ${vi_cv_path_python} -c \
5491 "import sys, string; print string.join(sys.path,':')"`
5497 # Check whether --with-python-config-dir was given.
5498 if test "${with_python_config_dir+set}" = set; then
5499 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5503 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5504 $as_echo_n "checking Python's configuration directory... " >&6; }
5505 if test "${vi_cv_path_python_conf+set}" = set; then
5506 $as_echo_n "(cached) " >&6
5507 else
5509 vi_cv_path_python_conf=
5510 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5511 for subdir in lib64 lib share; do
5512 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5513 if test -d "$d" && test -f "$d/config.c"; then
5514 vi_cv_path_python_conf="$d"
5516 done
5517 done
5520 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5521 $as_echo "$vi_cv_path_python_conf" >&6; }
5523 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5525 if test "X$PYTHON_CONFDIR" = "X"; then
5526 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5527 $as_echo "can't find it!" >&6; }
5528 else
5530 if test "${vi_cv_path_python_plibs+set}" = set; then
5531 $as_echo_n "(cached) " >&6
5532 else
5534 pwd=`pwd`
5535 tmp_mkf="$pwd/config-PyMake$$"
5536 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5538 @echo "python_MODLIBS='$(MODLIBS)'"
5539 @echo "python_LIBS='$(LIBS)'"
5540 @echo "python_SYSLIBS='$(SYSLIBS)'"
5541 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5543 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5544 rm -f -- "${tmp_mkf}"
5545 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5546 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5547 vi_cv_path_python_plibs="-framework Python"
5548 else
5549 if test "${vi_cv_var_python_version}" = "1.4"; then
5550 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5551 else
5552 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5554 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5555 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5561 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5562 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5563 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5564 else
5565 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}"
5567 PYTHON_SRC="if_python.c"
5568 if test "x$MACOSX" = "xyes"; then
5569 PYTHON_OBJ="objects/if_python.o"
5570 else
5571 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5573 if test "${vi_cv_var_python_version}" = "1.4"; then
5574 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5576 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5578 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5579 $as_echo_n "checking if -pthread should be used... " >&6; }
5580 threadsafe_flag=
5581 thread_lib=
5582 if test "`(uname) 2>/dev/null`" != Darwin; then
5583 test "$GCC" = yes && threadsafe_flag="-pthread"
5584 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5585 threadsafe_flag="-D_THREAD_SAFE"
5586 thread_lib="-pthread"
5589 libs_save_old=$LIBS
5590 if test -n "$threadsafe_flag"; then
5591 cflags_save=$CFLAGS
5592 CFLAGS="$CFLAGS $threadsafe_flag"
5593 LIBS="$LIBS $thread_lib"
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5602 main ()
5606 return 0;
5608 _ACEOF
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (ac_try="$ac_link"
5611 case "(($ac_try" in
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5614 esac
5615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616 $as_echo "$ac_try_echo") >&5
5617 (eval "$ac_link") 2>conftest.er1
5618 ac_status=$?
5619 grep -v '^ *+' conftest.er1 >conftest.err
5620 rm -f conftest.er1
5621 cat conftest.err >&5
5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } && {
5624 test -z "$ac_c_werror_flag" ||
5625 test ! -s conftest.err
5626 } && test -s conftest$ac_exeext && {
5627 test "$cross_compiling" = yes ||
5628 $as_test_x conftest$ac_exeext
5629 }; then
5630 { $as_echo "$as_me:$LINENO: result: yes" >&5
5631 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5632 else
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5636 { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }; LIBS=$libs_save_old
5641 rm -rf conftest.dSYM
5642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5643 conftest$ac_exeext conftest.$ac_ext
5644 CFLAGS=$cflags_save
5645 else
5646 { $as_echo "$as_me:$LINENO: result: no" >&5
5647 $as_echo "no" >&6; }
5650 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5651 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5652 cflags_save=$CFLAGS
5653 libs_save=$LIBS
5654 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5655 LIBS="$LIBS $PYTHON_LIBS"
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5664 main ()
5668 return 0;
5670 _ACEOF
5671 rm -f conftest.$ac_objext conftest$ac_exeext
5672 if { (ac_try="$ac_link"
5673 case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676 esac
5677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5678 $as_echo "$ac_try_echo") >&5
5679 (eval "$ac_link") 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_c_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest$ac_exeext && {
5689 test "$cross_compiling" = yes ||
5690 $as_test_x conftest$ac_exeext
5691 }; then
5692 { $as_echo "$as_me:$LINENO: result: yes" >&5
5693 $as_echo "yes" >&6; }; python_ok=yes
5694 else
5695 $as_echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5699 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5702 rm -rf conftest.dSYM
5703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5704 conftest$ac_exeext conftest.$ac_ext
5705 CFLAGS=$cflags_save
5706 LIBS=$libs_save
5707 if test $python_ok = yes; then
5708 cat >>confdefs.h <<\_ACEOF
5709 #define FEAT_PYTHON 1
5710 _ACEOF
5712 else
5713 LIBS=$libs_save_old
5714 PYTHON_SRC=
5715 PYTHON_OBJ=
5716 PYTHON_LIBS=
5717 PYTHON_CFLAGS=
5721 else
5722 { $as_echo "$as_me:$LINENO: result: too old" >&5
5723 $as_echo "too old" >&6; }
5734 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5735 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5736 # Check whether --enable-tclinterp was given.
5737 if test "${enable_tclinterp+set}" = set; then
5738 enableval=$enable_tclinterp;
5739 else
5740 enable_tclinterp="no"
5743 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5744 $as_echo "$enable_tclinterp" >&6; }
5746 if test "$enable_tclinterp" = "yes"; then
5748 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5749 $as_echo_n "checking --with-tclsh argument... " >&6; }
5751 # Check whether --with-tclsh was given.
5752 if test "${with_tclsh+set}" = set; then
5753 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5754 $as_echo "$tclsh_name" >&6; }
5755 else
5756 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5757 $as_echo "no" >&6; }
5760 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5761 set dummy $tclsh_name; ac_word=$2
5762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5765 $as_echo_n "(cached) " >&6
5766 else
5767 case $vi_cv_path_tcl in
5768 [\\/]* | ?:[\\/]*)
5769 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5783 done
5784 done
5785 IFS=$as_save_IFS
5788 esac
5790 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5791 if test -n "$vi_cv_path_tcl"; then
5792 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5793 $as_echo "$vi_cv_path_tcl" >&6; }
5794 else
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5802 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5803 tclsh_name="tclsh8.4"
5804 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5805 set dummy $tclsh_name; ac_word=$2
5806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5809 $as_echo_n "(cached) " >&6
5810 else
5811 case $vi_cv_path_tcl in
5812 [\\/]* | ?:[\\/]*)
5813 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5824 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5832 esac
5834 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5835 if test -n "$vi_cv_path_tcl"; then
5836 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5837 $as_echo "$vi_cv_path_tcl" >&6; }
5838 else
5839 { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5846 tclsh_name="tclsh8.2"
5847 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5848 set dummy $tclsh_name; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5853 else
5854 case $vi_cv_path_tcl in
5855 [\\/]* | ?:[\\/]*)
5856 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5872 IFS=$as_save_IFS
5875 esac
5877 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5878 if test -n "$vi_cv_path_tcl"; then
5879 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5880 $as_echo "$vi_cv_path_tcl" >&6; }
5881 else
5882 { $as_echo "$as_me:$LINENO: result: no" >&5
5883 $as_echo "no" >&6; }
5888 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5889 tclsh_name="tclsh8.0"
5890 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5891 set dummy $tclsh_name; ac_word=$2
5892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5895 $as_echo_n "(cached) " >&6
5896 else
5897 case $vi_cv_path_tcl in
5898 [\\/]* | ?:[\\/]*)
5899 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5913 done
5914 done
5915 IFS=$as_save_IFS
5918 esac
5920 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5921 if test -n "$vi_cv_path_tcl"; then
5922 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5923 $as_echo "$vi_cv_path_tcl" >&6; }
5924 else
5925 { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5931 if test "X$vi_cv_path_tcl" = "X"; then
5932 tclsh_name="tclsh"
5933 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5934 set dummy $tclsh_name; ac_word=$2
5935 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5938 $as_echo_n "(cached) " >&6
5939 else
5940 case $vi_cv_path_tcl in
5941 [\\/]* | ?:[\\/]*)
5942 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5956 done
5957 done
5958 IFS=$as_save_IFS
5961 esac
5963 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5964 if test -n "$vi_cv_path_tcl"; then
5965 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5966 $as_echo "$vi_cv_path_tcl" >&6; }
5967 else
5968 { $as_echo "$as_me:$LINENO: result: no" >&5
5969 $as_echo "no" >&6; }
5974 if test "X$vi_cv_path_tcl" != "X"; then
5975 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5976 $as_echo_n "checking Tcl version... " >&6; }
5977 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5978 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5979 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5980 $as_echo "$tclver - OK" >&6; };
5981 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 -`
5983 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5984 $as_echo_n "checking for location of Tcl include... " >&6; }
5985 if test "x$MACOSX" != "xyes"; then
5986 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5987 else
5988 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5990 TCL_INC=
5991 for try in $tclinc; do
5992 if test -f "$try/tcl.h"; then
5993 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5994 $as_echo "$try/tcl.h" >&6; }
5995 TCL_INC=$try
5996 break
5998 done
5999 if test -z "$TCL_INC"; then
6000 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
6001 $as_echo "<not found>" >&6; }
6002 SKIP_TCL=YES
6004 if test -z "$SKIP_TCL"; then
6005 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
6006 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
6007 if test "x$MACOSX" != "xyes"; then
6008 tclcnf=`echo $tclinc | sed s/include/lib/g`
6009 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
6010 else
6011 tclcnf="/System/Library/Frameworks/Tcl.framework"
6013 for try in $tclcnf; do
6014 if test -f $try/tclConfig.sh; then
6015 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
6016 $as_echo "$try/tclConfig.sh" >&6; }
6017 . $try/tclConfig.sh
6018 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
6019 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'`
6020 break
6022 done
6023 if test -z "$TCL_LIBS"; then
6024 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
6025 $as_echo "<not found>" >&6; }
6026 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
6027 $as_echo_n "checking for Tcl library by myself... " >&6; }
6028 tcllib=`echo $tclinc | sed s/include/lib/g`
6029 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
6030 for ext in .so .a ; do
6031 for ver in "" $tclver ; do
6032 for try in $tcllib ; do
6033 trylib=tcl$ver$ext
6034 if test -f $try/lib$trylib ; then
6035 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
6036 $as_echo "$try/lib$trylib" >&6; }
6037 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
6038 if test "`(uname) 2>/dev/null`" = SunOS &&
6039 uname -r | grep '^5' >/dev/null; then
6040 TCL_LIBS="$TCL_LIBS -R $try"
6042 break 3
6044 done
6045 done
6046 done
6047 if test -z "$TCL_LIBS"; then
6048 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
6049 $as_echo "<not found>" >&6; }
6050 SKIP_TCL=YES
6053 if test -z "$SKIP_TCL"; then
6054 cat >>confdefs.h <<\_ACEOF
6055 #define FEAT_TCL 1
6056 _ACEOF
6058 TCL_SRC=if_tcl.c
6059 TCL_OBJ=objects/if_tcl.o
6060 TCL_PRO=if_tcl.pro
6061 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
6064 else
6065 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
6066 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
6076 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
6077 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
6078 # Check whether --enable-rubyinterp was given.
6079 if test "${enable_rubyinterp+set}" = set; then
6080 enableval=$enable_rubyinterp;
6081 else
6082 enable_rubyinterp="no"
6085 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
6086 $as_echo "$enable_rubyinterp" >&6; }
6087 if test "$enable_rubyinterp" = "yes"; then
6088 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
6089 $as_echo_n "checking --with-ruby-command argument... " >&6; }
6091 # Check whether --with-ruby-command was given.
6092 if test "${with_ruby_command+set}" = set; then
6093 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
6094 $as_echo "$RUBY_CMD" >&6; }
6095 else
6096 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
6097 $as_echo "defaulting to $RUBY_CMD" >&6; }
6101 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
6102 set dummy $RUBY_CMD; ac_word=$2
6103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 $as_echo_n "checking for $ac_word... " >&6; }
6105 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
6106 $as_echo_n "(cached) " >&6
6107 else
6108 case $vi_cv_path_ruby in
6109 [\\/]* | ?:[\\/]*)
6110 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6129 esac
6131 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
6132 if test -n "$vi_cv_path_ruby"; then
6133 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
6134 $as_echo "$vi_cv_path_ruby" >&6; }
6135 else
6136 { $as_echo "$as_me:$LINENO: result: no" >&5
6137 $as_echo "no" >&6; }
6141 if test "X$vi_cv_path_ruby" != "X"; then
6142 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
6143 $as_echo_n "checking Ruby version... " >&6; }
6144 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
6145 { $as_echo "$as_me:$LINENO: result: OK" >&5
6146 $as_echo "OK" >&6; }
6147 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
6148 $as_echo_n "checking Ruby header files... " >&6; }
6149 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
6150 if test "X$rubyhdrdir" != "X"; then
6151 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
6152 $as_echo "$rubyhdrdir" >&6; }
6153 RUBY_CFLAGS="-I$rubyhdrdir"
6154 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
6155 if test -d "$rubyhdrdir/$rubyarch"; then
6156 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
6158 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
6159 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
6160 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
6161 if test "X$rubylibs" != "X"; then
6162 RUBY_LIBS="$rubylibs"
6164 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
6165 if test -f "$rubyhdrdir/$librubyarg"; then
6166 librubyarg="$rubyhdrdir/$librubyarg"
6167 else
6168 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
6169 if test -f "$rubylibdir/$librubyarg"; then
6170 librubyarg="$rubylibdir/$librubyarg"
6171 elif test "$librubyarg" = "libruby.a"; then
6172 librubyarg="-lruby"
6173 else
6174 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
6178 if test "X$librubyarg" != "X"; then
6179 RUBY_LIBS="$librubyarg $RUBY_LIBS"
6181 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
6182 if test "X$rubyldflags" != "X"; then
6183 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
6184 if test "X$rubyldflags" != "X"; then
6185 LDFLAGS="$rubyldflags $LDFLAGS"
6188 RUBY_SRC="if_ruby.c"
6189 RUBY_OBJ="objects/if_ruby.o"
6190 RUBY_PRO="if_ruby.pro"
6191 cat >>confdefs.h <<\_ACEOF
6192 #define FEAT_RUBY 1
6193 _ACEOF
6195 else
6196 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
6197 $as_echo "not found; disabling Ruby" >&6; }
6199 else
6200 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
6201 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
6211 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
6212 $as_echo_n "checking --enable-cscope argument... " >&6; }
6213 # Check whether --enable-cscope was given.
6214 if test "${enable_cscope+set}" = set; then
6215 enableval=$enable_cscope;
6216 else
6217 enable_cscope="no"
6220 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
6221 $as_echo "$enable_cscope" >&6; }
6222 if test "$enable_cscope" = "yes"; then
6223 cat >>confdefs.h <<\_ACEOF
6224 #define FEAT_CSCOPE 1
6225 _ACEOF
6229 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
6230 $as_echo_n "checking --enable-workshop argument... " >&6; }
6231 # Check whether --enable-workshop was given.
6232 if test "${enable_workshop+set}" = set; then
6233 enableval=$enable_workshop;
6234 else
6235 enable_workshop="no"
6238 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
6239 $as_echo "$enable_workshop" >&6; }
6240 if test "$enable_workshop" = "yes"; then
6241 cat >>confdefs.h <<\_ACEOF
6242 #define FEAT_SUN_WORKSHOP 1
6243 _ACEOF
6245 WORKSHOP_SRC="workshop.c integration.c"
6247 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
6249 if test "${enable_gui-xxx}" = xxx; then
6250 enable_gui=motif
6254 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
6255 $as_echo_n "checking --disable-netbeans argument... " >&6; }
6256 # Check whether --enable-netbeans was given.
6257 if test "${enable_netbeans+set}" = set; then
6258 enableval=$enable_netbeans;
6259 else
6260 enable_netbeans="yes"
6263 if test "$enable_netbeans" = "yes"; then
6264 { $as_echo "$as_me:$LINENO: result: no" >&5
6265 $as_echo "no" >&6; }
6267 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6268 $as_echo_n "checking for socket in -lsocket... " >&6; }
6269 if test "${ac_cv_lib_socket_socket+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6271 else
6272 ac_check_lib_save_LIBS=$LIBS
6273 LIBS="-lsocket $LIBS"
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6281 /* Override any GCC internal prototype to avoid an error.
6282 Use char because int might match the return type of a GCC
6283 builtin and then its argument prototype would still apply. */
6284 #ifdef __cplusplus
6285 extern "C"
6286 #endif
6287 char socket ();
6289 main ()
6291 return socket ();
6293 return 0;
6295 _ACEOF
6296 rm -f conftest.$ac_objext conftest$ac_exeext
6297 if { (ac_try="$ac_link"
6298 case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301 esac
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304 (eval "$ac_link") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest$ac_exeext && {
6314 test "$cross_compiling" = yes ||
6315 $as_test_x conftest$ac_exeext
6316 }; then
6317 ac_cv_lib_socket_socket=yes
6318 else
6319 $as_echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6322 ac_cv_lib_socket_socket=no
6325 rm -rf conftest.dSYM
6326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6327 conftest$ac_exeext conftest.$ac_ext
6328 LIBS=$ac_check_lib_save_LIBS
6330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6331 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6332 if test "x$ac_cv_lib_socket_socket" = x""yes; then
6333 cat >>confdefs.h <<_ACEOF
6334 #define HAVE_LIBSOCKET 1
6335 _ACEOF
6337 LIBS="-lsocket $LIBS"
6342 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6343 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6344 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6346 else
6347 ac_check_lib_save_LIBS=$LIBS
6348 LIBS="-lnsl $LIBS"
6349 cat >conftest.$ac_ext <<_ACEOF
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6356 /* Override any GCC internal prototype to avoid an error.
6357 Use char because int might match the return type of a GCC
6358 builtin and then its argument prototype would still apply. */
6359 #ifdef __cplusplus
6360 extern "C"
6361 #endif
6362 char gethostbyname ();
6364 main ()
6366 return gethostbyname ();
6368 return 0;
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (ac_try="$ac_link"
6373 case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6378 $as_echo "$ac_try_echo") >&5
6379 (eval "$ac_link") 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && {
6386 test -z "$ac_c_werror_flag" ||
6387 test ! -s conftest.err
6388 } && test -s conftest$ac_exeext && {
6389 test "$cross_compiling" = yes ||
6390 $as_test_x conftest$ac_exeext
6391 }; then
6392 ac_cv_lib_nsl_gethostbyname=yes
6393 else
6394 $as_echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_cv_lib_nsl_gethostbyname=no
6400 rm -rf conftest.dSYM
6401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6402 conftest$ac_exeext conftest.$ac_ext
6403 LIBS=$ac_check_lib_save_LIBS
6405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6406 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6407 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6408 cat >>confdefs.h <<_ACEOF
6409 #define HAVE_LIBNSL 1
6410 _ACEOF
6412 LIBS="-lnsl $LIBS"
6416 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6417 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h. */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6425 #include <stdio.h>
6426 #include <stdlib.h>
6427 #include <stdarg.h>
6428 #include <fcntl.h>
6429 #include <netdb.h>
6430 #include <netinet/in.h>
6431 #include <errno.h>
6432 #include <sys/types.h>
6433 #include <sys/socket.h>
6434 /* Check bitfields */
6435 struct nbbuf {
6436 unsigned int initDone:1;
6437 ushort signmaplen;
6441 main ()
6444 /* Check creating a socket. */
6445 struct sockaddr_in server;
6446 (void)socket(AF_INET, SOCK_STREAM, 0);
6447 (void)htons(100);
6448 (void)gethostbyname("microsoft.com");
6449 if (errno == ECONNREFUSED)
6450 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6453 return 0;
6455 _ACEOF
6456 rm -f conftest.$ac_objext conftest$ac_exeext
6457 if { (ac_try="$ac_link"
6458 case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461 esac
6462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6463 $as_echo "$ac_try_echo") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext && {
6474 test "$cross_compiling" = yes ||
6475 $as_test_x conftest$ac_exeext
6476 }; then
6477 { $as_echo "$as_me:$LINENO: result: yes" >&5
6478 $as_echo "yes" >&6; }
6479 else
6480 $as_echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6483 { $as_echo "$as_me:$LINENO: result: no" >&5
6484 $as_echo "no" >&6; }; enable_netbeans="no"
6487 rm -rf conftest.dSYM
6488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6489 conftest$ac_exeext conftest.$ac_ext
6490 else
6491 { $as_echo "$as_me:$LINENO: result: yes" >&5
6492 $as_echo "yes" >&6; }
6494 if test "$enable_netbeans" = "yes"; then
6495 cat >>confdefs.h <<\_ACEOF
6496 #define FEAT_NETBEANS_INTG 1
6497 _ACEOF
6499 NETBEANS_SRC="netbeans.c"
6501 NETBEANS_OBJ="objects/netbeans.o"
6505 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6506 $as_echo_n "checking --enable-sniff argument... " >&6; }
6507 # Check whether --enable-sniff was given.
6508 if test "${enable_sniff+set}" = set; then
6509 enableval=$enable_sniff;
6510 else
6511 enable_sniff="no"
6514 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6515 $as_echo "$enable_sniff" >&6; }
6516 if test "$enable_sniff" = "yes"; then
6517 cat >>confdefs.h <<\_ACEOF
6518 #define FEAT_SNIFF 1
6519 _ACEOF
6521 SNIFF_SRC="if_sniff.c"
6523 SNIFF_OBJ="objects/if_sniff.o"
6527 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6528 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6529 # Check whether --enable-multibyte was given.
6530 if test "${enable_multibyte+set}" = set; then
6531 enableval=$enable_multibyte;
6532 else
6533 enable_multibyte="no"
6536 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6537 $as_echo "$enable_multibyte" >&6; }
6538 if test "$enable_multibyte" = "yes"; then
6539 cat >>confdefs.h <<\_ACEOF
6540 #define FEAT_MBYTE 1
6541 _ACEOF
6545 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6546 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6547 # Check whether --enable-hangulinput was given.
6548 if test "${enable_hangulinput+set}" = set; then
6549 enableval=$enable_hangulinput;
6550 else
6551 enable_hangulinput="no"
6554 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6555 $as_echo "$enable_hangulinput" >&6; }
6557 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6558 $as_echo_n "checking --enable-xim argument... " >&6; }
6559 # Check whether --enable-xim was given.
6560 if test "${enable_xim+set}" = set; then
6561 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6562 $as_echo "$enable_xim" >&6; }
6563 else
6564 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6565 $as_echo "defaulting to auto" >&6; }
6569 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6570 $as_echo_n "checking --enable-fontset argument... " >&6; }
6571 # Check whether --enable-fontset was given.
6572 if test "${enable_fontset+set}" = set; then
6573 enableval=$enable_fontset;
6574 else
6575 enable_fontset="no"
6578 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6579 $as_echo "$enable_fontset" >&6; }
6581 test -z "$with_x" && with_x=yes
6582 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6583 if test "$with_x" = no; then
6584 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6585 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6586 else
6588 # Extract the first word of "xmkmf", so it can be a program name with args.
6589 set dummy xmkmf; ac_word=$2
6590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6593 $as_echo_n "(cached) " >&6
6594 else
6595 case $xmkmfpath in
6596 [\\/]* | ?:[\\/]*)
6597 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6611 done
6612 done
6613 IFS=$as_save_IFS
6616 esac
6618 xmkmfpath=$ac_cv_path_xmkmfpath
6619 if test -n "$xmkmfpath"; then
6620 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6621 $as_echo "$xmkmfpath" >&6; }
6622 else
6623 { $as_echo "$as_me:$LINENO: result: no" >&5
6624 $as_echo "no" >&6; }
6629 { $as_echo "$as_me:$LINENO: checking for X" >&5
6630 $as_echo_n "checking for X... " >&6; }
6633 # Check whether --with-x was given.
6634 if test "${with_x+set}" = set; then
6635 withval=$with_x;
6638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6639 if test "x$with_x" = xno; then
6640 # The user explicitly disabled X.
6641 have_x=disabled
6642 else
6643 case $x_includes,$x_libraries in #(
6644 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6645 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6646 { (exit 1); exit 1; }; };; #(
6647 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6648 $as_echo_n "(cached) " >&6
6649 else
6650 # One or both of the vars are not set, and there is no cached value.
6651 ac_x_includes=no ac_x_libraries=no
6652 rm -f -r conftest.dir
6653 if mkdir conftest.dir; then
6654 cd conftest.dir
6655 cat >Imakefile <<'_ACEOF'
6656 incroot:
6657 @echo incroot='${INCROOT}'
6658 usrlibdir:
6659 @echo usrlibdir='${USRLIBDIR}'
6660 libdir:
6661 @echo libdir='${LIBDIR}'
6662 _ACEOF
6663 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6665 for ac_var in incroot usrlibdir libdir; do
6666 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6667 done
6668 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6669 for ac_extension in a so sl dylib la dll; do
6670 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6671 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6672 ac_im_usrlibdir=$ac_im_libdir; break
6674 done
6675 # Screen out bogus values from the imake configuration. They are
6676 # bogus both because they are the default anyway, and because
6677 # using them would break gcc on systems where it needs fixed includes.
6678 case $ac_im_incroot in
6679 /usr/include) ac_x_includes= ;;
6680 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6681 esac
6682 case $ac_im_usrlibdir in
6683 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6684 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6685 esac
6687 cd ..
6688 rm -f -r conftest.dir
6691 # Standard set of common directories for X headers.
6692 # Check X11 before X11Rn because it is often a symlink to the current release.
6693 ac_x_header_dirs='
6694 /usr/X11/include
6695 /usr/X11R6/include
6696 /usr/X11R5/include
6697 /usr/X11R4/include
6699 /usr/include/X11
6700 /usr/include/X11R6
6701 /usr/include/X11R5
6702 /usr/include/X11R4
6704 /usr/local/X11/include
6705 /usr/local/X11R6/include
6706 /usr/local/X11R5/include
6707 /usr/local/X11R4/include
6709 /usr/local/include/X11
6710 /usr/local/include/X11R6
6711 /usr/local/include/X11R5
6712 /usr/local/include/X11R4
6714 /usr/X386/include
6715 /usr/x386/include
6716 /usr/XFree86/include/X11
6718 /usr/include
6719 /usr/local/include
6720 /usr/unsupported/include
6721 /usr/athena/include
6722 /usr/local/x11r5/include
6723 /usr/lpp/Xamples/include
6725 /usr/openwin/include
6726 /usr/openwin/share/include'
6728 if test "$ac_x_includes" = no; then
6729 # Guess where to find include files, by looking for Xlib.h.
6730 # First, try using that file with no special directory specified.
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <X11/Xlib.h>
6738 _ACEOF
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6743 esac
6744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 # We can compile using X headers with no special include directory.
6757 ac_x_includes=
6758 else
6759 $as_echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 for ac_dir in $ac_x_header_dirs; do
6763 if test -r "$ac_dir/X11/Xlib.h"; then
6764 ac_x_includes=$ac_dir
6765 break
6767 done
6770 rm -f conftest.err conftest.$ac_ext
6771 fi # $ac_x_includes = no
6773 if test "$ac_x_libraries" = no; then
6774 # Check for the libraries.
6775 # See if we find them without any special options.
6776 # Don't add to $LIBS permanently.
6777 ac_save_LIBS=$LIBS
6778 LIBS="-lX11 $LIBS"
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 #include <X11/Xlib.h>
6787 main ()
6789 XrmInitialize ()
6791 return 0;
6793 _ACEOF
6794 rm -f conftest.$ac_objext conftest$ac_exeext
6795 if { (ac_try="$ac_link"
6796 case "(($ac_try" in
6797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6799 esac
6800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_link") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest$ac_exeext && {
6812 test "$cross_compiling" = yes ||
6813 $as_test_x conftest$ac_exeext
6814 }; then
6815 LIBS=$ac_save_LIBS
6816 # We can link X programs with no special library path.
6817 ac_x_libraries=
6818 else
6819 $as_echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 LIBS=$ac_save_LIBS
6823 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6825 # Don't even attempt the hair of trying to link an X program!
6826 for ac_extension in a so sl dylib la dll; do
6827 if test -r "$ac_dir/libX11.$ac_extension"; then
6828 ac_x_libraries=$ac_dir
6829 break 2
6831 done
6832 done
6835 rm -rf conftest.dSYM
6836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6837 conftest$ac_exeext conftest.$ac_ext
6838 fi # $ac_x_libraries = no
6840 case $ac_x_includes,$ac_x_libraries in #(
6841 no,* | *,no | *\'*)
6842 # Didn't find X, or a directory has "'" in its name.
6843 ac_cv_have_x="have_x=no";; #(
6845 # Record where we found X for the cache.
6846 ac_cv_have_x="have_x=yes\
6847 ac_x_includes='$ac_x_includes'\
6848 ac_x_libraries='$ac_x_libraries'"
6849 esac
6851 ;; #(
6852 *) have_x=yes;;
6853 esac
6854 eval "$ac_cv_have_x"
6855 fi # $with_x != no
6857 if test "$have_x" != yes; then
6858 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6859 $as_echo "$have_x" >&6; }
6860 no_x=yes
6861 else
6862 # If each of the values was on the command line, it overrides each guess.
6863 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6864 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6865 # Update the cache value to reflect the command line values.
6866 ac_cv_have_x="have_x=yes\
6867 ac_x_includes='$x_includes'\
6868 ac_x_libraries='$x_libraries'"
6869 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6870 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6873 if test "$no_x" = yes; then
6874 # Not all programs may use this symbol, but it does not hurt to define it.
6876 cat >>confdefs.h <<\_ACEOF
6877 #define X_DISPLAY_MISSING 1
6878 _ACEOF
6880 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6881 else
6882 if test -n "$x_includes"; then
6883 X_CFLAGS="$X_CFLAGS -I$x_includes"
6886 # It would also be nice to do this for all -L options, not just this one.
6887 if test -n "$x_libraries"; then
6888 X_LIBS="$X_LIBS -L$x_libraries"
6889 # For Solaris; some versions of Sun CC require a space after -R and
6890 # others require no space. Words are not sufficient . . . .
6891 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6892 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6893 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6894 ac_xsave_c_werror_flag=$ac_c_werror_flag
6895 ac_c_werror_flag=yes
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6904 main ()
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext conftest$ac_exeext
6912 if { (ac_try="$ac_link"
6913 case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6916 esac
6917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6918 $as_echo "$ac_try_echo") >&5
6919 (eval "$ac_link") 2>conftest.er1
6920 ac_status=$?
6921 grep -v '^ *+' conftest.er1 >conftest.err
6922 rm -f conftest.er1
6923 cat conftest.err >&5
6924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } && {
6926 test -z "$ac_c_werror_flag" ||
6927 test ! -s conftest.err
6928 } && test -s conftest$ac_exeext && {
6929 test "$cross_compiling" = yes ||
6930 $as_test_x conftest$ac_exeext
6931 }; then
6932 { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934 X_LIBS="$X_LIBS -R$x_libraries"
6935 else
6936 $as_echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 LIBS="$ac_xsave_LIBS -R $x_libraries"
6940 cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h. */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6948 main ()
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (ac_try="$ac_link"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962 $as_echo "$ac_try_echo") >&5
6963 (eval "$ac_link") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest$ac_exeext && {
6973 test "$cross_compiling" = yes ||
6974 $as_test_x conftest$ac_exeext
6975 }; then
6976 { $as_echo "$as_me:$LINENO: result: yes" >&5
6977 $as_echo "yes" >&6; }
6978 X_LIBS="$X_LIBS -R $x_libraries"
6979 else
6980 $as_echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6984 $as_echo "neither works" >&6; }
6987 rm -rf conftest.dSYM
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6992 rm -rf conftest.dSYM
6993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6994 conftest$ac_exeext conftest.$ac_ext
6995 ac_c_werror_flag=$ac_xsave_c_werror_flag
6996 LIBS=$ac_xsave_LIBS
6999 # Check for system-dependent libraries X programs must link with.
7000 # Do this before checking for the system-independent R6 libraries
7001 # (-lICE), since we may need -lsocket or whatever for X linking.
7003 if test "$ISC" = yes; then
7004 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7005 else
7006 # Martyn Johnson says this is needed for Ultrix, if the X
7007 # libraries were built with DECnet support. And Karl Berry says
7008 # the Alpha needs dnet_stub (dnet does not exist).
7009 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7017 /* Override any GCC internal prototype to avoid an error.
7018 Use char because int might match the return type of a GCC
7019 builtin and then its argument prototype would still apply. */
7020 #ifdef __cplusplus
7021 extern "C"
7022 #endif
7023 char XOpenDisplay ();
7025 main ()
7027 return XOpenDisplay ();
7029 return 0;
7031 _ACEOF
7032 rm -f conftest.$ac_objext conftest$ac_exeext
7033 if { (ac_try="$ac_link"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_link") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest$ac_exeext && {
7050 test "$cross_compiling" = yes ||
7051 $as_test_x conftest$ac_exeext
7052 }; then
7054 else
7055 $as_echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7059 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7060 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7062 else
7063 ac_check_lib_save_LIBS=$LIBS
7064 LIBS="-ldnet $LIBS"
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7072 /* Override any GCC internal prototype to avoid an error.
7073 Use char because int might match the return type of a GCC
7074 builtin and then its argument prototype would still apply. */
7075 #ifdef __cplusplus
7076 extern "C"
7077 #endif
7078 char dnet_ntoa ();
7080 main ()
7082 return dnet_ntoa ();
7084 return 0;
7086 _ACEOF
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7089 case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7092 esac
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest$ac_exeext && {
7105 test "$cross_compiling" = yes ||
7106 $as_test_x conftest$ac_exeext
7107 }; then
7108 ac_cv_lib_dnet_dnet_ntoa=yes
7109 else
7110 $as_echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_cv_lib_dnet_dnet_ntoa=no
7116 rm -rf conftest.dSYM
7117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7118 conftest$ac_exeext conftest.$ac_ext
7119 LIBS=$ac_check_lib_save_LIBS
7121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7122 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7123 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
7124 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7127 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7128 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7129 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7130 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7131 $as_echo_n "(cached) " >&6
7132 else
7133 ac_check_lib_save_LIBS=$LIBS
7134 LIBS="-ldnet_stub $LIBS"
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h. */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7142 /* Override any GCC internal prototype to avoid an error.
7143 Use char because int might match the return type of a GCC
7144 builtin and then its argument prototype would still apply. */
7145 #ifdef __cplusplus
7146 extern "C"
7147 #endif
7148 char dnet_ntoa ();
7150 main ()
7152 return dnet_ntoa ();
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (ac_try="$ac_link"
7159 case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7164 $as_echo "$ac_try_echo") >&5
7165 (eval "$ac_link") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest$ac_exeext && {
7175 test "$cross_compiling" = yes ||
7176 $as_test_x conftest$ac_exeext
7177 }; then
7178 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7179 else
7180 $as_echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_lib_dnet_stub_dnet_ntoa=no
7186 rm -rf conftest.dSYM
7187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7188 conftest$ac_exeext conftest.$ac_ext
7189 LIBS=$ac_check_lib_save_LIBS
7191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7192 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7193 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
7194 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7200 rm -rf conftest.dSYM
7201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LIBS="$ac_xsave_LIBS"
7205 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7206 # to get the SysV transport functions.
7207 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7208 # needs -lnsl.
7209 # The nsl library prevents programs from opening the X display
7210 # on Irix 5.2, according to T.E. Dickey.
7211 # The functions gethostbyname, getservbyname, and inet_addr are
7212 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7213 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
7214 $as_echo_n "checking for gethostbyname... " >&6; }
7215 if test "${ac_cv_func_gethostbyname+set}" = set; then
7216 $as_echo_n "(cached) " >&6
7217 else
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7226 #define gethostbyname innocuous_gethostbyname
7228 /* System header to define __stub macros and hopefully few prototypes,
7229 which can conflict with char gethostbyname (); below.
7230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231 <limits.h> exists even on freestanding compilers. */
7233 #ifdef __STDC__
7234 # include <limits.h>
7235 #else
7236 # include <assert.h>
7237 #endif
7239 #undef gethostbyname
7241 /* Override any GCC internal prototype to avoid an error.
7242 Use char because int might match the return type of a GCC
7243 builtin and then its argument prototype would still apply. */
7244 #ifdef __cplusplus
7245 extern "C"
7246 #endif
7247 char gethostbyname ();
7248 /* The GNU C library defines this for functions which it implements
7249 to always fail with ENOSYS. Some functions are actually named
7250 something starting with __ and the normal name is an alias. */
7251 #if defined __stub_gethostbyname || defined __stub___gethostbyname
7252 choke me
7253 #endif
7256 main ()
7258 return gethostbyname ();
7260 return 0;
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (ac_try="$ac_link"
7265 case "(($ac_try" in
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7268 esac
7269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7270 $as_echo "$ac_try_echo") >&5
7271 (eval "$ac_link") 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest$ac_exeext && {
7281 test "$cross_compiling" = yes ||
7282 $as_test_x conftest$ac_exeext
7283 }; then
7284 ac_cv_func_gethostbyname=yes
7285 else
7286 $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7289 ac_cv_func_gethostbyname=no
7292 rm -rf conftest.dSYM
7293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7294 conftest$ac_exeext conftest.$ac_ext
7296 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7297 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7299 if test $ac_cv_func_gethostbyname = no; then
7300 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7301 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7302 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7303 $as_echo_n "(cached) " >&6
7304 else
7305 ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-lnsl $LIBS"
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7314 /* Override any GCC internal prototype to avoid an error.
7315 Use char because int might match the return type of a GCC
7316 builtin and then its argument prototype would still apply. */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 char gethostbyname ();
7322 main ()
7324 return gethostbyname ();
7326 return 0;
7328 _ACEOF
7329 rm -f conftest.$ac_objext conftest$ac_exeext
7330 if { (ac_try="$ac_link"
7331 case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334 esac
7335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7336 $as_echo "$ac_try_echo") >&5
7337 (eval "$ac_link") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest$ac_exeext && {
7347 test "$cross_compiling" = yes ||
7348 $as_test_x conftest$ac_exeext
7349 }; then
7350 ac_cv_lib_nsl_gethostbyname=yes
7351 else
7352 $as_echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7355 ac_cv_lib_nsl_gethostbyname=no
7358 rm -rf conftest.dSYM
7359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7360 conftest$ac_exeext conftest.$ac_ext
7361 LIBS=$ac_check_lib_save_LIBS
7363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7364 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7365 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7369 if test $ac_cv_lib_nsl_gethostbyname = no; then
7370 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7371 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7372 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7373 $as_echo_n "(cached) " >&6
7374 else
7375 ac_check_lib_save_LIBS=$LIBS
7376 LIBS="-lbsd $LIBS"
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 char gethostbyname ();
7392 main ()
7394 return gethostbyname ();
7396 return 0;
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7406 $as_echo "$ac_try_echo") >&5
7407 (eval "$ac_link") 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest$ac_exeext && {
7417 test "$cross_compiling" = yes ||
7418 $as_test_x conftest$ac_exeext
7419 }; then
7420 ac_cv_lib_bsd_gethostbyname=yes
7421 else
7422 $as_echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 ac_cv_lib_bsd_gethostbyname=no
7428 rm -rf conftest.dSYM
7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430 conftest$ac_exeext conftest.$ac_ext
7431 LIBS=$ac_check_lib_save_LIBS
7433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7434 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7435 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7436 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7442 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7443 # socket/setsockopt and other routines are undefined under SCO ODT
7444 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7445 # on later versions), says Simon Leinen: it contains gethostby*
7446 # variants that don't use the name server (or something). -lsocket
7447 # must be given before -lnsl if both are needed. We assume that
7448 # if connect needs -lnsl, so does gethostbyname.
7449 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7450 $as_echo_n "checking for connect... " >&6; }
7451 if test "${ac_cv_func_connect+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7453 else
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7462 #define connect innocuous_connect
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char connect (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7469 #ifdef __STDC__
7470 # include <limits.h>
7471 #else
7472 # include <assert.h>
7473 #endif
7475 #undef connect
7477 /* Override any GCC internal prototype to avoid an error.
7478 Use char because int might match the return type of a GCC
7479 builtin and then its argument prototype would still apply. */
7480 #ifdef __cplusplus
7481 extern "C"
7482 #endif
7483 char connect ();
7484 /* The GNU C library defines this for functions which it implements
7485 to always fail with ENOSYS. Some functions are actually named
7486 something starting with __ and the normal name is an alias. */
7487 #if defined __stub_connect || defined __stub___connect
7488 choke me
7489 #endif
7492 main ()
7494 return connect ();
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_link") 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest$ac_exeext && {
7517 test "$cross_compiling" = yes ||
7518 $as_test_x conftest$ac_exeext
7519 }; then
7520 ac_cv_func_connect=yes
7521 else
7522 $as_echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 ac_cv_func_connect=no
7528 rm -rf conftest.dSYM
7529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7530 conftest$ac_exeext conftest.$ac_ext
7532 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7533 $as_echo "$ac_cv_func_connect" >&6; }
7535 if test $ac_cv_func_connect = no; then
7536 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7537 $as_echo_n "checking for connect in -lsocket... " >&6; }
7538 if test "${ac_cv_lib_socket_connect+set}" = set; then
7539 $as_echo_n "(cached) " >&6
7540 else
7541 ac_check_lib_save_LIBS=$LIBS
7542 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7543 cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7550 /* Override any GCC internal prototype to avoid an error.
7551 Use char because int might match the return type of a GCC
7552 builtin and then its argument prototype would still apply. */
7553 #ifdef __cplusplus
7554 extern "C"
7555 #endif
7556 char connect ();
7558 main ()
7560 return connect ();
7562 return 0;
7564 _ACEOF
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (ac_try="$ac_link"
7567 case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7570 esac
7571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7572 $as_echo "$ac_try_echo") >&5
7573 (eval "$ac_link") 2>conftest.er1
7574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest$ac_exeext && {
7583 test "$cross_compiling" = yes ||
7584 $as_test_x conftest$ac_exeext
7585 }; then
7586 ac_cv_lib_socket_connect=yes
7587 else
7588 $as_echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 ac_cv_lib_socket_connect=no
7594 rm -rf conftest.dSYM
7595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7596 conftest$ac_exeext conftest.$ac_ext
7597 LIBS=$ac_check_lib_save_LIBS
7599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7600 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7601 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7602 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7607 # Guillermo Gomez says -lposix is necessary on A/UX.
7608 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7609 $as_echo_n "checking for remove... " >&6; }
7610 if test "${ac_cv_func_remove+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h. */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7621 #define remove innocuous_remove
7623 /* System header to define __stub macros and hopefully few prototypes,
7624 which can conflict with char remove (); below.
7625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7626 <limits.h> exists even on freestanding compilers. */
7628 #ifdef __STDC__
7629 # include <limits.h>
7630 #else
7631 # include <assert.h>
7632 #endif
7634 #undef remove
7636 /* Override any GCC internal prototype to avoid an error.
7637 Use char because int might match the return type of a GCC
7638 builtin and then its argument prototype would still apply. */
7639 #ifdef __cplusplus
7640 extern "C"
7641 #endif
7642 char remove ();
7643 /* The GNU C library defines this for functions which it implements
7644 to always fail with ENOSYS. Some functions are actually named
7645 something starting with __ and the normal name is an alias. */
7646 #if defined __stub_remove || defined __stub___remove
7647 choke me
7648 #endif
7651 main ()
7653 return remove ();
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (ac_try="$ac_link"
7660 case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663 esac
7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666 (eval "$ac_link") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext && {
7676 test "$cross_compiling" = yes ||
7677 $as_test_x conftest$ac_exeext
7678 }; then
7679 ac_cv_func_remove=yes
7680 else
7681 $as_echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 ac_cv_func_remove=no
7687 rm -rf conftest.dSYM
7688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7689 conftest$ac_exeext conftest.$ac_ext
7691 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7692 $as_echo "$ac_cv_func_remove" >&6; }
7694 if test $ac_cv_func_remove = no; then
7695 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7696 $as_echo_n "checking for remove in -lposix... " >&6; }
7697 if test "${ac_cv_lib_posix_remove+set}" = set; then
7698 $as_echo_n "(cached) " >&6
7699 else
7700 ac_check_lib_save_LIBS=$LIBS
7701 LIBS="-lposix $LIBS"
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h. */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7709 /* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7712 #ifdef __cplusplus
7713 extern "C"
7714 #endif
7715 char remove ();
7717 main ()
7719 return remove ();
7721 return 0;
7723 _ACEOF
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (ac_try="$ac_link"
7726 case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729 esac
7730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7731 $as_echo "$ac_try_echo") >&5
7732 (eval "$ac_link") 2>conftest.er1
7733 ac_status=$?
7734 grep -v '^ *+' conftest.er1 >conftest.err
7735 rm -f conftest.er1
7736 cat conftest.err >&5
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } && {
7739 test -z "$ac_c_werror_flag" ||
7740 test ! -s conftest.err
7741 } && test -s conftest$ac_exeext && {
7742 test "$cross_compiling" = yes ||
7743 $as_test_x conftest$ac_exeext
7744 }; then
7745 ac_cv_lib_posix_remove=yes
7746 else
7747 $as_echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_cv_lib_posix_remove=no
7753 rm -rf conftest.dSYM
7754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7755 conftest$ac_exeext conftest.$ac_ext
7756 LIBS=$ac_check_lib_save_LIBS
7758 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7759 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7760 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7766 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7767 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7768 $as_echo_n "checking for shmat... " >&6; }
7769 if test "${ac_cv_func_shmat+set}" = set; then
7770 $as_echo_n "(cached) " >&6
7771 else
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7780 #define shmat innocuous_shmat
7782 /* System header to define __stub macros and hopefully few prototypes,
7783 which can conflict with char shmat (); below.
7784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7785 <limits.h> exists even on freestanding compilers. */
7787 #ifdef __STDC__
7788 # include <limits.h>
7789 #else
7790 # include <assert.h>
7791 #endif
7793 #undef shmat
7795 /* Override any GCC internal prototype to avoid an error.
7796 Use char because int might match the return type of a GCC
7797 builtin and then its argument prototype would still apply. */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 char shmat ();
7802 /* The GNU C library defines this for functions which it implements
7803 to always fail with ENOSYS. Some functions are actually named
7804 something starting with __ and the normal name is an alias. */
7805 #if defined __stub_shmat || defined __stub___shmat
7806 choke me
7807 #endif
7810 main ()
7812 return shmat ();
7814 return 0;
7816 _ACEOF
7817 rm -f conftest.$ac_objext conftest$ac_exeext
7818 if { (ac_try="$ac_link"
7819 case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_link") 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest$ac_exeext && {
7835 test "$cross_compiling" = yes ||
7836 $as_test_x conftest$ac_exeext
7837 }; then
7838 ac_cv_func_shmat=yes
7839 else
7840 $as_echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_func_shmat=no
7846 rm -rf conftest.dSYM
7847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7848 conftest$ac_exeext conftest.$ac_ext
7850 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7851 $as_echo "$ac_cv_func_shmat" >&6; }
7853 if test $ac_cv_func_shmat = no; then
7854 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7855 $as_echo_n "checking for shmat in -lipc... " >&6; }
7856 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7858 else
7859 ac_check_lib_save_LIBS=$LIBS
7860 LIBS="-lipc $LIBS"
7861 cat >conftest.$ac_ext <<_ACEOF
7862 /* confdefs.h. */
7863 _ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7868 /* Override any GCC internal prototype to avoid an error.
7869 Use char because int might match the return type of a GCC
7870 builtin and then its argument prototype would still apply. */
7871 #ifdef __cplusplus
7872 extern "C"
7873 #endif
7874 char shmat ();
7876 main ()
7878 return shmat ();
7880 return 0;
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_link") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest$ac_exeext && {
7901 test "$cross_compiling" = yes ||
7902 $as_test_x conftest$ac_exeext
7903 }; then
7904 ac_cv_lib_ipc_shmat=yes
7905 else
7906 $as_echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7909 ac_cv_lib_ipc_shmat=no
7912 rm -rf conftest.dSYM
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914 conftest$ac_exeext conftest.$ac_ext
7915 LIBS=$ac_check_lib_save_LIBS
7917 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7918 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7919 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7926 # Check for libraries that X11R6 Xt/Xaw programs need.
7927 ac_save_LDFLAGS=$LDFLAGS
7928 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7929 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7930 # check for ICE first), but we must link in the order -lSM -lICE or
7931 # we get undefined symbols. So assume we have SM if we have ICE.
7932 # These have to be linked with before -lX11, unlike the other
7933 # libraries we check for below, so use a different variable.
7934 # John Interrante, Karl Berry
7935 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7936 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7937 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7939 else
7940 ac_check_lib_save_LIBS=$LIBS
7941 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7952 #ifdef __cplusplus
7953 extern "C"
7954 #endif
7955 char IceConnectionNumber ();
7957 main ()
7959 return IceConnectionNumber ();
7961 return 0;
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7966 case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969 esac
7970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7971 $as_echo "$ac_try_echo") >&5
7972 (eval "$ac_link") 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest$ac_exeext && {
7982 test "$cross_compiling" = yes ||
7983 $as_test_x conftest$ac_exeext
7984 }; then
7985 ac_cv_lib_ICE_IceConnectionNumber=yes
7986 else
7987 $as_echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_lib_ICE_IceConnectionNumber=no
7993 rm -rf conftest.dSYM
7994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7999 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8000 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
8001 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8004 LDFLAGS=$ac_save_LDFLAGS
8009 if test "$OS390Unix" = "yes"; then
8010 CFLAGS="$CFLAGS -W c,dll"
8011 LDFLAGS="$LDFLAGS -W l,dll"
8012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
8016 if test -d "$x_includes" && test ! -d "$x_libraries"; then
8017 x_libraries=`echo "$x_includes" | sed s/include/lib/`
8018 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
8019 $as_echo "Corrected X libraries to $x_libraries" >&6; }
8020 X_LIBS="$X_LIBS -L$x_libraries"
8021 if test "`(uname) 2>/dev/null`" = SunOS &&
8022 uname -r | grep '^5' >/dev/null; then
8023 X_LIBS="$X_LIBS -R $x_libraries"
8027 if test -d "$x_libraries" && test ! -d "$x_includes"; then
8028 x_includes=`echo "$x_libraries" | sed s/lib/include/`
8029 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
8030 $as_echo "Corrected X includes to $x_includes" >&6; }
8031 X_CFLAGS="$X_CFLAGS -I$x_includes"
8034 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
8035 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
8036 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
8039 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
8040 $as_echo_n "checking if X11 header files can be found... " >&6; }
8041 cflags_save=$CFLAGS
8042 CFLAGS="$CFLAGS $X_CFLAGS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 #include <X11/Xlib.h>
8050 #include <X11/Intrinsic.h>
8052 main ()
8056 return 0;
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064 esac
8065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066 $as_echo "$ac_try_echo") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 { $as_echo "$as_me:$LINENO: result: yes" >&5
8078 $as_echo "yes" >&6; }
8079 else
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 { $as_echo "$as_me:$LINENO: result: no" >&5
8084 $as_echo "no" >&6; }; no_x=yes
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 CFLAGS=$cflags_save
8090 if test "${no_x-no}" = yes; then
8091 with_x=no
8092 else
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_X11 1
8095 _ACEOF
8097 X_LIB="-lXt -lX11";
8100 ac_save_LDFLAGS="$LDFLAGS"
8101 LDFLAGS="-L$x_libraries $LDFLAGS"
8103 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
8104 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
8105 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
8106 $as_echo_n "(cached) " >&6
8107 else
8108 ac_check_lib_save_LIBS=$LIBS
8109 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h. */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char _XdmcpAuthDoIt ();
8125 main ()
8127 return _XdmcpAuthDoIt ();
8129 return 0;
8131 _ACEOF
8132 rm -f conftest.$ac_objext conftest$ac_exeext
8133 if { (ac_try="$ac_link"
8134 case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137 esac
8138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8139 $as_echo "$ac_try_echo") >&5
8140 (eval "$ac_link") 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest$ac_exeext && {
8150 test "$cross_compiling" = yes ||
8151 $as_test_x conftest$ac_exeext
8152 }; then
8153 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
8154 else
8155 $as_echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8158 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
8161 rm -rf conftest.dSYM
8162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8163 conftest$ac_exeext conftest.$ac_ext
8164 LIBS=$ac_check_lib_save_LIBS
8166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
8167 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
8168 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
8169 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
8173 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
8174 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
8175 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
8176 $as_echo_n "(cached) " >&6
8177 else
8178 ac_check_lib_save_LIBS=$LIBS
8179 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h. */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char IceOpenConnection ();
8195 main ()
8197 return IceOpenConnection ();
8199 return 0;
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (ac_try="$ac_link"
8204 case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207 esac
8208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8209 $as_echo "$ac_try_echo") >&5
8210 (eval "$ac_link") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } && {
8217 test -z "$ac_c_werror_flag" ||
8218 test ! -s conftest.err
8219 } && test -s conftest$ac_exeext && {
8220 test "$cross_compiling" = yes ||
8221 $as_test_x conftest$ac_exeext
8222 }; then
8223 ac_cv_lib_ICE_IceOpenConnection=yes
8224 else
8225 $as_echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_cv_lib_ICE_IceOpenConnection=no
8231 rm -rf conftest.dSYM
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8234 LIBS=$ac_check_lib_save_LIBS
8236 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
8237 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
8238 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
8239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
8243 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
8244 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
8245 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
8246 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
8247 $as_echo_n "(cached) " >&6
8248 else
8249 ac_check_lib_save_LIBS=$LIBS
8250 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char XpmCreatePixmapFromData ();
8266 main ()
8268 return XpmCreatePixmapFromData ();
8270 return 0;
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (ac_try="$ac_link"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8280 $as_echo "$ac_try_echo") >&5
8281 (eval "$ac_link") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest$ac_exeext && {
8291 test "$cross_compiling" = yes ||
8292 $as_test_x conftest$ac_exeext
8293 }; then
8294 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8295 else
8296 $as_echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8302 rm -rf conftest.dSYM
8303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8304 conftest$ac_exeext conftest.$ac_ext
8305 LIBS=$ac_check_lib_save_LIBS
8307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8308 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8309 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
8310 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8314 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8315 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8316 cflags_save=$CFLAGS
8317 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h. */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 #include <X11/Xlib.h>
8326 main ()
8330 return 0;
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8335 case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338 esac
8339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.$ac_objext; then
8351 { $as_echo "$as_me:$LINENO: result: no" >&5
8352 $as_echo "no" >&6; }
8353 else
8354 $as_echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8357 CFLAGS="$CFLAGS -Wno-implicit-int"
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <X11/Xlib.h>
8366 main ()
8370 return 0;
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378 esac
8379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8380 $as_echo "$ac_try_echo") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 { $as_echo "$as_me:$LINENO: result: yes" >&5
8392 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8393 else
8394 $as_echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8398 $as_echo "test failed" >&6; }
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 CFLAGS=$cflags_save
8409 LDFLAGS="$ac_save_LDFLAGS"
8411 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8412 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8413 if test "${ac_cv_small_wchar_t+set}" = set; then
8414 $as_echo_n "(cached) " >&6
8415 else
8416 if test "$cross_compiling" = yes; then
8417 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8418 $as_echo "$as_me: error: failed to compile test program" >&2;}
8419 { (exit 1); exit 1; }; }
8420 else
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8428 #include <X11/Xlib.h>
8429 #if STDC_HEADERS
8430 # include <stdlib.h>
8431 # include <stddef.h>
8432 #endif
8433 main()
8435 if (sizeof(wchar_t) <= 2)
8436 exit(1);
8437 exit(0);
8439 _ACEOF
8440 rm -f conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445 esac
8446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8447 $as_echo "$ac_try_echo") >&5
8448 (eval "$ac_link") 2>&5
8449 ac_status=$?
8450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455 esac
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_try") 2>&5
8459 ac_status=$?
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8462 ac_cv_small_wchar_t="no"
8463 else
8464 $as_echo "$as_me: program exited with status $ac_status" >&5
8465 $as_echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8468 ( exit $ac_status )
8469 ac_cv_small_wchar_t="yes"
8471 rm -rf conftest.dSYM
8472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8479 $as_echo "$ac_cv_small_wchar_t" >&6; }
8480 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8481 cat >>confdefs.h <<\_ACEOF
8482 #define SMALL_WCHAR_T 1
8483 _ACEOF
8490 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8492 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8493 $as_echo_n "checking --enable-gui argument... " >&6; }
8494 # Check whether --enable-gui was given.
8495 if test "${enable_gui+set}" = set; then
8496 enableval=$enable_gui;
8497 else
8498 enable_gui="auto"
8502 enable_gui_canon=`echo "_$enable_gui" | \
8503 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8505 SKIP_GTK=YES
8506 SKIP_GTK2=YES
8507 SKIP_GNOME=YES
8508 SKIP_MOTIF=YES
8509 SKIP_ATHENA=YES
8510 SKIP_NEXTAW=YES
8511 SKIP_PHOTON=YES
8512 SKIP_CARBON=YES
8513 GUITYPE=NONE
8515 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8516 SKIP_PHOTON=
8517 case "$enable_gui_canon" in
8518 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8519 $as_echo "no GUI support" >&6; }
8520 SKIP_PHOTON=YES ;;
8521 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8522 $as_echo "yes - automatic GUI support" >&6; } ;;
8523 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8524 $as_echo "auto - automatic GUI support" >&6; } ;;
8525 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8526 $as_echo "Photon GUI support" >&6; } ;;
8527 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8528 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8529 SKIP_PHOTON=YES ;;
8530 esac
8532 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8533 SKIP_CARBON=
8534 case "$enable_gui_canon" in
8535 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8536 $as_echo "no GUI support" >&6; }
8537 SKIP_CARBON=YES ;;
8538 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8539 $as_echo "yes - automatic GUI support" >&6; } ;;
8540 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8541 $as_echo "auto - automatic GUI support" >&6; } ;;
8542 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8543 $as_echo "Carbon GUI support" >&6; } ;;
8544 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8545 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8546 SKIP_CARBON=YES ;;
8547 esac
8549 else
8551 case "$enable_gui_canon" in
8552 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8553 $as_echo "no GUI support" >&6; } ;;
8554 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8555 $as_echo "yes/auto - automatic GUI support" >&6; }
8556 SKIP_GTK=
8557 SKIP_GTK2=
8558 SKIP_GNOME=
8559 SKIP_MOTIF=
8560 SKIP_ATHENA=
8561 SKIP_NEXTAW=
8562 SKIP_CARBON=;;
8563 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8564 $as_echo "GTK+ 1.x GUI support" >&6; }
8565 SKIP_GTK=;;
8566 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8567 $as_echo "GTK+ 2.x GUI support" >&6; }
8568 SKIP_GTK=
8569 SKIP_GTK2=;;
8570 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8571 $as_echo "GNOME 1.x GUI support" >&6; }
8572 SKIP_GNOME=
8573 SKIP_GTK=;;
8574 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8575 $as_echo "GNOME 2.x GUI support" >&6; }
8576 SKIP_GNOME=
8577 SKIP_GTK=
8578 SKIP_GTK2=;;
8579 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8580 $as_echo "Motif GUI support" >&6; }
8581 SKIP_MOTIF=;;
8582 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8583 $as_echo "Athena GUI support" >&6; }
8584 SKIP_ATHENA=;;
8585 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8586 $as_echo "neXtaw GUI support" >&6; }
8587 SKIP_NEXTAW=;;
8588 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8589 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8590 esac
8594 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8595 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8596 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8597 # Check whether --enable-gtk-check was given.
8598 if test "${enable_gtk_check+set}" = set; then
8599 enableval=$enable_gtk_check;
8600 else
8601 enable_gtk_check="yes"
8604 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8605 $as_echo "$enable_gtk_check" >&6; }
8606 if test "x$enable_gtk_check" = "xno"; then
8607 SKIP_GTK=YES
8608 SKIP_GNOME=YES
8612 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8613 -a "$enable_gui_canon" != "gnome2"; then
8614 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8615 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8616 # Check whether --enable-gtk2-check was given.
8617 if test "${enable_gtk2_check+set}" = set; then
8618 enableval=$enable_gtk2_check;
8619 else
8620 enable_gtk2_check="yes"
8623 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8624 $as_echo "$enable_gtk2_check" >&6; }
8625 if test "x$enable_gtk2_check" = "xno"; then
8626 SKIP_GTK2=YES
8630 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8631 -a "$enable_gui_canon" != "gnome2"; then
8632 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8633 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8634 # Check whether --enable-gnome-check was given.
8635 if test "${enable_gnome_check+set}" = set; then
8636 enableval=$enable_gnome_check;
8637 else
8638 enable_gnome_check="no"
8641 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8642 $as_echo "$enable_gnome_check" >&6; }
8643 if test "x$enable_gnome_check" = "xno"; then
8644 SKIP_GNOME=YES
8648 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8649 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8650 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8651 # Check whether --enable-motif-check was given.
8652 if test "${enable_motif_check+set}" = set; then
8653 enableval=$enable_motif_check;
8654 else
8655 enable_motif_check="yes"
8658 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8659 $as_echo "$enable_motif_check" >&6; }
8660 if test "x$enable_motif_check" = "xno"; then
8661 SKIP_MOTIF=YES
8665 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8666 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8667 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8668 # Check whether --enable-athena-check was given.
8669 if test "${enable_athena_check+set}" = set; then
8670 enableval=$enable_athena_check;
8671 else
8672 enable_athena_check="yes"
8675 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8676 $as_echo "$enable_athena_check" >&6; }
8677 if test "x$enable_athena_check" = "xno"; then
8678 SKIP_ATHENA=YES
8682 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8683 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8684 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8685 # Check whether --enable-nextaw-check was given.
8686 if test "${enable_nextaw_check+set}" = set; then
8687 enableval=$enable_nextaw_check;
8688 else
8689 enable_nextaw_check="yes"
8692 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8693 $as_echo "$enable_nextaw_check" >&6; };
8694 if test "x$enable_nextaw_check" = "xno"; then
8695 SKIP_NEXTAW=YES
8699 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8700 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8701 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8702 # Check whether --enable-carbon-check was given.
8703 if test "${enable_carbon_check+set}" = set; then
8704 enableval=$enable_carbon_check;
8705 else
8706 enable_carbon_check="yes"
8709 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8710 $as_echo "$enable_carbon_check" >&6; };
8711 if test "x$enable_carbon_check" = "xno"; then
8712 SKIP_CARBON=YES
8717 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8718 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8719 $as_echo_n "checking for Carbon GUI... " >&6; }
8720 { $as_echo "$as_me:$LINENO: result: yes" >&5
8721 $as_echo "yes" >&6; };
8722 GUITYPE=CARBONGUI
8723 if test "$VIMNAME" = "vim"; then
8724 VIMNAME=Vim
8727 if test x$prefix = xNONE; then
8728 prefix=/Applications
8731 datadir='${prefix}/Vim.app/Contents/Resources'
8733 SKIP_GTK=YES;
8734 SKIP_GTK2=YES;
8735 SKIP_GNOME=YES;
8736 SKIP_MOTIF=YES;
8737 SKIP_ATHENA=YES;
8738 SKIP_NEXTAW=YES;
8739 SKIP_PHOTON=YES;
8740 SKIP_CARBON=YES
8751 if test -z "$SKIP_GTK"; then
8753 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8754 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8756 # Check whether --with-gtk-prefix was given.
8757 if test "${with_gtk_prefix+set}" = set; then
8758 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8759 $as_echo "$gtk_config_prefix" >&6; }
8760 else
8761 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8762 $as_echo "no" >&6; }
8766 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8767 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8769 # Check whether --with-gtk-exec-prefix was given.
8770 if test "${with_gtk_exec_prefix+set}" = set; then
8771 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8772 $as_echo "$gtk_config_prefix" >&6; }
8773 else
8774 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8775 $as_echo "no" >&6; }
8779 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8780 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8781 # Check whether --enable-gtktest was given.
8782 if test "${enable_gtktest+set}" = set; then
8783 enableval=$enable_gtktest;
8784 else
8785 enable_gtktest=yes
8788 if test "x$enable_gtktest" = "xyes" ; then
8789 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8790 $as_echo "gtk test enabled" >&6; }
8791 else
8792 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8793 $as_echo "gtk test disabled" >&6; }
8796 if test "x$gtk_config_prefix" != "x" ; then
8797 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8798 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8800 if test "x$gtk_config_exec_prefix" != "x" ; then
8801 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8802 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8804 if test "X$GTK_CONFIG" = "X"; then
8805 # Extract the first word of "gtk-config", so it can be a program name with args.
8806 set dummy gtk-config; ac_word=$2
8807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8810 $as_echo_n "(cached) " >&6
8811 else
8812 case $GTK_CONFIG in
8813 [\\/]* | ?:[\\/]*)
8814 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8820 IFS=$as_save_IFS
8821 test -z "$as_dir" && as_dir=.
8822 for ac_exec_ext in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8826 break 2
8828 done
8829 done
8830 IFS=$as_save_IFS
8832 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8834 esac
8836 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8837 if test -n "$GTK_CONFIG"; then
8838 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8839 $as_echo "$GTK_CONFIG" >&6; }
8840 else
8841 { $as_echo "$as_me:$LINENO: result: no" >&5
8842 $as_echo "no" >&6; }
8846 if test "X$GTK_CONFIG" = "Xno"; then
8847 # Extract the first word of "gtk12-config", so it can be a program name with args.
8848 set dummy gtk12-config; ac_word=$2
8849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8852 $as_echo_n "(cached) " >&6
8853 else
8854 case $GTK12_CONFIG in
8855 [\\/]* | ?:[\\/]*)
8856 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8862 IFS=$as_save_IFS
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8866 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 break 2
8870 done
8871 done
8872 IFS=$as_save_IFS
8874 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8876 esac
8878 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8879 if test -n "$GTK12_CONFIG"; then
8880 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8881 $as_echo "$GTK12_CONFIG" >&6; }
8882 else
8883 { $as_echo "$as_me:$LINENO: result: no" >&5
8884 $as_echo "no" >&6; }
8888 GTK_CONFIG="$GTK12_CONFIG"
8890 else
8891 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8892 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8894 if test "X$PKG_CONFIG" = "X"; then
8895 # Extract the first word of "pkg-config", so it can be a program name with args.
8896 set dummy pkg-config; ac_word=$2
8897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8900 $as_echo_n "(cached) " >&6
8901 else
8902 case $PKG_CONFIG in
8903 [\\/]* | ?:[\\/]*)
8904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 break 2
8918 done
8919 done
8920 IFS=$as_save_IFS
8922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8924 esac
8926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8927 if test -n "$PKG_CONFIG"; then
8928 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8929 $as_echo "$PKG_CONFIG" >&6; }
8930 else
8931 { $as_echo "$as_me:$LINENO: result: no" >&5
8932 $as_echo "no" >&6; }
8938 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8939 if test "X$SKIP_GTK2" != "XYES"; then
8941 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8943 min_gtk_version=2.2.0
8944 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8945 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8946 no_gtk=""
8947 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8948 && $PKG_CONFIG --exists gtk+-2.0; then
8950 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8951 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8952 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8953 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8954 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8955 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8956 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8957 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8958 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8960 elif test "X$GTK_CONFIG" != "Xno"; then
8962 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8963 GTK_LIBDIR=
8964 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8965 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8966 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8967 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8968 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8969 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8970 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8972 else
8973 no_gtk=yes
8976 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8978 ac_save_CFLAGS="$CFLAGS"
8979 ac_save_LIBS="$LIBS"
8980 CFLAGS="$CFLAGS $GTK_CFLAGS"
8981 LIBS="$LIBS $GTK_LIBS"
8983 rm -f conf.gtktest
8984 if test "$cross_compiling" = yes; then
8985 echo $ac_n "cross compiling; assumed OK... $ac_c"
8986 else
8987 cat >conftest.$ac_ext <<_ACEOF
8988 /* confdefs.h. */
8989 _ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8994 #include <gtk/gtk.h>
8995 #include <stdio.h>
8996 #if STDC_HEADERS
8997 # include <stdlib.h>
8998 # include <stddef.h>
8999 #endif
9002 main ()
9004 int major, minor, micro;
9005 char *tmp_version;
9007 system ("touch conf.gtktest");
9009 /* HP/UX 9 (%@#!) writes to sscanf strings */
9010 tmp_version = g_strdup("$min_gtk_version");
9011 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9012 printf("%s, bad version string\n", "$min_gtk_version");
9013 exit(1);
9016 if ((gtk_major_version > major) ||
9017 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9018 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9019 (gtk_micro_version >= micro)))
9021 return 0;
9023 return 1;
9026 _ACEOF
9027 rm -f conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9029 case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9032 esac
9033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9034 $as_echo "$ac_try_echo") >&5
9035 (eval "$ac_link") 2>&5
9036 ac_status=$?
9037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039 { (case "(($ac_try" in
9040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9041 *) ac_try_echo=$ac_try;;
9042 esac
9043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9044 $as_echo "$ac_try_echo") >&5
9045 (eval "$ac_try") 2>&5
9046 ac_status=$?
9047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
9050 else
9051 $as_echo "$as_me: program exited with status $ac_status" >&5
9052 $as_echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ( exit $ac_status )
9056 no_gtk=yes
9058 rm -rf conftest.dSYM
9059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9063 CFLAGS="$ac_save_CFLAGS"
9064 LIBS="$ac_save_LIBS"
9067 if test "x$no_gtk" = x ; then
9068 if test "x$enable_gtktest" = "xyes"; then
9069 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9070 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9071 else
9072 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9073 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9075 GUI_LIB_LOC="$GTK_LIBDIR"
9076 GTK_LIBNAME="$GTK_LIBS"
9077 GUI_INC_LOC="$GTK_CFLAGS"
9078 else
9080 { $as_echo "$as_me:$LINENO: result: no" >&5
9081 $as_echo "no" >&6; }
9082 GTK_CFLAGS=""
9083 GTK_LIBS=""
9088 else
9089 GTK_CFLAGS=""
9090 GTK_LIBS=""
9095 rm -f conf.gtktest
9097 if test "x$GTK_CFLAGS" != "x"; then
9098 SKIP_ATHENA=YES
9099 SKIP_NEXTAW=YES
9100 SKIP_MOTIF=YES
9101 GUITYPE=GTK
9106 if test "x$GUITYPE" != "xGTK"; then
9107 SKIP_GTK2=YES
9109 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
9111 min_gtk_version=1.1.16
9112 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
9113 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
9114 no_gtk=""
9115 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
9116 && $PKG_CONFIG --exists gtk+-2.0; then
9118 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
9119 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
9120 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
9121 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9122 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9123 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9124 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9125 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
9126 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9128 elif test "X$GTK_CONFIG" != "Xno"; then
9130 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
9131 GTK_LIBDIR=
9132 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
9133 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
9134 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9135 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
9136 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9137 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
9138 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9140 else
9141 no_gtk=yes
9144 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
9146 ac_save_CFLAGS="$CFLAGS"
9147 ac_save_LIBS="$LIBS"
9148 CFLAGS="$CFLAGS $GTK_CFLAGS"
9149 LIBS="$LIBS $GTK_LIBS"
9151 rm -f conf.gtktest
9152 if test "$cross_compiling" = yes; then
9153 echo $ac_n "cross compiling; assumed OK... $ac_c"
9154 else
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 #include <gtk/gtk.h>
9163 #include <stdio.h>
9164 #if STDC_HEADERS
9165 # include <stdlib.h>
9166 # include <stddef.h>
9167 #endif
9170 main ()
9172 int major, minor, micro;
9173 char *tmp_version;
9175 system ("touch conf.gtktest");
9177 /* HP/UX 9 (%@#!) writes to sscanf strings */
9178 tmp_version = g_strdup("$min_gtk_version");
9179 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9180 printf("%s, bad version string\n", "$min_gtk_version");
9181 exit(1);
9184 if ((gtk_major_version > major) ||
9185 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9186 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
9187 (gtk_micro_version >= micro)))
9189 return 0;
9191 return 1;
9194 _ACEOF
9195 rm -f conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9197 case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200 esac
9201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9202 $as_echo "$ac_try_echo") >&5
9203 (eval "$ac_link") 2>&5
9204 ac_status=$?
9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9207 { (case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210 esac
9211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9212 $as_echo "$ac_try_echo") >&5
9213 (eval "$ac_try") 2>&5
9214 ac_status=$?
9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9218 else
9219 $as_echo "$as_me: program exited with status $ac_status" >&5
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ( exit $ac_status )
9224 no_gtk=yes
9226 rm -rf conftest.dSYM
9227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9231 CFLAGS="$ac_save_CFLAGS"
9232 LIBS="$ac_save_LIBS"
9235 if test "x$no_gtk" = x ; then
9236 if test "x$enable_gtktest" = "xyes"; then
9237 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9238 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9239 else
9240 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9241 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9243 GTK_LIBNAME="$GTK_LIBS"
9244 GUI_INC_LOC="$GTK_CFLAGS"
9245 else
9247 { $as_echo "$as_me:$LINENO: result: no" >&5
9248 $as_echo "no" >&6; }
9249 GTK_CFLAGS=""
9250 GTK_LIBS=""
9255 else
9256 GTK_CFLAGS=""
9257 GTK_LIBS=""
9262 rm -f conf.gtktest
9264 if test "x$GTK_CFLAGS" != "x"; then
9265 SKIP_ATHENA=YES
9266 SKIP_NEXTAW=YES
9267 SKIP_MOTIF=YES
9268 GUITYPE=GTK
9273 if test "x$GUITYPE" = "xGTK"; then
9274 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
9275 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
9276 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
9277 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
9278 else
9280 if test "0$gtk_major_version" -ge 2; then
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_GTK2 1
9283 _ACEOF
9285 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
9286 || test "0$gtk_minor_version" -ge 2 \
9287 || test "0$gtk_major_version" -gt 2; then
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_GTK_MULTIHEAD 1
9290 _ACEOF
9294 if test -z "$SKIP_GNOME"; then
9302 # Check whether --with-gnome-includes was given.
9303 if test "${with_gnome_includes+set}" = set; then
9304 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9310 # Check whether --with-gnome-libs was given.
9311 if test "${with_gnome_libs+set}" = set; then
9312 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9318 # Check whether --with-gnome was given.
9319 if test "${with_gnome+set}" = set; then
9320 withval=$with_gnome; if test x$withval = xyes; then
9321 want_gnome=yes
9322 have_gnome=yes
9323 else
9324 if test "x$withval" = xno; then
9325 want_gnome=no
9326 else
9327 want_gnome=yes
9328 LDFLAGS="$LDFLAGS -L$withval/lib"
9329 CFLAGS="$CFLAGS -I$withval/include"
9330 gnome_prefix=$withval/lib
9333 else
9334 want_gnome=yes
9338 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9340 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9341 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9342 if $PKG_CONFIG --exists libgnomeui-2.0; then
9343 { $as_echo "$as_me:$LINENO: result: yes" >&5
9344 $as_echo "yes" >&6; }
9345 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9346 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9347 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9349 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9350 $as_echo_n "checking for FreeBSD... " >&6; }
9351 if test "`(uname) 2>/dev/null`" = FreeBSD; then
9352 { $as_echo "$as_me:$LINENO: result: yes" >&5
9353 $as_echo "yes" >&6; }
9354 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9355 GNOME_LIBS="$GNOME_LIBS -pthread"
9356 else
9357 { $as_echo "$as_me:$LINENO: result: no" >&5
9358 $as_echo "no" >&6; }
9360 have_gnome=yes
9361 else
9362 { $as_echo "$as_me:$LINENO: result: not found" >&5
9363 $as_echo "not found" >&6; }
9364 if test "x" = xfail; then
9365 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9366 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9367 { (exit 1); exit 1; }; }
9371 elif test "x$want_gnome" = xyes; then
9373 # Extract the first word of "gnome-config", so it can be a program name with args.
9374 set dummy gnome-config; ac_word=$2
9375 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9378 $as_echo_n "(cached) " >&6
9379 else
9380 case $GNOME_CONFIG in
9381 [\\/]* | ?:[\\/]*)
9382 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9392 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9394 break 2
9396 done
9397 done
9398 IFS=$as_save_IFS
9400 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9402 esac
9404 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9405 if test -n "$GNOME_CONFIG"; then
9406 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9407 $as_echo "$GNOME_CONFIG" >&6; }
9408 else
9409 { $as_echo "$as_me:$LINENO: result: no" >&5
9410 $as_echo "no" >&6; }
9414 if test "$GNOME_CONFIG" = "no"; then
9415 no_gnome_config="yes"
9416 else
9417 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9418 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9419 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9420 { $as_echo "$as_me:$LINENO: result: yes" >&5
9421 $as_echo "yes" >&6; }
9422 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9423 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9424 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9425 have_gnome=yes
9426 else
9427 { $as_echo "$as_me:$LINENO: result: no" >&5
9428 $as_echo "no" >&6; }
9429 no_gnome_config="yes"
9433 if test x$exec_prefix = xNONE; then
9434 if test x$prefix = xNONE; then
9435 gnome_prefix=$ac_default_prefix/lib
9436 else
9437 gnome_prefix=$prefix/lib
9439 else
9440 gnome_prefix=`eval echo \`echo $libdir\``
9443 if test "$no_gnome_config" = "yes"; then
9444 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9445 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9446 if test -f $gnome_prefix/gnomeConf.sh; then
9447 { $as_echo "$as_me:$LINENO: result: found" >&5
9448 $as_echo "found" >&6; }
9449 echo "loading gnome configuration from" \
9450 "$gnome_prefix/gnomeConf.sh"
9451 . $gnome_prefix/gnomeConf.sh
9452 have_gnome=yes
9453 else
9454 { $as_echo "$as_me:$LINENO: result: not found" >&5
9455 $as_echo "not found" >&6; }
9456 if test x = xfail; then
9457 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9458 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9459 { (exit 1); exit 1; }; }
9466 if test x$have_gnome = xyes ; then
9467 cat >>confdefs.h <<\_ACEOF
9468 #define FEAT_GUI_GNOME 1
9469 _ACEOF
9471 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9472 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9482 if test -z "$SKIP_MOTIF"; then
9483 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"
9484 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9486 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9487 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9488 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9489 GUI_INC_LOC=
9490 for try in $gui_includes; do
9491 if test -f "$try/Xm/Xm.h"; then
9492 GUI_INC_LOC=$try
9494 done
9495 if test -n "$GUI_INC_LOC"; then
9496 if test "$GUI_INC_LOC" = /usr/include; then
9497 GUI_INC_LOC=
9498 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9499 $as_echo "in default path" >&6; }
9500 else
9501 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9502 $as_echo "$GUI_INC_LOC" >&6; }
9504 else
9505 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9506 $as_echo "<not found>" >&6; }
9507 SKIP_MOTIF=YES
9512 if test -z "$SKIP_MOTIF"; then
9513 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9514 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9516 # Check whether --with-motif-lib was given.
9517 if test "${with_motif_lib+set}" = set; then
9518 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9522 if test -n "$MOTIF_LIBNAME"; then
9523 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9524 $as_echo "$MOTIF_LIBNAME" >&6; }
9525 GUI_LIB_LOC=
9526 else
9527 { $as_echo "$as_me:$LINENO: result: no" >&5
9528 $as_echo "no" >&6; }
9530 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9532 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9533 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9534 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"
9535 GUI_LIB_LOC=
9536 for try in $gui_libs; do
9537 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9538 if test -f "$libtry"; then
9539 GUI_LIB_LOC=$try
9541 done
9542 done
9543 if test -n "$GUI_LIB_LOC"; then
9544 if test "$GUI_LIB_LOC" = /usr/lib; then
9545 GUI_LIB_LOC=
9546 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9547 $as_echo "in default path" >&6; }
9548 else
9549 if test -n "$GUI_LIB_LOC"; then
9550 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9551 $as_echo "$GUI_LIB_LOC" >&6; }
9552 if test "`(uname) 2>/dev/null`" = SunOS &&
9553 uname -r | grep '^5' >/dev/null; then
9554 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9558 MOTIF_LIBNAME=-lXm
9559 else
9560 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9561 $as_echo "<not found>" >&6; }
9562 SKIP_MOTIF=YES
9567 if test -z "$SKIP_MOTIF"; then
9568 SKIP_ATHENA=YES
9569 SKIP_NEXTAW=YES
9570 GUITYPE=MOTIF
9575 GUI_X_LIBS=
9577 if test -z "$SKIP_ATHENA"; then
9578 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9579 $as_echo_n "checking if Athena header files can be found... " >&6; }
9580 cflags_save=$CFLAGS
9581 CFLAGS="$CFLAGS $X_CFLAGS"
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9589 #include <X11/Intrinsic.h>
9590 #include <X11/Xaw/Paned.h>
9592 main ()
9596 return 0;
9598 _ACEOF
9599 rm -f conftest.$ac_objext
9600 if { (ac_try="$ac_compile"
9601 case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604 esac
9605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9606 $as_echo "$ac_try_echo") >&5
9607 (eval "$ac_compile") 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest.$ac_objext; then
9617 { $as_echo "$as_me:$LINENO: result: yes" >&5
9618 $as_echo "yes" >&6; }
9619 else
9620 $as_echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 { $as_echo "$as_me:$LINENO: result: no" >&5
9624 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9628 CFLAGS=$cflags_save
9631 if test -z "$SKIP_ATHENA"; then
9632 GUITYPE=ATHENA
9635 if test -z "$SKIP_NEXTAW"; then
9636 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9637 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9638 cflags_save=$CFLAGS
9639 CFLAGS="$CFLAGS $X_CFLAGS"
9640 cat >conftest.$ac_ext <<_ACEOF
9641 /* confdefs.h. */
9642 _ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9647 #include <X11/Intrinsic.h>
9648 #include <X11/neXtaw/Paned.h>
9650 main ()
9654 return 0;
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (ac_try="$ac_compile"
9659 case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662 esac
9663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9664 $as_echo "$ac_try_echo") >&5
9665 (eval "$ac_compile") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.$ac_objext; then
9675 { $as_echo "$as_me:$LINENO: result: yes" >&5
9676 $as_echo "yes" >&6; }
9677 else
9678 $as_echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 { $as_echo "$as_me:$LINENO: result: no" >&5
9682 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686 CFLAGS=$cflags_save
9689 if test -z "$SKIP_NEXTAW"; then
9690 GUITYPE=NEXTAW
9693 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9694 if test -n "$GUI_INC_LOC"; then
9695 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9697 if test -n "$GUI_LIB_LOC"; then
9698 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9701 ldflags_save=$LDFLAGS
9702 LDFLAGS="$X_LIBS $LDFLAGS"
9703 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9704 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9705 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9706 $as_echo_n "(cached) " >&6
9707 else
9708 ac_check_lib_save_LIBS=$LIBS
9709 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9717 /* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
9720 #ifdef __cplusplus
9721 extern "C"
9722 #endif
9723 char XShapeQueryExtension ();
9725 main ()
9727 return XShapeQueryExtension ();
9729 return 0;
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9734 case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737 esac
9738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9739 $as_echo "$ac_try_echo") >&5
9740 (eval "$ac_link") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_c_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest$ac_exeext && {
9750 test "$cross_compiling" = yes ||
9751 $as_test_x conftest$ac_exeext
9752 }; then
9753 ac_cv_lib_Xext_XShapeQueryExtension=yes
9754 else
9755 $as_echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_lib_Xext_XShapeQueryExtension=no
9761 rm -rf conftest.dSYM
9762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9767 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9768 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9769 GUI_X_LIBS="-lXext"
9772 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9773 $as_echo_n "checking for wslen in -lw... " >&6; }
9774 if test "${ac_cv_lib_w_wslen+set}" = set; then
9775 $as_echo_n "(cached) " >&6
9776 else
9777 ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char wslen ();
9794 main ()
9796 return wslen ();
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9808 $as_echo "$ac_try_echo") >&5
9809 (eval "$ac_link") 2>conftest.er1
9810 ac_status=$?
9811 grep -v '^ *+' conftest.er1 >conftest.err
9812 rm -f conftest.er1
9813 cat conftest.err >&5
9814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); } && {
9816 test -z "$ac_c_werror_flag" ||
9817 test ! -s conftest.err
9818 } && test -s conftest$ac_exeext && {
9819 test "$cross_compiling" = yes ||
9820 $as_test_x conftest$ac_exeext
9821 }; then
9822 ac_cv_lib_w_wslen=yes
9823 else
9824 $as_echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_lib_w_wslen=no
9830 rm -rf conftest.dSYM
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9836 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9837 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9841 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9842 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9843 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9844 $as_echo_n "(cached) " >&6
9845 else
9846 ac_check_lib_save_LIBS=$LIBS
9847 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9855 /* Override any GCC internal prototype to avoid an error.
9856 Use char because int might match the return type of a GCC
9857 builtin and then its argument prototype would still apply. */
9858 #ifdef __cplusplus
9859 extern "C"
9860 #endif
9861 char dlsym ();
9863 main ()
9865 return dlsym ();
9867 return 0;
9869 _ACEOF
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (ac_try="$ac_link"
9872 case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875 esac
9876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9877 $as_echo "$ac_try_echo") >&5
9878 (eval "$ac_link") 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } && {
9885 test -z "$ac_c_werror_flag" ||
9886 test ! -s conftest.err
9887 } && test -s conftest$ac_exeext && {
9888 test "$cross_compiling" = yes ||
9889 $as_test_x conftest$ac_exeext
9890 }; then
9891 ac_cv_lib_dl_dlsym=yes
9892 else
9893 $as_echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9896 ac_cv_lib_dl_dlsym=no
9899 rm -rf conftest.dSYM
9900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9905 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9906 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9910 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9911 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9912 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9913 $as_echo_n "(cached) " >&6
9914 else
9915 ac_check_lib_save_LIBS=$LIBS
9916 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h. */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char XmuCreateStippledPixmap ();
9932 main ()
9934 return XmuCreateStippledPixmap ();
9936 return 0;
9938 _ACEOF
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (ac_try="$ac_link"
9941 case "(($ac_try" in
9942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9943 *) ac_try_echo=$ac_try;;
9944 esac
9945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9946 $as_echo "$ac_try_echo") >&5
9947 (eval "$ac_link") 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } && {
9954 test -z "$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9956 } && test -s conftest$ac_exeext && {
9957 test "$cross_compiling" = yes ||
9958 $as_test_x conftest$ac_exeext
9959 }; then
9960 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9961 else
9962 $as_echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9965 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9968 rm -rf conftest.dSYM
9969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9970 conftest$ac_exeext conftest.$ac_ext
9971 LIBS=$ac_check_lib_save_LIBS
9973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9974 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9975 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9976 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9979 if test -z "$SKIP_MOTIF"; then
9980 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9981 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9982 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9983 $as_echo_n "(cached) " >&6
9984 else
9985 ac_check_lib_save_LIBS=$LIBS
9986 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char XpEndJob ();
10002 main ()
10004 return XpEndJob ();
10006 return 0;
10008 _ACEOF
10009 rm -f conftest.$ac_objext conftest$ac_exeext
10010 if { (ac_try="$ac_link"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014 esac
10015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016 $as_echo "$ac_try_echo") >&5
10017 (eval "$ac_link") 2>conftest.er1
10018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
10025 test ! -s conftest.err
10026 } && test -s conftest$ac_exeext && {
10027 test "$cross_compiling" = yes ||
10028 $as_test_x conftest$ac_exeext
10029 }; then
10030 ac_cv_lib_Xp_XpEndJob=yes
10031 else
10032 $as_echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10035 ac_cv_lib_Xp_XpEndJob=no
10038 rm -rf conftest.dSYM
10039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_lib_save_LIBS
10043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
10044 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
10045 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
10046 GUI_X_LIBS="-lXp $GUI_X_LIBS"
10050 LDFLAGS=$ldflags_save
10052 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
10053 $as_echo_n "checking for extra X11 defines... " >&6; }
10054 NARROW_PROTO=
10055 rm -fr conftestdir
10056 if mkdir conftestdir; then
10057 cd conftestdir
10058 cat > Imakefile <<'EOF'
10059 acfindx:
10060 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
10062 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10063 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10065 cd ..
10066 rm -fr conftestdir
10068 if test -z "$NARROW_PROTO"; then
10069 { $as_echo "$as_me:$LINENO: result: no" >&5
10070 $as_echo "no" >&6; }
10071 else
10072 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
10073 $as_echo "$NARROW_PROTO" >&6; }
10078 if test "$enable_xsmp" = "yes"; then
10079 cppflags_save=$CPPFLAGS
10080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10082 for ac_header in X11/SM/SMlib.h
10084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10087 $as_echo_n "checking for $ac_header... " >&6; }
10088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10089 $as_echo_n "(cached) " >&6
10091 ac_res=`eval 'as_val=${'$as_ac_Header'}
10092 $as_echo "$as_val"'`
10093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10094 $as_echo "$ac_res" >&6; }
10095 else
10096 # Is the header compilable?
10097 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10098 $as_echo_n "checking $ac_header usability... " >&6; }
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 $ac_includes_default
10106 #include <$ac_header>
10107 _ACEOF
10108 rm -f conftest.$ac_objext
10109 if { (ac_try="$ac_compile"
10110 case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113 esac
10114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10115 $as_echo "$ac_try_echo") >&5
10116 (eval "$ac_compile") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest.$ac_objext; then
10126 ac_header_compiler=yes
10127 else
10128 $as_echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 ac_header_compiler=no
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 $as_echo "$ac_header_compiler" >&6; }
10138 # Is the header present?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 $as_echo_n "checking $ac_header presence... " >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h. */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 #include <$ac_header>
10148 _ACEOF
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153 esac
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } >/dev/null && {
10163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 }; then
10166 ac_header_preproc=yes
10167 else
10168 $as_echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ac_header_preproc=no
10174 rm -f conftest.err conftest.$ac_ext
10175 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10176 $as_echo "$ac_header_preproc" >&6; }
10178 # So? What about this header?
10179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10180 yes:no: )
10181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10182 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10185 ac_header_preproc=yes
10187 no:yes:* )
10188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10189 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10191 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10193 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10195 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10199 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10202 esac
10203 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10204 $as_echo_n "checking for $ac_header... " >&6; }
10205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10206 $as_echo_n "(cached) " >&6
10207 else
10208 eval "$as_ac_Header=\$ac_header_preproc"
10210 ac_res=`eval 'as_val=${'$as_ac_Header'}
10211 $as_echo "$as_val"'`
10212 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10213 $as_echo "$ac_res" >&6; }
10216 as_val=`eval 'as_val=${'$as_ac_Header'}
10217 $as_echo "$as_val"'`
10218 if test "x$as_val" = x""yes; then
10219 cat >>confdefs.h <<_ACEOF
10220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10221 _ACEOF
10225 done
10227 CPPFLAGS=$cppflags_save
10231 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
10232 cppflags_save=$CPPFLAGS
10233 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10236 for ac_header in X11/xpm.h X11/Sunkeysym.h
10238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10241 $as_echo_n "checking for $ac_header... " >&6; }
10242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10243 $as_echo_n "(cached) " >&6
10245 ac_res=`eval 'as_val=${'$as_ac_Header'}
10246 $as_echo "$as_val"'`
10247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10248 $as_echo "$ac_res" >&6; }
10249 else
10250 # Is the header compilable?
10251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10252 $as_echo_n "checking $ac_header usability... " >&6; }
10253 cat >conftest.$ac_ext <<_ACEOF
10254 /* confdefs.h. */
10255 _ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 #include <$ac_header>
10261 _ACEOF
10262 rm -f conftest.$ac_objext
10263 if { (ac_try="$ac_compile"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10269 $as_echo "$ac_try_echo") >&5
10270 (eval "$ac_compile") 2>conftest.er1
10271 ac_status=$?
10272 grep -v '^ *+' conftest.er1 >conftest.err
10273 rm -f conftest.er1
10274 cat conftest.err >&5
10275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest.$ac_objext; then
10280 ac_header_compiler=yes
10281 else
10282 $as_echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 ac_header_compiler=no
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10290 $as_echo "$ac_header_compiler" >&6; }
10292 # Is the header present?
10293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10294 $as_echo_n "checking $ac_header presence... " >&6; }
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 #include <$ac_header>
10302 _ACEOF
10303 if { (ac_try="$ac_cpp conftest.$ac_ext"
10304 case "(($ac_try" in
10305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306 *) ac_try_echo=$ac_try;;
10307 esac
10308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10309 $as_echo "$ac_try_echo") >&5
10310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10311 ac_status=$?
10312 grep -v '^ *+' conftest.er1 >conftest.err
10313 rm -f conftest.er1
10314 cat conftest.err >&5
10315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } >/dev/null && {
10317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10318 test ! -s conftest.err
10319 }; then
10320 ac_header_preproc=yes
10321 else
10322 $as_echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_header_preproc=no
10328 rm -f conftest.err conftest.$ac_ext
10329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10330 $as_echo "$ac_header_preproc" >&6; }
10332 # So? What about this header?
10333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10334 yes:no: )
10335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10339 ac_header_preproc=yes
10341 no:yes:* )
10342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10356 esac
10357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 $as_echo_n "checking for $ac_header... " >&6; }
10359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10360 $as_echo_n "(cached) " >&6
10361 else
10362 eval "$as_ac_Header=\$ac_header_preproc"
10364 ac_res=`eval 'as_val=${'$as_ac_Header'}
10365 $as_echo "$as_val"'`
10366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10367 $as_echo "$ac_res" >&6; }
10370 as_val=`eval 'as_val=${'$as_ac_Header'}
10371 $as_echo "$as_val"'`
10372 if test "x$as_val" = x""yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375 _ACEOF
10379 done
10382 if test ! "$enable_xim" = "no"; then
10383 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10384 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #include <X11/Xlib.h>
10392 _ACEOF
10393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10394 $EGREP "XIMText" >/dev/null 2>&1; then
10395 { $as_echo "$as_me:$LINENO: result: yes" >&5
10396 $as_echo "yes" >&6; }
10397 else
10398 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10399 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10401 rm -f conftest*
10404 CPPFLAGS=$cppflags_save
10406 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10407 -a "x$GUITYPE" != "xNONE" ; then
10408 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10409 $as_echo "X GUI selected; xim has been enabled" >&6; }
10410 enable_xim="yes"
10414 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10415 cppflags_save=$CPPFLAGS
10416 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10417 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10418 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10419 cat >conftest.$ac_ext <<_ACEOF
10420 /* confdefs.h. */
10421 _ACEOF
10422 cat confdefs.h >>conftest.$ac_ext
10423 cat >>conftest.$ac_ext <<_ACEOF
10424 /* end confdefs.h. */
10426 #include <X11/Intrinsic.h>
10427 #include <X11/Xmu/Editres.h>
10429 main ()
10431 int i; i = 0;
10433 return 0;
10435 _ACEOF
10436 rm -f conftest.$ac_objext
10437 if { (ac_try="$ac_compile"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441 esac
10442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10443 $as_echo "$ac_try_echo") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.$ac_objext; then
10454 { $as_echo "$as_me:$LINENO: result: yes" >&5
10455 $as_echo "yes" >&6; }
10456 cat >>confdefs.h <<\_ACEOF
10457 #define HAVE_X11_XMU_EDITRES_H 1
10458 _ACEOF
10460 else
10461 $as_echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 { $as_echo "$as_me:$LINENO: result: no" >&5
10465 $as_echo "no" >&6; }
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 CPPFLAGS=$cppflags_save
10472 if test -z "$SKIP_MOTIF"; then
10473 cppflags_save=$CPPFLAGS
10474 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10482 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10483 Xm/UnhighlightT.h Xm/Notebook.h
10485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10487 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 $as_echo_n "checking for $ac_header... " >&6; }
10489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10490 $as_echo_n "(cached) " >&6
10492 ac_res=`eval 'as_val=${'$as_ac_Header'}
10493 $as_echo "$as_val"'`
10494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10495 $as_echo "$ac_res" >&6; }
10496 else
10497 # Is the header compilable?
10498 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10499 $as_echo_n "checking $ac_header usability... " >&6; }
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 #include <$ac_header>
10508 _ACEOF
10509 rm -f conftest.$ac_objext
10510 if { (ac_try="$ac_compile"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514 esac
10515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10516 $as_echo "$ac_try_echo") >&5
10517 (eval "$ac_compile") 2>conftest.er1
10518 ac_status=$?
10519 grep -v '^ *+' conftest.er1 >conftest.err
10520 rm -f conftest.er1
10521 cat conftest.err >&5
10522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } && {
10524 test -z "$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10526 } && test -s conftest.$ac_objext; then
10527 ac_header_compiler=yes
10528 else
10529 $as_echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_header_compiler=no
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10537 $as_echo "$ac_header_compiler" >&6; }
10539 # Is the header present?
10540 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10541 $as_echo_n "checking $ac_header presence... " >&6; }
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h. */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 #include <$ac_header>
10549 _ACEOF
10550 if { (ac_try="$ac_cpp conftest.$ac_ext"
10551 case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554 esac
10555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556 $as_echo "$ac_try_echo") >&5
10557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } >/dev/null && {
10564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 }; then
10567 ac_header_preproc=yes
10568 else
10569 $as_echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_header_preproc=no
10575 rm -f conftest.err conftest.$ac_ext
10576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10577 $as_echo "$ac_header_preproc" >&6; }
10579 # So? What about this header?
10580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10581 yes:no: )
10582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10583 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10586 ac_header_preproc=yes
10588 no:yes:* )
10589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10590 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10592 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10594 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10596 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10600 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10603 esac
10604 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10605 $as_echo_n "checking for $ac_header... " >&6; }
10606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10607 $as_echo_n "(cached) " >&6
10608 else
10609 eval "$as_ac_Header=\$ac_header_preproc"
10611 ac_res=`eval 'as_val=${'$as_ac_Header'}
10612 $as_echo "$as_val"'`
10613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10614 $as_echo "$ac_res" >&6; }
10617 as_val=`eval 'as_val=${'$as_ac_Header'}
10618 $as_echo "$as_val"'`
10619 if test "x$as_val" = x""yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10622 _ACEOF
10626 done
10629 if test $ac_cv_header_Xm_XpmP_h = yes; then
10630 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10631 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <Xm/XpmP.h>
10640 main ()
10642 XpmAttributes_21 attr;
10644 return 0;
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
10665 { $as_echo "$as_me:$LINENO: result: yes" >&5
10666 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10667 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10668 _ACEOF
10670 else
10671 $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 { $as_echo "$as_me:$LINENO: result: no" >&5
10675 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10676 #define XPMATTRIBUTES_TYPE XpmAttributes
10677 _ACEOF
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 else
10684 cat >>confdefs.h <<\_ACEOF
10685 #define XPMATTRIBUTES_TYPE XpmAttributes
10686 _ACEOF
10689 CPPFLAGS=$cppflags_save
10692 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10693 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10694 $as_echo "no GUI selected; xim has been disabled" >&6; }
10695 enable_xim="no"
10697 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10698 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10699 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10700 enable_fontset="no"
10702 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10703 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10704 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10705 enable_fontset="no"
10708 if test -z "$SKIP_PHOTON"; then
10709 GUITYPE=PHOTONGUI
10717 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10718 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10719 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10720 { (exit 1); exit 1; }; }
10723 if test "$enable_xim" = "yes"; then
10724 cat >>confdefs.h <<\_ACEOF
10725 #define FEAT_XIM 1
10726 _ACEOF
10729 if test "$enable_fontset" = "yes"; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define FEAT_XFONTSET 1
10732 _ACEOF
10739 if test "$enable_hangulinput" = "yes"; then
10740 if test "x$GUITYPE" = "xNONE"; then
10741 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10742 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10743 enable_hangulinput=no
10744 else
10745 cat >>confdefs.h <<\_ACEOF
10746 #define FEAT_HANGULIN 1
10747 _ACEOF
10749 HANGULIN_SRC=hangulin.c
10751 HANGULIN_OBJ=objects/hangulin.o
10757 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10758 $as_echo_n "checking whether toupper is broken... " >&6; }
10759 if test "${vim_cv_toupper_broken+set}" = set; then
10760 $as_echo_n "(cached) " >&6
10761 else
10763 if test "$cross_compiling" = yes; then
10765 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10766 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10767 { (exit 1); exit 1; }; }
10769 else
10770 cat >conftest.$ac_ext <<_ACEOF
10772 #include "confdefs.h"
10773 #include <ctype.h>
10774 #if STDC_HEADERS
10775 # include <stdlib.h>
10776 # include <stddef.h>
10777 #endif
10778 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10780 _ACEOF
10781 rm -f conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786 esac
10787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10788 $as_echo "$ac_try_echo") >&5
10789 (eval "$ac_link") 2>&5
10790 ac_status=$?
10791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10793 { (case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796 esac
10797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10798 $as_echo "$ac_try_echo") >&5
10799 (eval "$ac_try") 2>&5
10800 ac_status=$?
10801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10804 vim_cv_toupper_broken=yes
10806 else
10807 $as_echo "$as_me: program exited with status $ac_status" >&5
10808 $as_echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 ( exit $ac_status )
10813 vim_cv_toupper_broken=no
10816 rm -rf conftest.dSYM
10817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10822 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10823 $as_echo "$vim_cv_toupper_broken" >&6; }
10825 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10826 cat >>confdefs.h <<\_ACEOF
10827 #define BROKEN_TOUPPER 1
10828 _ACEOF
10832 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10833 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 #include <stdio.h>
10842 main ()
10844 printf("(" __DATE__ " " __TIME__ ")");
10846 return 0;
10848 _ACEOF
10849 rm -f conftest.$ac_objext
10850 if { (ac_try="$ac_compile"
10851 case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854 esac
10855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857 (eval "$ac_compile") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest.$ac_objext; then
10867 { $as_echo "$as_me:$LINENO: result: yes" >&5
10868 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10869 #define HAVE_DATE_TIME 1
10870 _ACEOF
10872 else
10873 $as_echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10876 { $as_echo "$as_me:$LINENO: result: no" >&5
10877 $as_echo "no" >&6; }
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10883 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10884 cat >conftest.$ac_ext <<_ACEOF
10885 /* confdefs.h. */
10886 _ACEOF
10887 cat confdefs.h >>conftest.$ac_ext
10888 cat >>conftest.$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10890 #include <stdio.h>
10892 main ()
10894 int x __attribute__((unused));
10896 return 0;
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (ac_try="$ac_compile"
10901 case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904 esac
10905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10906 $as_echo "$ac_try_echo") >&5
10907 (eval "$ac_compile") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest.$ac_objext; then
10917 { $as_echo "$as_me:$LINENO: result: yes" >&5
10918 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10919 #define HAVE_ATTRIBUTE_UNUSED 1
10920 _ACEOF
10922 else
10923 $as_echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 { $as_echo "$as_me:$LINENO: result: no" >&5
10927 $as_echo "no" >&6; }
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 if test "${ac_cv_header_elf_h+set}" = set; then
10933 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10934 $as_echo_n "checking for elf.h... " >&6; }
10935 if test "${ac_cv_header_elf_h+set}" = set; then
10936 $as_echo_n "(cached) " >&6
10938 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10939 $as_echo "$ac_cv_header_elf_h" >&6; }
10940 else
10941 # Is the header compilable?
10942 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10943 $as_echo_n "checking elf.h usability... " >&6; }
10944 cat >conftest.$ac_ext <<_ACEOF
10945 /* confdefs.h. */
10946 _ACEOF
10947 cat confdefs.h >>conftest.$ac_ext
10948 cat >>conftest.$ac_ext <<_ACEOF
10949 /* end confdefs.h. */
10950 $ac_includes_default
10951 #include <elf.h>
10952 _ACEOF
10953 rm -f conftest.$ac_objext
10954 if { (ac_try="$ac_compile"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10960 $as_echo "$ac_try_echo") >&5
10961 (eval "$ac_compile") 2>conftest.er1
10962 ac_status=$?
10963 grep -v '^ *+' conftest.er1 >conftest.err
10964 rm -f conftest.er1
10965 cat conftest.err >&5
10966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } && {
10968 test -z "$ac_c_werror_flag" ||
10969 test ! -s conftest.err
10970 } && test -s conftest.$ac_objext; then
10971 ac_header_compiler=yes
10972 else
10973 $as_echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ac_header_compiler=no
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10981 $as_echo "$ac_header_compiler" >&6; }
10983 # Is the header present?
10984 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10985 $as_echo_n "checking elf.h presence... " >&6; }
10986 cat >conftest.$ac_ext <<_ACEOF
10987 /* confdefs.h. */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10992 #include <elf.h>
10993 _ACEOF
10994 if { (ac_try="$ac_cpp conftest.$ac_ext"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000 $as_echo "$ac_try_echo") >&5
11001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } >/dev/null && {
11008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 }; then
11011 ac_header_preproc=yes
11012 else
11013 $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 ac_header_preproc=no
11019 rm -f conftest.err conftest.$ac_ext
11020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11021 $as_echo "$ac_header_preproc" >&6; }
11023 # So? What about this header?
11024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025 yes:no: )
11026 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
11027 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11028 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
11029 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
11030 ac_header_preproc=yes
11032 no:yes:* )
11033 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
11034 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
11035 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
11036 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
11037 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
11038 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
11039 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
11040 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
11041 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
11042 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
11043 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
11044 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
11047 esac
11048 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
11049 $as_echo_n "checking for elf.h... " >&6; }
11050 if test "${ac_cv_header_elf_h+set}" = set; then
11051 $as_echo_n "(cached) " >&6
11052 else
11053 ac_cv_header_elf_h=$ac_header_preproc
11055 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
11056 $as_echo "$ac_cv_header_elf_h" >&6; }
11059 if test "x$ac_cv_header_elf_h" = x""yes; then
11060 HAS_ELF=1
11064 if test "$HAS_ELF" = 1; then
11066 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
11067 $as_echo_n "checking for main in -lelf... " >&6; }
11068 if test "${ac_cv_lib_elf_main+set}" = set; then
11069 $as_echo_n "(cached) " >&6
11070 else
11071 ac_check_lib_save_LIBS=$LIBS
11072 LIBS="-lelf $LIBS"
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h. */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11082 main ()
11084 return main ();
11086 return 0;
11088 _ACEOF
11089 rm -f conftest.$ac_objext conftest$ac_exeext
11090 if { (ac_try="$ac_link"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096 $as_echo "$ac_try_echo") >&5
11097 (eval "$ac_link") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest$ac_exeext && {
11107 test "$cross_compiling" = yes ||
11108 $as_test_x conftest$ac_exeext
11109 }; then
11110 ac_cv_lib_elf_main=yes
11111 else
11112 $as_echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 ac_cv_lib_elf_main=no
11118 rm -rf conftest.dSYM
11119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11120 conftest$ac_exeext conftest.$ac_ext
11121 LIBS=$ac_check_lib_save_LIBS
11123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
11124 $as_echo "$ac_cv_lib_elf_main" >&6; }
11125 if test "x$ac_cv_lib_elf_main" = x""yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define HAVE_LIBELF 1
11128 _ACEOF
11130 LIBS="-lelf $LIBS"
11141 ac_header_dirent=no
11142 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11143 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11144 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11145 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11147 $as_echo_n "(cached) " >&6
11148 else
11149 cat >conftest.$ac_ext <<_ACEOF
11150 /* confdefs.h. */
11151 _ACEOF
11152 cat confdefs.h >>conftest.$ac_ext
11153 cat >>conftest.$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 #include <sys/types.h>
11156 #include <$ac_hdr>
11159 main ()
11161 if ((DIR *) 0)
11162 return 0;
11164 return 0;
11166 _ACEOF
11167 rm -f conftest.$ac_objext
11168 if { (ac_try="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11172 esac
11173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11174 $as_echo "$ac_try_echo") >&5
11175 (eval "$ac_compile") 2>conftest.er1
11176 ac_status=$?
11177 grep -v '^ *+' conftest.er1 >conftest.err
11178 rm -f conftest.er1
11179 cat conftest.err >&5
11180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } && {
11182 test -z "$ac_c_werror_flag" ||
11183 test ! -s conftest.err
11184 } && test -s conftest.$ac_objext; then
11185 eval "$as_ac_Header=yes"
11186 else
11187 $as_echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 eval "$as_ac_Header=no"
11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 ac_res=`eval 'as_val=${'$as_ac_Header'}
11196 $as_echo "$as_val"'`
11197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11198 $as_echo "$ac_res" >&6; }
11199 as_val=`eval 'as_val=${'$as_ac_Header'}
11200 $as_echo "$as_val"'`
11201 if test "x$as_val" = x""yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11204 _ACEOF
11206 ac_header_dirent=$ac_hdr; break
11209 done
11210 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11211 if test $ac_header_dirent = dirent.h; then
11212 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11213 $as_echo_n "checking for library containing opendir... " >&6; }
11214 if test "${ac_cv_search_opendir+set}" = set; then
11215 $as_echo_n "(cached) " >&6
11216 else
11217 ac_func_search_save_LIBS=$LIBS
11218 cat >conftest.$ac_ext <<_ACEOF
11219 /* confdefs.h. */
11220 _ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 char opendir ();
11233 main ()
11235 return opendir ();
11237 return 0;
11239 _ACEOF
11240 for ac_lib in '' dir; do
11241 if test -z "$ac_lib"; then
11242 ac_res="none required"
11243 else
11244 ac_res=-l$ac_lib
11245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11247 rm -f conftest.$ac_objext conftest$ac_exeext
11248 if { (ac_try="$ac_link"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_link") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest$ac_exeext && {
11265 test "$cross_compiling" = yes ||
11266 $as_test_x conftest$ac_exeext
11267 }; then
11268 ac_cv_search_opendir=$ac_res
11269 else
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11276 rm -rf conftest.dSYM
11277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11278 conftest$ac_exeext
11279 if test "${ac_cv_search_opendir+set}" = set; then
11280 break
11282 done
11283 if test "${ac_cv_search_opendir+set}" = set; then
11285 else
11286 ac_cv_search_opendir=no
11288 rm conftest.$ac_ext
11289 LIBS=$ac_func_search_save_LIBS
11291 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11292 $as_echo "$ac_cv_search_opendir" >&6; }
11293 ac_res=$ac_cv_search_opendir
11294 if test "$ac_res" != no; then
11295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11299 else
11300 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11301 $as_echo_n "checking for library containing opendir... " >&6; }
11302 if test "${ac_cv_search_opendir+set}" = set; then
11303 $as_echo_n "(cached) " >&6
11304 else
11305 ac_func_search_save_LIBS=$LIBS
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char opendir ();
11321 main ()
11323 return opendir ();
11325 return 0;
11327 _ACEOF
11328 for ac_lib in '' x; do
11329 if test -z "$ac_lib"; then
11330 ac_res="none required"
11331 else
11332 ac_res=-l$ac_lib
11333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11335 rm -f conftest.$ac_objext conftest$ac_exeext
11336 if { (ac_try="$ac_link"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340 esac
11341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11342 $as_echo "$ac_try_echo") >&5
11343 (eval "$ac_link") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest$ac_exeext && {
11353 test "$cross_compiling" = yes ||
11354 $as_test_x conftest$ac_exeext
11355 }; then
11356 ac_cv_search_opendir=$ac_res
11357 else
11358 $as_echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11364 rm -rf conftest.dSYM
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366 conftest$ac_exeext
11367 if test "${ac_cv_search_opendir+set}" = set; then
11368 break
11370 done
11371 if test "${ac_cv_search_opendir+set}" = set; then
11373 else
11374 ac_cv_search_opendir=no
11376 rm conftest.$ac_ext
11377 LIBS=$ac_func_search_save_LIBS
11379 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11380 $as_echo "$ac_cv_search_opendir" >&6; }
11381 ac_res=$ac_cv_search_opendir
11382 if test "$ac_res" != no; then
11383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11390 if test $ac_cv_header_sys_wait_h = no; then
11391 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11392 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <sys/wait.h>
11401 main ()
11403 union wait xx, yy; xx = yy
11405 return 0;
11407 _ACEOF
11408 rm -f conftest.$ac_objext
11409 if { (ac_try="$ac_compile"
11410 case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413 esac
11414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11415 $as_echo "$ac_try_echo") >&5
11416 (eval "$ac_compile") 2>conftest.er1
11417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
11421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
11425 } && test -s conftest.$ac_objext; then
11426 { $as_echo "$as_me:$LINENO: result: yes" >&5
11427 $as_echo "yes" >&6; }
11428 cat >>confdefs.h <<\_ACEOF
11429 #define HAVE_SYS_WAIT_H 1
11430 _ACEOF
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_UNION_WAIT 1
11434 _ACEOF
11436 else
11437 $as_echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 { $as_echo "$as_me:$LINENO: result: no" >&5
11441 $as_echo "no" >&6; }
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11488 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11489 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11490 sys/resource.h sys/systeminfo.h locale.h \
11491 sys/stream.h termios.h libc.h sys/statfs.h \
11492 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11493 libgen.h util/debug.h util/msg18n.h frame.h \
11494 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 $as_echo_n "checking for $ac_header... " >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 ac_res=`eval 'as_val=${'$as_ac_Header'}
11504 $as_echo "$as_val"'`
11505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11506 $as_echo "$ac_res" >&6; }
11507 else
11508 # Is the header compilable?
11509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11510 $as_echo_n "checking $ac_header usability... " >&6; }
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h. */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <$ac_header>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524 *) ac_try_echo=$ac_try;;
11525 esac
11526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11527 $as_echo "$ac_try_echo") >&5
11528 (eval "$ac_compile") 2>conftest.er1
11529 ac_status=$?
11530 grep -v '^ *+' conftest.er1 >conftest.err
11531 rm -f conftest.er1
11532 cat conftest.err >&5
11533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11538 ac_header_compiler=yes
11539 else
11540 $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_compiler=no
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11548 $as_echo "$ac_header_compiler" >&6; }
11550 # Is the header present?
11551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11552 $as_echo_n "checking $ac_header presence... " >&6; }
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <$ac_header>
11560 _ACEOF
11561 if { (ac_try="$ac_cpp conftest.$ac_ext"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11567 $as_echo "$ac_try_echo") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null && {
11575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11576 test ! -s conftest.err
11577 }; then
11578 ac_header_preproc=yes
11579 else
11580 $as_echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_header_preproc=no
11586 rm -f conftest.err conftest.$ac_ext
11587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11588 $as_echo "$ac_header_preproc" >&6; }
11590 # So? What about this header?
11591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11592 yes:no: )
11593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11597 ac_header_preproc=yes
11599 no:yes:* )
11600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11614 esac
11615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11616 $as_echo_n "checking for $ac_header... " >&6; }
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618 $as_echo_n "(cached) " >&6
11619 else
11620 eval "$as_ac_Header=\$ac_header_preproc"
11622 ac_res=`eval 'as_val=${'$as_ac_Header'}
11623 $as_echo "$as_val"'`
11624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11625 $as_echo "$ac_res" >&6; }
11628 as_val=`eval 'as_val=${'$as_ac_Header'}
11629 $as_echo "$as_val"'`
11630 if test "x$as_val" = x""yes; then
11631 cat >>confdefs.h <<_ACEOF
11632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 _ACEOF
11637 done
11641 for ac_header in sys/ptem.h
11643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11645 $as_echo_n "checking for $ac_header... " >&6; }
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 $as_echo_n "(cached) " >&6
11648 else
11649 cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h. */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 #if defined HAVE_SYS_STREAM_H
11656 # include <sys/stream.h>
11657 #endif
11659 #include <$ac_header>
11660 _ACEOF
11661 rm -f conftest.$ac_objext
11662 if { (ac_try="$ac_compile"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666 esac
11667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11668 $as_echo "$ac_try_echo") >&5
11669 (eval "$ac_compile") 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } && {
11676 test -z "$ac_c_werror_flag" ||
11677 test ! -s conftest.err
11678 } && test -s conftest.$ac_objext; then
11679 eval "$as_ac_Header=yes"
11680 else
11681 $as_echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 eval "$as_ac_Header=no"
11687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 ac_res=`eval 'as_val=${'$as_ac_Header'}
11690 $as_echo "$as_val"'`
11691 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11692 $as_echo "$ac_res" >&6; }
11693 as_val=`eval 'as_val=${'$as_ac_Header'}
11694 $as_echo "$as_val"'`
11695 if test "x$as_val" = x""yes; then
11696 cat >>confdefs.h <<_ACEOF
11697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11698 _ACEOF
11702 done
11706 for ac_header in sys/sysctl.h
11708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11710 $as_echo_n "checking for $ac_header... " >&6; }
11711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11712 $as_echo_n "(cached) " >&6
11713 else
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 #if defined HAVE_SYS_PARAM_H
11721 # include <sys/param.h>
11722 #endif
11724 #include <$ac_header>
11725 _ACEOF
11726 rm -f conftest.$ac_objext
11727 if { (ac_try="$ac_compile"
11728 case "(($ac_try" in
11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730 *) ac_try_echo=$ac_try;;
11731 esac
11732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11733 $as_echo "$ac_try_echo") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11744 eval "$as_ac_Header=yes"
11745 else
11746 $as_echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 eval "$as_ac_Header=no"
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 ac_res=`eval 'as_val=${'$as_ac_Header'}
11755 $as_echo "$as_val"'`
11756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11757 $as_echo "$ac_res" >&6; }
11758 as_val=`eval 'as_val=${'$as_ac_Header'}
11759 $as_echo "$as_val"'`
11760 if test "x$as_val" = x""yes; then
11761 cat >>confdefs.h <<_ACEOF
11762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11763 _ACEOF
11767 done
11771 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11772 $as_echo_n "checking for pthread_np.h... " >&6; }
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h. */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11780 #include <pthread.h>
11781 #include <pthread_np.h>
11783 main ()
11785 int i; i = 0;
11787 return 0;
11789 _ACEOF
11790 rm -f conftest.$ac_objext
11791 if { (ac_try="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11797 $as_echo "$ac_try_echo") >&5
11798 (eval "$ac_compile") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest.$ac_objext; then
11808 { $as_echo "$as_me:$LINENO: result: yes" >&5
11809 $as_echo "yes" >&6; }
11810 cat >>confdefs.h <<\_ACEOF
11811 #define HAVE_PTHREAD_NP_H 1
11812 _ACEOF
11814 else
11815 $as_echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 { $as_echo "$as_me:$LINENO: result: no" >&5
11819 $as_echo "no" >&6; }
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 for ac_header in strings.h
11827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11830 $as_echo_n "checking for $ac_header... " >&6; }
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 $as_echo_n "(cached) " >&6
11834 ac_res=`eval 'as_val=${'$as_ac_Header'}
11835 $as_echo "$as_val"'`
11836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11837 $as_echo "$ac_res" >&6; }
11838 else
11839 # Is the header compilable?
11840 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11841 $as_echo_n "checking $ac_header usability... " >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11849 #include <$ac_header>
11850 _ACEOF
11851 rm -f conftest.$ac_objext
11852 if { (ac_try="$ac_compile"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11856 esac
11857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11858 $as_echo "$ac_try_echo") >&5
11859 (eval "$ac_compile") 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest.$ac_objext; then
11869 ac_header_compiler=yes
11870 else
11871 $as_echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_compiler=no
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11879 $as_echo "$ac_header_compiler" >&6; }
11881 # Is the header present?
11882 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11883 $as_echo_n "checking $ac_header presence... " >&6; }
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 #include <$ac_header>
11891 _ACEOF
11892 if { (ac_try="$ac_cpp conftest.$ac_ext"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896 esac
11897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898 $as_echo "$ac_try_echo") >&5
11899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11900 ac_status=$?
11901 grep -v '^ *+' conftest.er1 >conftest.err
11902 rm -f conftest.er1
11903 cat conftest.err >&5
11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } >/dev/null && {
11906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 }; then
11909 ac_header_preproc=yes
11910 else
11911 $as_echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_header_preproc=no
11917 rm -f conftest.err conftest.$ac_ext
11918 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11919 $as_echo "$ac_header_preproc" >&6; }
11921 # So? What about this header?
11922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11923 yes:no: )
11924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11925 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11928 ac_header_preproc=yes
11930 no:yes:* )
11931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11932 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11945 esac
11946 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11947 $as_echo_n "checking for $ac_header... " >&6; }
11948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 $as_echo_n "(cached) " >&6
11950 else
11951 eval "$as_ac_Header=\$ac_header_preproc"
11953 ac_res=`eval 'as_val=${'$as_ac_Header'}
11954 $as_echo "$as_val"'`
11955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11956 $as_echo "$ac_res" >&6; }
11959 as_val=`eval 'as_val=${'$as_ac_Header'}
11960 $as_echo "$as_val"'`
11961 if test "x$as_val" = x""yes; then
11962 cat >>confdefs.h <<_ACEOF
11963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11964 _ACEOF
11968 done
11970 if test "x$MACOSX" = "xyes"; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define NO_STRINGS_WITH_STRING_H 1
11973 _ACEOF
11975 else
11977 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11978 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11979 cppflags_save=$CPPFLAGS
11980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h. */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11988 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11989 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11990 /* but don't do it on AIX 5.1 (Uribarri) */
11991 #endif
11992 #ifdef HAVE_XM_XM_H
11993 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11994 #endif
11995 #ifdef HAVE_STRING_H
11996 # include <string.h>
11997 #endif
11998 #if defined(HAVE_STRINGS_H)
11999 # include <strings.h>
12000 #endif
12003 main ()
12005 int i; i = 0;
12007 return 0;
12009 _ACEOF
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015 esac
12016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.$ac_objext; then
12028 { $as_echo "$as_me:$LINENO: result: yes" >&5
12029 $as_echo "yes" >&6; }
12030 else
12031 $as_echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.$ac_ext >&5
12034 cat >>confdefs.h <<\_ACEOF
12035 #define NO_STRINGS_WITH_STRING_H 1
12036 _ACEOF
12038 { $as_echo "$as_me:$LINENO: result: no" >&5
12039 $as_echo "no" >&6; }
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 CPPFLAGS=$cppflags_save
12046 if test $ac_cv_c_compiler_gnu = yes; then
12047 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12048 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
12049 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12050 $as_echo_n "(cached) " >&6
12051 else
12052 ac_pattern="Autoconf.*'x'"
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 #include <sgtty.h>
12060 Autoconf TIOCGETP
12061 _ACEOF
12062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12063 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12064 ac_cv_prog_gcc_traditional=yes
12065 else
12066 ac_cv_prog_gcc_traditional=no
12068 rm -f conftest*
12071 if test $ac_cv_prog_gcc_traditional = no; then
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 #include <termio.h>
12079 Autoconf TCGETA
12080 _ACEOF
12081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12082 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12083 ac_cv_prog_gcc_traditional=yes
12085 rm -f conftest*
12089 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12090 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
12091 if test $ac_cv_prog_gcc_traditional = yes; then
12092 CC="$CC -traditional"
12096 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12097 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12098 if test "${ac_cv_c_const+set}" = set; then
12099 $as_echo_n "(cached) " >&6
12100 else
12101 cat >conftest.$ac_ext <<_ACEOF
12102 /* confdefs.h. */
12103 _ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12109 main ()
12111 /* FIXME: Include the comments suggested by Paul. */
12112 #ifndef __cplusplus
12113 /* Ultrix mips cc rejects this. */
12114 typedef int charset[2];
12115 const charset cs;
12116 /* SunOS 4.1.1 cc rejects this. */
12117 char const *const *pcpcc;
12118 char **ppc;
12119 /* NEC SVR4.0.2 mips cc rejects this. */
12120 struct point {int x, y;};
12121 static struct point const zero = {0,0};
12122 /* AIX XL C 1.02.0.0 rejects this.
12123 It does not let you subtract one const X* pointer from another in
12124 an arm of an if-expression whose if-part is not a constant
12125 expression */
12126 const char *g = "string";
12127 pcpcc = &g + (g ? g-g : 0);
12128 /* HPUX 7.0 cc rejects these. */
12129 ++pcpcc;
12130 ppc = (char**) pcpcc;
12131 pcpcc = (char const *const *) ppc;
12132 { /* SCO 3.2v4 cc rejects this. */
12133 char *t;
12134 char const *s = 0 ? (char *) 0 : (char const *) 0;
12136 *t++ = 0;
12137 if (s) return 0;
12139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12140 int x[] = {25, 17};
12141 const int *foo = &x[0];
12142 ++foo;
12144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12145 typedef const int *iptr;
12146 iptr p = 0;
12147 ++p;
12149 { /* AIX XL C 1.02.0.0 rejects this saying
12150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12151 struct s { int j; const int *ap[3]; };
12152 struct s *b; b->j = 5;
12154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12155 const int foo = 10;
12156 if (!foo) return 0;
12158 return !cs[0] && !zero.x;
12159 #endif
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12174 ac_status=$?
12175 grep -v '^ *+' conftest.er1 >conftest.err
12176 rm -f conftest.er1
12177 cat conftest.err >&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12183 ac_cv_c_const=yes
12184 else
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_c_const=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12194 $as_echo "$ac_cv_c_const" >&6; }
12195 if test $ac_cv_c_const = no; then
12197 cat >>confdefs.h <<\_ACEOF
12198 #define const /**/
12199 _ACEOF
12203 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
12204 $as_echo_n "checking for working volatile... " >&6; }
12205 if test "${ac_cv_c_volatile+set}" = set; then
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat >conftest.$ac_ext <<_ACEOF
12209 /* confdefs.h. */
12210 _ACEOF
12211 cat confdefs.h >>conftest.$ac_ext
12212 cat >>conftest.$ac_ext <<_ACEOF
12213 /* end confdefs.h. */
12216 main ()
12219 volatile int x;
12220 int * volatile y = (int *) 0;
12221 return !x && !y;
12223 return 0;
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (ac_try="$ac_compile"
12228 case "(($ac_try" in
12229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12230 *) ac_try_echo=$ac_try;;
12231 esac
12232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12233 $as_echo "$ac_try_echo") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12235 ac_status=$?
12236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 ac_cv_c_volatile=yes
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_c_volatile=no
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12255 $as_echo "$ac_cv_c_volatile" >&6; }
12256 if test $ac_cv_c_volatile = no; then
12258 cat >>confdefs.h <<\_ACEOF
12259 #define volatile /**/
12260 _ACEOF
12264 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
12265 $as_echo_n "checking for mode_t... " >&6; }
12266 if test "${ac_cv_type_mode_t+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12268 else
12269 ac_cv_type_mode_t=no
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h. */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12278 main ()
12280 if (sizeof (mode_t))
12281 return 0;
12283 return 0;
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291 esac
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_compile") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.$ac_objext; then
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12312 main ()
12314 if (sizeof ((mode_t)))
12315 return 0;
12317 return 0;
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (ac_try="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12325 esac
12326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12327 $as_echo "$ac_try_echo") >&5
12328 (eval "$ac_compile") 2>conftest.er1
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } && {
12335 test -z "$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12337 } && test -s conftest.$ac_objext; then
12339 else
12340 $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_type_mode_t=yes
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347 else
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12357 $as_echo "$ac_cv_type_mode_t" >&6; }
12358 if test "x$ac_cv_type_mode_t" = x""yes; then
12360 else
12362 cat >>confdefs.h <<_ACEOF
12363 #define mode_t int
12364 _ACEOF
12368 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12369 $as_echo_n "checking for off_t... " >&6; }
12370 if test "${ac_cv_type_off_t+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12372 else
12373 ac_cv_type_off_t=no
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 $ac_includes_default
12382 main ()
12384 if (sizeof (off_t))
12385 return 0;
12387 return 0;
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (ac_try="$ac_compile"
12392 case "(($ac_try" in
12393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394 *) ac_try_echo=$ac_try;;
12395 esac
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398 (eval "$ac_compile") 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } && {
12405 test -z "$ac_c_werror_flag" ||
12406 test ! -s conftest.err
12407 } && test -s conftest.$ac_objext; then
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 $ac_includes_default
12416 main ()
12418 if (sizeof ((off_t)))
12419 return 0;
12421 return 0;
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12431 $as_echo "$ac_try_echo") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12443 else
12444 $as_echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_type_off_t=yes
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 else
12452 $as_echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12461 $as_echo "$ac_cv_type_off_t" >&6; }
12462 if test "x$ac_cv_type_off_t" = x""yes; then
12464 else
12466 cat >>confdefs.h <<_ACEOF
12467 #define off_t long int
12468 _ACEOF
12472 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12473 $as_echo_n "checking for pid_t... " >&6; }
12474 if test "${ac_cv_type_pid_t+set}" = set; then
12475 $as_echo_n "(cached) " >&6
12476 else
12477 ac_cv_type_pid_t=no
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 $ac_includes_default
12486 main ()
12488 if (sizeof (pid_t))
12489 return 0;
12491 return 0;
12493 _ACEOF
12494 rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499 esac
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502 (eval "$ac_compile") 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest.$ac_objext; then
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 $ac_includes_default
12520 main ()
12522 if (sizeof ((pid_t)))
12523 return 0;
12525 return 0;
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (ac_try="$ac_compile"
12530 case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533 esac
12534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12535 $as_echo "$ac_try_echo") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.$ac_objext; then
12547 else
12548 $as_echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12551 ac_cv_type_pid_t=yes
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 else
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12565 $as_echo "$ac_cv_type_pid_t" >&6; }
12566 if test "x$ac_cv_type_pid_t" = x""yes; then
12568 else
12570 cat >>confdefs.h <<_ACEOF
12571 #define pid_t int
12572 _ACEOF
12576 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12577 $as_echo_n "checking for size_t... " >&6; }
12578 if test "${ac_cv_type_size_t+set}" = set; then
12579 $as_echo_n "(cached) " >&6
12580 else
12581 ac_cv_type_size_t=no
12582 cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h. */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 $ac_includes_default
12590 main ()
12592 if (sizeof (size_t))
12593 return 0;
12595 return 0;
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (ac_try="$ac_compile"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605 $as_echo "$ac_try_echo") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 cat >conftest.$ac_ext <<_ACEOF
12617 /* confdefs.h. */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12624 main ()
12626 if (sizeof ((size_t)))
12627 return 0;
12629 return 0;
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (ac_try="$ac_compile"
12634 case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12639 $as_echo "$ac_try_echo") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12651 else
12652 $as_echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 ac_cv_type_size_t=yes
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 else
12660 $as_echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12669 $as_echo "$ac_cv_type_size_t" >&6; }
12670 if test "x$ac_cv_type_size_t" = x""yes; then
12672 else
12674 cat >>confdefs.h <<_ACEOF
12675 #define size_t unsigned int
12676 _ACEOF
12680 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12681 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12682 if test "${ac_cv_type_uid_t+set}" = set; then
12683 $as_echo_n "(cached) " >&6
12684 else
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h. */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 #include <sys/types.h>
12693 _ACEOF
12694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12695 $EGREP "uid_t" >/dev/null 2>&1; then
12696 ac_cv_type_uid_t=yes
12697 else
12698 ac_cv_type_uid_t=no
12700 rm -f conftest*
12703 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12704 $as_echo "$ac_cv_type_uid_t" >&6; }
12705 if test $ac_cv_type_uid_t = no; then
12707 cat >>confdefs.h <<\_ACEOF
12708 #define uid_t int
12709 _ACEOF
12712 cat >>confdefs.h <<\_ACEOF
12713 #define gid_t int
12714 _ACEOF
12718 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12719 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12720 if test "${ac_cv_header_time+set}" = set; then
12721 $as_echo_n "(cached) " >&6
12722 else
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 #include <sys/types.h>
12730 #include <sys/time.h>
12731 #include <time.h>
12734 main ()
12736 if ((struct tm *) 0)
12737 return 0;
12739 return 0;
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747 esac
12748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12749 $as_echo "$ac_try_echo") >&5
12750 (eval "$ac_compile") 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest.$ac_objext; then
12760 ac_cv_header_time=yes
12761 else
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_header_time=no
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12771 $as_echo "$ac_cv_header_time" >&6; }
12772 if test $ac_cv_header_time = yes; then
12774 cat >>confdefs.h <<\_ACEOF
12775 #define TIME_WITH_SYS_TIME 1
12776 _ACEOF
12780 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12781 $as_echo_n "checking for ino_t... " >&6; }
12782 if test "${ac_cv_type_ino_t+set}" = set; then
12783 $as_echo_n "(cached) " >&6
12784 else
12785 ac_cv_type_ino_t=no
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h. */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 $ac_includes_default
12794 main ()
12796 if (sizeof (ino_t))
12797 return 0;
12799 return 0;
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (ac_try="$ac_compile"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12809 $as_echo "$ac_try_echo") >&5
12810 (eval "$ac_compile") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest.$ac_objext; then
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h. */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12828 main ()
12830 if (sizeof ((ino_t)))
12831 return 0;
12833 return 0;
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (ac_try="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12841 esac
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_compile") 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest.$ac_objext; then
12855 else
12856 $as_echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 ac_cv_type_ino_t=yes
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 else
12864 $as_echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12873 $as_echo "$ac_cv_type_ino_t" >&6; }
12874 if test "x$ac_cv_type_ino_t" = x""yes; then
12876 else
12878 cat >>confdefs.h <<_ACEOF
12879 #define ino_t long
12880 _ACEOF
12884 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12885 $as_echo_n "checking for dev_t... " >&6; }
12886 if test "${ac_cv_type_dev_t+set}" = set; then
12887 $as_echo_n "(cached) " >&6
12888 else
12889 ac_cv_type_dev_t=no
12890 cat >conftest.$ac_ext <<_ACEOF
12891 /* confdefs.h. */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 $ac_includes_default
12898 main ()
12900 if (sizeof (dev_t))
12901 return 0;
12903 return 0;
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (ac_try="$ac_compile"
12908 case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911 esac
12912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12913 $as_echo "$ac_try_echo") >&5
12914 (eval "$ac_compile") 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && {
12921 test -z "$ac_c_werror_flag" ||
12922 test ! -s conftest.err
12923 } && test -s conftest.$ac_objext; then
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h. */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 $ac_includes_default
12932 main ()
12934 if (sizeof ((dev_t)))
12935 return 0;
12937 return 0;
12939 _ACEOF
12940 rm -f conftest.$ac_objext
12941 if { (ac_try="$ac_compile"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945 esac
12946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12947 $as_echo "$ac_try_echo") >&5
12948 (eval "$ac_compile") 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && {
12955 test -z "$ac_c_werror_flag" ||
12956 test ! -s conftest.err
12957 } && test -s conftest.$ac_objext; then
12959 else
12960 $as_echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12963 ac_cv_type_dev_t=yes
12966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 else
12968 $as_echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12976 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12977 $as_echo "$ac_cv_type_dev_t" >&6; }
12978 if test "x$ac_cv_type_dev_t" = x""yes; then
12980 else
12982 cat >>confdefs.h <<_ACEOF
12983 #define dev_t unsigned
12984 _ACEOF
12989 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12990 $as_echo_n "checking for rlim_t... " >&6; }
12991 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12992 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12993 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12994 else
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h. */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h. */
13002 #include <sys/types.h>
13003 #if STDC_HEADERS
13004 # include <stdlib.h>
13005 # include <stddef.h>
13006 #endif
13007 #ifdef HAVE_SYS_RESOURCE_H
13008 # include <sys/resource.h>
13009 #endif
13011 _ACEOF
13012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13013 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13014 ac_cv_type_rlim_t=yes
13015 else
13016 ac_cv_type_rlim_t=no
13018 rm -f conftest*
13020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
13021 $as_echo "$ac_cv_type_rlim_t" >&6; }
13023 if test $ac_cv_type_rlim_t = no; then
13024 cat >> confdefs.h <<\EOF
13025 #define rlim_t unsigned long
13029 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
13030 $as_echo_n "checking for stack_t... " >&6; }
13031 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
13032 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
13033 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
13034 else
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h. */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 #include <sys/types.h>
13043 #if STDC_HEADERS
13044 # include <stdlib.h>
13045 # include <stddef.h>
13046 #endif
13047 #include <signal.h>
13049 _ACEOF
13050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13051 $EGREP "stack_t" >/dev/null 2>&1; then
13052 ac_cv_type_stack_t=yes
13053 else
13054 ac_cv_type_stack_t=no
13056 rm -f conftest*
13058 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
13059 $as_echo "$ac_cv_type_stack_t" >&6; }
13061 if test $ac_cv_type_stack_t = no; then
13062 cat >> confdefs.h <<\EOF
13063 #define stack_t struct sigaltstack
13067 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
13068 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h. */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13076 #include <sys/types.h>
13077 #if STDC_HEADERS
13078 # include <stdlib.h>
13079 # include <stddef.h>
13080 #endif
13081 #include <signal.h>
13082 #include "confdefs.h"
13085 main ()
13087 stack_t sigstk; sigstk.ss_base = 0;
13089 return 0;
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_compile") 2>conftest.er1
13101 ac_status=$?
13102 grep -v '^ *+' conftest.er1 >conftest.err
13103 rm -f conftest.er1
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest.$ac_objext; then
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13112 #define HAVE_SS_BASE 1
13113 _ACEOF
13115 else
13116 $as_echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13119 { $as_echo "$as_me:$LINENO: result: no" >&5
13120 $as_echo "no" >&6; }
13123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13125 olibs="$LIBS"
13126 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
13127 $as_echo_n "checking --with-tlib argument... " >&6; }
13129 # Check whether --with-tlib was given.
13130 if test "${with_tlib+set}" = set; then
13131 withval=$with_tlib;
13134 if test -n "$with_tlib"; then
13135 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
13136 $as_echo "$with_tlib" >&6; }
13137 LIBS="$LIBS -l$with_tlib"
13138 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
13139 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13148 main ()
13152 return 0;
13154 _ACEOF
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (ac_try="$ac_link"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160 esac
13161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13162 $as_echo "$ac_try_echo") >&5
13163 (eval "$ac_link") 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest$ac_exeext && {
13173 test "$cross_compiling" = yes ||
13174 $as_test_x conftest$ac_exeext
13175 }; then
13176 { $as_echo "$as_me:$LINENO: result: OK" >&5
13177 $as_echo "OK" >&6; }
13178 else
13179 $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
13183 $as_echo "$as_me: error: FAILED" >&2;}
13184 { (exit 1); exit 1; }; }
13187 rm -rf conftest.dSYM
13188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13189 conftest$ac_exeext conftest.$ac_ext
13190 olibs="$LIBS"
13191 else
13192 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
13193 $as_echo "empty: automatic terminal library selection" >&6; }
13194 case "`uname -s 2>/dev/null`" in
13195 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
13196 *) tlibs="ncurses termlib termcap curses";;
13197 esac
13198 for libname in $tlibs; do
13200 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
13201 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
13202 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
13203 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13204 $as_echo_n "(cached) " >&6
13205 else
13206 ac_check_lib_save_LIBS=$LIBS
13207 LIBS="-l${libname} $LIBS"
13208 cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h. */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h. */
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13218 #ifdef __cplusplus
13219 extern "C"
13220 #endif
13221 char tgetent ();
13223 main ()
13225 return tgetent ();
13227 return 0;
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (ac_try="$ac_link"
13232 case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235 esac
13236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13237 $as_echo "$ac_try_echo") >&5
13238 (eval "$ac_link") 2>conftest.er1
13239 ac_status=$?
13240 grep -v '^ *+' conftest.er1 >conftest.err
13241 rm -f conftest.er1
13242 cat conftest.err >&5
13243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } && {
13245 test -z "$ac_c_werror_flag" ||
13246 test ! -s conftest.err
13247 } && test -s conftest$ac_exeext && {
13248 test "$cross_compiling" = yes ||
13249 $as_test_x conftest$ac_exeext
13250 }; then
13251 eval "$as_ac_Lib=yes"
13252 else
13253 $as_echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 eval "$as_ac_Lib=no"
13259 rm -rf conftest.dSYM
13260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13261 conftest$ac_exeext conftest.$ac_ext
13262 LIBS=$ac_check_lib_save_LIBS
13264 ac_res=`eval 'as_val=${'$as_ac_Lib'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13267 $as_echo "$ac_res" >&6; }
13268 as_val=`eval 'as_val=${'$as_ac_Lib'}
13269 $as_echo "$as_val"'`
13270 if test "x$as_val" = x""yes; then
13271 cat >>confdefs.h <<_ACEOF
13272 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
13273 _ACEOF
13275 LIBS="-l${libname} $LIBS"
13279 if test "x$olibs" != "x$LIBS"; then
13280 if test "$cross_compiling" = yes; then
13281 res="FAIL"
13282 else
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h. */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 #ifdef HAVE_TERMCAP_H
13291 # include <termcap.h>
13292 #endif
13293 #if STDC_HEADERS
13294 # include <stdlib.h>
13295 # include <stddef.h>
13296 #endif
13297 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
13298 _ACEOF
13299 rm -f conftest$ac_exeext
13300 if { (ac_try="$ac_link"
13301 case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304 esac
13305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13306 $as_echo "$ac_try_echo") >&5
13307 (eval "$ac_link") 2>&5
13308 ac_status=$?
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13311 { (case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314 esac
13315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13316 $as_echo "$ac_try_echo") >&5
13317 (eval "$ac_try") 2>&5
13318 ac_status=$?
13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 res="OK"
13322 else
13323 $as_echo "$as_me: program exited with status $ac_status" >&5
13324 $as_echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 ( exit $ac_status )
13328 res="FAIL"
13330 rm -rf conftest.dSYM
13331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13335 if test "$res" = "OK"; then
13336 break
13338 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13339 $as_echo "$libname library is not usable" >&6; }
13340 LIBS="$olibs"
13342 done
13343 if test "x$olibs" = "x$LIBS"; then
13344 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13345 $as_echo "no terminal library found" >&6; }
13349 if test "x$olibs" = "x$LIBS"; then
13350 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13351 $as_echo_n "checking for tgetent()... " >&6; }
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h. */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13360 main ()
13362 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13364 return 0;
13366 _ACEOF
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (ac_try="$ac_link"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372 esac
13373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13374 $as_echo "$ac_try_echo") >&5
13375 (eval "$ac_link") 2>conftest.er1
13376 ac_status=$?
13377 grep -v '^ *+' conftest.er1 >conftest.err
13378 rm -f conftest.er1
13379 cat conftest.err >&5
13380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && {
13382 test -z "$ac_c_werror_flag" ||
13383 test ! -s conftest.err
13384 } && test -s conftest$ac_exeext && {
13385 test "$cross_compiling" = yes ||
13386 $as_test_x conftest$ac_exeext
13387 }; then
13388 { $as_echo "$as_me:$LINENO: result: yes" >&5
13389 $as_echo "yes" >&6; }
13390 else
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13395 You need to install a terminal library; for example ncurses.
13396 Or specify the name of the library with --with-tlib." >&5
13397 $as_echo "$as_me: error: NOT FOUND!
13398 You need to install a terminal library; for example ncurses.
13399 Or specify the name of the library with --with-tlib." >&2;}
13400 { (exit 1); exit 1; }; }
13403 rm -rf conftest.dSYM
13404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13405 conftest$ac_exeext conftest.$ac_ext
13408 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13409 $as_echo_n "checking whether we talk terminfo... " >&6; }
13410 if test "${vim_cv_terminfo+set}" = set; then
13411 $as_echo_n "(cached) " >&6
13412 else
13414 if test "$cross_compiling" = yes; then
13416 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13417 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13418 { (exit 1); exit 1; }; }
13420 else
13421 cat >conftest.$ac_ext <<_ACEOF
13423 #include "confdefs.h"
13424 #ifdef HAVE_TERMCAP_H
13425 # include <termcap.h>
13426 #endif
13427 #ifdef HAVE_STRING_H
13428 # include <string.h>
13429 #endif
13430 #if STDC_HEADERS
13431 # include <stdlib.h>
13432 # include <stddef.h>
13433 #endif
13434 main()
13435 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13437 _ACEOF
13438 rm -f conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13443 esac
13444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13445 $as_echo "$ac_try_echo") >&5
13446 (eval "$ac_link") 2>&5
13447 ac_status=$?
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13450 { (case "(($ac_try" in
13451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13453 esac
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456 (eval "$ac_try") 2>&5
13457 ac_status=$?
13458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13461 vim_cv_terminfo=no
13463 else
13464 $as_echo "$as_me: program exited with status $ac_status" >&5
13465 $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ( exit $ac_status )
13470 vim_cv_terminfo=yes
13473 rm -rf conftest.dSYM
13474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13480 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13481 $as_echo "$vim_cv_terminfo" >&6; }
13483 if test "x$vim_cv_terminfo" = "xyes" ; then
13484 cat >>confdefs.h <<\_ACEOF
13485 #define TERMINFO 1
13486 _ACEOF
13490 if test "x$olibs" != "x$LIBS"; then
13491 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13492 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13493 if test "${vim_cv_tgent+set}" = set; then
13494 $as_echo_n "(cached) " >&6
13495 else
13497 if test "$cross_compiling" = yes; then
13499 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13500 $as_echo "$as_me: error: failed to compile test program." >&2;}
13501 { (exit 1); exit 1; }; }
13503 else
13504 cat >conftest.$ac_ext <<_ACEOF
13506 #include "confdefs.h"
13507 #ifdef HAVE_TERMCAP_H
13508 # include <termcap.h>
13509 #endif
13510 #if STDC_HEADERS
13511 # include <stdlib.h>
13512 # include <stddef.h>
13513 #endif
13514 main()
13515 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13517 _ACEOF
13518 rm -f conftest$ac_exeext
13519 if { (ac_try="$ac_link"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523 esac
13524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13525 $as_echo "$ac_try_echo") >&5
13526 (eval "$ac_link") 2>&5
13527 ac_status=$?
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533 esac
13534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13535 $as_echo "$ac_try_echo") >&5
13536 (eval "$ac_try") 2>&5
13537 ac_status=$?
13538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); }; }; then
13541 vim_cv_tgent=zero
13543 else
13544 $as_echo "$as_me: program exited with status $ac_status" >&5
13545 $as_echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ( exit $ac_status )
13550 vim_cv_tgent=non-zero
13553 rm -rf conftest.dSYM
13554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13560 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13561 $as_echo "$vim_cv_tgent" >&6; }
13563 if test "x$vim_cv_tgent" = "xzero" ; then
13564 cat >>confdefs.h <<\_ACEOF
13565 #define TGETENT_ZERO_ERR 0
13566 _ACEOF
13571 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13572 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13580 #ifdef HAVE_TERMCAP_H
13581 # include <termcap.h>
13582 #endif
13585 main ()
13587 ospeed = 20000
13589 return 0;
13591 _ACEOF
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (ac_try="$ac_link"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597 esac
13598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13599 $as_echo "$ac_try_echo") >&5
13600 (eval "$ac_link") 2>conftest.er1
13601 ac_status=$?
13602 grep -v '^ *+' conftest.er1 >conftest.err
13603 rm -f conftest.er1
13604 cat conftest.err >&5
13605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } && {
13607 test -z "$ac_c_werror_flag" ||
13608 test ! -s conftest.err
13609 } && test -s conftest$ac_exeext && {
13610 test "$cross_compiling" = yes ||
13611 $as_test_x conftest$ac_exeext
13612 }; then
13613 { $as_echo "$as_me:$LINENO: result: yes" >&5
13614 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13615 #define HAVE_OSPEED 1
13616 _ACEOF
13618 else
13619 $as_echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 { $as_echo "$as_me:$LINENO: result: no" >&5
13623 $as_echo "no" >&6; }
13624 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13625 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 #ifdef HAVE_TERMCAP_H
13634 # include <termcap.h>
13635 #endif
13636 extern short ospeed;
13639 main ()
13641 ospeed = 20000
13643 return 0;
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (ac_try="$ac_link"
13648 case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651 esac
13652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653 $as_echo "$ac_try_echo") >&5
13654 (eval "$ac_link") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest$ac_exeext && {
13664 test "$cross_compiling" = yes ||
13665 $as_test_x conftest$ac_exeext
13666 }; then
13667 { $as_echo "$as_me:$LINENO: result: yes" >&5
13668 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13669 #define OSPEED_EXTERN 1
13670 _ACEOF
13672 else
13673 $as_echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13680 rm -rf conftest.dSYM
13681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13682 conftest$ac_exeext conftest.$ac_ext
13686 rm -rf conftest.dSYM
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13690 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13691 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13692 cat >conftest.$ac_ext <<_ACEOF
13693 /* confdefs.h. */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13699 #ifdef HAVE_TERMCAP_H
13700 # include <termcap.h>
13701 #endif
13704 main ()
13706 if (UP == 0 && BC == 0) PC = 1
13708 return 0;
13710 _ACEOF
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (ac_try="$ac_link"
13713 case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716 esac
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719 (eval "$ac_link") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest$ac_exeext && {
13729 test "$cross_compiling" = yes ||
13730 $as_test_x conftest$ac_exeext
13731 }; then
13732 { $as_echo "$as_me:$LINENO: result: yes" >&5
13733 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13734 #define HAVE_UP_BC_PC 1
13735 _ACEOF
13737 else
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 { $as_echo "$as_me:$LINENO: result: no" >&5
13742 $as_echo "no" >&6; }
13743 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13744 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13752 #ifdef HAVE_TERMCAP_H
13753 # include <termcap.h>
13754 #endif
13755 extern char *UP, *BC, PC;
13758 main ()
13760 if (UP == 0 && BC == 0) PC = 1
13762 return 0;
13764 _ACEOF
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770 esac
13771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13772 $as_echo "$ac_try_echo") >&5
13773 (eval "$ac_link") 2>conftest.er1
13774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } && {
13780 test -z "$ac_c_werror_flag" ||
13781 test ! -s conftest.err
13782 } && test -s conftest$ac_exeext && {
13783 test "$cross_compiling" = yes ||
13784 $as_test_x conftest$ac_exeext
13785 }; then
13786 { $as_echo "$as_me:$LINENO: result: yes" >&5
13787 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13788 #define UP_BC_PC_EXTERN 1
13789 _ACEOF
13791 else
13792 $as_echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 { $as_echo "$as_me:$LINENO: result: no" >&5
13796 $as_echo "no" >&6; }
13799 rm -rf conftest.dSYM
13800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13801 conftest$ac_exeext conftest.$ac_ext
13805 rm -rf conftest.dSYM
13806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13807 conftest$ac_exeext conftest.$ac_ext
13809 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13810 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 #ifdef HAVE_TERMCAP_H
13819 # include <termcap.h>
13820 #endif
13823 main ()
13825 extern int xx(); tputs("test", 1, (outfuntype)xx)
13827 return 0;
13829 _ACEOF
13830 rm -f conftest.$ac_objext
13831 if { (ac_try="$ac_compile"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835 esac
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest.$ac_objext; then
13848 { $as_echo "$as_me:$LINENO: result: yes" >&5
13849 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13850 #define HAVE_OUTFUNTYPE 1
13851 _ACEOF
13853 else
13854 $as_echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 { $as_echo "$as_me:$LINENO: result: no" >&5
13858 $as_echo "no" >&6; }
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13864 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13865 cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h. */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <sys/time.h>
13874 #include <sys/select.h>
13876 main ()
13880 return 0;
13882 _ACEOF
13883 rm -f conftest.$ac_objext
13884 if { (ac_try="$ac_compile"
13885 case "(($ac_try" in
13886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887 *) ac_try_echo=$ac_try;;
13888 esac
13889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13890 $as_echo "$ac_try_echo") >&5
13891 (eval "$ac_compile") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest.$ac_objext; then
13901 { $as_echo "$as_me:$LINENO: result: yes" >&5
13902 $as_echo "yes" >&6; }
13903 cat >>confdefs.h <<\_ACEOF
13904 #define SYS_SELECT_WITH_SYS_TIME 1
13905 _ACEOF
13907 else
13908 $as_echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 { $as_echo "$as_me:$LINENO: result: no" >&5
13912 $as_echo "no" >&6; }
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13919 $as_echo_n "checking for /dev/ptc... " >&6; }
13920 if test -r /dev/ptc; then
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_DEV_PTC 1
13923 _ACEOF
13925 { $as_echo "$as_me:$LINENO: result: yes" >&5
13926 $as_echo "yes" >&6; }
13927 else
13928 { $as_echo "$as_me:$LINENO: result: no" >&5
13929 $as_echo "no" >&6; }
13932 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13933 $as_echo_n "checking for SVR4 ptys... " >&6; }
13934 if test -c /dev/ptmx ; then
13935 cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h. */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13943 main ()
13945 ptsname(0);grantpt(0);unlockpt(0);
13947 return 0;
13949 _ACEOF
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (ac_try="$ac_link"
13952 case "(($ac_try" in
13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13955 esac
13956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13957 $as_echo "$ac_try_echo") >&5
13958 (eval "$ac_link") 2>conftest.er1
13959 ac_status=$?
13960 grep -v '^ *+' conftest.er1 >conftest.err
13961 rm -f conftest.er1
13962 cat conftest.err >&5
13963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && {
13965 test -z "$ac_c_werror_flag" ||
13966 test ! -s conftest.err
13967 } && test -s conftest$ac_exeext && {
13968 test "$cross_compiling" = yes ||
13969 $as_test_x conftest$ac_exeext
13970 }; then
13971 { $as_echo "$as_me:$LINENO: result: yes" >&5
13972 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13973 #define HAVE_SVR4_PTYS 1
13974 _ACEOF
13976 else
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 { $as_echo "$as_me:$LINENO: result: no" >&5
13981 $as_echo "no" >&6; }
13984 rm -rf conftest.dSYM
13985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13986 conftest$ac_exeext conftest.$ac_ext
13987 else
13988 { $as_echo "$as_me:$LINENO: result: no" >&5
13989 $as_echo "no" >&6; }
13992 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13993 $as_echo_n "checking for ptyranges... " >&6; }
13994 if test -d /dev/ptym ; then
13995 pdir='/dev/ptym'
13996 else
13997 pdir='/dev'
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h. */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 #ifdef M_UNIX
14006 yes;
14007 #endif
14009 _ACEOF
14010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14011 $EGREP "yes" >/dev/null 2>&1; then
14012 ptys=`echo /dev/ptyp??`
14013 else
14014 ptys=`echo $pdir/pty??`
14016 rm -f conftest*
14018 if test "$ptys" != "$pdir/pty??" ; then
14019 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
14020 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
14021 cat >>confdefs.h <<_ACEOF
14022 #define PTYRANGE0 "$p0"
14023 _ACEOF
14025 cat >>confdefs.h <<_ACEOF
14026 #define PTYRANGE1 "$p1"
14027 _ACEOF
14029 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
14030 $as_echo "$p0 / $p1" >&6; }
14031 else
14032 { $as_echo "$as_me:$LINENO: result: don't know" >&5
14033 $as_echo "don't know" >&6; }
14036 rm -f conftest_grp
14037 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
14038 $as_echo_n "checking default tty permissions/group... " >&6; }
14039 if test "${vim_cv_tty_group+set}" = set; then
14040 $as_echo_n "(cached) " >&6
14041 else
14043 if test "$cross_compiling" = yes; then
14045 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
14046 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
14047 { (exit 1); exit 1; }; }
14049 else
14050 cat >conftest.$ac_ext <<_ACEOF
14052 #include "confdefs.h"
14053 #include <sys/types.h>
14054 #if STDC_HEADERS
14055 # include <stdlib.h>
14056 # include <stddef.h>
14057 #endif
14058 #ifdef HAVE_UNISTD_H
14059 #include <unistd.h>
14060 #endif
14061 #include <sys/stat.h>
14062 #include <stdio.h>
14063 main()
14065 struct stat sb;
14066 char *x,*ttyname();
14067 int om, m;
14068 FILE *fp;
14070 if (!(x = ttyname(0))) exit(1);
14071 if (stat(x, &sb)) exit(1);
14072 om = sb.st_mode;
14073 if (om & 002) exit(0);
14074 m = system("mesg y");
14075 if (m == -1 || m == 127) exit(1);
14076 if (stat(x, &sb)) exit(1);
14077 m = sb.st_mode;
14078 if (chmod(x, om)) exit(1);
14079 if (m & 002) exit(0);
14080 if (sb.st_gid == getgid()) exit(1);
14081 if (!(fp=fopen("conftest_grp", "w")))
14082 exit(1);
14083 fprintf(fp, "%d\n", sb.st_gid);
14084 fclose(fp);
14085 exit(0);
14088 _ACEOF
14089 rm -f conftest$ac_exeext
14090 if { (ac_try="$ac_link"
14091 case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14094 esac
14095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14096 $as_echo "$ac_try_echo") >&5
14097 (eval "$ac_link") 2>&5
14098 ac_status=$?
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14101 { (case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104 esac
14105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14106 $as_echo "$ac_try_echo") >&5
14107 (eval "$ac_try") 2>&5
14108 ac_status=$?
14109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14112 if test -f conftest_grp; then
14113 vim_cv_tty_group=`cat conftest_grp`
14114 if test "x$vim_cv_tty_mode" = "x" ; then
14115 vim_cv_tty_mode=0620
14117 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
14118 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
14119 else
14120 vim_cv_tty_group=world
14121 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
14122 $as_echo "ptys are world accessible" >&6; }
14125 else
14126 $as_echo "$as_me: program exited with status $ac_status" >&5
14127 $as_echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 ( exit $ac_status )
14132 vim_cv_tty_group=world
14133 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
14134 $as_echo "can't determine - assume ptys are world accessible" >&6; }
14137 rm -rf conftest.dSYM
14138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14144 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
14145 $as_echo "$vim_cv_tty_group" >&6; }
14146 rm -f conftest_grp
14148 if test "x$vim_cv_tty_group" != "xworld" ; then
14149 cat >>confdefs.h <<_ACEOF
14150 #define PTYGROUP $vim_cv_tty_group
14151 _ACEOF
14153 if test "x$vim_cv_tty_mode" = "x" ; then
14154 { { $as_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
14155 $as_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;}
14156 { (exit 1); exit 1; }; }
14157 else
14158 cat >>confdefs.h <<\_ACEOF
14159 #define PTYMODE 0620
14160 _ACEOF
14166 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14167 $as_echo_n "checking return type of signal handlers... " >&6; }
14168 if test "${ac_cv_type_signal+set}" = set; then
14169 $as_echo_n "(cached) " >&6
14170 else
14171 cat >conftest.$ac_ext <<_ACEOF
14172 /* confdefs.h. */
14173 _ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 #include <sys/types.h>
14178 #include <signal.h>
14181 main ()
14183 return *(signal (0, 0)) (0) == 1;
14185 return 0;
14187 _ACEOF
14188 rm -f conftest.$ac_objext
14189 if { (ac_try="$ac_compile"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14193 esac
14194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14195 $as_echo "$ac_try_echo") >&5
14196 (eval "$ac_compile") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest.$ac_objext; then
14206 ac_cv_type_signal=int
14207 else
14208 $as_echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ac_cv_type_signal=void
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14217 $as_echo "$ac_cv_type_signal" >&6; }
14219 cat >>confdefs.h <<_ACEOF
14220 #define RETSIGTYPE $ac_cv_type_signal
14221 _ACEOF
14225 if test $ac_cv_type_signal = void; then
14226 cat >>confdefs.h <<\_ACEOF
14227 #define SIGRETURN return
14228 _ACEOF
14230 else
14231 cat >>confdefs.h <<\_ACEOF
14232 #define SIGRETURN return 0
14233 _ACEOF
14237 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
14238 $as_echo_n "checking for struct sigcontext... " >&6; }
14239 cat >conftest.$ac_ext <<_ACEOF
14240 /* confdefs.h. */
14241 _ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14246 #include <signal.h>
14247 test_sig()
14249 struct sigcontext *scont;
14250 scont = (struct sigcontext *)0;
14251 return 1;
14254 main ()
14258 return 0;
14260 _ACEOF
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14266 esac
14267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268 $as_echo "$ac_try_echo") >&5
14269 (eval "$ac_compile") 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } && {
14276 test -z "$ac_c_werror_flag" ||
14277 test ! -s conftest.err
14278 } && test -s conftest.$ac_objext; then
14279 { $as_echo "$as_me:$LINENO: result: yes" >&5
14280 $as_echo "yes" >&6; }
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_SIGCONTEXT 1
14283 _ACEOF
14285 else
14286 $as_echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14289 { $as_echo "$as_me:$LINENO: result: no" >&5
14290 $as_echo "no" >&6; }
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
14296 $as_echo_n "checking getcwd implementation is broken... " >&6; }
14297 if test "${vim_cv_getcwd_broken+set}" = set; then
14298 $as_echo_n "(cached) " >&6
14299 else
14301 if test "$cross_compiling" = yes; then
14303 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
14304 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
14305 { (exit 1); exit 1; }; }
14307 else
14308 cat >conftest.$ac_ext <<_ACEOF
14310 #include "confdefs.h"
14311 #ifdef HAVE_UNISTD_H
14312 #include <unistd.h>
14313 #endif
14314 char *dagger[] = { "IFS=pwd", 0 };
14315 main()
14317 char buffer[500];
14318 extern char **environ;
14319 environ = dagger;
14320 return getcwd(buffer, 500) ? 0 : 1;
14323 _ACEOF
14324 rm -f conftest$ac_exeext
14325 if { (ac_try="$ac_link"
14326 case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329 esac
14330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14331 $as_echo "$ac_try_echo") >&5
14332 (eval "$ac_link") 2>&5
14333 ac_status=$?
14334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14336 { (case "(($ac_try" in
14337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14339 esac
14340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14341 $as_echo "$ac_try_echo") >&5
14342 (eval "$ac_try") 2>&5
14343 ac_status=$?
14344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14347 vim_cv_getcwd_broken=no
14349 else
14350 $as_echo "$as_me: program exited with status $ac_status" >&5
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ( exit $ac_status )
14356 vim_cv_getcwd_broken=yes
14359 rm -rf conftest.dSYM
14360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14366 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14367 $as_echo "$vim_cv_getcwd_broken" >&6; }
14369 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14370 cat >>confdefs.h <<\_ACEOF
14371 #define BAD_GETCWD 1
14372 _ACEOF
14421 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14422 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14423 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14424 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14425 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14426 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14427 usleep utime utimes
14429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14431 $as_echo_n "checking for $ac_func... " >&6; }
14432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14433 $as_echo_n "(cached) " >&6
14434 else
14435 cat >conftest.$ac_ext <<_ACEOF
14436 /* confdefs.h. */
14437 _ACEOF
14438 cat confdefs.h >>conftest.$ac_ext
14439 cat >>conftest.$ac_ext <<_ACEOF
14440 /* end confdefs.h. */
14441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14443 #define $ac_func innocuous_$ac_func
14445 /* System header to define __stub macros and hopefully few prototypes,
14446 which can conflict with char $ac_func (); below.
14447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14448 <limits.h> exists even on freestanding compilers. */
14450 #ifdef __STDC__
14451 # include <limits.h>
14452 #else
14453 # include <assert.h>
14454 #endif
14456 #undef $ac_func
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char $ac_func ();
14465 /* The GNU C library defines this for functions which it implements
14466 to always fail with ENOSYS. Some functions are actually named
14467 something starting with __ and the normal name is an alias. */
14468 #if defined __stub_$ac_func || defined __stub___$ac_func
14469 choke me
14470 #endif
14473 main ()
14475 return $ac_func ();
14477 return 0;
14479 _ACEOF
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (ac_try="$ac_link"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485 esac
14486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487 $as_echo "$ac_try_echo") >&5
14488 (eval "$ac_link") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest$ac_exeext && {
14498 test "$cross_compiling" = yes ||
14499 $as_test_x conftest$ac_exeext
14500 }; then
14501 eval "$as_ac_var=yes"
14502 else
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 eval "$as_ac_var=no"
14509 rm -rf conftest.dSYM
14510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14511 conftest$ac_exeext conftest.$ac_ext
14513 ac_res=`eval 'as_val=${'$as_ac_var'}
14514 $as_echo "$as_val"'`
14515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14516 $as_echo "$ac_res" >&6; }
14517 as_val=`eval 'as_val=${'$as_ac_var'}
14518 $as_echo "$as_val"'`
14519 if test "x$as_val" = x""yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14522 _ACEOF
14525 done
14527 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14528 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14529 if test "${ac_cv_sys_largefile_source+set}" = set; then
14530 $as_echo_n "(cached) " >&6
14531 else
14532 while :; do
14533 cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 #include <sys/types.h> /* for off_t */
14540 #include <stdio.h>
14542 main ()
14544 int (*fp) (FILE *, off_t, int) = fseeko;
14545 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14547 return 0;
14549 _ACEOF
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14555 esac
14556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14557 $as_echo "$ac_try_echo") >&5
14558 (eval "$ac_link") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest$ac_exeext && {
14568 test "$cross_compiling" = yes ||
14569 $as_test_x conftest$ac_exeext
14570 }; then
14571 ac_cv_sys_largefile_source=no; break
14572 else
14573 $as_echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14579 rm -rf conftest.dSYM
14580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14581 conftest$ac_exeext conftest.$ac_ext
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #define _LARGEFILE_SOURCE 1
14589 #include <sys/types.h> /* for off_t */
14590 #include <stdio.h>
14592 main ()
14594 int (*fp) (FILE *, off_t, int) = fseeko;
14595 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14597 return 0;
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605 esac
14606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14607 $as_echo "$ac_try_echo") >&5
14608 (eval "$ac_link") 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest$ac_exeext && {
14618 test "$cross_compiling" = yes ||
14619 $as_test_x conftest$ac_exeext
14620 }; then
14621 ac_cv_sys_largefile_source=1; break
14622 else
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14629 rm -rf conftest.dSYM
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631 conftest$ac_exeext conftest.$ac_ext
14632 ac_cv_sys_largefile_source=unknown
14633 break
14634 done
14636 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14637 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14638 case $ac_cv_sys_largefile_source in #(
14639 no | unknown) ;;
14641 cat >>confdefs.h <<_ACEOF
14642 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14643 _ACEOF
14645 esac
14646 rm -rf conftest*
14648 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14649 # in glibc 2.1.3, but that breaks too many other things.
14650 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14651 if test $ac_cv_sys_largefile_source != unknown; then
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_FSEEKO 1
14655 _ACEOF
14660 # Check whether --enable-largefile was given.
14661 if test "${enable_largefile+set}" = set; then
14662 enableval=$enable_largefile;
14665 if test "$enable_largefile" != no; then
14667 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14668 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14669 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14670 $as_echo_n "(cached) " >&6
14671 else
14672 ac_cv_sys_largefile_CC=no
14673 if test "$GCC" != yes; then
14674 ac_save_CC=$CC
14675 while :; do
14676 # IRIX 6.2 and later do not support large files by default,
14677 # so use the C compiler's -n32 option if that helps.
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h. */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/types.h>
14685 /* Check that off_t can represent 2**63 - 1 correctly.
14686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14687 since some C++ compilers masquerading as C compilers
14688 incorrectly reject 9223372036854775807. */
14689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14691 && LARGE_OFF_T % 2147483647 == 1)
14692 ? 1 : -1];
14694 main ()
14698 return 0;
14700 _ACEOF
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706 esac
14707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14708 $as_echo "$ac_try_echo") >&5
14709 (eval "$ac_compile") 2>conftest.er1
14710 ac_status=$?
14711 grep -v '^ *+' conftest.er1 >conftest.err
14712 rm -f conftest.er1
14713 cat conftest.err >&5
14714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } && {
14716 test -z "$ac_c_werror_flag" ||
14717 test ! -s conftest.err
14718 } && test -s conftest.$ac_objext; then
14719 break
14720 else
14721 $as_echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14727 rm -f core conftest.err conftest.$ac_objext
14728 CC="$CC -n32"
14729 rm -f conftest.$ac_objext
14730 if { (ac_try="$ac_compile"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734 esac
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest.$ac_objext; then
14747 ac_cv_sys_largefile_CC=' -n32'; break
14748 else
14749 $as_echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14755 rm -f core conftest.err conftest.$ac_objext
14756 break
14757 done
14758 CC=$ac_save_CC
14759 rm -f conftest.$ac_ext
14762 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14763 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14764 if test "$ac_cv_sys_largefile_CC" != no; then
14765 CC=$CC$ac_cv_sys_largefile_CC
14768 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14769 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14770 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14771 $as_echo_n "(cached) " >&6
14772 else
14773 while :; do
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h. */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 #include <sys/types.h>
14781 /* Check that off_t can represent 2**63 - 1 correctly.
14782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14783 since some C++ compilers masquerading as C compilers
14784 incorrectly reject 9223372036854775807. */
14785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14787 && LARGE_OFF_T % 2147483647 == 1)
14788 ? 1 : -1];
14790 main ()
14794 return 0;
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14802 esac
14803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804 $as_echo "$ac_try_echo") >&5
14805 (eval "$ac_compile") 2>conftest.er1
14806 ac_status=$?
14807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
14810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } && {
14812 test -z "$ac_c_werror_flag" ||
14813 test ! -s conftest.err
14814 } && test -s conftest.$ac_objext; then
14815 ac_cv_sys_file_offset_bits=no; break
14816 else
14817 $as_echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14830 #define _FILE_OFFSET_BITS 64
14831 #include <sys/types.h>
14832 /* Check that off_t can represent 2**63 - 1 correctly.
14833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14834 since some C++ compilers masquerading as C compilers
14835 incorrectly reject 9223372036854775807. */
14836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14838 && LARGE_OFF_T % 2147483647 == 1)
14839 ? 1 : -1];
14841 main ()
14845 return 0;
14847 _ACEOF
14848 rm -f conftest.$ac_objext
14849 if { (ac_try="$ac_compile"
14850 case "(($ac_try" in
14851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14852 *) ac_try_echo=$ac_try;;
14853 esac
14854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14855 $as_echo "$ac_try_echo") >&5
14856 (eval "$ac_compile") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest.$ac_objext; then
14866 ac_cv_sys_file_offset_bits=64; break
14867 else
14868 $as_echo "$as_me: failed program was:" >&5
14869 sed 's/^/| /' conftest.$ac_ext >&5
14874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 ac_cv_sys_file_offset_bits=unknown
14876 break
14877 done
14879 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14880 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14881 case $ac_cv_sys_file_offset_bits in #(
14882 no | unknown) ;;
14884 cat >>confdefs.h <<_ACEOF
14885 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14886 _ACEOF
14888 esac
14889 rm -rf conftest*
14890 if test $ac_cv_sys_file_offset_bits = unknown; then
14891 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14892 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14893 if test "${ac_cv_sys_large_files+set}" = set; then
14894 $as_echo_n "(cached) " >&6
14895 else
14896 while :; do
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 /* Check that off_t can represent 2**63 - 1 correctly.
14905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14906 since some C++ compilers masquerading as C compilers
14907 incorrectly reject 9223372036854775807. */
14908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14910 && LARGE_OFF_T % 2147483647 == 1)
14911 ? 1 : -1];
14913 main ()
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14927 $as_echo "$ac_try_echo") >&5
14928 (eval "$ac_compile") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest.$ac_objext; then
14938 ac_cv_sys_large_files=no; break
14939 else
14940 $as_echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953 #define _LARGE_FILES 1
14954 #include <sys/types.h>
14955 /* Check that off_t can represent 2**63 - 1 correctly.
14956 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14957 since some C++ compilers masquerading as C compilers
14958 incorrectly reject 9223372036854775807. */
14959 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14960 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14961 && LARGE_OFF_T % 2147483647 == 1)
14962 ? 1 : -1];
14964 main ()
14968 return 0;
14970 _ACEOF
14971 rm -f conftest.$ac_objext
14972 if { (ac_try="$ac_compile"
14973 case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976 esac
14977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14978 $as_echo "$ac_try_echo") >&5
14979 (eval "$ac_compile") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest.$ac_objext; then
14989 ac_cv_sys_large_files=1; break
14990 else
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14998 ac_cv_sys_large_files=unknown
14999 break
15000 done
15002 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15003 $as_echo "$ac_cv_sys_large_files" >&6; }
15004 case $ac_cv_sys_large_files in #(
15005 no | unknown) ;;
15007 cat >>confdefs.h <<_ACEOF
15008 #define _LARGE_FILES $ac_cv_sys_large_files
15009 _ACEOF
15011 esac
15012 rm -rf conftest*
15017 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
15018 $as_echo_n "checking for st_blksize... " >&6; }
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #include <sys/types.h>
15026 #include <sys/stat.h>
15028 main ()
15030 struct stat st;
15031 int n;
15033 stat("/", &st);
15034 n = (int)st.st_blksize;
15036 return 0;
15038 _ACEOF
15039 rm -f conftest.$ac_objext
15040 if { (ac_try="$ac_compile"
15041 case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044 esac
15045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047 (eval "$ac_compile") 2>conftest.er1
15048 ac_status=$?
15049 grep -v '^ *+' conftest.er1 >conftest.err
15050 rm -f conftest.er1
15051 cat conftest.err >&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && {
15054 test -z "$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 } && test -s conftest.$ac_objext; then
15057 { $as_echo "$as_me:$LINENO: result: yes" >&5
15058 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_ST_BLKSIZE 1
15060 _ACEOF
15062 else
15063 $as_echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15066 { $as_echo "$as_me:$LINENO: result: no" >&5
15067 $as_echo "no" >&6; }
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
15073 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
15074 if test "${vim_cv_stat_ignores_slash+set}" = set; then
15075 $as_echo_n "(cached) " >&6
15076 else
15078 if test "$cross_compiling" = yes; then
15080 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
15081 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
15082 { (exit 1); exit 1; }; }
15084 else
15085 cat >conftest.$ac_ext <<_ACEOF
15087 #include "confdefs.h"
15088 #if STDC_HEADERS
15089 # include <stdlib.h>
15090 # include <stddef.h>
15091 #endif
15092 #include <sys/types.h>
15093 #include <sys/stat.h>
15094 main() {struct stat st; exit(stat("configure/", &st) != 0); }
15096 _ACEOF
15097 rm -f conftest$ac_exeext
15098 if { (ac_try="$ac_link"
15099 case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15102 esac
15103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15104 $as_echo "$ac_try_echo") >&5
15105 (eval "$ac_link") 2>&5
15106 ac_status=$?
15107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15109 { (case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15112 esac
15113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15114 $as_echo "$ac_try_echo") >&5
15115 (eval "$ac_try") 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15120 vim_cv_stat_ignores_slash=yes
15122 else
15123 $as_echo "$as_me: program exited with status $ac_status" >&5
15124 $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ( exit $ac_status )
15129 vim_cv_stat_ignores_slash=no
15132 rm -rf conftest.dSYM
15133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15139 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
15140 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
15142 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
15143 cat >>confdefs.h <<\_ACEOF
15144 #define STAT_IGNORES_SLASH 1
15145 _ACEOF
15149 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
15150 $as_echo_n "checking for iconv_open()... " >&6; }
15151 save_LIBS="$LIBS"
15152 LIBS="$LIBS -liconv"
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 #ifdef HAVE_ICONV_H
15161 # include <iconv.h>
15162 #endif
15165 main ()
15167 iconv_open("fr", "to");
15169 return 0;
15171 _ACEOF
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (ac_try="$ac_link"
15174 case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177 esac
15178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15179 $as_echo "$ac_try_echo") >&5
15180 (eval "$ac_link") 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } && {
15187 test -z "$ac_c_werror_flag" ||
15188 test ! -s conftest.err
15189 } && test -s conftest$ac_exeext && {
15190 test "$cross_compiling" = yes ||
15191 $as_test_x conftest$ac_exeext
15192 }; then
15193 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
15194 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
15195 #define HAVE_ICONV 1
15196 _ACEOF
15198 else
15199 $as_echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 LIBS="$save_LIBS"
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h. */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15210 #ifdef HAVE_ICONV_H
15211 # include <iconv.h>
15212 #endif
15215 main ()
15217 iconv_open("fr", "to");
15219 return 0;
15221 _ACEOF
15222 rm -f conftest.$ac_objext 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15229 $as_echo "$ac_try_echo") >&5
15230 (eval "$ac_link") 2>conftest.er1
15231 ac_status=$?
15232 grep -v '^ *+' conftest.er1 >conftest.err
15233 rm -f conftest.er1
15234 cat conftest.err >&5
15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } && {
15237 test -z "$ac_c_werror_flag" ||
15238 test ! -s conftest.err
15239 } && test -s conftest$ac_exeext && {
15240 test "$cross_compiling" = yes ||
15241 $as_test_x conftest$ac_exeext
15242 }; then
15243 { $as_echo "$as_me:$LINENO: result: yes" >&5
15244 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15245 #define HAVE_ICONV 1
15246 _ACEOF
15248 else
15249 $as_echo "$as_me: failed program was:" >&5
15250 sed 's/^/| /' conftest.$ac_ext >&5
15252 { $as_echo "$as_me:$LINENO: result: no" >&5
15253 $as_echo "no" >&6; }
15256 rm -rf conftest.dSYM
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258 conftest$ac_exeext conftest.$ac_ext
15261 rm -rf conftest.dSYM
15262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263 conftest$ac_exeext conftest.$ac_ext
15266 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
15267 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
15268 cat >conftest.$ac_ext <<_ACEOF
15269 /* confdefs.h. */
15270 _ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15275 #ifdef HAVE_LANGINFO_H
15276 # include <langinfo.h>
15277 #endif
15280 main ()
15282 char *cs = nl_langinfo(CODESET);
15284 return 0;
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292 esac
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295 (eval "$ac_link") 2>conftest.er1
15296 ac_status=$?
15297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
15300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); } && {
15302 test -z "$ac_c_werror_flag" ||
15303 test ! -s conftest.err
15304 } && test -s conftest$ac_exeext && {
15305 test "$cross_compiling" = yes ||
15306 $as_test_x conftest$ac_exeext
15307 }; then
15308 { $as_echo "$as_me:$LINENO: result: yes" >&5
15309 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15310 #define HAVE_NL_LANGINFO_CODESET 1
15311 _ACEOF
15313 else
15314 $as_echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 { $as_echo "$as_me:$LINENO: result: no" >&5
15318 $as_echo "no" >&6; }
15321 rm -rf conftest.dSYM
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323 conftest$ac_exeext conftest.$ac_ext
15326 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
15327 $as_echo_n "checking for strtod in -lm... " >&6; }
15328 if test "${ac_cv_lib_m_strtod+set}" = set; then
15329 $as_echo_n "(cached) " >&6
15330 else
15331 ac_check_lib_save_LIBS=$LIBS
15332 LIBS="-lm $LIBS"
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h. */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15343 #ifdef __cplusplus
15344 extern "C"
15345 #endif
15346 char strtod ();
15348 main ()
15350 return strtod ();
15352 return 0;
15354 _ACEOF
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (ac_try="$ac_link"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360 esac
15361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15362 $as_echo "$ac_try_echo") >&5
15363 (eval "$ac_link") 2>conftest.er1
15364 ac_status=$?
15365 grep -v '^ *+' conftest.er1 >conftest.err
15366 rm -f conftest.er1
15367 cat conftest.err >&5
15368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); } && {
15370 test -z "$ac_c_werror_flag" ||
15371 test ! -s conftest.err
15372 } && test -s conftest$ac_exeext && {
15373 test "$cross_compiling" = yes ||
15374 $as_test_x conftest$ac_exeext
15375 }; then
15376 ac_cv_lib_m_strtod=yes
15377 else
15378 $as_echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_cv_lib_m_strtod=no
15384 rm -rf conftest.dSYM
15385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15386 conftest$ac_exeext conftest.$ac_ext
15387 LIBS=$ac_check_lib_save_LIBS
15389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
15390 $as_echo "$ac_cv_lib_m_strtod" >&6; }
15391 if test "x$ac_cv_lib_m_strtod" = x""yes; then
15392 cat >>confdefs.h <<_ACEOF
15393 #define HAVE_LIBM 1
15394 _ACEOF
15396 LIBS="-lm $LIBS"
15400 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
15401 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
15402 cat >conftest.$ac_ext <<_ACEOF
15403 /* confdefs.h. */
15404 _ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15409 #ifdef HAVE_MATH_H
15410 # include <math.h>
15411 #endif
15412 #if STDC_HEADERS
15413 # include <stdlib.h>
15414 # include <stddef.h>
15415 #endif
15418 main ()
15420 char *s; double d;
15421 d = strtod("1.1", &s);
15422 d = fabs(1.11);
15423 d = ceil(1.11);
15424 d = floor(1.11);
15425 d = log10(1.11);
15426 d = pow(1.11, 2.22);
15427 d = sqrt(1.11);
15428 d = sin(1.11);
15429 d = cos(1.11);
15430 d = atan(1.11);
15433 return 0;
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441 esac
15442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15443 $as_echo "$ac_try_echo") >&5
15444 (eval "$ac_link") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest$ac_exeext && {
15454 test "$cross_compiling" = yes ||
15455 $as_test_x conftest$ac_exeext
15456 }; then
15457 { $as_echo "$as_me:$LINENO: result: yes" >&5
15458 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15459 #define HAVE_FLOAT_FUNCS 1
15460 _ACEOF
15462 else
15463 $as_echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 { $as_echo "$as_me:$LINENO: result: no" >&5
15467 $as_echo "no" >&6; }
15470 rm -rf conftest.dSYM
15471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15472 conftest$ac_exeext conftest.$ac_ext
15474 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
15475 $as_echo_n "checking --disable-acl argument... " >&6; }
15476 # Check whether --enable-acl was given.
15477 if test "${enable_acl+set}" = set; then
15478 enableval=$enable_acl;
15479 else
15480 enable_acl="yes"
15483 if test "$enable_acl" = "yes"; then
15484 { $as_echo "$as_me:$LINENO: result: no" >&5
15485 $as_echo "no" >&6; }
15486 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
15487 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
15488 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
15489 $as_echo_n "(cached) " >&6
15490 else
15491 ac_check_lib_save_LIBS=$LIBS
15492 LIBS="-lposix1e $LIBS"
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h. */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15500 /* Override any GCC internal prototype to avoid an error.
15501 Use char because int might match the return type of a GCC
15502 builtin and then its argument prototype would still apply. */
15503 #ifdef __cplusplus
15504 extern "C"
15505 #endif
15506 char acl_get_file ();
15508 main ()
15510 return acl_get_file ();
15512 return 0;
15514 _ACEOF
15515 rm -f conftest.$ac_objext conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15520 esac
15521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15522 $as_echo "$ac_try_echo") >&5
15523 (eval "$ac_link") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext && {
15533 test "$cross_compiling" = yes ||
15534 $as_test_x conftest$ac_exeext
15535 }; then
15536 ac_cv_lib_posix1e_acl_get_file=yes
15537 else
15538 $as_echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 ac_cv_lib_posix1e_acl_get_file=no
15544 rm -rf conftest.dSYM
15545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15546 conftest$ac_exeext conftest.$ac_ext
15547 LIBS=$ac_check_lib_save_LIBS
15549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
15550 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
15551 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
15552 LIBS="$LIBS -lposix1e"
15553 else
15554 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
15555 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
15556 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
15557 $as_echo_n "(cached) " >&6
15558 else
15559 ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-lacl $LIBS"
15561 cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h. */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 char acl_get_file ();
15576 main ()
15578 return acl_get_file ();
15580 return 0;
15582 _ACEOF
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (ac_try="$ac_link"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588 esac
15589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15590 $as_echo "$ac_try_echo") >&5
15591 (eval "$ac_link") 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest$ac_exeext && {
15601 test "$cross_compiling" = yes ||
15602 $as_test_x conftest$ac_exeext
15603 }; then
15604 ac_cv_lib_acl_acl_get_file=yes
15605 else
15606 $as_echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15609 ac_cv_lib_acl_acl_get_file=no
15612 rm -rf conftest.dSYM
15613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614 conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
15618 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
15619 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
15620 LIBS="$LIBS -lacl"
15621 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
15622 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
15623 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
15624 $as_echo_n "(cached) " >&6
15625 else
15626 ac_check_lib_save_LIBS=$LIBS
15627 LIBS="-lattr $LIBS"
15628 cat >conftest.$ac_ext <<_ACEOF
15629 /* confdefs.h. */
15630 _ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15635 /* Override any GCC internal prototype to avoid an error.
15636 Use char because int might match the return type of a GCC
15637 builtin and then its argument prototype would still apply. */
15638 #ifdef __cplusplus
15639 extern "C"
15640 #endif
15641 char fgetxattr ();
15643 main ()
15645 return fgetxattr ();
15647 return 0;
15649 _ACEOF
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (ac_try="$ac_link"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15655 esac
15656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15657 $as_echo "$ac_try_echo") >&5
15658 (eval "$ac_link") 2>conftest.er1
15659 ac_status=$?
15660 grep -v '^ *+' conftest.er1 >conftest.err
15661 rm -f conftest.er1
15662 cat conftest.err >&5
15663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } && {
15665 test -z "$ac_c_werror_flag" ||
15666 test ! -s conftest.err
15667 } && test -s conftest$ac_exeext && {
15668 test "$cross_compiling" = yes ||
15669 $as_test_x conftest$ac_exeext
15670 }; then
15671 ac_cv_lib_attr_fgetxattr=yes
15672 else
15673 $as_echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_cv_lib_attr_fgetxattr=no
15679 rm -rf conftest.dSYM
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15685 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15686 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15687 LIBS="$LIBS -lattr"
15695 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15696 $as_echo_n "checking for POSIX ACL support... " >&6; }
15697 cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h. */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #ifdef HAVE_SYS_ACL_H
15706 # include <sys/acl.h>
15707 #endif
15708 acl_t acl;
15710 main ()
15712 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15713 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15714 acl_free(acl);
15716 return 0;
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724 esac
15725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15726 $as_echo "$ac_try_echo") >&5
15727 (eval "$ac_link") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } && {
15734 test -z "$ac_c_werror_flag" ||
15735 test ! -s conftest.err
15736 } && test -s conftest$ac_exeext && {
15737 test "$cross_compiling" = yes ||
15738 $as_test_x conftest$ac_exeext
15739 }; then
15740 { $as_echo "$as_me:$LINENO: result: yes" >&5
15741 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15742 #define HAVE_POSIX_ACL 1
15743 _ACEOF
15745 else
15746 $as_echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 { $as_echo "$as_me:$LINENO: result: no" >&5
15750 $as_echo "no" >&6; }
15753 rm -rf conftest.dSYM
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755 conftest$ac_exeext conftest.$ac_ext
15757 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15758 $as_echo_n "checking for Solaris ACL support... " >&6; }
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h. */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15766 #ifdef HAVE_SYS_ACL_H
15767 # include <sys/acl.h>
15768 #endif
15770 main ()
15772 acl("foo", GETACLCNT, 0, NULL);
15775 return 0;
15777 _ACEOF
15778 rm -f conftest.$ac_objext conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783 esac
15784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15785 $as_echo "$ac_try_echo") >&5
15786 (eval "$ac_link") 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } && {
15793 test -z "$ac_c_werror_flag" ||
15794 test ! -s conftest.err
15795 } && test -s conftest$ac_exeext && {
15796 test "$cross_compiling" = yes ||
15797 $as_test_x conftest$ac_exeext
15798 }; then
15799 { $as_echo "$as_me:$LINENO: result: yes" >&5
15800 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_SOLARIS_ACL 1
15802 _ACEOF
15804 else
15805 $as_echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15808 { $as_echo "$as_me:$LINENO: result: no" >&5
15809 $as_echo "no" >&6; }
15812 rm -rf conftest.dSYM
15813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15814 conftest$ac_exeext conftest.$ac_ext
15816 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15817 $as_echo_n "checking for AIX ACL support... " >&6; }
15818 cat >conftest.$ac_ext <<_ACEOF
15819 /* confdefs.h. */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h. */
15825 #if STDC_HEADERS
15826 # include <stdlib.h>
15827 # include <stddef.h>
15828 #endif
15829 #ifdef HAVE_SYS_ACL_H
15830 # include <sys/acl.h>
15831 #endif
15832 #ifdef HAVE_SYS_ACCESS_H
15833 # include <sys/access.h>
15834 #endif
15835 #define _ALL_SOURCE
15837 #include <sys/stat.h>
15839 int aclsize;
15840 struct acl *aclent;
15842 main ()
15844 aclsize = sizeof(struct acl);
15845 aclent = (void *)malloc(aclsize);
15846 statacl("foo", STX_NORMAL, aclent, aclsize);
15849 return 0;
15851 _ACEOF
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15857 esac
15858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15859 $as_echo "$ac_try_echo") >&5
15860 (eval "$ac_link") 2>conftest.er1
15861 ac_status=$?
15862 grep -v '^ *+' conftest.er1 >conftest.err
15863 rm -f conftest.er1
15864 cat conftest.err >&5
15865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } && {
15867 test -z "$ac_c_werror_flag" ||
15868 test ! -s conftest.err
15869 } && test -s conftest$ac_exeext && {
15870 test "$cross_compiling" = yes ||
15871 $as_test_x conftest$ac_exeext
15872 }; then
15873 { $as_echo "$as_me:$LINENO: result: yes" >&5
15874 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15875 #define HAVE_AIX_ACL 1
15876 _ACEOF
15878 else
15879 $as_echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 { $as_echo "$as_me:$LINENO: result: no" >&5
15883 $as_echo "no" >&6; }
15886 rm -rf conftest.dSYM
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15889 else
15890 { $as_echo "$as_me:$LINENO: result: yes" >&5
15891 $as_echo "yes" >&6; }
15894 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15895 $as_echo_n "checking --disable-gpm argument... " >&6; }
15896 # Check whether --enable-gpm was given.
15897 if test "${enable_gpm+set}" = set; then
15898 enableval=$enable_gpm;
15899 else
15900 enable_gpm="yes"
15904 if test "$enable_gpm" = "yes"; then
15905 { $as_echo "$as_me:$LINENO: result: no" >&5
15906 $as_echo "no" >&6; }
15907 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15908 $as_echo_n "checking for gpm... " >&6; }
15909 if test "${vi_cv_have_gpm+set}" = set; then
15910 $as_echo_n "(cached) " >&6
15911 else
15912 olibs="$LIBS" ; LIBS="-lgpm"
15913 cat >conftest.$ac_ext <<_ACEOF
15914 /* confdefs.h. */
15915 _ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 #include <gpm.h>
15920 #include <linux/keyboard.h>
15922 main ()
15924 Gpm_GetLibVersion(NULL);
15926 return 0;
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934 esac
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_link") 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest$ac_exeext && {
15947 test "$cross_compiling" = yes ||
15948 $as_test_x conftest$ac_exeext
15949 }; then
15950 vi_cv_have_gpm=yes
15951 else
15952 $as_echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 vi_cv_have_gpm=no
15958 rm -rf conftest.dSYM
15959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15960 conftest$ac_exeext conftest.$ac_ext
15961 LIBS="$olibs"
15964 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15965 $as_echo "$vi_cv_have_gpm" >&6; }
15966 if test $vi_cv_have_gpm = yes; then
15967 LIBS="$LIBS -lgpm"
15968 cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_GPM 1
15970 _ACEOF
15973 else
15974 { $as_echo "$as_me:$LINENO: result: yes" >&5
15975 $as_echo "yes" >&6; }
15978 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15979 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15980 # Check whether --enable-sysmouse was given.
15981 if test "${enable_sysmouse+set}" = set; then
15982 enableval=$enable_sysmouse;
15983 else
15984 enable_sysmouse="yes"
15988 if test "$enable_sysmouse" = "yes"; then
15989 { $as_echo "$as_me:$LINENO: result: no" >&5
15990 $as_echo "no" >&6; }
15991 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15992 $as_echo_n "checking for sysmouse... " >&6; }
15993 if test "${vi_cv_have_sysmouse+set}" = set; then
15994 $as_echo_n "(cached) " >&6
15995 else
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h. */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 #include <sys/consio.h>
16003 #include <signal.h>
16004 #include <sys/fbio.h>
16006 main ()
16008 struct mouse_info mouse;
16009 mouse.operation = MOUSE_MODE;
16010 mouse.operation = MOUSE_SHOW;
16011 mouse.u.mode.mode = 0;
16012 mouse.u.mode.signal = SIGUSR2;
16014 return 0;
16016 _ACEOF
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (ac_try="$ac_link"
16019 case "(($ac_try" in
16020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16022 esac
16023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16024 $as_echo "$ac_try_echo") >&5
16025 (eval "$ac_link") 2>conftest.er1
16026 ac_status=$?
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
16030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest$ac_exeext && {
16035 test "$cross_compiling" = yes ||
16036 $as_test_x conftest$ac_exeext
16037 }; then
16038 vi_cv_have_sysmouse=yes
16039 else
16040 $as_echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 vi_cv_have_sysmouse=no
16046 rm -rf conftest.dSYM
16047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16048 conftest$ac_exeext conftest.$ac_ext
16051 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
16052 $as_echo "$vi_cv_have_sysmouse" >&6; }
16053 if test $vi_cv_have_sysmouse = yes; then
16054 cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_SYSMOUSE 1
16056 _ACEOF
16059 else
16060 { $as_echo "$as_me:$LINENO: result: yes" >&5
16061 $as_echo "yes" >&6; }
16064 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
16065 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
16066 cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h. */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16072 #if HAVE_FCNTL_H
16073 # include <fcntl.h>
16074 #endif
16076 main ()
16078 int flag = FD_CLOEXEC;
16080 return 0;
16082 _ACEOF
16083 rm -f conftest.$ac_objext
16084 if { (ac_try="$ac_compile"
16085 case "(($ac_try" in
16086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087 *) ac_try_echo=$ac_try;;
16088 esac
16089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16090 $as_echo "$ac_try_echo") >&5
16091 (eval "$ac_compile") 2>conftest.er1
16092 ac_status=$?
16093 grep -v '^ *+' conftest.er1 >conftest.err
16094 rm -f conftest.er1
16095 cat conftest.err >&5
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } && {
16098 test -z "$ac_c_werror_flag" ||
16099 test ! -s conftest.err
16100 } && test -s conftest.$ac_objext; then
16101 { $as_echo "$as_me:$LINENO: result: yes" >&5
16102 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16103 #define HAVE_FD_CLOEXEC 1
16104 _ACEOF
16106 else
16107 $as_echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16111 $as_echo "not usable" >&6; }
16114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116 { $as_echo "$as_me:$LINENO: checking for rename" >&5
16117 $as_echo_n "checking for rename... " >&6; }
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h. */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h. */
16124 #include <stdio.h>
16126 main ()
16128 rename("this", "that")
16130 return 0;
16132 _ACEOF
16133 rm -f conftest.$ac_objext conftest$ac_exeext
16134 if { (ac_try="$ac_link"
16135 case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138 esac
16139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16140 $as_echo "$ac_try_echo") >&5
16141 (eval "$ac_link") 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest$ac_exeext && {
16151 test "$cross_compiling" = yes ||
16152 $as_test_x conftest$ac_exeext
16153 }; then
16154 { $as_echo "$as_me:$LINENO: result: yes" >&5
16155 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16156 #define HAVE_RENAME 1
16157 _ACEOF
16159 else
16160 $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 { $as_echo "$as_me:$LINENO: result: no" >&5
16164 $as_echo "no" >&6; }
16167 rm -rf conftest.dSYM
16168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16171 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
16172 $as_echo_n "checking for sysctl... " >&6; }
16173 cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 #include <sys/types.h>
16180 #include <sys/sysctl.h>
16182 main ()
16184 int mib[2], r;
16185 size_t len;
16187 mib[0] = CTL_HW;
16188 mib[1] = HW_USERMEM;
16189 len = sizeof(r);
16190 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
16193 return 0;
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16201 esac
16202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16203 $as_echo "$ac_try_echo") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16214 { $as_echo "$as_me:$LINENO: result: yes" >&5
16215 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_SYSCTL 1
16217 _ACEOF
16219 else
16220 $as_echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16224 $as_echo "not usable" >&6; }
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
16230 $as_echo_n "checking for sysinfo... " >&6; }
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h. */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h. */
16237 #include <sys/types.h>
16238 #include <sys/sysinfo.h>
16240 main ()
16242 struct sysinfo sinfo;
16243 int t;
16245 (void)sysinfo(&sinfo);
16246 t = sinfo.totalram;
16249 return 0;
16251 _ACEOF
16252 rm -f conftest.$ac_objext
16253 if { (ac_try="$ac_compile"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257 esac
16258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16259 $as_echo "$ac_try_echo") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 { $as_echo "$as_me:$LINENO: result: yes" >&5
16271 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16272 #define HAVE_SYSINFO 1
16273 _ACEOF
16275 else
16276 $as_echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16280 $as_echo "not usable" >&6; }
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
16286 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <sys/types.h>
16294 #include <sys/sysinfo.h>
16296 main ()
16298 struct sysinfo sinfo;
16299 sinfo.mem_unit = 1;
16302 return 0;
16304 _ACEOF
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310 esac
16311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16312 $as_echo "$ac_try_echo") >&5
16313 (eval "$ac_compile") 2>conftest.er1
16314 ac_status=$?
16315 grep -v '^ *+' conftest.er1 >conftest.err
16316 rm -f conftest.er1
16317 cat conftest.err >&5
16318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } && {
16320 test -z "$ac_c_werror_flag" ||
16321 test ! -s conftest.err
16322 } && test -s conftest.$ac_objext; then
16323 { $as_echo "$as_me:$LINENO: result: yes" >&5
16324 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_SYSINFO_MEM_UNIT 1
16326 _ACEOF
16328 else
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16332 { $as_echo "$as_me:$LINENO: result: no" >&5
16333 $as_echo "no" >&6; }
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
16339 $as_echo_n "checking for sysconf... " >&6; }
16340 cat >conftest.$ac_ext <<_ACEOF
16341 /* confdefs.h. */
16342 _ACEOF
16343 cat confdefs.h >>conftest.$ac_ext
16344 cat >>conftest.$ac_ext <<_ACEOF
16345 /* end confdefs.h. */
16346 #include <unistd.h>
16348 main ()
16350 (void)sysconf(_SC_PAGESIZE);
16351 (void)sysconf(_SC_PHYS_PAGES);
16354 return 0;
16356 _ACEOF
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362 esac
16363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16364 $as_echo "$ac_try_echo") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16366 ac_status=$?
16367 grep -v '^ *+' conftest.er1 >conftest.err
16368 rm -f conftest.er1
16369 cat conftest.err >&5
16370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest.$ac_objext; then
16375 { $as_echo "$as_me:$LINENO: result: yes" >&5
16376 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16377 #define HAVE_SYSCONF 1
16378 _ACEOF
16380 else
16381 $as_echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16385 $as_echo "not usable" >&6; }
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16391 { $as_echo "$as_me:$LINENO: checking size of int" >&5
16392 $as_echo_n "checking size of int... " >&6; }
16393 if test "${ac_cv_sizeof_int+set}" = set; then
16394 $as_echo_n "(cached) " >&6
16395 else
16396 if test "$cross_compiling" = yes; then
16397 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
16398 $as_echo "$as_me: error: failed to compile test program" >&2;}
16399 { (exit 1); exit 1; }; }
16400 else
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h. */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16408 #include <stdio.h>
16409 #if STDC_HEADERS
16410 # include <stdlib.h>
16411 # include <stddef.h>
16412 #endif
16413 main()
16415 FILE *f=fopen("conftestval", "w");
16416 if (!f) exit(1);
16417 fprintf(f, "%d\n", (int)sizeof(int));
16418 exit(0);
16420 _ACEOF
16421 rm -f conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426 esac
16427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429 (eval "$ac_link") 2>&5
16430 ac_status=$?
16431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436 esac
16437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16438 $as_echo "$ac_try_echo") >&5
16439 (eval "$ac_try") 2>&5
16440 ac_status=$?
16441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16443 ac_cv_sizeof_int=`cat conftestval`
16444 else
16445 $as_echo "$as_me: program exited with status $ac_status" >&5
16446 $as_echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16449 ( exit $ac_status )
16450 ac_cv_sizeof_int=0
16452 rm -rf conftest.dSYM
16453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16460 $as_echo "$ac_cv_sizeof_int" >&6; }
16461 cat >>confdefs.h <<_ACEOF
16462 #define SIZEOF_INT $ac_cv_sizeof_int
16463 _ACEOF
16467 bcopy_test_prog='
16468 #include "confdefs.h"
16469 #ifdef HAVE_STRING_H
16470 # include <string.h>
16471 #endif
16472 #if STDC_HEADERS
16473 # include <stdlib.h>
16474 # include <stddef.h>
16475 #endif
16476 main() {
16477 char buf[10];
16478 strcpy(buf, "abcdefghi");
16479 mch_memmove(buf, buf + 2, 3);
16480 if (strncmp(buf, "ababcf", 6))
16481 exit(1);
16482 strcpy(buf, "abcdefghi");
16483 mch_memmove(buf + 2, buf, 3);
16484 if (strncmp(buf, "cdedef", 6))
16485 exit(1);
16486 exit(0); /* libc version works properly. */
16489 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
16490 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
16491 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
16492 $as_echo_n "(cached) " >&6
16493 else
16495 if test "$cross_compiling" = yes; then
16497 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
16498 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
16499 { (exit 1); exit 1; }; }
16501 else
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
16504 _ACEOF
16505 rm -f conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510 esac
16511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16512 $as_echo "$ac_try_echo") >&5
16513 (eval "$ac_link") 2>&5
16514 ac_status=$?
16515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520 esac
16521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16522 $as_echo "$ac_try_echo") >&5
16523 (eval "$ac_try") 2>&5
16524 ac_status=$?
16525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); }; }; then
16528 vim_cv_memmove_handles_overlap=yes
16530 else
16531 $as_echo "$as_me: program exited with status $ac_status" >&5
16532 $as_echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ( exit $ac_status )
16537 vim_cv_memmove_handles_overlap=no
16540 rm -rf conftest.dSYM
16541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16547 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
16548 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
16550 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
16551 cat >>confdefs.h <<\_ACEOF
16552 #define USEMEMMOVE 1
16553 _ACEOF
16555 else
16556 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
16557 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
16558 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
16559 $as_echo_n "(cached) " >&6
16560 else
16562 if test "$cross_compiling" = yes; then
16564 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
16565 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
16566 { (exit 1); exit 1; }; }
16568 else
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
16571 _ACEOF
16572 rm -f conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577 esac
16578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16579 $as_echo "$ac_try_echo") >&5
16580 (eval "$ac_link") 2>&5
16581 ac_status=$?
16582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16584 { (case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587 esac
16588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16589 $as_echo "$ac_try_echo") >&5
16590 (eval "$ac_try") 2>&5
16591 ac_status=$?
16592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16595 vim_cv_bcopy_handles_overlap=yes
16597 else
16598 $as_echo "$as_me: program exited with status $ac_status" >&5
16599 $as_echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ( exit $ac_status )
16604 vim_cv_bcopy_handles_overlap=no
16607 rm -rf conftest.dSYM
16608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16614 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
16615 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
16617 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define USEBCOPY 1
16620 _ACEOF
16622 else
16623 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
16624 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
16625 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
16626 $as_echo_n "(cached) " >&6
16627 else
16629 if test "$cross_compiling" = yes; then
16631 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
16632 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
16633 { (exit 1); exit 1; }; }
16635 else
16636 cat >conftest.$ac_ext <<_ACEOF
16637 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
16638 _ACEOF
16639 rm -f conftest$ac_exeext
16640 if { (ac_try="$ac_link"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644 esac
16645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_link") 2>&5
16648 ac_status=$?
16649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654 esac
16655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16656 $as_echo "$ac_try_echo") >&5
16657 (eval "$ac_try") 2>&5
16658 ac_status=$?
16659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16662 vim_cv_memcpy_handles_overlap=yes
16664 else
16665 $as_echo "$as_me: program exited with status $ac_status" >&5
16666 $as_echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ( exit $ac_status )
16671 vim_cv_memcpy_handles_overlap=no
16674 rm -rf conftest.dSYM
16675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16681 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16682 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16684 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16685 cat >>confdefs.h <<\_ACEOF
16686 #define USEMEMCPY 1
16687 _ACEOF
16695 if test "$enable_multibyte" = "yes"; then
16696 cflags_save=$CFLAGS
16697 ldflags_save=$LDFLAGS
16698 if test "x$x_includes" != "xNONE" ; then
16699 CFLAGS="$CFLAGS -I$x_includes"
16700 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
16701 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16702 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #include <X11/Xlocale.h>
16711 main ()
16715 return 0;
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726 (eval "$ac_compile") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest.$ac_objext; then
16736 cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h. */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16743 /* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746 #ifdef __cplusplus
16747 extern "C"
16748 #endif
16749 char _Xsetlocale ();
16751 main ()
16753 return _Xsetlocale ();
16755 return 0;
16757 _ACEOF
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763 esac
16764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16765 $as_echo "$ac_try_echo") >&5
16766 (eval "$ac_link") 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext && {
16776 test "$cross_compiling" = yes ||
16777 $as_test_x conftest$ac_exeext
16778 }; then
16779 { $as_echo "$as_me:$LINENO: result: yes" >&5
16780 $as_echo "yes" >&6; }
16781 cat >>confdefs.h <<\_ACEOF
16782 #define X_LOCALE 1
16783 _ACEOF
16785 else
16786 $as_echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 { $as_echo "$as_me:$LINENO: result: no" >&5
16790 $as_echo "no" >&6; }
16793 rm -rf conftest.dSYM
16794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16795 conftest$ac_exeext conftest.$ac_ext
16796 else
16797 $as_echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16800 { $as_echo "$as_me:$LINENO: result: no" >&5
16801 $as_echo "no" >&6; }
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806 CFLAGS=$cflags_save
16807 LDFLAGS=$ldflags_save
16810 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16811 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16812 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16813 $as_echo_n "(cached) " >&6
16814 else
16815 ac_check_lib_save_LIBS=$LIBS
16816 LIBS="-lxpg4 $LIBS"
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16824 /* Override any GCC internal prototype to avoid an error.
16825 Use char because int might match the return type of a GCC
16826 builtin and then its argument prototype would still apply. */
16827 #ifdef __cplusplus
16828 extern "C"
16829 #endif
16830 char _xpg4_setrunelocale ();
16832 main ()
16834 return _xpg4_setrunelocale ();
16836 return 0;
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844 esac
16845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16846 $as_echo "$ac_try_echo") >&5
16847 (eval "$ac_link") 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && {
16854 test -z "$ac_c_werror_flag" ||
16855 test ! -s conftest.err
16856 } && test -s conftest$ac_exeext && {
16857 test "$cross_compiling" = yes ||
16858 $as_test_x conftest$ac_exeext
16859 }; then
16860 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16861 else
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16868 rm -rf conftest.dSYM
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870 conftest$ac_exeext conftest.$ac_ext
16871 LIBS=$ac_check_lib_save_LIBS
16873 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16874 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16875 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16876 LIBS="$LIBS -lxpg4"
16880 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16881 $as_echo_n "checking how to create tags... " >&6; }
16882 test -f tags && mv tags tags.save
16883 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16884 TAGPRG="ctags -I INIT+ --fields=+S"
16885 else
16886 TAGPRG="ctags"
16887 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16888 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16889 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16890 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16891 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16892 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16893 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16895 test -f tags.save && mv tags.save tags
16896 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16897 $as_echo "$TAGPRG" >&6; }
16899 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16900 $as_echo_n "checking how to run man with a section nr... " >&6; }
16901 MANDEF="man"
16902 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16903 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16904 $as_echo "$MANDEF" >&6; }
16905 if test "$MANDEF" = "man -s"; then
16906 cat >>confdefs.h <<\_ACEOF
16907 #define USEMAN_S 1
16908 _ACEOF
16912 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16913 $as_echo_n "checking --disable-nls argument... " >&6; }
16914 # Check whether --enable-nls was given.
16915 if test "${enable_nls+set}" = set; then
16916 enableval=$enable_nls;
16917 else
16918 enable_nls="yes"
16922 if test "$enable_nls" = "yes"; then
16923 { $as_echo "$as_me:$LINENO: result: no" >&5
16924 $as_echo "no" >&6; }
16926 INSTALL_LANGS=install-languages
16928 INSTALL_TOOL_LANGS=install-tool-languages
16931 # Extract the first word of "msgfmt", so it can be a program name with args.
16932 set dummy msgfmt; ac_word=$2
16933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16934 $as_echo_n "checking for $ac_word... " >&6; }
16935 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16936 $as_echo_n "(cached) " >&6
16937 else
16938 if test -n "$MSGFMT"; then
16939 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16940 else
16941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16942 for as_dir in $PATH
16944 IFS=$as_save_IFS
16945 test -z "$as_dir" && as_dir=.
16946 for ac_exec_ext in '' $ac_executable_extensions; do
16947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16948 ac_cv_prog_MSGFMT="msgfmt"
16949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16950 break 2
16952 done
16953 done
16954 IFS=$as_save_IFS
16958 MSGFMT=$ac_cv_prog_MSGFMT
16959 if test -n "$MSGFMT"; then
16960 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16961 $as_echo "$MSGFMT" >&6; }
16962 else
16963 { $as_echo "$as_me:$LINENO: result: no" >&5
16964 $as_echo "no" >&6; }
16968 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16969 $as_echo_n "checking for NLS... " >&6; }
16970 if test -f po/Makefile; then
16971 have_gettext="no"
16972 if test -n "$MSGFMT"; then
16973 cat >conftest.$ac_ext <<_ACEOF
16974 /* confdefs.h. */
16975 _ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <libintl.h>
16981 main ()
16983 gettext("Test");
16985 return 0;
16987 _ACEOF
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (ac_try="$ac_link"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993 esac
16994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16995 $as_echo "$ac_try_echo") >&5
16996 (eval "$ac_link") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && {
17003 test -z "$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 } && test -s conftest$ac_exeext && {
17006 test "$cross_compiling" = yes ||
17007 $as_test_x conftest$ac_exeext
17008 }; then
17009 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
17010 $as_echo "gettext() works" >&6; }; have_gettext="yes"
17011 else
17012 $as_echo "$as_me: failed program was:" >&5
17013 sed 's/^/| /' conftest.$ac_ext >&5
17015 olibs=$LIBS
17016 LIBS="$LIBS -lintl"
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h. */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17023 #include <libintl.h>
17025 main ()
17027 gettext("Test");
17029 return 0;
17031 _ACEOF
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17037 esac
17038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17039 $as_echo "$ac_try_echo") >&5
17040 (eval "$ac_link") 2>conftest.er1
17041 ac_status=$?
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
17045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } && {
17047 test -z "$ac_c_werror_flag" ||
17048 test ! -s conftest.err
17049 } && test -s conftest$ac_exeext && {
17050 test "$cross_compiling" = yes ||
17051 $as_test_x conftest$ac_exeext
17052 }; then
17053 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
17054 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
17055 else
17056 $as_echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
17060 $as_echo "gettext() doesn't work" >&6; };
17061 LIBS=$olibs
17064 rm -rf conftest.dSYM
17065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17066 conftest$ac_exeext conftest.$ac_ext
17069 rm -rf conftest.dSYM
17070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17071 conftest$ac_exeext conftest.$ac_ext
17072 else
17073 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
17074 $as_echo "msgfmt not found - disabled" >&6; };
17076 if test $have_gettext = "yes"; then
17077 cat >>confdefs.h <<\_ACEOF
17078 #define HAVE_GETTEXT 1
17079 _ACEOF
17081 MAKEMO=yes
17084 for ac_func in bind_textdomain_codeset
17086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17087 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17088 $as_echo_n "checking for $ac_func... " >&6; }
17089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17090 $as_echo_n "(cached) " >&6
17091 else
17092 cat >conftest.$ac_ext <<_ACEOF
17093 /* confdefs.h. */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17100 #define $ac_func innocuous_$ac_func
17102 /* System header to define __stub macros and hopefully few prototypes,
17103 which can conflict with char $ac_func (); below.
17104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17105 <limits.h> exists even on freestanding compilers. */
17107 #ifdef __STDC__
17108 # include <limits.h>
17109 #else
17110 # include <assert.h>
17111 #endif
17113 #undef $ac_func
17115 /* Override any GCC internal prototype to avoid an error.
17116 Use char because int might match the return type of a GCC
17117 builtin and then its argument prototype would still apply. */
17118 #ifdef __cplusplus
17119 extern "C"
17120 #endif
17121 char $ac_func ();
17122 /* The GNU C library defines this for functions which it implements
17123 to always fail with ENOSYS. Some functions are actually named
17124 something starting with __ and the normal name is an alias. */
17125 #if defined __stub_$ac_func || defined __stub___$ac_func
17126 choke me
17127 #endif
17130 main ()
17132 return $ac_func ();
17134 return 0;
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (ac_try="$ac_link"
17139 case "(($ac_try" in
17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141 *) ac_try_echo=$ac_try;;
17142 esac
17143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17144 $as_echo "$ac_try_echo") >&5
17145 (eval "$ac_link") 2>conftest.er1
17146 ac_status=$?
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
17150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } && {
17152 test -z "$ac_c_werror_flag" ||
17153 test ! -s conftest.err
17154 } && test -s conftest$ac_exeext && {
17155 test "$cross_compiling" = yes ||
17156 $as_test_x conftest$ac_exeext
17157 }; then
17158 eval "$as_ac_var=yes"
17159 else
17160 $as_echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17163 eval "$as_ac_var=no"
17166 rm -rf conftest.dSYM
17167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17168 conftest$ac_exeext conftest.$ac_ext
17170 ac_res=`eval 'as_val=${'$as_ac_var'}
17171 $as_echo "$as_val"'`
17172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17173 $as_echo "$ac_res" >&6; }
17174 as_val=`eval 'as_val=${'$as_ac_var'}
17175 $as_echo "$as_val"'`
17176 if test "x$as_val" = x""yes; then
17177 cat >>confdefs.h <<_ACEOF
17178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17179 _ACEOF
17182 done
17184 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
17185 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
17186 cat >conftest.$ac_ext <<_ACEOF
17187 /* confdefs.h. */
17188 _ACEOF
17189 cat confdefs.h >>conftest.$ac_ext
17190 cat >>conftest.$ac_ext <<_ACEOF
17191 /* end confdefs.h. */
17192 #include <libintl.h>
17193 extern int _nl_msg_cat_cntr;
17195 main ()
17197 ++_nl_msg_cat_cntr;
17199 return 0;
17201 _ACEOF
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17207 esac
17208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17209 $as_echo "$ac_try_echo") >&5
17210 (eval "$ac_link") 2>conftest.er1
17211 ac_status=$?
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
17215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } && {
17217 test -z "$ac_c_werror_flag" ||
17218 test ! -s conftest.err
17219 } && test -s conftest$ac_exeext && {
17220 test "$cross_compiling" = yes ||
17221 $as_test_x conftest$ac_exeext
17222 }; then
17223 { $as_echo "$as_me:$LINENO: result: yes" >&5
17224 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
17225 #define HAVE_NL_MSG_CAT_CNTR 1
17226 _ACEOF
17228 else
17229 $as_echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 { $as_echo "$as_me:$LINENO: result: no" >&5
17233 $as_echo "no" >&6; }
17236 rm -rf conftest.dSYM
17237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17238 conftest$ac_exeext conftest.$ac_ext
17240 else
17241 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
17242 $as_echo "no \"po/Makefile\" - disabled" >&6; };
17244 else
17245 { $as_echo "$as_me:$LINENO: result: yes" >&5
17246 $as_echo "yes" >&6; }
17249 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17250 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17251 $as_echo_n "checking for dlfcn.h... " >&6; }
17252 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17253 $as_echo_n "(cached) " >&6
17255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17256 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17257 else
17258 # Is the header compilable?
17259 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
17260 $as_echo_n "checking dlfcn.h usability... " >&6; }
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 $ac_includes_default
17268 #include <dlfcn.h>
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (ac_try="$ac_compile"
17272 case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275 esac
17276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17277 $as_echo "$ac_try_echo") >&5
17278 (eval "$ac_compile") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest.$ac_objext; then
17288 ac_header_compiler=yes
17289 else
17290 $as_echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17293 ac_header_compiler=no
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17298 $as_echo "$ac_header_compiler" >&6; }
17300 # Is the header present?
17301 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
17302 $as_echo_n "checking dlfcn.h presence... " >&6; }
17303 cat >conftest.$ac_ext <<_ACEOF
17304 /* confdefs.h. */
17305 _ACEOF
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 #include <dlfcn.h>
17310 _ACEOF
17311 if { (ac_try="$ac_cpp conftest.$ac_ext"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315 esac
17316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17317 $as_echo "$ac_try_echo") >&5
17318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17319 ac_status=$?
17320 grep -v '^ *+' conftest.er1 >conftest.err
17321 rm -f conftest.er1
17322 cat conftest.err >&5
17323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } >/dev/null && {
17325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17326 test ! -s conftest.err
17327 }; then
17328 ac_header_preproc=yes
17329 else
17330 $as_echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 ac_header_preproc=no
17336 rm -f conftest.err conftest.$ac_ext
17337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17338 $as_echo "$ac_header_preproc" >&6; }
17340 # So? What about this header?
17341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17342 yes:no: )
17343 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
17344 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17345 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
17346 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
17347 ac_header_preproc=yes
17349 no:yes:* )
17350 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
17351 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
17352 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
17353 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
17354 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
17355 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
17356 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
17357 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
17358 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
17359 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
17360 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
17361 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
17364 esac
17365 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17366 $as_echo_n "checking for dlfcn.h... " >&6; }
17367 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17368 $as_echo_n "(cached) " >&6
17369 else
17370 ac_cv_header_dlfcn_h=$ac_header_preproc
17372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17373 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17376 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
17377 DLL=dlfcn.h
17378 else
17379 if test "${ac_cv_header_dl_h+set}" = set; then
17380 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17381 $as_echo_n "checking for dl.h... " >&6; }
17382 if test "${ac_cv_header_dl_h+set}" = set; then
17383 $as_echo_n "(cached) " >&6
17385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17386 $as_echo "$ac_cv_header_dl_h" >&6; }
17387 else
17388 # Is the header compilable?
17389 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
17390 $as_echo_n "checking dl.h usability... " >&6; }
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 $ac_includes_default
17398 #include <dl.h>
17399 _ACEOF
17400 rm -f conftest.$ac_objext
17401 if { (ac_try="$ac_compile"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17405 esac
17406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17407 $as_echo "$ac_try_echo") >&5
17408 (eval "$ac_compile") 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest.$ac_objext; then
17418 ac_header_compiler=yes
17419 else
17420 $as_echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_header_compiler=no
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17428 $as_echo "$ac_header_compiler" >&6; }
17430 # Is the header present?
17431 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
17432 $as_echo_n "checking dl.h presence... " >&6; }
17433 cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h. */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 #include <dl.h>
17440 _ACEOF
17441 if { (ac_try="$ac_cpp conftest.$ac_ext"
17442 case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445 esac
17446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17447 $as_echo "$ac_try_echo") >&5
17448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17449 ac_status=$?
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
17453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); } >/dev/null && {
17455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 }; then
17458 ac_header_preproc=yes
17459 else
17460 $as_echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ac_header_preproc=no
17466 rm -f conftest.err conftest.$ac_ext
17467 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17468 $as_echo "$ac_header_preproc" >&6; }
17470 # So? What about this header?
17471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17472 yes:no: )
17473 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17474 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17475 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
17476 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
17477 ac_header_preproc=yes
17479 no:yes:* )
17480 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
17481 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
17482 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
17483 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
17484 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
17485 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
17486 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
17487 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17488 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
17489 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
17490 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
17491 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
17494 esac
17495 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17496 $as_echo_n "checking for dl.h... " >&6; }
17497 if test "${ac_cv_header_dl_h+set}" = set; then
17498 $as_echo_n "(cached) " >&6
17499 else
17500 ac_cv_header_dl_h=$ac_header_preproc
17502 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17503 $as_echo "$ac_cv_header_dl_h" >&6; }
17506 if test "x$ac_cv_header_dl_h" = x""yes; then
17507 DLL=dl.h
17514 if test x${DLL} = xdlfcn.h; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_DLFCN_H 1
17518 _ACEOF
17520 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
17521 $as_echo_n "checking for dlopen()... " >&6; }
17522 cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h. */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17530 main ()
17533 extern void* dlopen();
17534 dlopen();
17537 return 0;
17539 _ACEOF
17540 rm -f conftest.$ac_objext conftest$ac_exeext
17541 if { (ac_try="$ac_link"
17542 case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545 esac
17546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17547 $as_echo "$ac_try_echo") >&5
17548 (eval "$ac_link") 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } && {
17555 test -z "$ac_c_werror_flag" ||
17556 test ! -s conftest.err
17557 } && test -s conftest$ac_exeext && {
17558 test "$cross_compiling" = yes ||
17559 $as_test_x conftest$ac_exeext
17560 }; then
17561 { $as_echo "$as_me:$LINENO: result: yes" >&5
17562 $as_echo "yes" >&6; };
17564 cat >>confdefs.h <<\_ACEOF
17565 #define HAVE_DLOPEN 1
17566 _ACEOF
17568 else
17569 $as_echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 { $as_echo "$as_me:$LINENO: result: no" >&5
17573 $as_echo "no" >&6; };
17574 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
17575 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
17576 olibs=$LIBS
17577 LIBS="$LIBS -ldl"
17578 cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h. */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17586 main ()
17589 extern void* dlopen();
17590 dlopen();
17593 return 0;
17595 _ACEOF
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601 esac
17602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17603 $as_echo "$ac_try_echo") >&5
17604 (eval "$ac_link") 2>conftest.er1
17605 ac_status=$?
17606 grep -v '^ *+' conftest.er1 >conftest.err
17607 rm -f conftest.er1
17608 cat conftest.err >&5
17609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } && {
17611 test -z "$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17613 } && test -s conftest$ac_exeext && {
17614 test "$cross_compiling" = yes ||
17615 $as_test_x conftest$ac_exeext
17616 }; then
17617 { $as_echo "$as_me:$LINENO: result: yes" >&5
17618 $as_echo "yes" >&6; };
17620 cat >>confdefs.h <<\_ACEOF
17621 #define HAVE_DLOPEN 1
17622 _ACEOF
17624 else
17625 $as_echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 { $as_echo "$as_me:$LINENO: result: no" >&5
17629 $as_echo "no" >&6; };
17630 LIBS=$olibs
17633 rm -rf conftest.dSYM
17634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17635 conftest$ac_exeext conftest.$ac_ext
17638 rm -rf conftest.dSYM
17639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640 conftest$ac_exeext conftest.$ac_ext
17641 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
17642 $as_echo_n "checking for dlsym()... " >&6; }
17643 cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h. */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17651 main ()
17654 extern void* dlsym();
17655 dlsym();
17658 return 0;
17660 _ACEOF
17661 rm -f conftest.$ac_objext conftest$ac_exeext
17662 if { (ac_try="$ac_link"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666 esac
17667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17668 $as_echo "$ac_try_echo") >&5
17669 (eval "$ac_link") 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } && {
17676 test -z "$ac_c_werror_flag" ||
17677 test ! -s conftest.err
17678 } && test -s conftest$ac_exeext && {
17679 test "$cross_compiling" = yes ||
17680 $as_test_x conftest$ac_exeext
17681 }; then
17682 { $as_echo "$as_me:$LINENO: result: yes" >&5
17683 $as_echo "yes" >&6; };
17685 cat >>confdefs.h <<\_ACEOF
17686 #define HAVE_DLSYM 1
17687 _ACEOF
17689 else
17690 $as_echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 { $as_echo "$as_me:$LINENO: result: no" >&5
17694 $as_echo "no" >&6; };
17695 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17696 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17697 olibs=$LIBS
17698 LIBS="$LIBS -ldl"
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h. */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17707 main ()
17710 extern void* dlsym();
17711 dlsym();
17714 return 0;
17716 _ACEOF
17717 rm -f conftest.$ac_objext conftest$ac_exeext
17718 if { (ac_try="$ac_link"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722 esac
17723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17724 $as_echo "$ac_try_echo") >&5
17725 (eval "$ac_link") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest$ac_exeext && {
17735 test "$cross_compiling" = yes ||
17736 $as_test_x conftest$ac_exeext
17737 }; then
17738 { $as_echo "$as_me:$LINENO: result: yes" >&5
17739 $as_echo "yes" >&6; };
17741 cat >>confdefs.h <<\_ACEOF
17742 #define HAVE_DLSYM 1
17743 _ACEOF
17745 else
17746 $as_echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 { $as_echo "$as_me:$LINENO: result: no" >&5
17750 $as_echo "no" >&6; };
17751 LIBS=$olibs
17754 rm -rf conftest.dSYM
17755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17756 conftest$ac_exeext conftest.$ac_ext
17759 rm -rf conftest.dSYM
17760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17761 conftest$ac_exeext conftest.$ac_ext
17762 elif test x${DLL} = xdl.h; then
17764 cat >>confdefs.h <<\_ACEOF
17765 #define HAVE_DL_H 1
17766 _ACEOF
17768 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17769 $as_echo_n "checking for shl_load()... " >&6; }
17770 cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h. */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17778 main ()
17781 extern void* shl_load();
17782 shl_load();
17785 return 0;
17787 _ACEOF
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (ac_try="$ac_link"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17793 esac
17794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17795 $as_echo "$ac_try_echo") >&5
17796 (eval "$ac_link") 2>conftest.er1
17797 ac_status=$?
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
17801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } && {
17803 test -z "$ac_c_werror_flag" ||
17804 test ! -s conftest.err
17805 } && test -s conftest$ac_exeext && {
17806 test "$cross_compiling" = yes ||
17807 $as_test_x conftest$ac_exeext
17808 }; then
17809 { $as_echo "$as_me:$LINENO: result: yes" >&5
17810 $as_echo "yes" >&6; };
17812 cat >>confdefs.h <<\_ACEOF
17813 #define HAVE_SHL_LOAD 1
17814 _ACEOF
17816 else
17817 $as_echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 { $as_echo "$as_me:$LINENO: result: no" >&5
17821 $as_echo "no" >&6; };
17822 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17823 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17824 olibs=$LIBS
17825 LIBS="$LIBS -ldld"
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17834 main ()
17837 extern void* shl_load();
17838 shl_load();
17841 return 0;
17843 _ACEOF
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (ac_try="$ac_link"
17846 case "(($ac_try" in
17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848 *) ac_try_echo=$ac_try;;
17849 esac
17850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17851 $as_echo "$ac_try_echo") >&5
17852 (eval "$ac_link") 2>conftest.er1
17853 ac_status=$?
17854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest$ac_exeext && {
17862 test "$cross_compiling" = yes ||
17863 $as_test_x conftest$ac_exeext
17864 }; then
17865 { $as_echo "$as_me:$LINENO: result: yes" >&5
17866 $as_echo "yes" >&6; };
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_SHL_LOAD 1
17870 _ACEOF
17872 else
17873 $as_echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 { $as_echo "$as_me:$LINENO: result: no" >&5
17877 $as_echo "no" >&6; };
17878 LIBS=$olibs
17881 rm -rf conftest.dSYM
17882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17883 conftest$ac_exeext conftest.$ac_ext
17886 rm -rf conftest.dSYM
17887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17888 conftest$ac_exeext conftest.$ac_ext
17891 for ac_header in setjmp.h
17893 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17896 $as_echo_n "checking for $ac_header... " >&6; }
17897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17898 $as_echo_n "(cached) " >&6
17900 ac_res=`eval 'as_val=${'$as_ac_Header'}
17901 $as_echo "$as_val"'`
17902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17903 $as_echo "$ac_res" >&6; }
17904 else
17905 # Is the header compilable?
17906 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17907 $as_echo_n "checking $ac_header usability... " >&6; }
17908 cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h. */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h. */
17914 $ac_includes_default
17915 #include <$ac_header>
17916 _ACEOF
17917 rm -f conftest.$ac_objext
17918 if { (ac_try="$ac_compile"
17919 case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17922 esac
17923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17924 $as_echo "$ac_try_echo") >&5
17925 (eval "$ac_compile") 2>conftest.er1
17926 ac_status=$?
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
17930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } && {
17932 test -z "$ac_c_werror_flag" ||
17933 test ! -s conftest.err
17934 } && test -s conftest.$ac_objext; then
17935 ac_header_compiler=yes
17936 else
17937 $as_echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_header_compiler=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17945 $as_echo "$ac_header_compiler" >&6; }
17947 # Is the header present?
17948 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17949 $as_echo_n "checking $ac_header presence... " >&6; }
17950 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h. */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <$ac_header>
17957 _ACEOF
17958 if { (ac_try="$ac_cpp conftest.$ac_ext"
17959 case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962 esac
17963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17964 $as_echo "$ac_try_echo") >&5
17965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17966 ac_status=$?
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
17970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } >/dev/null && {
17972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17974 }; then
17975 ac_header_preproc=yes
17976 else
17977 $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_header_preproc=no
17983 rm -f conftest.err conftest.$ac_ext
17984 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17985 $as_echo "$ac_header_preproc" >&6; }
17987 # So? What about this header?
17988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17989 yes:no: )
17990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17991 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17994 ac_header_preproc=yes
17996 no:yes:* )
17997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17998 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18000 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18002 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18004 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18008 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18011 esac
18012 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18013 $as_echo_n "checking for $ac_header... " >&6; }
18014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18015 $as_echo_n "(cached) " >&6
18016 else
18017 eval "$as_ac_Header=\$ac_header_preproc"
18019 ac_res=`eval 'as_val=${'$as_ac_Header'}
18020 $as_echo "$as_val"'`
18021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18022 $as_echo "$ac_res" >&6; }
18025 as_val=`eval 'as_val=${'$as_ac_Header'}
18026 $as_echo "$as_val"'`
18027 if test "x$as_val" = x""yes; then
18028 cat >>confdefs.h <<_ACEOF
18029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18030 _ACEOF
18034 done
18037 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
18038 if echo $LIBS | grep -e '-ldl' >/dev/null; then
18039 LIBS=`echo $LIBS | sed s/-ldl//`
18040 PERL_LIBS="$PERL_LIBS -ldl"
18044 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
18045 && test "x$GUITYPE" != "xCARBONGUI"; then
18046 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
18047 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
18048 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
18049 || test "x$features" = "xhuge"; then
18050 LIBS="$LIBS -framework Carbon"
18051 { $as_echo "$as_me:$LINENO: result: yes" >&5
18052 $as_echo "yes" >&6; }
18053 else
18054 { $as_echo "$as_me:$LINENO: result: no" >&5
18055 $as_echo "no" >&6; }
18058 if test "x$MACARCH" = "xboth"; then
18059 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
18062 DEPEND_CFLAGS_FILTER=
18063 if test "$GCC" = yes; then
18064 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
18065 $as_echo_n "checking for GCC 3 or later... " >&6; }
18066 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
18067 if test "$gccmajor" -gt "2"; then
18068 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
18069 { $as_echo "$as_me:$LINENO: result: yes" >&5
18070 $as_echo "yes" >&6; }
18071 else
18072 { $as_echo "$as_me:$LINENO: result: no" >&5
18073 $as_echo "no" >&6; }
18075 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
18076 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
18077 if test "$gccmajor" -gt "3"; then
18078 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
18079 { $as_echo "$as_me:$LINENO: result: yes" >&5
18080 $as_echo "yes" >&6; }
18081 else
18082 { $as_echo "$as_me:$LINENO: result: no" >&5
18083 $as_echo "no" >&6; }
18088 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
18090 cat >confcache <<\_ACEOF
18091 # This file is a shell script that caches the results of configure
18092 # tests run on this system so they can be shared between configure
18093 # scripts and configure runs, see configure's option --config-cache.
18094 # It is not useful on other systems. If it contains results you don't
18095 # want to keep, you may remove or edit it.
18097 # config.status only pays attention to the cache file if you give it
18098 # the --recheck option to rerun configure.
18100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18102 # following values.
18104 _ACEOF
18106 # The following way of writing the cache mishandles newlines in values,
18107 # but we know of no workaround that is simple, portable, and efficient.
18108 # So, we kill variables containing newlines.
18109 # Ultrix sh set writes to stderr and can't be redirected directly,
18110 # and sets the high bit in the cache file unless we assign to the vars.
18112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18113 eval ac_val=\$$ac_var
18114 case $ac_val in #(
18115 *${as_nl}*)
18116 case $ac_var in #(
18117 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18119 esac
18120 case $ac_var in #(
18121 _ | IFS | as_nl) ;; #(
18122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18123 *) $as_unset $ac_var ;;
18124 esac ;;
18125 esac
18126 done
18128 (set) 2>&1 |
18129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18130 *${as_nl}ac_space=\ *)
18131 # `set' does not quote correctly, so add quotes (double-quote
18132 # substitution turns \\\\ into \\, and sed turns \\ into \).
18133 sed -n \
18134 "s/'/'\\\\''/g;
18135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18136 ;; #(
18138 # `set' quotes correctly as required by POSIX, so do not add quotes.
18139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18141 esac |
18142 sort
18144 sed '
18145 /^ac_cv_env_/b end
18146 t clear
18147 :clear
18148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18149 t end
18150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18151 :end' >>confcache
18152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18153 if test -w "$cache_file"; then
18154 test "x$cache_file" != "x/dev/null" &&
18155 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18156 $as_echo "$as_me: updating cache $cache_file" >&6;}
18157 cat confcache >$cache_file
18158 else
18159 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18160 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18163 rm -f confcache
18165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18166 # Let make expand exec_prefix.
18167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18169 DEFS=-DHAVE_CONFIG_H
18171 ac_libobjs=
18172 ac_ltlibobjs=
18173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18174 # 1. Remove the extension, and $U if already installed.
18175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18178 # will be set to the directory where LIBOBJS objects are built.
18179 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18180 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18181 done
18182 LIBOBJS=$ac_libobjs
18184 LTLIBOBJS=$ac_ltlibobjs
18188 : ${CONFIG_STATUS=./config.status}
18189 ac_write_fail=0
18190 ac_clean_files_save=$ac_clean_files
18191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18192 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18193 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18194 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18195 #! $SHELL
18196 # Generated by $as_me.
18197 # Run this file to recreate the current configuration.
18198 # Compiler output produced by configure, useful for debugging
18199 # configure, is in config.log if it exists.
18201 debug=false
18202 ac_cs_recheck=false
18203 ac_cs_silent=false
18204 SHELL=\${CONFIG_SHELL-$SHELL}
18205 _ACEOF
18207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18208 ## --------------------- ##
18209 ## M4sh Initialization. ##
18210 ## --------------------- ##
18212 # Be more Bourne compatible
18213 DUALCASE=1; export DUALCASE # for MKS sh
18214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18215 emulate sh
18216 NULLCMD=:
18217 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18218 # is contrary to our usage. Disable this feature.
18219 alias -g '${1+"$@"}'='"$@"'
18220 setopt NO_GLOB_SUBST
18221 else
18222 case `(set -o) 2>/dev/null` in
18223 *posix*) set -o posix ;;
18224 esac
18231 # PATH needs CR
18232 # Avoid depending upon Character Ranges.
18233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18236 as_cr_digits='0123456789'
18237 as_cr_alnum=$as_cr_Letters$as_cr_digits
18239 as_nl='
18241 export as_nl
18242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18243 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18246 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18247 as_echo='printf %s\n'
18248 as_echo_n='printf %s'
18249 else
18250 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18251 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18252 as_echo_n='/usr/ucb/echo -n'
18253 else
18254 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18255 as_echo_n_body='eval
18256 arg=$1;
18257 case $arg in
18258 *"$as_nl"*)
18259 expr "X$arg" : "X\\(.*\\)$as_nl";
18260 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18261 esac;
18262 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18264 export as_echo_n_body
18265 as_echo_n='sh -c $as_echo_n_body as_echo'
18267 export as_echo_body
18268 as_echo='sh -c $as_echo_body as_echo'
18271 # The user is always right.
18272 if test "${PATH_SEPARATOR+set}" != set; then
18273 PATH_SEPARATOR=:
18274 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18275 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18276 PATH_SEPARATOR=';'
18280 # Support unset when possible.
18281 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18282 as_unset=unset
18283 else
18284 as_unset=false
18288 # IFS
18289 # We need space, tab and new line, in precisely that order. Quoting is
18290 # there to prevent editors from complaining about space-tab.
18291 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18292 # splitting by setting IFS to empty value.)
18293 IFS=" "" $as_nl"
18295 # Find who we are. Look in the path if we contain no directory separator.
18296 case $0 in
18297 *[\\/]* ) as_myself=$0 ;;
18298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299 for as_dir in $PATH
18301 IFS=$as_save_IFS
18302 test -z "$as_dir" && as_dir=.
18303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18304 done
18305 IFS=$as_save_IFS
18308 esac
18309 # We did not find ourselves, most probably we were run as `sh COMMAND'
18310 # in which case we are not to be found in the path.
18311 if test "x$as_myself" = x; then
18312 as_myself=$0
18314 if test ! -f "$as_myself"; then
18315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18316 { (exit 1); exit 1; }
18319 # Work around bugs in pre-3.0 UWIN ksh.
18320 for as_var in ENV MAIL MAILPATH
18321 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18322 done
18323 PS1='$ '
18324 PS2='> '
18325 PS4='+ '
18327 # NLS nuisances.
18328 LC_ALL=C
18329 export LC_ALL
18330 LANGUAGE=C
18331 export LANGUAGE
18333 # Required to use basename.
18334 if expr a : '\(a\)' >/dev/null 2>&1 &&
18335 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18336 as_expr=expr
18337 else
18338 as_expr=false
18341 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18342 as_basename=basename
18343 else
18344 as_basename=false
18348 # Name of the executable.
18349 as_me=`$as_basename -- "$0" ||
18350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18351 X"$0" : 'X\(//\)$' \| \
18352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18353 $as_echo X/"$0" |
18354 sed '/^.*\/\([^/][^/]*\)\/*$/{
18355 s//\1/
18358 /^X\/\(\/\/\)$/{
18359 s//\1/
18362 /^X\/\(\/\).*/{
18363 s//\1/
18366 s/.*/./; q'`
18368 # CDPATH.
18369 $as_unset CDPATH
18373 as_lineno_1=$LINENO
18374 as_lineno_2=$LINENO
18375 test "x$as_lineno_1" != "x$as_lineno_2" &&
18376 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18378 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18379 # uniformly replaced by the line number. The first 'sed' inserts a
18380 # line-number line after each line using $LINENO; the second 'sed'
18381 # does the real work. The second script uses 'N' to pair each
18382 # line-number line with the line containing $LINENO, and appends
18383 # trailing '-' during substitution so that $LINENO is not a special
18384 # case at line end.
18385 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18386 # scripts with optimization help from Paolo Bonzini. Blame Lee
18387 # E. McMahon (1931-1989) for sed's syntax. :-)
18388 sed -n '
18390 /[$]LINENO/=
18391 ' <$as_myself |
18392 sed '
18393 s/[$]LINENO.*/&-/
18394 t lineno
18396 :lineno
18398 :loop
18399 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18400 t loop
18401 s/-\n.*//
18402 ' >$as_me.lineno &&
18403 chmod +x "$as_me.lineno" ||
18404 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18405 { (exit 1); exit 1; }; }
18407 # Don't try to exec as it changes $[0], causing all sort of problems
18408 # (the dirname of $[0] is not the place where we might find the
18409 # original and so on. Autoconf is especially sensitive to this).
18410 . "./$as_me.lineno"
18411 # Exit status is that of the last command.
18412 exit
18416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18417 as_dirname=dirname
18418 else
18419 as_dirname=false
18422 ECHO_C= ECHO_N= ECHO_T=
18423 case `echo -n x` in
18424 -n*)
18425 case `echo 'x\c'` in
18426 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18427 *) ECHO_C='\c';;
18428 esac;;
18430 ECHO_N='-n';;
18431 esac
18432 if expr a : '\(a\)' >/dev/null 2>&1 &&
18433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18434 as_expr=expr
18435 else
18436 as_expr=false
18439 rm -f conf$$ conf$$.exe conf$$.file
18440 if test -d conf$$.dir; then
18441 rm -f conf$$.dir/conf$$.file
18442 else
18443 rm -f conf$$.dir
18444 mkdir conf$$.dir 2>/dev/null
18446 if (echo >conf$$.file) 2>/dev/null; then
18447 if ln -s conf$$.file conf$$ 2>/dev/null; then
18448 as_ln_s='ln -s'
18449 # ... but there are two gotchas:
18450 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18451 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18452 # In both cases, we have to default to `cp -p'.
18453 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18454 as_ln_s='cp -p'
18455 elif ln conf$$.file conf$$ 2>/dev/null; then
18456 as_ln_s=ln
18457 else
18458 as_ln_s='cp -p'
18460 else
18461 as_ln_s='cp -p'
18463 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18464 rmdir conf$$.dir 2>/dev/null
18466 if mkdir -p . 2>/dev/null; then
18467 as_mkdir_p=:
18468 else
18469 test -d ./-p && rmdir ./-p
18470 as_mkdir_p=false
18473 if test -x / >/dev/null 2>&1; then
18474 as_test_x='test -x'
18475 else
18476 if ls -dL / >/dev/null 2>&1; then
18477 as_ls_L_option=L
18478 else
18479 as_ls_L_option=
18481 as_test_x='
18482 eval sh -c '\''
18483 if test -d "$1"; then
18484 test -d "$1/.";
18485 else
18486 case $1 in
18487 -*)set "./$1";;
18488 esac;
18489 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18490 ???[sx]*):;;*)false;;esac;fi
18491 '\'' sh
18494 as_executable_p=$as_test_x
18496 # Sed expression to map a string onto a valid CPP name.
18497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18499 # Sed expression to map a string onto a valid variable name.
18500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18503 exec 6>&1
18505 # Save the log message, to keep $[0] and so on meaningful, and to
18506 # report actual input values of CONFIG_FILES etc. instead of their
18507 # values after options handling.
18508 ac_log="
18509 This file was extended by $as_me, which was
18510 generated by GNU Autoconf 2.63. Invocation command line was
18512 CONFIG_FILES = $CONFIG_FILES
18513 CONFIG_HEADERS = $CONFIG_HEADERS
18514 CONFIG_LINKS = $CONFIG_LINKS
18515 CONFIG_COMMANDS = $CONFIG_COMMANDS
18516 $ $0 $@
18518 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18521 _ACEOF
18523 case $ac_config_files in *"
18524 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18525 esac
18527 case $ac_config_headers in *"
18528 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18529 esac
18532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18533 # Files that config.status was made for.
18534 config_files="$ac_config_files"
18535 config_headers="$ac_config_headers"
18537 _ACEOF
18539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18540 ac_cs_usage="\
18541 \`$as_me' instantiates files from templates according to the
18542 current configuration.
18544 Usage: $0 [OPTION]... [FILE]...
18546 -h, --help print this help, then exit
18547 -V, --version print version number and configuration settings, then exit
18548 -q, --quiet, --silent
18549 do not print progress messages
18550 -d, --debug don't remove temporary files
18551 --recheck update $as_me by reconfiguring in the same conditions
18552 --file=FILE[:TEMPLATE]
18553 instantiate the configuration file FILE
18554 --header=FILE[:TEMPLATE]
18555 instantiate the configuration header FILE
18557 Configuration files:
18558 $config_files
18560 Configuration headers:
18561 $config_headers
18563 Report bugs to <bug-autoconf@gnu.org>."
18565 _ACEOF
18566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567 ac_cs_version="\\
18568 config.status
18569 configured by $0, generated by GNU Autoconf 2.63,
18570 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18572 Copyright (C) 2008 Free Software Foundation, Inc.
18573 This config.status script is free software; the Free Software Foundation
18574 gives unlimited permission to copy, distribute and modify it."
18576 ac_pwd='$ac_pwd'
18577 srcdir='$srcdir'
18578 AWK='$AWK'
18579 test -n "\$AWK" || AWK=awk
18580 _ACEOF
18582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18583 # The default lists apply if the user does not specify any file.
18584 ac_need_defaults=:
18585 while test $# != 0
18587 case $1 in
18588 --*=*)
18589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18590 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18591 ac_shift=:
18594 ac_option=$1
18595 ac_optarg=$2
18596 ac_shift=shift
18598 esac
18600 case $ac_option in
18601 # Handling of the options.
18602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18603 ac_cs_recheck=: ;;
18604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18605 $as_echo "$ac_cs_version"; exit ;;
18606 --debug | --debu | --deb | --de | --d | -d )
18607 debug=: ;;
18608 --file | --fil | --fi | --f )
18609 $ac_shift
18610 case $ac_optarg in
18611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18612 esac
18613 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18614 ac_need_defaults=false;;
18615 --header | --heade | --head | --hea )
18616 $ac_shift
18617 case $ac_optarg in
18618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18619 esac
18620 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18621 ac_need_defaults=false;;
18622 --he | --h)
18623 # Conflict between --help and --header
18624 { $as_echo "$as_me: error: ambiguous option: $1
18625 Try \`$0 --help' for more information." >&2
18626 { (exit 1); exit 1; }; };;
18627 --help | --hel | -h )
18628 $as_echo "$ac_cs_usage"; exit ;;
18629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18631 ac_cs_silent=: ;;
18633 # This is an error.
18634 -*) { $as_echo "$as_me: error: unrecognized option: $1
18635 Try \`$0 --help' for more information." >&2
18636 { (exit 1); exit 1; }; } ;;
18638 *) ac_config_targets="$ac_config_targets $1"
18639 ac_need_defaults=false ;;
18641 esac
18642 shift
18643 done
18645 ac_configure_extra_args=
18647 if $ac_cs_silent; then
18648 exec 6>/dev/null
18649 ac_configure_extra_args="$ac_configure_extra_args --silent"
18652 _ACEOF
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 if \$ac_cs_recheck; then
18655 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18656 shift
18657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18658 CONFIG_SHELL='$SHELL'
18659 export CONFIG_SHELL
18660 exec "\$@"
18663 _ACEOF
18664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18665 exec 5>>auto/config.log
18667 echo
18668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18669 ## Running $as_me. ##
18670 _ASBOX
18671 $as_echo "$ac_log"
18672 } >&5
18674 _ACEOF
18675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18676 _ACEOF
18678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 # Handling of arguments.
18681 for ac_config_target in $ac_config_targets
18683 case $ac_config_target in
18684 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18685 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18687 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18688 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18689 { (exit 1); exit 1; }; };;
18690 esac
18691 done
18694 # If the user did not use the arguments to specify the items to instantiate,
18695 # then the envvar interface is used. Set only those that are not.
18696 # We use the long form for the default assignment because of an extremely
18697 # bizarre bug on SunOS 4.1.3.
18698 if $ac_need_defaults; then
18699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18703 # Have a temporary directory for convenience. Make it in the build tree
18704 # simply because there is no reason against having it here, and in addition,
18705 # creating and moving files from /tmp can sometimes cause problems.
18706 # Hook for its removal unless debugging.
18707 # Note that there is a small window in which the directory will not be cleaned:
18708 # after its creation but before its name has been assigned to `$tmp'.
18709 $debug ||
18711 tmp=
18712 trap 'exit_status=$?
18713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18715 trap '{ (exit 1); exit 1; }' 1 2 13 15
18717 # Create a (secure) tmp directory for tmp files.
18720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18721 test -n "$tmp" && test -d "$tmp"
18722 } ||
18724 tmp=./conf$$-$RANDOM
18725 (umask 077 && mkdir "$tmp")
18726 } ||
18728 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18729 { (exit 1); exit 1; }
18732 # Set up the scripts for CONFIG_FILES section.
18733 # No need to generate them if there are no CONFIG_FILES.
18734 # This happens for instance with `./config.status config.h'.
18735 if test -n "$CONFIG_FILES"; then
18738 ac_cr=' '
18739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18741 ac_cs_awk_cr='\\r'
18742 else
18743 ac_cs_awk_cr=$ac_cr
18746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18747 _ACEOF
18751 echo "cat >conf$$subs.awk <<_ACEOF" &&
18752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18753 echo "_ACEOF"
18754 } >conf$$subs.sh ||
18755 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18756 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18757 { (exit 1); exit 1; }; }
18758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18759 ac_delim='%!_!# '
18760 for ac_last_try in false false false false false :; do
18761 . ./conf$$subs.sh ||
18762 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18763 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18764 { (exit 1); exit 1; }; }
18766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18767 if test $ac_delim_n = $ac_delim_num; then
18768 break
18769 elif $ac_last_try; then
18770 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18771 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18772 { (exit 1); exit 1; }; }
18773 else
18774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18776 done
18777 rm -f conf$$subs.sh
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18780 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18781 _ACEOF
18782 sed -n '
18784 s/^/S["/; s/!.*/"]=/
18787 s/^[^!]*!//
18788 :repl
18789 t repl
18790 s/'"$ac_delim"'$//
18791 t delim
18794 s/\(.\{148\}\).*/\1/
18795 t more1
18796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18799 b repl
18800 :more1
18801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18804 s/.\{148\}//
18805 t nl
18806 :delim
18808 s/\(.\{148\}\).*/\1/
18809 t more2
18810 s/["\\]/\\&/g; s/^/"/; s/$/"/
18813 :more2
18814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18817 s/.\{148\}//
18818 t delim
18819 ' <conf$$subs.awk | sed '
18820 /^[^""]/{
18822 s/\n//
18824 ' >>$CONFIG_STATUS || ac_write_fail=1
18825 rm -f conf$$subs.awk
18826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18827 _ACAWK
18828 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18829 for (key in S) S_is_set[key] = 1
18830 FS = "\a"
18834 line = $ 0
18835 nfields = split(line, field, "@")
18836 substed = 0
18837 len = length(field[1])
18838 for (i = 2; i < nfields; i++) {
18839 key = field[i]
18840 keylen = length(key)
18841 if (S_is_set[key]) {
18842 value = S[key]
18843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18844 len += length(value) + length(field[++i])
18845 substed = 1
18846 } else
18847 len += 1 + keylen
18850 print line
18853 _ACAWK
18854 _ACEOF
18855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18858 else
18860 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18861 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18862 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18863 { (exit 1); exit 1; }; }
18864 _ACEOF
18866 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18867 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18868 # trailing colons and then remove the whole line if VPATH becomes empty
18869 # (actually we leave an empty line to preserve line numbers).
18870 if test "x$srcdir" = x.; then
18871 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18872 s/:*\$(srcdir):*/:/
18873 s/:*\${srcdir}:*/:/
18874 s/:*@srcdir@:*/:/
18875 s/^\([^=]*=[ ]*\):*/\1/
18876 s/:*$//
18877 s/^[^=]*=[ ]*$//
18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882 fi # test -n "$CONFIG_FILES"
18884 # Set up the scripts for CONFIG_HEADERS section.
18885 # No need to generate them if there are no CONFIG_HEADERS.
18886 # This happens for instance with `./config.status Makefile'.
18887 if test -n "$CONFIG_HEADERS"; then
18888 cat >"$tmp/defines.awk" <<\_ACAWK ||
18889 BEGIN {
18890 _ACEOF
18892 # Transform confdefs.h into an awk script `defines.awk', embedded as
18893 # here-document in config.status, that substitutes the proper values into
18894 # config.h.in to produce config.h.
18896 # Create a delimiter string that does not exist in confdefs.h, to ease
18897 # handling of long lines.
18898 ac_delim='%!_!# '
18899 for ac_last_try in false false :; do
18900 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18901 if test -z "$ac_t"; then
18902 break
18903 elif $ac_last_try; then
18904 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18905 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18906 { (exit 1); exit 1; }; }
18907 else
18908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18910 done
18912 # For the awk script, D is an array of macro values keyed by name,
18913 # likewise P contains macro parameters if any. Preserve backslash
18914 # newline sequences.
18916 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18917 sed -n '
18918 s/.\{148\}/&'"$ac_delim"'/g
18919 t rset
18920 :rset
18921 s/^[ ]*#[ ]*define[ ][ ]*/ /
18922 t def
18924 :def
18925 s/\\$//
18926 t bsnl
18927 s/["\\]/\\&/g
18928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18929 D["\1"]=" \3"/p
18930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18932 :bsnl
18933 s/["\\]/\\&/g
18934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18935 D["\1"]=" \3\\\\\\n"\\/p
18936 t cont
18937 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18938 t cont
18940 :cont
18942 s/.\{148\}/&'"$ac_delim"'/g
18943 t clear
18944 :clear
18945 s/\\$//
18946 t bsnlc
18947 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18949 :bsnlc
18950 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18951 b cont
18952 ' <confdefs.h | sed '
18953 s/'"$ac_delim"'/"\\\
18954 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957 for (key in D) D_is_set[key] = 1
18958 FS = "\a"
18960 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18961 line = \$ 0
18962 split(line, arg, " ")
18963 if (arg[1] == "#") {
18964 defundef = arg[2]
18965 mac1 = arg[3]
18966 } else {
18967 defundef = substr(arg[1], 2)
18968 mac1 = arg[2]
18970 split(mac1, mac2, "(") #)
18971 macro = mac2[1]
18972 prefix = substr(line, 1, index(line, defundef) - 1)
18973 if (D_is_set[macro]) {
18974 # Preserve the white space surrounding the "#".
18975 print prefix "define", macro P[macro] D[macro]
18976 next
18977 } else {
18978 # Replace #undef with comments. This is necessary, for example,
18979 # in the case of _POSIX_SOURCE, which is predefined and required
18980 # on some systems where configure will not decide to define it.
18981 if (defundef == "undef") {
18982 print "/*", prefix defundef, macro, "*/"
18983 next
18987 { print }
18988 _ACAWK
18989 _ACEOF
18990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18991 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18992 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18993 { (exit 1); exit 1; }; }
18994 fi # test -n "$CONFIG_HEADERS"
18997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18998 shift
18999 for ac_tag
19001 case $ac_tag in
19002 :[FHLC]) ac_mode=$ac_tag; continue;;
19003 esac
19004 case $ac_mode$ac_tag in
19005 :[FHL]*:*);;
19006 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19007 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19008 { (exit 1); exit 1; }; };;
19009 :[FH]-) ac_tag=-:-;;
19010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19011 esac
19012 ac_save_IFS=$IFS
19013 IFS=:
19014 set x $ac_tag
19015 IFS=$ac_save_IFS
19016 shift
19017 ac_file=$1
19018 shift
19020 case $ac_mode in
19021 :L) ac_source=$1;;
19022 :[FH])
19023 ac_file_inputs=
19024 for ac_f
19026 case $ac_f in
19027 -) ac_f="$tmp/stdin";;
19028 *) # Look for the file first in the build tree, then in the source tree
19029 # (if the path is not absolute). The absolute path cannot be DOS-style,
19030 # because $ac_f cannot contain `:'.
19031 test -f "$ac_f" ||
19032 case $ac_f in
19033 [\\/$]*) false;;
19034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19035 esac ||
19036 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19037 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19038 { (exit 1); exit 1; }; };;
19039 esac
19040 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19041 ac_file_inputs="$ac_file_inputs '$ac_f'"
19042 done
19044 # Let's still pretend it is `configure' which instantiates (i.e., don't
19045 # use $as_me), people would be surprised to read:
19046 # /* config.h. Generated by config.status. */
19047 configure_input='Generated from '`
19048 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19049 `' by configure.'
19050 if test x"$ac_file" != x-; then
19051 configure_input="$ac_file. $configure_input"
19052 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19053 $as_echo "$as_me: creating $ac_file" >&6;}
19055 # Neutralize special characters interpreted by sed in replacement strings.
19056 case $configure_input in #(
19057 *\&* | *\|* | *\\* )
19058 ac_sed_conf_input=`$as_echo "$configure_input" |
19059 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19060 *) ac_sed_conf_input=$configure_input;;
19061 esac
19063 case $ac_tag in
19064 *:-:* | *:-) cat >"$tmp/stdin" \
19065 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19066 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19067 { (exit 1); exit 1; }; } ;;
19068 esac
19070 esac
19072 ac_dir=`$as_dirname -- "$ac_file" ||
19073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19074 X"$ac_file" : 'X\(//\)[^/]' \| \
19075 X"$ac_file" : 'X\(//\)$' \| \
19076 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19077 $as_echo X"$ac_file" |
19078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19079 s//\1/
19082 /^X\(\/\/\)[^/].*/{
19083 s//\1/
19086 /^X\(\/\/\)$/{
19087 s//\1/
19090 /^X\(\/\).*/{
19091 s//\1/
19094 s/.*/./; q'`
19095 { as_dir="$ac_dir"
19096 case $as_dir in #(
19097 -*) as_dir=./$as_dir;;
19098 esac
19099 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19100 as_dirs=
19101 while :; do
19102 case $as_dir in #(
19103 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19104 *) as_qdir=$as_dir;;
19105 esac
19106 as_dirs="'$as_qdir' $as_dirs"
19107 as_dir=`$as_dirname -- "$as_dir" ||
19108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19109 X"$as_dir" : 'X\(//\)[^/]' \| \
19110 X"$as_dir" : 'X\(//\)$' \| \
19111 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19112 $as_echo X"$as_dir" |
19113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19114 s//\1/
19117 /^X\(\/\/\)[^/].*/{
19118 s//\1/
19121 /^X\(\/\/\)$/{
19122 s//\1/
19125 /^X\(\/\).*/{
19126 s//\1/
19129 s/.*/./; q'`
19130 test -d "$as_dir" && break
19131 done
19132 test -z "$as_dirs" || eval "mkdir $as_dirs"
19133 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19134 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19135 { (exit 1); exit 1; }; }; }
19136 ac_builddir=.
19138 case "$ac_dir" in
19139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19141 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19142 # A ".." for each directory in $ac_dir_suffix.
19143 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19144 case $ac_top_builddir_sub in
19145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19147 esac ;;
19148 esac
19149 ac_abs_top_builddir=$ac_pwd
19150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19151 # for backward compatibility:
19152 ac_top_builddir=$ac_top_build_prefix
19154 case $srcdir in
19155 .) # We are building in place.
19156 ac_srcdir=.
19157 ac_top_srcdir=$ac_top_builddir_sub
19158 ac_abs_top_srcdir=$ac_pwd ;;
19159 [\\/]* | ?:[\\/]* ) # Absolute name.
19160 ac_srcdir=$srcdir$ac_dir_suffix;
19161 ac_top_srcdir=$srcdir
19162 ac_abs_top_srcdir=$srcdir ;;
19163 *) # Relative name.
19164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19165 ac_top_srcdir=$ac_top_build_prefix$srcdir
19166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19167 esac
19168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19171 case $ac_mode in
19174 # CONFIG_FILE
19177 _ACEOF
19179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19180 # If the template does not know about datarootdir, expand it.
19181 # FIXME: This hack should be removed a few years after 2.60.
19182 ac_datarootdir_hack=; ac_datarootdir_seen=
19184 ac_sed_dataroot='
19185 /datarootdir/ {
19189 /@datadir@/p
19190 /@docdir@/p
19191 /@infodir@/p
19192 /@localedir@/p
19193 /@mandir@/p
19195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19196 *datarootdir*) ac_datarootdir_seen=yes;;
19197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19198 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19200 _ACEOF
19201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19202 ac_datarootdir_hack='
19203 s&@datadir@&$datadir&g
19204 s&@docdir@&$docdir&g
19205 s&@infodir@&$infodir&g
19206 s&@localedir@&$localedir&g
19207 s&@mandir@&$mandir&g
19208 s&\\\${datarootdir}&$datarootdir&g' ;;
19209 esac
19210 _ACEOF
19212 # Neutralize VPATH when `$srcdir' = `.'.
19213 # Shell code in configure.ac might set extrasub.
19214 # FIXME: do we really want to maintain this feature?
19215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19216 ac_sed_extra="$ac_vpsub
19217 $extrasub
19218 _ACEOF
19219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19222 s|@configure_input@|$ac_sed_conf_input|;t t
19223 s&@top_builddir@&$ac_top_builddir_sub&;t t
19224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19225 s&@srcdir@&$ac_srcdir&;t t
19226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19227 s&@top_srcdir@&$ac_top_srcdir&;t t
19228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19229 s&@builddir@&$ac_builddir&;t t
19230 s&@abs_builddir@&$ac_abs_builddir&;t t
19231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19232 $ac_datarootdir_hack
19234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19235 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19236 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19237 { (exit 1); exit 1; }; }
19239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19242 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19243 which seems to be undefined. Please make sure it is defined." >&5
19244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19245 which seems to be undefined. Please make sure it is defined." >&2;}
19247 rm -f "$tmp/stdin"
19248 case $ac_file in
19249 -) cat "$tmp/out" && rm -f "$tmp/out";;
19250 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19251 esac \
19252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19254 { (exit 1); exit 1; }; }
19258 # CONFIG_HEADER
19260 if test x"$ac_file" != x-; then
19262 $as_echo "/* $configure_input */" \
19263 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19264 } >"$tmp/config.h" \
19265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19266 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19267 { (exit 1); exit 1; }; }
19268 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19269 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19270 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19271 else
19272 rm -f "$ac_file"
19273 mv "$tmp/config.h" "$ac_file" \
19274 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19275 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19276 { (exit 1); exit 1; }; }
19278 else
19279 $as_echo "/* $configure_input */" \
19280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19281 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19282 $as_echo "$as_me: error: could not create -" >&2;}
19283 { (exit 1); exit 1; }; }
19288 esac
19290 done # for ac_tag
19293 { (exit 0); exit 0; }
19294 _ACEOF
19295 chmod +x $CONFIG_STATUS
19296 ac_clean_files=$ac_clean_files_save
19298 test $ac_write_fail = 0 ||
19299 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19300 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19301 { (exit 1); exit 1; }; }
19304 # configure is writing to config.log, and then calls config.status.
19305 # config.status does its own redirection, appending to config.log.
19306 # Unfortunately, on DOS this fails, as config.log is still kept open
19307 # by configure, so config.status won't be able to write to it; its
19308 # output is simply discarded. So we exec the FD to /dev/null,
19309 # effectively closing config.log, so it can be properly (re)opened and
19310 # appended to by config.status. When coming back to configure, we
19311 # need to make the FD available again.
19312 if test "$no_create" != yes; then
19313 ac_cs_success=:
19314 ac_config_status_args=
19315 test "$silent" = yes &&
19316 ac_config_status_args="$ac_config_status_args --quiet"
19317 exec 5>/dev/null
19318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19319 exec 5>>auto/config.log
19320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19321 # would make configure fail if this is the last instruction.
19322 $ac_cs_success || { (exit 1); exit 1; }
19324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19325 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}