update configure
[MacVim/KaoriYa.git] / src / auto / configure
blob83b23a6a7e16e6a242954c3c94a3c612908cf664
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 PERL_LIBS
697 PERL_CFLAGS
698 PERL_PRO
699 PERL_OBJ
700 PERL_SRC
701 shrpenv
702 vi_cv_perllib
703 vi_cv_path_perl
704 MZSCHEME_MZC
705 MZSCHEME_EXTRA
706 MZSCHEME_CFLAGS
707 MZSCHEME_LIBS
708 MZSCHEME_PRO
709 MZSCHEME_OBJ
710 MZSCHEME_SRC
711 vi_cv_path_mzscheme
712 compiledby
713 dogvimdiff
714 dovimdiff
715 line_break
716 VIEWNAME
717 EXNAME
718 VIMNAME
719 OS_EXTRA_OBJ
720 OS_EXTRA_SRC
721 CPP_MM
722 STRIP
724 EGREP
725 GREP
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
734 SET_MAKE
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_darwin
776 with_mac_arch
777 with_local_dir
778 with_vim_name
779 with_ex_name
780 with_view_name
781 with_global_runtime
782 with_modified_by
783 enable_selinux
784 with_features
785 with_compiledby
786 enable_xsmp
787 enable_xsmp_interact
788 enable_mzschemeinterp
789 with_plthome
790 enable_perlinterp
791 enable_pythoninterp
792 with_python_config_dir
793 enable_tclinterp
794 with_tclsh
795 enable_rubyinterp
796 enable_cscope
797 enable_workshop
798 enable_netbeans
799 enable_sniff
800 enable_multibyte
801 enable_hangulinput
802 enable_xim
803 enable_fontset
804 with_x
805 enable_gui
806 enable_gtk_check
807 enable_gtk2_check
808 enable_gnome_check
809 enable_motif_check
810 enable_athena_check
811 enable_nextaw_check
812 enable_carbon_check
813 enable_macvim_check
814 with_gtk_prefix
815 with_gtk_exec_prefix
816 enable_gtktest
817 with_gnome_includes
818 with_gnome_libs
819 with_gnome
820 with_motif_lib
821 enable_uimfep
822 with_tlib
823 enable_acl
824 enable_gpm
825 enable_sysmouse
826 enable_nls
827 enable_migemo
829 ac_precious_vars='build_alias
830 host_alias
831 target_alias
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
838 XMKMF'
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
889 ac_prev=
890 ac_dashdash=
891 for ac_option
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
900 case $ac_option in
901 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *) ac_optarg=yes ;;
903 esac
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
909 ac_dashdash=yes ;;
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
928 --config-cache | -C)
929 cache_file=config.cache ;;
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 esac
1267 # Check all directory arguments for consistency.
1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
1281 case $ac_val in
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284 esac
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334 s//\1/
1337 /^X\(\/\/\)[^/].*/{
1338 s//\1/
1341 /^X\(\/\/\)$/{
1342 s//\1/
1345 /^X\(\/\).*/{
1346 s//\1/
1349 s/.*/./; q'`
1350 srcdir=$ac_confdir
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 srcdir=..
1354 else
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1366 pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1400 Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1446 cat <<\_ACEOF
1448 X features:
1449 --x-includes=DIR X include files are in DIR
1450 --x-libraries=DIR X library files are in DIR
1451 _ACEOF
1454 if test -n "$ac_init_help"; then
1456 cat <<\_ACEOF
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --disable-darwin Disable Darwin (Mac OS X) support.
1463 --disable-selinux Don't check for SELinux support.
1464 --disable-xsmp Disable XSMP session management
1465 --disable-xsmp-interact Disable XSMP interaction
1466 --enable-mzschemeinterp Include MzScheme interpreter.
1467 --enable-perlinterp Include Perl interpreter.
1468 --enable-pythoninterp Include Python interpreter.
1469 --enable-tclinterp Include Tcl interpreter.
1470 --enable-rubyinterp Include Ruby interpreter.
1471 --enable-cscope Include cscope interface.
1472 --enable-workshop Include Sun Visual Workshop support.
1473 --disable-netbeans Disable NetBeans integration support.
1474 --enable-sniff Include Sniff interface.
1475 --enable-multibyte Include multibyte editing support.
1476 --enable-hangulinput Include Hangul input support.
1477 --enable-xim Include XIM input support.
1478 --enable-fontset Include X fontset output support.
1479 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1480 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1481 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1482 --enable-gnome-check If GTK GUI, check for GNOME default=no
1483 --enable-motif-check If auto-select GUI, check for Motif default=yes
1484 --enable-athena-check If auto-select GUI, check for Athena default=yes
1485 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1486 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1487 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1488 --disable-gtktest Do not try to compile and run a test GTK program
1489 --disable-uimfep Don't support UIMFEP.
1490 --disable-acl Don't check for ACL support.
1491 --disable-gpm Don't use gpm (Linux mouse daemon).
1492 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1493 --disable-nls Don't support NLS (gettext()).
1494 --disable-migemo Don't support C/Migemo.
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-mac-arch=ARCH current, intel, ppc or both
1500 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1501 --without-local-dir do not search /usr/local for local libraries.
1502 --with-vim-name=NAME what to call the Vim executable
1503 --with-ex-name=NAME what to call the Ex executable
1504 --with-view-name=NAME what to call the View executable
1505 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1506 --with-modified-by=NAME name of who modified a release version
1507 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1508 --with-compiledby=NAME name to show in :version message
1509 --with-plthome=PLTHOME Use PLTHOME.
1510 --with-python-config-dir=PATH Python's config directory
1511 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1512 --with-x use the X Window System
1513 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1514 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1515 --with-gnome-includes=DIR Specify location of GNOME headers
1516 --with-gnome-libs=DIR Specify location of GNOME libs
1517 --with-gnome Specify prefix for GNOME files
1518 --with-motif-lib=STRING Library for Motif
1519 --with-tlib=library terminal library to be used
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 XMKMF Path to xmkmf, Makefile generator for X Window System
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 configure
1598 generated by GNU Autoconf 2.63
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1607 cat >auto/config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1611 It was created by $as_me, which was
1612 generated by GNU Autoconf 2.63. Invocation command line was
1614 $ $0 $@
1616 _ACEOF
1617 exec 5>>auto/config.log
1619 cat <<_ASUNAME
1620 ## --------- ##
1621 ## Platform. ##
1622 ## --------- ##
1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1633 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1634 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1637 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1638 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1639 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 _ASUNAME
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 $as_echo "PATH: $as_dir"
1649 done
1650 IFS=$as_save_IFS
1652 } >&5
1654 cat >&5 <<_ACEOF
1657 ## ----------- ##
1658 ## Core tests. ##
1659 ## ----------- ##
1661 _ACEOF
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_configure_args=
1670 ac_configure_args0=
1671 ac_configure_args1=
1672 ac_must_keep_next=false
1673 for ac_pass in 1 2
1675 for ac_arg
1677 case $ac_arg in
1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1681 continue ;;
1682 *\'*)
1683 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 esac
1685 case $ac_pass in
1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689 if test $ac_must_keep_next = true; then
1690 ac_must_keep_next=false # Got value, back to normal.
1691 else
1692 case $ac_arg in
1693 *=* | --config-cache | -C | -disable-* | --disable-* \
1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696 | -with-* | --with-* | -without-* | --without-* | --x)
1697 case "$ac_configure_args0 " in
1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 esac
1701 -* ) ac_must_keep_next=true ;;
1702 esac
1704 ac_configure_args="$ac_configure_args '$ac_arg'"
1706 esac
1707 done
1708 done
1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log. We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718 # Save into config.log some information that might help in debugging.
1720 echo
1722 cat <<\_ASBOX
1723 ## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##
1726 _ASBOX
1727 echo
1728 # The following way of writing the cache mishandles newlines in values,
1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in #(
1733 *${as_nl}*)
1734 case $ac_var in #(
1735 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1737 esac
1738 case $ac_var in #(
1739 _ | IFS | as_nl) ;; #(
1740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1741 *) $as_unset $ac_var ;;
1742 esac ;;
1743 esac
1744 done
1745 (set) 2>&1 |
1746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747 *${as_nl}ac_space=\ *)
1748 sed -n \
1749 "s/'\''/'\''\\\\'\'''\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1751 ;; #(
1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 esac |
1756 sort
1758 echo
1760 cat <<\_ASBOX
1761 ## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##
1764 _ASBOX
1765 echo
1766 for ac_var in $ac_subst_vars
1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 $as_echo "$ac_var='\''$ac_val'\''"
1773 done | sort
1774 echo
1776 if test -n "$ac_subst_files"; then
1777 cat <<\_ASBOX
1778 ## ------------------- ##
1779 ## File substitutions. ##
1780 ## ------------------- ##
1781 _ASBOX
1782 echo
1783 for ac_var in $ac_subst_files
1785 eval ac_val=\$$ac_var
1786 case $ac_val in
1787 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 esac
1789 $as_echo "$ac_var='\''$ac_val'\''"
1790 done | sort
1791 echo
1794 if test -s confdefs.h; then
1795 cat <<\_ASBOX
1796 ## ----------- ##
1797 ## confdefs.h. ##
1798 ## ----------- ##
1799 _ASBOX
1800 echo
1801 cat confdefs.h
1802 echo
1804 test "$ac_signal" != 0 &&
1805 $as_echo "$as_me: caught signal $ac_signal"
1806 $as_echo "$as_me: exit $exit_status"
1807 } >&5
1808 rm -f core *.core core.conftest.* &&
1809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1810 exit $exit_status
1812 for ac_signal in 1 2 13 15; do
1813 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 done
1815 ac_signal=0
1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1818 rm -f -r conftest* confdefs.h
1820 # Predefined preprocessor variables.
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 _ACEOF
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 _ACEOF
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 _ACEOF
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 _ACEOF
1847 # Let the site file select an alternate cache file if it wants to.
1848 # Prefer an explicitly selected file to automatically selected ones.
1849 ac_site_file1=NONE
1850 ac_site_file2=NONE
1851 if test -n "$CONFIG_SITE"; then
1852 ac_site_file1=$CONFIG_SITE
1853 elif test "x$prefix" != xNONE; then
1854 ac_site_file1=$prefix/share/config.site
1855 ac_site_file2=$prefix/etc/config.site
1856 else
1857 ac_site_file1=$ac_default_prefix/share/config.site
1858 ac_site_file2=$ac_default_prefix/etc/config.site
1860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862 test "x$ac_site_file" = xNONE && continue
1863 if test -r "$ac_site_file"; then
1864 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1867 . "$ac_site_file"
1869 done
1871 if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 $as_echo "$as_me: loading cache $cache_file" >&6;}
1877 case $cache_file in
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1880 esac
1882 else
1883 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 $as_echo "$as_me: creating cache $cache_file" >&6;}
1885 >$cache_file
1888 # Check that the precious variables saved in the cache have kept the same
1889 # value.
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1897 set,)
1898 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,set)
1902 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,);;
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 # differences in whitespace do not lead to failure.
1909 ac_old_val_w=`echo x $ac_old_val`
1910 ac_new_val_w=`echo x $ac_new_val`
1911 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914 ac_cache_corrupted=:
1915 else
1916 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1917 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1918 eval $ac_var=\$ac_old_val
1920 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1921 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1922 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1923 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1924 fi;;
1925 esac
1926 # Pass precious variables to config.status.
1927 if test "$ac_new_set" = set; then
1928 case $ac_new_val in
1929 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 *) ac_arg=$ac_var=$ac_new_val ;;
1931 esac
1932 case " $ac_configure_args " in
1933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1934 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 esac
1937 done
1938 if $ac_cache_corrupted; then
1939 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1941 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945 { (exit 1); exit 1; }; }
1964 ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1974 cat >>confdefs.h <<\_ACEOF
1975 #define UNIX 1
1976 _ACEOF
1978 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1979 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1980 set x ${MAKE-make}
1981 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1982 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat >conftest.make <<\_ACEOF
1986 SHELL = /bin/sh
1987 all:
1988 @echo '@@@%%%=$(MAKE)=@@@%%%'
1989 _ACEOF
1990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1991 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1992 *@@@%%%=?*=@@@%%%*)
1993 eval ac_cv_prog_make_${ac_make}_set=yes;;
1995 eval ac_cv_prog_make_${ac_make}_set=no;;
1996 esac
1997 rm -f conftest.make
1999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2000 { $as_echo "$as_me:$LINENO: result: yes" >&5
2001 $as_echo "yes" >&6; }
2002 SET_MAKE=
2003 else
2004 { $as_echo "$as_me:$LINENO: result: no" >&5
2005 $as_echo "no" >&6; }
2006 SET_MAKE="MAKE=${MAKE-make}"
2010 ac_ext=c
2011 ac_cpp='$CPP $CPPFLAGS'
2012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 if test -n "$ac_tool_prefix"; then
2016 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2017 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 $as_echo_n "checking for $ac_word... " >&6; }
2020 if test "${ac_cv_prog_CC+set}" = set; then
2021 $as_echo_n "(cached) " >&6
2022 else
2023 if test -n "$CC"; then
2024 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2037 done
2038 done
2039 IFS=$as_save_IFS
2043 CC=$ac_cv_prog_CC
2044 if test -n "$CC"; then
2045 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2046 $as_echo "$CC" >&6; }
2047 else
2048 { $as_echo "$as_me:$LINENO: result: no" >&5
2049 $as_echo "no" >&6; }
2054 if test -z "$ac_cv_prog_CC"; then
2055 ac_ct_CC=$CC
2056 # Extract the first word of "gcc", so it can be a program name with args.
2057 set dummy gcc; ac_word=$2
2058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2059 $as_echo_n "checking for $ac_word... " >&6; }
2060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2061 $as_echo_n "(cached) " >&6
2062 else
2063 if test -n "$ac_ct_CC"; then
2064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 else
2066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 for as_dir in $PATH
2069 IFS=$as_save_IFS
2070 test -z "$as_dir" && as_dir=.
2071 for ac_exec_ext in '' $ac_executable_extensions; do
2072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2073 ac_cv_prog_ac_ct_CC="gcc"
2074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 break 2
2077 done
2078 done
2079 IFS=$as_save_IFS
2083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084 if test -n "$ac_ct_CC"; then
2085 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086 $as_echo "$ac_ct_CC" >&6; }
2087 else
2088 { $as_echo "$as_me:$LINENO: result: no" >&5
2089 $as_echo "no" >&6; }
2092 if test "x$ac_ct_CC" = x; then
2093 CC=""
2094 else
2095 case $cross_compiling:$ac_tool_warned in
2096 yes:)
2097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2099 ac_tool_warned=yes ;;
2100 esac
2101 CC=$ac_ct_CC
2103 else
2104 CC="$ac_cv_prog_CC"
2107 if test -z "$CC"; then
2108 if test -n "$ac_tool_prefix"; then
2109 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2110 set dummy ${ac_tool_prefix}cc; ac_word=$2
2111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 $as_echo_n "checking for $ac_word... " >&6; }
2113 if test "${ac_cv_prog_CC+set}" = set; then
2114 $as_echo_n "(cached) " >&6
2115 else
2116 if test -n "$CC"; then
2117 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 for ac_exec_ext in '' $ac_executable_extensions; do
2125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126 ac_cv_prog_CC="${ac_tool_prefix}cc"
2127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128 break 2
2130 done
2131 done
2132 IFS=$as_save_IFS
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2139 $as_echo "$CC" >&6; }
2140 else
2141 { $as_echo "$as_me:$LINENO: result: no" >&5
2142 $as_echo "no" >&6; }
2148 if test -z "$CC"; then
2149 # Extract the first word of "cc", so it can be a program name with args.
2150 set dummy cc; ac_word=$2
2151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 $as_echo_n "checking for $ac_word... " >&6; }
2153 if test "${ac_cv_prog_CC+set}" = set; then
2154 $as_echo_n "(cached) " >&6
2155 else
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2158 else
2159 ac_prog_rejected=no
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2168 ac_prog_rejected=yes
2169 continue
2171 ac_cv_prog_CC="cc"
2172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 break 2
2175 done
2176 done
2177 IFS=$as_save_IFS
2179 if test $ac_prog_rejected = yes; then
2180 # We found a bogon in the path, so make sure we never use it.
2181 set dummy $ac_cv_prog_CC
2182 shift
2183 if test $# != 0; then
2184 # We chose a different compiler from the bogus one.
2185 # However, it has the same basename, so the bogon will be chosen
2186 # first if we set CC to just the basename; use the full file name.
2187 shift
2188 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2196 $as_echo "$CC" >&6; }
2197 else
2198 { $as_echo "$as_me:$LINENO: result: no" >&5
2199 $as_echo "no" >&6; }
2204 if test -z "$CC"; then
2205 if test -n "$ac_tool_prefix"; then
2206 for ac_prog in cl.exe
2208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2211 $as_echo_n "checking for $ac_word... " >&6; }
2212 if test "${ac_cv_prog_CC+set}" = set; then
2213 $as_echo_n "(cached) " >&6
2214 else
2215 if test -n "$CC"; then
2216 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 else
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2225 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2231 IFS=$as_save_IFS
2235 CC=$ac_cv_prog_CC
2236 if test -n "$CC"; then
2237 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2238 $as_echo "$CC" >&6; }
2239 else
2240 { $as_echo "$as_me:$LINENO: result: no" >&5
2241 $as_echo "no" >&6; }
2245 test -n "$CC" && break
2246 done
2248 if test -z "$CC"; then
2249 ac_ct_CC=$CC
2250 for ac_prog in cl.exe
2252 # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 $as_echo_n "checking for $ac_word... " >&6; }
2256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 $as_echo_n "(cached) " >&6
2258 else
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_ac_ct_CC="$ac_prog"
2270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2273 done
2274 done
2275 IFS=$as_save_IFS
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 $as_echo "$ac_ct_CC" >&6; }
2283 else
2284 { $as_echo "$as_me:$LINENO: result: no" >&5
2285 $as_echo "no" >&6; }
2289 test -n "$ac_ct_CC" && break
2290 done
2292 if test "x$ac_ct_CC" = x; then
2293 CC=""
2294 else
2295 case $cross_compiling:$ac_tool_warned in
2296 yes:)
2297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2299 ac_tool_warned=yes ;;
2300 esac
2301 CC=$ac_ct_CC
2308 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2310 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2311 See \`config.log' for more details." >&5
2312 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }; }
2316 # Provide some information about the compiler.
2317 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2318 set X $ac_compile
2319 ac_compiler=$2
2320 { (ac_try="$ac_compiler --version >&5"
2321 case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326 $as_echo "$ac_try_echo") >&5
2327 (eval "$ac_compiler --version >&5") 2>&5
2328 ac_status=$?
2329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331 { (ac_try="$ac_compiler -v >&5"
2332 case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335 esac
2336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2337 $as_echo "$ac_try_echo") >&5
2338 (eval "$ac_compiler -v >&5") 2>&5
2339 ac_status=$?
2340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }
2342 { (ac_try="$ac_compiler -V >&5"
2343 case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346 esac
2347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2348 $as_echo "$ac_try_echo") >&5
2349 (eval "$ac_compiler -V >&5") 2>&5
2350 ac_status=$?
2351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h. */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2362 main ()
2366 return 0;
2368 _ACEOF
2369 ac_clean_files_save=$ac_clean_files
2370 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2371 # Try to create an executable without -o first, disregard a.out.
2372 # It will help us diagnose broken compilers, and finding out an intuition
2373 # of exeext.
2374 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375 $as_echo_n "checking for C compiler default output file name... " >&6; }
2376 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378 # The possible output files:
2379 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2381 ac_rmfiles=
2382 for ac_file in $ac_files
2384 case $ac_file in
2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2386 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2387 esac
2388 done
2389 rm -f $ac_rmfiles
2391 if { (ac_try="$ac_link_default"
2392 case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2395 esac
2396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2397 $as_echo "$ac_try_echo") >&5
2398 (eval "$ac_link_default") 2>&5
2399 ac_status=$?
2400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; then
2402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2403 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2404 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2405 # so that the user can short-circuit this test for compilers unknown to
2406 # Autoconf.
2407 for ac_file in $ac_files ''
2409 test -f "$ac_file" || continue
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2413 [ab].out )
2414 # We found the default executable, but exeext='' is most
2415 # certainly right.
2416 break;;
2417 *.* )
2418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2419 then :; else
2420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 # We set ac_cv_exeext here because the later test for it is not
2423 # safe: cross compilers may not add the suffix if given an `-o'
2424 # argument, so we may need to know it at that point already.
2425 # Even if this section looks crufty: it has the advantage of
2426 # actually working.
2427 break;;
2429 break;;
2430 esac
2431 done
2432 test "$ac_cv_exeext" = no && ac_cv_exeext=
2434 else
2435 ac_file=''
2438 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2439 $as_echo "$ac_file" >&6; }
2440 if test -z "$ac_file"; then
2441 $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2444 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2446 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2447 See \`config.log' for more details." >&5
2448 $as_echo "$as_me: error: C compiler cannot create executables
2449 See \`config.log' for more details." >&2;}
2450 { (exit 77); exit 77; }; }; }
2453 ac_exeext=$ac_cv_exeext
2455 # Check that the compiler produces executables we can run. If not, either
2456 # the compiler is broken, or we cross compile.
2457 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2458 $as_echo_n "checking whether the C compiler works... " >&6; }
2459 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2460 # If not cross compiling, check that we can run a simple program.
2461 if test "$cross_compiling" != yes; then
2462 if { ac_try='./$ac_file'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2466 esac
2467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2468 $as_echo "$ac_try_echo") >&5
2469 (eval "$ac_try") 2>&5
2470 ac_status=$?
2471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 cross_compiling=no
2474 else
2475 if test "$cross_compiling" = maybe; then
2476 cross_compiling=yes
2477 else
2478 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2481 If you meant to cross compile, use \`--host'.
2482 See \`config.log' for more details." >&5
2483 $as_echo "$as_me: error: cannot run C compiled programs.
2484 If you meant to cross compile, use \`--host'.
2485 See \`config.log' for more details." >&2;}
2486 { (exit 1); exit 1; }; }; }
2490 { $as_echo "$as_me:$LINENO: result: yes" >&5
2491 $as_echo "yes" >&6; }
2493 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2494 ac_clean_files=$ac_clean_files_save
2495 # Check that the compiler produces executables we can run. If not, either
2496 # the compiler is broken, or we cross compile.
2497 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2498 $as_echo_n "checking whether we are cross compiling... " >&6; }
2499 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2500 $as_echo "$cross_compiling" >&6; }
2502 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2503 $as_echo_n "checking for suffix of executables... " >&6; }
2504 if { (ac_try="$ac_link"
2505 case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508 esac
2509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2510 $as_echo "$ac_try_echo") >&5
2511 (eval "$ac_link") 2>&5
2512 ac_status=$?
2513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2516 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2517 # work properly (i.e., refer to `conftest.exe'), while it won't with
2518 # `rm'.
2519 for ac_file in conftest.exe conftest conftest.*; do
2520 test -f "$ac_file" || continue
2521 case $ac_file in
2522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2524 break;;
2525 * ) break;;
2526 esac
2527 done
2528 else
2529 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2532 See \`config.log' for more details." >&5
2533 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2534 See \`config.log' for more details." >&2;}
2535 { (exit 1); exit 1; }; }; }
2538 rm -f conftest$ac_cv_exeext
2539 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2540 $as_echo "$ac_cv_exeext" >&6; }
2542 rm -f conftest.$ac_ext
2543 EXEEXT=$ac_cv_exeext
2544 ac_exeext=$EXEEXT
2545 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2546 $as_echo_n "checking for suffix of object files... " >&6; }
2547 if test "${ac_cv_objext+set}" = set; then
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h. */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2558 main ()
2562 return 0;
2564 _ACEOF
2565 rm -f conftest.o conftest.obj
2566 if { (ac_try="$ac_compile"
2567 case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2572 $as_echo "$ac_try_echo") >&5
2573 (eval "$ac_compile") 2>&5
2574 ac_status=$?
2575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; then
2577 for ac_file in conftest.o conftest.obj conftest.*; do
2578 test -f "$ac_file" || continue;
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2581 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2582 break;;
2583 esac
2584 done
2585 else
2586 $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2592 See \`config.log' for more details." >&5
2593 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2594 See \`config.log' for more details." >&2;}
2595 { (exit 1); exit 1; }; }; }
2598 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2600 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2601 $as_echo "$ac_cv_objext" >&6; }
2602 OBJEXT=$ac_cv_objext
2603 ac_objext=$OBJEXT
2604 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2605 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2606 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2608 else
2609 cat >conftest.$ac_ext <<_ACEOF
2610 /* confdefs.h. */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2617 main ()
2619 #ifndef __GNUC__
2620 choke me
2621 #endif
2624 return 0;
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634 $as_echo "$ac_try_echo") >&5
2635 (eval "$ac_compile") 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } && {
2642 test -z "$ac_c_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest.$ac_objext; then
2645 ac_compiler_gnu=yes
2646 else
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2650 ac_compiler_gnu=no
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2657 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2659 if test $ac_compiler_gnu = yes; then
2660 GCC=yes
2661 else
2662 GCC=
2664 ac_test_CFLAGS=${CFLAGS+set}
2665 ac_save_CFLAGS=$CFLAGS
2666 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2667 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2668 if test "${ac_cv_prog_cc_g+set}" = set; then
2669 $as_echo_n "(cached) " >&6
2670 else
2671 ac_save_c_werror_flag=$ac_c_werror_flag
2672 ac_c_werror_flag=yes
2673 ac_cv_prog_cc_g=no
2674 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h. */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2683 main ()
2687 return 0;
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (ac_try="$ac_compile"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697 $as_echo "$ac_try_echo") >&5
2698 (eval "$ac_compile") 2>conftest.er1
2699 ac_status=$?
2700 grep -v '^ *+' conftest.er1 >conftest.err
2701 rm -f conftest.er1
2702 cat conftest.err >&5
2703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } && {
2705 test -z "$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2707 } && test -s conftest.$ac_objext; then
2708 ac_cv_prog_cc_g=yes
2709 else
2710 $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 CFLAGS=""
2714 cat >conftest.$ac_ext <<_ACEOF
2715 /* confdefs.h. */
2716 _ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2722 main ()
2726 return 0;
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2731 case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736 $as_echo "$ac_try_echo") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } && {
2744 test -z "$ac_c_werror_flag" ||
2745 test ! -s conftest.err
2746 } && test -s conftest.$ac_objext; then
2748 else
2749 $as_echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 ac_c_werror_flag=$ac_save_c_werror_flag
2753 CFLAGS="-g"
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 main ()
2766 return 0;
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (ac_try="$ac_compile"
2771 case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776 $as_echo "$ac_try_echo") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
2787 ac_cv_prog_cc_g=yes
2788 else
2789 $as_echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2804 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805 $as_echo "$ac_cv_prog_cc_g" >&6; }
2806 if test "$ac_test_CFLAGS" = set; then
2807 CFLAGS=$ac_save_CFLAGS
2808 elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2810 CFLAGS="-g -O2"
2811 else
2812 CFLAGS="-g"
2814 else
2815 if test "$GCC" = yes; then
2816 CFLAGS="-O2"
2817 else
2818 CFLAGS=
2821 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2823 if test "${ac_cv_prog_cc_c89+set}" = set; then
2824 $as_echo_n "(cached) " >&6
2825 else
2826 ac_cv_prog_cc_c89=no
2827 ac_save_CC=$CC
2828 cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <stdarg.h>
2835 #include <stdio.h>
2836 #include <sys/types.h>
2837 #include <sys/stat.h>
2838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839 struct buf { int x; };
2840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841 static char *e (p, i)
2842 char **p;
2843 int i;
2845 return p[i];
2847 static char *f (char * (*g) (char **, int), char **p, ...)
2849 char *s;
2850 va_list v;
2851 va_start (v,p);
2852 s = g (p, va_arg (v,int));
2853 va_end (v);
2854 return s;
2857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858 function prototypes and stuff, but not '\xHH' hex character constants.
2859 These don't provoke an error unfortunately, instead are silently treated
2860 as 'x'. The following induces an error, until -std is added to get
2861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862 array size at least. It's necessary to write '\x00'==0 to get something
2863 that's true only with -std. */
2864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867 inside strings and character constants. */
2868 #define FOO(x) 'x'
2869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 int argc;
2876 char **argv;
2878 main ()
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2882 return 0;
2884 _ACEOF
2885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888 CC="$ac_save_CC $ac_arg"
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896 $as_echo "$ac_try_echo") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2907 ac_cv_prog_cc_c89=$ac_arg
2908 else
2909 $as_echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2915 rm -f core conftest.err conftest.$ac_objext
2916 test "x$ac_cv_prog_cc_c89" != "xno" && break
2917 done
2918 rm -f conftest.$ac_ext
2919 CC=$ac_save_CC
2922 # AC_CACHE_VAL
2923 case "x$ac_cv_prog_cc_c89" in
2925 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2926 $as_echo "none needed" >&6; } ;;
2927 xno)
2928 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2929 $as_echo "unsupported" >&6; } ;;
2931 CC="$CC $ac_cv_prog_cc_c89"
2932 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2934 esac
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2949 # On Suns, sometimes $CPP names a directory.
2950 if test -n "$CPP" && test -d "$CPP"; then
2951 CPP=
2953 if test -z "$CPP"; then
2954 if test "${ac_cv_prog_CPP+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2956 else
2957 # Double quotes because CPP needs to be expanded
2958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960 ac_preproc_ok=false
2961 for ac_c_preproc_warn_flag in '' yes
2963 # Use a header file that comes with gcc, so configuring glibc
2964 # with a fresh cross-compiler works.
2965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966 # <limits.h> exists even on freestanding compilers.
2967 # On the NeXT, cc -E runs the code through the compiler's parser,
2968 # not just through cpp. "Syntax error" is here to catch this case.
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #ifdef __STDC__
2976 # include <limits.h>
2977 #else
2978 # include <assert.h>
2979 #endif
2980 Syntax error
2981 _ACEOF
2982 if { (ac_try="$ac_cpp conftest.$ac_ext"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2988 $as_echo "$ac_try_echo") >&5
2989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } >/dev/null && {
2996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2997 test ! -s conftest.err
2998 }; then
3000 else
3001 $as_echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 # Broken: fails on valid input.
3005 continue
3008 rm -f conftest.err conftest.$ac_ext
3010 # OK, works on sane cases. Now check whether nonexistent headers
3011 # can be detected and how.
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 #include <ac_nonexistent.h>
3019 _ACEOF
3020 if { (ac_try="$ac_cpp conftest.$ac_ext"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3026 $as_echo "$ac_try_echo") >&5
3027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3028 ac_status=$?
3029 grep -v '^ *+' conftest.er1 >conftest.err
3030 rm -f conftest.er1
3031 cat conftest.err >&5
3032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null && {
3034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 }; then
3037 # Broken: success on invalid input.
3038 continue
3039 else
3040 $as_echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Passes both tests.
3044 ac_preproc_ok=:
3045 break
3048 rm -f conftest.err conftest.$ac_ext
3050 done
3051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3052 rm -f conftest.err conftest.$ac_ext
3053 if $ac_preproc_ok; then
3054 break
3057 done
3058 ac_cv_prog_CPP=$CPP
3061 CPP=$ac_cv_prog_CPP
3062 else
3063 ac_cv_prog_CPP=$CPP
3065 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3066 $as_echo "$CPP" >&6; }
3067 ac_preproc_ok=false
3068 for ac_c_preproc_warn_flag in '' yes
3070 # Use a header file that comes with gcc, so configuring glibc
3071 # with a fresh cross-compiler works.
3072 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3073 # <limits.h> exists even on freestanding compilers.
3074 # On the NeXT, cc -E runs the code through the compiler's parser,
3075 # not just through cpp. "Syntax error" is here to catch this case.
3076 cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h. */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3082 #ifdef __STDC__
3083 # include <limits.h>
3084 #else
3085 # include <assert.h>
3086 #endif
3087 Syntax error
3088 _ACEOF
3089 if { (ac_try="$ac_cpp conftest.$ac_ext"
3090 case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093 esac
3094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3095 $as_echo "$ac_try_echo") >&5
3096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null && {
3103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 }; then
3107 else
3108 $as_echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 # Broken: fails on valid input.
3112 continue
3115 rm -f conftest.err conftest.$ac_ext
3117 # OK, works on sane cases. Now check whether nonexistent headers
3118 # can be detected and how.
3119 cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h. */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125 #include <ac_nonexistent.h>
3126 _ACEOF
3127 if { (ac_try="$ac_cpp conftest.$ac_ext"
3128 case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3133 $as_echo "$ac_try_echo") >&5
3134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null && {
3141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3142 test ! -s conftest.err
3143 }; then
3144 # Broken: success on invalid input.
3145 continue
3146 else
3147 $as_echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3150 # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3155 rm -f conftest.err conftest.$ac_ext
3157 done
3158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3159 rm -f conftest.err conftest.$ac_ext
3160 if $ac_preproc_ok; then
3162 else
3163 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166 See \`config.log' for more details." >&5
3167 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168 See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }; }
3172 ac_ext=c
3173 ac_cpp='$CPP $CPPFLAGS'
3174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3180 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3181 if test "${ac_cv_path_GREP+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -z "$GREP"; then
3185 ac_path_GREP_found=false
3186 # Loop through the user's path and test for each of PROGNAME-LIST
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_prog in grep ggrep; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3196 # Check for GNU ac_path_GREP and select it if it is found.
3197 # Check for GNU $ac_path_GREP
3198 case `"$ac_path_GREP" --version 2>&1` in
3199 *GNU*)
3200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3202 ac_count=0
3203 $as_echo_n 0123456789 >"conftest.in"
3204 while :
3206 cat "conftest.in" "conftest.in" >"conftest.tmp"
3207 mv "conftest.tmp" "conftest.in"
3208 cp "conftest.in" "conftest.nl"
3209 $as_echo 'GREP' >> "conftest.nl"
3210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3212 ac_count=`expr $ac_count + 1`
3213 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3214 # Best one so far, save it but keep looking for a better one
3215 ac_cv_path_GREP="$ac_path_GREP"
3216 ac_path_GREP_max=$ac_count
3218 # 10*(2^10) chars as input seems more than enough
3219 test $ac_count -gt 10 && break
3220 done
3221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3222 esac
3224 $ac_path_GREP_found && break 3
3225 done
3226 done
3227 done
3228 IFS=$as_save_IFS
3229 if test -z "$ac_cv_path_GREP"; then
3230 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3231 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3232 { (exit 1); exit 1; }; }
3234 else
3235 ac_cv_path_GREP=$GREP
3239 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3240 $as_echo "$ac_cv_path_GREP" >&6; }
3241 GREP="$ac_cv_path_GREP"
3244 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3245 $as_echo_n "checking for egrep... " >&6; }
3246 if test "${ac_cv_path_EGREP+set}" = set; then
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3250 then ac_cv_path_EGREP="$GREP -E"
3251 else
3252 if test -z "$EGREP"; then
3253 ac_path_EGREP_found=false
3254 # Loop through the user's path and test for each of PROGNAME-LIST
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_prog in egrep; do
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3263 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3264 # Check for GNU ac_path_EGREP and select it if it is found.
3265 # Check for GNU $ac_path_EGREP
3266 case `"$ac_path_EGREP" --version 2>&1` in
3267 *GNU*)
3268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3270 ac_count=0
3271 $as_echo_n 0123456789 >"conftest.in"
3272 while :
3274 cat "conftest.in" "conftest.in" >"conftest.tmp"
3275 mv "conftest.tmp" "conftest.in"
3276 cp "conftest.in" "conftest.nl"
3277 $as_echo 'EGREP' >> "conftest.nl"
3278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3280 ac_count=`expr $ac_count + 1`
3281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3282 # Best one so far, save it but keep looking for a better one
3283 ac_cv_path_EGREP="$ac_path_EGREP"
3284 ac_path_EGREP_max=$ac_count
3286 # 10*(2^10) chars as input seems more than enough
3287 test $ac_count -gt 10 && break
3288 done
3289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3290 esac
3292 $ac_path_EGREP_found && break 3
3293 done
3294 done
3295 done
3296 IFS=$as_save_IFS
3297 if test -z "$ac_cv_path_EGREP"; then
3298 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3299 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3300 { (exit 1); exit 1; }; }
3302 else
3303 ac_cv_path_EGREP=$EGREP
3308 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3309 $as_echo "$ac_cv_path_EGREP" >&6; }
3310 EGREP="$ac_cv_path_EGREP"
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3320 _ACEOF
3321 rm -f conftest*
3322 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3323 $as_echo_n "checking for library containing strerror... " >&6; }
3324 if test "${ac_cv_search_strerror+set}" = set; then
3325 $as_echo_n "(cached) " >&6
3326 else
3327 ac_func_search_save_LIBS=$LIBS
3328 cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3335 /* Override any GCC internal prototype to avoid an error.
3336 Use char because int might match the return type of a GCC
3337 builtin and then its argument prototype would still apply. */
3338 #ifdef __cplusplus
3339 extern "C"
3340 #endif
3341 char strerror ();
3343 main ()
3345 return strerror ();
3347 return 0;
3349 _ACEOF
3350 for ac_lib in '' cposix; do
3351 if test -z "$ac_lib"; then
3352 ac_res="none required"
3353 else
3354 ac_res=-l$ac_lib
3355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3357 rm -f conftest.$ac_objext conftest$ac_exeext
3358 if { (ac_try="$ac_link"
3359 case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3364 $as_echo "$ac_try_echo") >&5
3365 (eval "$ac_link") 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest$ac_exeext && {
3375 test "$cross_compiling" = yes ||
3376 $as_test_x conftest$ac_exeext
3377 }; then
3378 ac_cv_search_strerror=$ac_res
3379 else
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -rf conftest.dSYM
3387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3388 conftest$ac_exeext
3389 if test "${ac_cv_search_strerror+set}" = set; then
3390 break
3392 done
3393 if test "${ac_cv_search_strerror+set}" = set; then
3395 else
3396 ac_cv_search_strerror=no
3398 rm conftest.$ac_ext
3399 LIBS=$ac_func_search_save_LIBS
3401 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3402 $as_echo "$ac_cv_search_strerror" >&6; }
3403 ac_res=$ac_cv_search_strerror
3404 if test "$ac_res" != no; then
3405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3408 for ac_prog in gawk mawk nawk awk
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411 set dummy $ac_prog; ac_word=$2
3412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if test "${ac_cv_prog_AWK+set}" = set; then
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$AWK"; then
3418 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3427 ac_cv_prog_AWK="$ac_prog"
3428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3431 done
3432 done
3433 IFS=$as_save_IFS
3437 AWK=$ac_cv_prog_AWK
3438 if test -n "$AWK"; then
3439 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3440 $as_echo "$AWK" >&6; }
3441 else
3442 { $as_echo "$as_me:$LINENO: result: no" >&5
3443 $as_echo "no" >&6; }
3447 test -n "$AWK" && break
3448 done
3450 # Extract the first word of "strip", so it can be a program name with args.
3451 set dummy strip; ac_word=$2
3452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_STRIP+set}" = set; then
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$STRIP"; then
3458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_STRIP="strip"
3468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3471 done
3472 done
3473 IFS=$as_save_IFS
3475 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3478 STRIP=$ac_cv_prog_STRIP
3479 if test -n "$STRIP"; then
3480 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3481 $as_echo "$STRIP" >&6; }
3482 else
3483 { $as_echo "$as_me:$LINENO: result: no" >&5
3484 $as_echo "no" >&6; }
3491 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3492 $as_echo_n "checking for ANSI C header files... " >&6; }
3493 if test "${ac_cv_header_stdc+set}" = set; then
3494 $as_echo_n "(cached) " >&6
3495 else
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <stdlib.h>
3503 #include <stdarg.h>
3504 #include <string.h>
3505 #include <float.h>
3508 main ()
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>conftest.er1
3524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
3533 ac_cv_header_stdc=yes
3534 else
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 ac_cv_header_stdc=no
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 if test $ac_cv_header_stdc = yes; then
3544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include <string.h>
3553 _ACEOF
3554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555 $EGREP "memchr" >/dev/null 2>&1; then
3557 else
3558 ac_cv_header_stdc=no
3560 rm -f conftest*
3564 if test $ac_cv_header_stdc = yes; then
3565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <stdlib.h>
3574 _ACEOF
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 $EGREP "free" >/dev/null 2>&1; then
3578 else
3579 ac_cv_header_stdc=no
3581 rm -f conftest*
3585 if test $ac_cv_header_stdc = yes; then
3586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3587 if test "$cross_compiling" = yes; then
3589 else
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 #include <ctype.h>
3597 #include <stdlib.h>
3598 #if ((' ' & 0x0FF) == 0x020)
3599 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3600 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3601 #else
3602 # define ISLOWER(c) \
3603 (('a' <= (c) && (c) <= 'i') \
3604 || ('j' <= (c) && (c) <= 'r') \
3605 || ('s' <= (c) && (c) <= 'z'))
3606 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3607 #endif
3609 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3611 main ()
3613 int i;
3614 for (i = 0; i < 256; i++)
3615 if (XOR (islower (i), ISLOWER (i))
3616 || toupper (i) != TOUPPER (i))
3617 return 2;
3618 return 0;
3620 _ACEOF
3621 rm -f conftest$ac_exeext
3622 if { (ac_try="$ac_link"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3628 $as_echo "$ac_try_echo") >&5
3629 (eval "$ac_link") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3633 { (case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_try") 2>&5
3640 ac_status=$?
3641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3644 else
3645 $as_echo "$as_me: program exited with status $ac_status" >&5
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ( exit $ac_status )
3650 ac_cv_header_stdc=no
3652 rm -rf conftest.dSYM
3653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3660 $as_echo "$ac_cv_header_stdc" >&6; }
3661 if test $ac_cv_header_stdc = yes; then
3663 cat >>confdefs.h <<\_ACEOF
3664 #define STDC_HEADERS 1
3665 _ACEOF
3669 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3670 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3671 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3672 $as_echo_n "(cached) " >&6
3673 else
3674 cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h. */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3680 #include <sys/types.h>
3681 #include <sys/wait.h>
3682 #ifndef WEXITSTATUS
3683 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3684 #endif
3685 #ifndef WIFEXITED
3686 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3687 #endif
3690 main ()
3692 int s;
3693 wait (&s);
3694 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3696 return 0;
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_cv_header_sys_wait_h=yes
3718 else
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_header_sys_wait_h=no
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3728 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3729 if test $ac_cv_header_sys_wait_h = yes; then
3731 cat >>confdefs.h <<\_ACEOF
3732 #define HAVE_SYS_WAIT_H 1
3733 _ACEOF
3738 if test -z "$CFLAGS"; then
3739 CFLAGS="-O"
3740 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3742 if test "$GCC" = yes; then
3743 gccversion=`"$CC" -dumpversion`
3744 if test "x$gccversion" = "x"; then
3745 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3747 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3748 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3749 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3750 else
3751 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3752 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3753 CFLAGS="$CFLAGS -fno-strength-reduce"
3758 if test "$cross_compiling" = yes; then
3759 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3760 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3763 test "$GCC" = yes && CPP_MM=M;
3765 if test -f ./toolcheck; then
3766 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3767 $as_echo "$as_me: checking for buggy tools..." >&6;}
3768 sh ./toolcheck 1>&6
3771 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3773 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3774 $as_echo_n "checking for BeOS... " >&6; }
3775 case `uname` in
3776 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3777 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3778 $as_echo "yes" >&6; };;
3779 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3780 $as_echo "no" >&6; };;
3781 esac
3783 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3784 $as_echo_n "checking for QNX... " >&6; }
3785 case `uname` in
3786 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3787 test -z "$with_x" && with_x=no
3788 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3789 $as_echo "yes" >&6; };;
3790 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3791 $as_echo "no" >&6; };;
3792 esac
3794 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3795 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3796 if test "`(uname) 2>/dev/null`" = Darwin; then
3797 { $as_echo "$as_me:$LINENO: result: yes" >&5
3798 $as_echo "yes" >&6; }
3800 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3801 $as_echo_n "checking --disable-darwin argument... " >&6; }
3802 # Check whether --enable-darwin was given.
3803 if test "${enable_darwin+set}" = set; then
3804 enableval=$enable_darwin;
3805 else
3806 enable_darwin="yes"
3809 if test "$enable_darwin" = "yes"; then
3810 { $as_echo "$as_me:$LINENO: result: no" >&5
3811 $as_echo "no" >&6; }
3812 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3813 $as_echo_n "checking if Darwin files are there... " >&6; }
3814 if test -f os_macosx.c; then
3815 { $as_echo "$as_me:$LINENO: result: yes" >&5
3816 $as_echo "yes" >&6; }
3817 else
3818 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3819 $as_echo "no, Darwin support disabled" >&6; }
3820 enable_darwin=no
3822 else
3823 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3824 $as_echo "yes, Darwin support excluded" >&6; }
3827 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3828 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3830 # Check whether --with-mac-arch was given.
3831 if test "${with_mac_arch+set}" = set; then
3832 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3833 $as_echo "$MACARCH" >&6; }
3834 else
3835 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3836 $as_echo "defaulting to $MACARCH" >&6; }
3840 if test "x$MACARCH" = "xboth"; then
3841 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3842 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3843 save_cppflags="$CPPFLAGS"
3844 save_cflags="$CFLAGS"
3845 save_ldflags="$LDFLAGS"
3846 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 rm -f conftest.$ac_objext conftest$ac_exeext
3863 if { (ac_try="$ac_link"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869 $as_echo "$ac_try_echo") >&5
3870 (eval "$ac_link") 2>conftest.er1
3871 ac_status=$?
3872 grep -v '^ *+' conftest.er1 >conftest.err
3873 rm -f conftest.er1
3874 cat conftest.err >&5
3875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } && {
3877 test -z "$ac_c_werror_flag" ||
3878 test ! -s conftest.err
3879 } && test -s conftest$ac_exeext && {
3880 test "$cross_compiling" = yes ||
3881 $as_test_x conftest$ac_exeext
3882 }; then
3883 { $as_echo "$as_me:$LINENO: result: found" >&5
3884 $as_echo "found" >&6; }
3885 else
3886 $as_echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 { $as_echo "$as_me:$LINENO: result: not found" >&5
3890 $as_echo "not found" >&6; }
3891 CFLAGS="$save_cflags"
3892 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3893 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3894 CPPFLAGS="$CPPFLAGS -arch i386"
3895 LDFLAGS="$save_ldflags -arch i386"
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h. */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3904 main ()
3908 return 0;
3910 _ACEOF
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (ac_try="$ac_link"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_link") 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest$ac_exeext && {
3929 test "$cross_compiling" = yes ||
3930 $as_test_x conftest$ac_exeext
3931 }; then
3932 { $as_echo "$as_me:$LINENO: result: yes" >&5
3933 $as_echo "yes" >&6; }; MACARCH="intel"
3934 else
3935 $as_echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3938 { $as_echo "$as_me:$LINENO: result: no" >&5
3939 $as_echo "no" >&6; }
3940 MACARCH="ppc"
3941 CPPFLAGS="$save_cppflags -arch ppc"
3942 LDFLAGS="$save_ldflags -arch ppc"
3945 rm -rf conftest.dSYM
3946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3947 conftest$ac_exeext conftest.$ac_ext
3950 rm -rf conftest.dSYM
3951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3952 conftest$ac_exeext conftest.$ac_ext
3953 elif test "x$MACARCH" = "xintel"; then
3954 CPPFLAGS="$CPPFLAGS -arch intel"
3955 LDFLAGS="$LDFLAGS -arch intel"
3956 elif test "x$MACARCH" = "xppc"; then
3957 CPPFLAGS="$CPPFLAGS -arch ppc"
3958 LDFLAGS="$LDFLAGS -arch ppc"
3961 if test "$enable_darwin" = "yes"; then
3962 MACOSX=yes
3963 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3964 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3965 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3966 if test "x$MACARCH" = "xboth"; then
3967 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3968 else
3969 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983 inttypes.h stdint.h unistd.h
3985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3987 $as_echo_n "checking for $ac_header... " >&6; }
3988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989 $as_echo_n "(cached) " >&6
3990 else
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h. */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3997 $ac_includes_default
3999 #include <$ac_header>
4000 _ACEOF
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4008 $as_echo "$ac_try_echo") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest.$ac_objext; then
4019 eval "$as_ac_Header=yes"
4020 else
4021 $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 eval "$as_ac_Header=no"
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_res=`eval 'as_val=${'$as_ac_Header'}
4030 $as_echo "$as_val"'`
4031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4032 $as_echo "$ac_res" >&6; }
4033 as_val=`eval 'as_val=${'$as_ac_Header'}
4034 $as_echo "$as_val"'`
4035 if test "x$as_val" = x""yes; then
4036 cat >>confdefs.h <<_ACEOF
4037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4038 _ACEOF
4042 done
4045 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4046 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4047 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4048 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4049 $as_echo_n "(cached) " >&6
4051 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4052 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4053 else
4054 # Is the header compilable?
4055 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4056 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4057 cat >conftest.$ac_ext <<_ACEOF
4058 /* confdefs.h. */
4059 _ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4064 #include <Carbon/Carbon.h>
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4075 ac_status=$?
4076 grep -v '^ *+' conftest.er1 >conftest.err
4077 rm -f conftest.er1
4078 cat conftest.err >&5
4079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 ac_header_compiler=yes
4085 else
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_header_compiler=no
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4094 $as_echo "$ac_header_compiler" >&6; }
4096 # Is the header present?
4097 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4098 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h. */
4101 _ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 #include <Carbon/Carbon.h>
4106 _ACEOF
4107 if { (ac_try="$ac_cpp conftest.$ac_ext"
4108 case "(($ac_try" in
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4111 esac
4112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4113 $as_echo "$ac_try_echo") >&5
4114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4115 ac_status=$?
4116 grep -v '^ *+' conftest.er1 >conftest.err
4117 rm -f conftest.er1
4118 cat conftest.err >&5
4119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } >/dev/null && {
4121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4122 test ! -s conftest.err
4123 }; then
4124 ac_header_preproc=yes
4125 else
4126 $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 ac_header_preproc=no
4132 rm -f conftest.err conftest.$ac_ext
4133 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4134 $as_echo "$ac_header_preproc" >&6; }
4136 # So? What about this header?
4137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4138 yes:no: )
4139 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4140 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4141 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4142 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4143 ac_header_preproc=yes
4145 no:yes:* )
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4150 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4151 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4152 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4153 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4154 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4155 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4156 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4157 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4160 esac
4161 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4162 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4163 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4164 $as_echo_n "(cached) " >&6
4165 else
4166 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4168 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4169 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4172 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4173 CARBON=yes
4178 SAVE_CPPFLAGS=$CPPFLAGS
4179 SAVE_CFLAGS=$CFLAGS
4180 CPPFLAGS="$CPPFLAGS -ObjC"
4181 CFLAGS="$CFLAGS -ObjC"
4182 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4183 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4184 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
4185 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4186 $as_echo_n "(cached) " >&6
4188 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4189 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4190 else
4191 # Is the header compilable?
4192 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4193 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 $ac_includes_default
4201 #include <Cocoa/Cocoa.h>
4202 _ACEOF
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4205 case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208 esac
4209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4210 $as_echo "$ac_try_echo") >&5
4211 (eval "$ac_compile") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest.$ac_objext; then
4221 ac_header_compiler=yes
4222 else
4223 $as_echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 ac_header_compiler=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4231 $as_echo "$ac_header_compiler" >&6; }
4233 # Is the header present?
4234 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4235 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <Cocoa/Cocoa.h>
4243 _ACEOF
4244 if { (ac_try="$ac_cpp conftest.$ac_ext"
4245 case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248 esac
4249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4250 $as_echo "$ac_try_echo") >&5
4251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4252 ac_status=$?
4253 grep -v '^ *+' conftest.er1 >conftest.err
4254 rm -f conftest.er1
4255 cat conftest.err >&5
4256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } >/dev/null && {
4258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4259 test ! -s conftest.err
4260 }; then
4261 ac_header_preproc=yes
4262 else
4263 $as_echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 ac_header_preproc=no
4269 rm -f conftest.err conftest.$ac_ext
4270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4271 $as_echo "$ac_header_preproc" >&6; }
4273 # So? What about this header?
4274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4275 yes:no: )
4276 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4277 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4278 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4279 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4280 ac_header_preproc=yes
4282 no:yes:* )
4283 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4284 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4285 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4286 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4287 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4288 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4289 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4290 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4291 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4292 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4293 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4294 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4297 esac
4298 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4299 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
4300 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4301 $as_echo_n "(cached) " >&6
4302 else
4303 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
4305 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4306 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4309 if test "x$ac_cv_header_Cocoa_Cocoa_h" = x""yes; then
4310 COCOA=yes
4314 CPPFLAGS=$SAVE_CPPFLAGS
4315 CFLAGS=$SAVE_CFLAGS
4317 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4318 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
4319 with_x=no
4324 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4325 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4328 else
4329 { $as_echo "$as_me:$LINENO: result: no" >&5
4330 $as_echo "no" >&6; }
4336 if test "$cross_compiling" = no; then
4337 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4338 $as_echo_n "checking --with-local-dir argument... " >&6; }
4339 have_local_include=''
4340 have_local_lib=''
4342 # Check whether --with-local-dir was given.
4343 if test "${with_local_dir+set}" = set; then
4344 withval=$with_local_dir;
4345 local_dir="$withval"
4346 case "$withval" in
4347 */*) ;;
4349 # avoid adding local dir to LDFLAGS and CPPFLAGS
4350 have_local_dir=yes
4351 have_local_lib=yes
4353 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4354 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4355 { (exit 1); exit 1; }; } ;;
4356 esac
4357 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4358 $as_echo "$local_dir" >&6; }
4360 else
4362 local_dir=/usr/local
4363 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4364 $as_echo "Defaulting to $local_dir" >&6; }
4368 if test "$GCC" = yes -a "$local_dir" != no; then
4369 echo 'void f(){}' > conftest.c
4370 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4371 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4372 rm -f conftest.c conftest.o
4374 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4375 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4376 if test "$tt" = "$LDFLAGS"; then
4377 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4380 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4381 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4382 if test "$tt" = "$CPPFLAGS"; then
4383 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4388 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4389 $as_echo_n "checking --with-vim-name argument... " >&6; }
4391 # Check whether --with-vim-name was given.
4392 if test "${with_vim_name+set}" = set; then
4393 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4394 $as_echo "$VIMNAME" >&6; }
4395 else
4396 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4397 $as_echo "Defaulting to $VIMNAME" >&6; }
4401 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4402 $as_echo_n "checking --with-ex-name argument... " >&6; }
4404 # Check whether --with-ex-name was given.
4405 if test "${with_ex_name+set}" = set; then
4406 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4407 $as_echo "$EXNAME" >&6; }
4408 else
4409 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4410 $as_echo "Defaulting to ex" >&6; }
4414 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4415 $as_echo_n "checking --with-view-name argument... " >&6; }
4417 # Check whether --with-view-name was given.
4418 if test "${with_view_name+set}" = set; then
4419 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4420 $as_echo "$VIEWNAME" >&6; }
4421 else
4422 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4423 $as_echo "Defaulting to view" >&6; }
4428 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4429 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4431 # Check whether --with-global-runtime was given.
4432 if test "${with_global_runtime+set}" = set; then
4433 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4434 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4435 #define RUNTIME_GLOBAL "$withval"
4436 _ACEOF
4438 else
4439 { $as_echo "$as_me:$LINENO: result: no" >&5
4440 $as_echo "no" >&6; }
4444 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4445 $as_echo_n "checking --with-modified-by argument... " >&6; }
4447 # Check whether --with-modified-by was given.
4448 if test "${with_modified_by+set}" = set; then
4449 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4450 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4451 #define MODIFIED_BY "$withval"
4452 _ACEOF
4454 else
4455 { $as_echo "$as_me:$LINENO: result: no" >&5
4456 $as_echo "no" >&6; }
4460 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4461 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4470 main ()
4472 /* TryCompile function for CharSet.
4473 Treat any failure as ASCII for compatibility with existing art.
4474 Use compile-time rather than run-time tests for cross-compiler
4475 tolerance. */
4476 #if '0'!=240
4477 make an error "Character set is not EBCDIC"
4478 #endif
4480 return 0;
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4485 case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491 (eval "$ac_compile") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest.$ac_objext; then
4501 # TryCompile action if true
4502 cf_cv_ebcdic=yes
4503 else
4504 $as_echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 # TryCompile action if false
4508 cf_cv_ebcdic=no
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 # end of TryCompile ])
4513 # end of CacheVal CvEbcdic
4514 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4515 $as_echo "$cf_cv_ebcdic" >&6; }
4516 case "$cf_cv_ebcdic" in #(vi
4517 yes) cat >>confdefs.h <<\_ACEOF
4518 #define EBCDIC 1
4519 _ACEOF
4521 line_break='"\\n"'
4523 *) line_break='"\\012"';;
4524 esac
4527 if test "$cf_cv_ebcdic" = "yes"; then
4528 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4529 $as_echo_n "checking for OS/390 Unix... " >&6; }
4530 case `uname` in
4531 OS/390) OS390Unix="yes";
4532 if test "$CC" = "cc"; then
4533 ccm="$_CC_CCMODE"
4534 ccn="CC"
4535 else
4536 if test "$CC" = "c89"; then
4537 ccm="$_CC_C89MODE"
4538 ccn="C89"
4539 else
4540 ccm=1
4543 if test "$ccm" != "1"; then
4544 echo ""
4545 echo "------------------------------------------"
4546 echo " On OS/390 Unix, the environment variable"
4547 echo " __CC_${ccn}MODE must be set to \"1\"!"
4548 echo " Do:"
4549 echo " export _CC_${ccn}MODE=1"
4550 echo " and then call configure again."
4551 echo "------------------------------------------"
4552 exit 1
4554 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4555 { $as_echo "$as_me:$LINENO: result: yes" >&5
4556 $as_echo "yes" >&6; }
4558 *) OS390Unix="no";
4559 { $as_echo "$as_me:$LINENO: result: no" >&5
4560 $as_echo "no" >&6; }
4562 esac
4565 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4566 $as_echo_n "checking --disable-selinux argument... " >&6; }
4567 # Check whether --enable-selinux was given.
4568 if test "${enable_selinux+set}" = set; then
4569 enableval=$enable_selinux;
4570 else
4571 enable_selinux="yes"
4574 if test "$enable_selinux" = "yes"; then
4575 { $as_echo "$as_me:$LINENO: result: no" >&5
4576 $as_echo "no" >&6; }
4577 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4578 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4579 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4580 $as_echo_n "(cached) " >&6
4581 else
4582 ac_check_lib_save_LIBS=$LIBS
4583 LIBS="-lselinux $LIBS"
4584 cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h. */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h. */
4591 /* Override any GCC internal prototype to avoid an error.
4592 Use char because int might match the return type of a GCC
4593 builtin and then its argument prototype would still apply. */
4594 #ifdef __cplusplus
4595 extern "C"
4596 #endif
4597 char is_selinux_enabled ();
4599 main ()
4601 return is_selinux_enabled ();
4603 return 0;
4605 _ACEOF
4606 rm -f conftest.$ac_objext conftest$ac_exeext
4607 if { (ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613 $as_echo "$ac_try_echo") >&5
4614 (eval "$ac_link") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest$ac_exeext && {
4624 test "$cross_compiling" = yes ||
4625 $as_test_x conftest$ac_exeext
4626 }; then
4627 ac_cv_lib_selinux_is_selinux_enabled=yes
4628 else
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 ac_cv_lib_selinux_is_selinux_enabled=no
4635 rm -rf conftest.dSYM
4636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4637 conftest$ac_exeext conftest.$ac_ext
4638 LIBS=$ac_check_lib_save_LIBS
4640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4641 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4642 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4643 LIBS="$LIBS -lselinux"
4644 cat >>confdefs.h <<\_ACEOF
4645 #define HAVE_SELINUX 1
4646 _ACEOF
4650 else
4651 { $as_echo "$as_me:$LINENO: result: yes" >&5
4652 $as_echo "yes" >&6; }
4656 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4657 $as_echo_n "checking --with-features argument... " >&6; }
4659 # Check whether --with-features was given.
4660 if test "${with_features+set}" = set; then
4661 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4662 $as_echo "$features" >&6; }
4663 else
4664 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4665 $as_echo "Defaulting to normal" >&6; }
4669 dovimdiff=""
4670 dogvimdiff=""
4671 case "$features" in
4672 tiny) cat >>confdefs.h <<\_ACEOF
4673 #define FEAT_TINY 1
4674 _ACEOF
4676 small) cat >>confdefs.h <<\_ACEOF
4677 #define FEAT_SMALL 1
4678 _ACEOF
4680 normal) cat >>confdefs.h <<\_ACEOF
4681 #define FEAT_NORMAL 1
4682 _ACEOF
4683 dovimdiff="installvimdiff";
4684 dogvimdiff="installgvimdiff" ;;
4685 big) cat >>confdefs.h <<\_ACEOF
4686 #define FEAT_BIG 1
4687 _ACEOF
4688 dovimdiff="installvimdiff";
4689 dogvimdiff="installgvimdiff" ;;
4690 huge) cat >>confdefs.h <<\_ACEOF
4691 #define FEAT_HUGE 1
4692 _ACEOF
4693 dovimdiff="installvimdiff";
4694 dogvimdiff="installgvimdiff" ;;
4695 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4696 $as_echo "Sorry, $features is not supported" >&6; } ;;
4697 esac
4702 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4703 $as_echo_n "checking --with-compiledby argument... " >&6; }
4705 # Check whether --with-compiledby was given.
4706 if test "${with_compiledby+set}" = set; then
4707 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4708 $as_echo "$withval" >&6; }
4709 else
4710 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4711 $as_echo "no" >&6; }
4716 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4717 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4718 # Check whether --enable-xsmp was given.
4719 if test "${enable_xsmp+set}" = set; then
4720 enableval=$enable_xsmp;
4721 else
4722 enable_xsmp="yes"
4726 if test "$enable_xsmp" = "yes"; then
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4729 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4730 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4731 # Check whether --enable-xsmp-interact was given.
4732 if test "${enable_xsmp_interact+set}" = set; then
4733 enableval=$enable_xsmp_interact;
4734 else
4735 enable_xsmp_interact="yes"
4738 if test "$enable_xsmp_interact" = "yes"; then
4739 { $as_echo "$as_me:$LINENO: result: no" >&5
4740 $as_echo "no" >&6; }
4741 cat >>confdefs.h <<\_ACEOF
4742 #define USE_XSMP_INTERACT 1
4743 _ACEOF
4745 else
4746 { $as_echo "$as_me:$LINENO: result: yes" >&5
4747 $as_echo "yes" >&6; }
4749 else
4750 { $as_echo "$as_me:$LINENO: result: yes" >&5
4751 $as_echo "yes" >&6; }
4754 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4755 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4756 # Check whether --enable-mzschemeinterp was given.
4757 if test "${enable_mzschemeinterp+set}" = set; then
4758 enableval=$enable_mzschemeinterp;
4759 else
4760 enable_mzschemeinterp="no"
4763 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4764 $as_echo "$enable_mzschemeinterp" >&6; }
4766 if test "$enable_mzschemeinterp" = "yes"; then
4769 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4770 $as_echo_n "checking --with-plthome argument... " >&6; }
4772 # Check whether --with-plthome was given.
4773 if test "${with_plthome+set}" = set; then
4774 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4775 $as_echo "$with_plthome" >&6; }
4776 else
4777 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4778 $as_echo "\"no\"" >&6; }
4782 if test "X$with_plthome" != "X"; then
4783 vi_cv_path_mzscheme_pfx="$with_plthome"
4784 else
4785 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4786 $as_echo_n "checking PLTHOME environment var... " >&6; }
4787 if test "X$PLTHOME" != "X"; then
4788 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4789 $as_echo "\"$PLTHOME\"" >&6; }
4790 vi_cv_path_mzscheme_pfx="$PLTHOME"
4791 else
4792 { $as_echo "$as_me:$LINENO: result: not set" >&5
4793 $as_echo "not set" >&6; }
4794 # Extract the first word of "mzscheme", so it can be a program name with args.
4795 set dummy mzscheme; ac_word=$2
4796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4799 $as_echo_n "(cached) " >&6
4800 else
4801 case $vi_cv_path_mzscheme in
4802 [\\/]* | ?:[\\/]*)
4803 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4814 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4817 done
4818 done
4819 IFS=$as_save_IFS
4822 esac
4824 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4825 if test -n "$vi_cv_path_mzscheme"; then
4826 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4827 $as_echo "$vi_cv_path_mzscheme" >&6; }
4828 else
4829 { $as_echo "$as_me:$LINENO: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test "X$vi_cv_path_mzscheme" != "X"; then
4836 lsout=`ls -l $vi_cv_path_mzscheme`
4837 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4838 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4842 if test "X$vi_cv_path_mzscheme" != "X"; then
4843 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4844 $as_echo_n "checking MzScheme install prefix... " >&6; }
4845 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4846 $as_echo_n "(cached) " >&6
4847 else
4848 echo "(display (simplify-path \
4849 (build-path (call-with-values \
4850 (lambda () (split-path (find-system-path (quote exec-file)))) \
4851 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4852 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4853 sed -e 's+/$++'`
4855 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4856 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4857 rm -f mzdirs.scm
4862 SCHEME_INC=
4863 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4864 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4865 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4866 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4867 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4868 { $as_echo "$as_me:$LINENO: result: yes" >&5
4869 $as_echo "yes" >&6; }
4870 else
4871 { $as_echo "$as_me:$LINENO: result: no" >&5
4872 $as_echo "no" >&6; }
4873 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4874 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4875 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4876 { $as_echo "$as_me:$LINENO: result: yes" >&5
4877 $as_echo "yes" >&6; }
4878 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4879 else
4880 { $as_echo "$as_me:$LINENO: result: no" >&5
4881 $as_echo "no" >&6; }
4882 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4883 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4884 if test -f /usr/include/plt/scheme.h; then
4885 { $as_echo "$as_me:$LINENO: result: yes" >&5
4886 $as_echo "yes" >&6; }
4887 SCHEME_INC=/usr/include/plt
4888 else
4889 { $as_echo "$as_me:$LINENO: result: no" >&5
4890 $as_echo "no" >&6; }
4891 vi_cv_path_mzscheme_pfx=
4897 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4898 if test "x$MACOSX" = "xyes"; then
4899 MZSCHEME_LIBS="-framework PLT_MzScheme"
4900 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4901 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4902 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4903 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4904 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4905 else
4906 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4907 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4908 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4909 else
4910 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4912 if test "$GCC" = yes; then
4913 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4914 elif test "`(uname) 2>/dev/null`" = SunOS &&
4915 uname -r | grep '^5' >/dev/null; then
4916 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4919 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4920 SCHEME_COLLECTS=lib/plt/
4922 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4923 MZSCHEME_EXTRA="mzscheme_base.c"
4924 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4925 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4927 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4928 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4929 MZSCHEME_SRC="if_mzsch.c"
4930 MZSCHEME_OBJ="objects/if_mzsch.o"
4931 MZSCHEME_PRO="if_mzsch.pro"
4932 cat >>confdefs.h <<\_ACEOF
4933 #define FEAT_MZSCHEME 1
4934 _ACEOF
4947 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4948 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4949 # Check whether --enable-perlinterp was given.
4950 if test "${enable_perlinterp+set}" = set; then
4951 enableval=$enable_perlinterp;
4952 else
4953 enable_perlinterp="no"
4956 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4957 $as_echo "$enable_perlinterp" >&6; }
4958 if test "$enable_perlinterp" = "yes"; then
4960 # Extract the first word of "perl", so it can be a program name with args.
4961 set dummy perl; ac_word=$2
4962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4965 $as_echo_n "(cached) " >&6
4966 else
4967 case $vi_cv_path_perl in
4968 [\\/]* | ?:[\\/]*)
4969 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4981 break 2
4983 done
4984 done
4985 IFS=$as_save_IFS
4988 esac
4990 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4991 if test -n "$vi_cv_path_perl"; then
4992 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4993 $as_echo "$vi_cv_path_perl" >&6; }
4994 else
4995 { $as_echo "$as_me:$LINENO: result: no" >&5
4996 $as_echo "no" >&6; }
5000 if test "X$vi_cv_path_perl" != "X"; then
5001 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
5002 $as_echo_n "checking Perl version... " >&6; }
5003 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
5004 eval `$vi_cv_path_perl -V:usethreads`
5005 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
5006 badthreads=no
5007 else
5008 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
5009 eval `$vi_cv_path_perl -V:use5005threads`
5010 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
5011 badthreads=no
5012 else
5013 badthreads=yes
5014 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
5015 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
5017 else
5018 badthreads=yes
5019 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
5020 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
5023 if test $badthreads = no; then
5024 { $as_echo "$as_me:$LINENO: result: OK" >&5
5025 $as_echo "OK" >&6; }
5026 eval `$vi_cv_path_perl -V:shrpenv`
5027 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
5028 shrpenv=""
5030 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
5032 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
5033 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
5034 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
5035 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
5036 -e 's/-bE:perl.exp//' -e 's/-lc //'`
5037 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
5038 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
5040 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
5041 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
5042 cflags_save=$CFLAGS
5043 libs_save=$LIBS
5044 ldflags_save=$LDFLAGS
5045 CFLAGS="$CFLAGS $perlcppflags"
5046 LIBS="$LIBS $perllibs"
5047 LDFLAGS="$perlldflags $LDFLAGS"
5048 cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h. */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5056 main ()
5060 return 0;
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (ac_try="$ac_link"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_link") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest$ac_exeext && {
5081 test "$cross_compiling" = yes ||
5082 $as_test_x conftest$ac_exeext
5083 }; then
5084 { $as_echo "$as_me:$LINENO: result: yes" >&5
5085 $as_echo "yes" >&6; }; perl_ok=yes
5086 else
5087 $as_echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5090 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5091 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5094 rm -rf conftest.dSYM
5095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5096 conftest$ac_exeext conftest.$ac_ext
5097 CFLAGS=$cflags_save
5098 LIBS=$libs_save
5099 LDFLAGS=$ldflags_save
5100 if test $perl_ok = yes; then
5101 if test "X$perlcppflags" != "X"; then
5102 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5104 if test "X$perlldflags" != "X"; then
5105 LDFLAGS="$perlldflags $LDFLAGS"
5107 PERL_LIBS=$perllibs
5108 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5109 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5110 PERL_PRO="if_perl.pro if_perlsfio.pro"
5111 cat >>confdefs.h <<\_ACEOF
5112 #define FEAT_PERL 1
5113 _ACEOF
5117 else
5118 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5119 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5123 if test "x$MACOSX" = "xyes"; then
5124 dir=/System/Library/Perl
5125 darwindir=$dir/darwin
5126 if test -d $darwindir; then
5127 PERL=/usr/bin/perl
5128 else
5129 dir=/System/Library/Perl/5.8.1
5130 darwindir=$dir/darwin-thread-multi-2level
5131 if test -d $darwindir; then
5132 PERL=/usr/bin/perl
5135 if test -n "$PERL"; then
5136 PERL_DIR="$dir"
5137 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5138 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5139 PERL_LIBS="-L$darwindir/CORE -lperl"
5150 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5151 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5152 # Check whether --enable-pythoninterp was given.
5153 if test "${enable_pythoninterp+set}" = set; then
5154 enableval=$enable_pythoninterp;
5155 else
5156 enable_pythoninterp="no"
5159 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5160 $as_echo "$enable_pythoninterp" >&6; }
5161 if test "$enable_pythoninterp" = "yes"; then
5162 # Extract the first word of "python", so it can be a program name with args.
5163 set dummy python; ac_word=$2
5164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5167 $as_echo_n "(cached) " >&6
5168 else
5169 case $vi_cv_path_python in
5170 [\\/]* | ?:[\\/]*)
5171 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5190 esac
5192 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5193 if test -n "$vi_cv_path_python"; then
5194 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5195 $as_echo "$vi_cv_path_python" >&6; }
5196 else
5197 { $as_echo "$as_me:$LINENO: result: no" >&5
5198 $as_echo "no" >&6; }
5202 if test "X$vi_cv_path_python" != "X"; then
5204 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5205 $as_echo_n "checking Python version... " >&6; }
5206 if test "${vi_cv_var_python_version+set}" = set; then
5207 $as_echo_n "(cached) " >&6
5208 else
5209 vi_cv_var_python_version=`
5210 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5213 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5214 $as_echo "$vi_cv_var_python_version" >&6; }
5216 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5217 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5218 if ${vi_cv_path_python} -c \
5219 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5220 then
5221 { $as_echo "$as_me:$LINENO: result: yep" >&5
5222 $as_echo "yep" >&6; }
5224 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5225 $as_echo_n "checking Python's install prefix... " >&6; }
5226 if test "${vi_cv_path_python_pfx+set}" = set; then
5227 $as_echo_n "(cached) " >&6
5228 else
5229 vi_cv_path_python_pfx=`
5230 ${vi_cv_path_python} -c \
5231 "import sys; print sys.prefix"`
5233 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5234 $as_echo "$vi_cv_path_python_pfx" >&6; }
5236 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5237 $as_echo_n "checking Python's execution prefix... " >&6; }
5238 if test "${vi_cv_path_python_epfx+set}" = set; then
5239 $as_echo_n "(cached) " >&6
5240 else
5241 vi_cv_path_python_epfx=`
5242 ${vi_cv_path_python} -c \
5243 "import sys; print sys.exec_prefix"`
5245 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5246 $as_echo "$vi_cv_path_python_epfx" >&6; }
5249 if test "${vi_cv_path_pythonpath+set}" = set; then
5250 $as_echo_n "(cached) " >&6
5251 else
5252 vi_cv_path_pythonpath=`
5253 unset PYTHONPATH;
5254 ${vi_cv_path_python} -c \
5255 "import sys, string; print string.join(sys.path,':')"`
5261 # Check whether --with-python-config-dir was given.
5262 if test "${with_python_config_dir+set}" = set; then
5263 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5267 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5268 $as_echo_n "checking Python's configuration directory... " >&6; }
5269 if test "${vi_cv_path_python_conf+set}" = set; then
5270 $as_echo_n "(cached) " >&6
5271 else
5273 vi_cv_path_python_conf=
5274 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5275 for subdir in lib share; do
5276 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5277 if test -d "$d" && test -f "$d/config.c"; then
5278 vi_cv_path_python_conf="$d"
5280 done
5281 done
5284 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5285 $as_echo "$vi_cv_path_python_conf" >&6; }
5287 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5289 if test "X$PYTHON_CONFDIR" = "X"; then
5290 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5291 $as_echo "can't find it!" >&6; }
5292 else
5294 if test "${vi_cv_path_python_plibs+set}" = set; then
5295 $as_echo_n "(cached) " >&6
5296 else
5298 pwd=`pwd`
5299 tmp_mkf="$pwd/config-PyMake$$"
5300 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5302 @echo "python_MODLIBS='$(MODLIBS)'"
5303 @echo "python_LIBS='$(LIBS)'"
5304 @echo "python_SYSLIBS='$(SYSLIBS)'"
5305 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5307 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5308 rm -f -- "${tmp_mkf}"
5309 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5310 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5311 vi_cv_path_python_plibs="-framework Python"
5312 else
5313 if test "${vi_cv_var_python_version}" = "1.4"; then
5314 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5315 else
5316 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5318 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5319 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5325 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5326 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5327 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5328 else
5329 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}"
5331 PYTHON_SRC="if_python.c"
5332 if test "x$MACOSX" = "xyes"; then
5333 PYTHON_OBJ="objects/if_python.o"
5334 else
5335 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5337 if test "${vi_cv_var_python_version}" = "1.4"; then
5338 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5340 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5342 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5343 $as_echo_n "checking if -pthread should be used... " >&6; }
5344 threadsafe_flag=
5345 thread_lib=
5346 if test "`(uname) 2>/dev/null`" != Darwin; then
5347 test "$GCC" = yes && threadsafe_flag="-pthread"
5348 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5349 threadsafe_flag="-D_THREAD_SAFE"
5350 thread_lib="-pthread"
5353 libs_save_old=$LIBS
5354 if test -n "$threadsafe_flag"; then
5355 cflags_save=$CFLAGS
5356 CFLAGS="$CFLAGS $threadsafe_flag"
5357 LIBS="$LIBS $thread_lib"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5366 main ()
5370 return 0;
5372 _ACEOF
5373 rm -f conftest.$ac_objext conftest$ac_exeext
5374 if { (ac_try="$ac_link"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5380 $as_echo "$ac_try_echo") >&5
5381 (eval "$ac_link") 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest$ac_exeext && {
5391 test "$cross_compiling" = yes ||
5392 $as_test_x conftest$ac_exeext
5393 }; then
5394 { $as_echo "$as_me:$LINENO: result: yes" >&5
5395 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5396 else
5397 $as_echo "$as_me: failed program was:" >&5
5398 sed 's/^/| /' conftest.$ac_ext >&5
5400 { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }; LIBS=$libs_save_old
5405 rm -rf conftest.dSYM
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5408 CFLAGS=$cflags_save
5409 else
5410 { $as_echo "$as_me:$LINENO: result: no" >&5
5411 $as_echo "no" >&6; }
5414 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5415 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5416 cflags_save=$CFLAGS
5417 libs_save=$LIBS
5418 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5419 LIBS="$LIBS $PYTHON_LIBS"
5420 cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h. */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5428 main ()
5432 return 0;
5434 _ACEOF
5435 rm -f conftest.$ac_objext conftest$ac_exeext
5436 if { (ac_try="$ac_link"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5442 $as_echo "$ac_try_echo") >&5
5443 (eval "$ac_link") 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } && {
5450 test -z "$ac_c_werror_flag" ||
5451 test ! -s conftest.err
5452 } && test -s conftest$ac_exeext && {
5453 test "$cross_compiling" = yes ||
5454 $as_test_x conftest$ac_exeext
5455 }; then
5456 { $as_echo "$as_me:$LINENO: result: yes" >&5
5457 $as_echo "yes" >&6; }; python_ok=yes
5458 else
5459 $as_echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5463 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5466 rm -rf conftest.dSYM
5467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5468 conftest$ac_exeext conftest.$ac_ext
5469 CFLAGS=$cflags_save
5470 LIBS=$libs_save
5471 if test $python_ok = yes; then
5472 cat >>confdefs.h <<\_ACEOF
5473 #define FEAT_PYTHON 1
5474 _ACEOF
5476 else
5477 LIBS=$libs_save_old
5478 PYTHON_SRC=
5479 PYTHON_OBJ=
5480 PYTHON_LIBS=
5481 PYTHON_CFLAGS=
5485 else
5486 { $as_echo "$as_me:$LINENO: result: too old" >&5
5487 $as_echo "too old" >&6; }
5498 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5499 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5500 # Check whether --enable-tclinterp was given.
5501 if test "${enable_tclinterp+set}" = set; then
5502 enableval=$enable_tclinterp;
5503 else
5504 enable_tclinterp="no"
5507 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5508 $as_echo "$enable_tclinterp" >&6; }
5510 if test "$enable_tclinterp" = "yes"; then
5512 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5513 $as_echo_n "checking --with-tclsh argument... " >&6; }
5515 # Check whether --with-tclsh was given.
5516 if test "${with_tclsh+set}" = set; then
5517 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5518 $as_echo "$tclsh_name" >&6; }
5519 else
5520 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5521 $as_echo "no" >&6; }
5524 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5525 set dummy $tclsh_name; ac_word=$2
5526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5529 $as_echo_n "(cached) " >&6
5530 else
5531 case $vi_cv_path_tcl in
5532 [\\/]* | ?:[\\/]*)
5533 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5552 esac
5554 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5555 if test -n "$vi_cv_path_tcl"; then
5556 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5557 $as_echo "$vi_cv_path_tcl" >&6; }
5558 else
5559 { $as_echo "$as_me:$LINENO: result: no" >&5
5560 $as_echo "no" >&6; }
5566 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5567 tclsh_name="tclsh8.4"
5568 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5569 set dummy $tclsh_name; ac_word=$2
5570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5573 $as_echo_n "(cached) " >&6
5574 else
5575 case $vi_cv_path_tcl in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5593 IFS=$as_save_IFS
5596 esac
5598 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5599 if test -n "$vi_cv_path_tcl"; then
5600 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5601 $as_echo "$vi_cv_path_tcl" >&6; }
5602 else
5603 { $as_echo "$as_me:$LINENO: result: no" >&5
5604 $as_echo "no" >&6; }
5609 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5610 tclsh_name="tclsh8.2"
5611 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5612 set dummy $tclsh_name; ac_word=$2
5613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5616 $as_echo_n "(cached) " >&6
5617 else
5618 case $vi_cv_path_tcl in
5619 [\\/]* | ?:[\\/]*)
5620 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5634 done
5635 done
5636 IFS=$as_save_IFS
5639 esac
5641 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5642 if test -n "$vi_cv_path_tcl"; then
5643 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5644 $as_echo "$vi_cv_path_tcl" >&6; }
5645 else
5646 { $as_echo "$as_me:$LINENO: result: no" >&5
5647 $as_echo "no" >&6; }
5652 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5653 tclsh_name="tclsh8.0"
5654 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5655 set dummy $tclsh_name; ac_word=$2
5656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5659 $as_echo_n "(cached) " >&6
5660 else
5661 case $vi_cv_path_tcl in
5662 [\\/]* | ?:[\\/]*)
5663 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5682 esac
5684 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5685 if test -n "$vi_cv_path_tcl"; then
5686 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5687 $as_echo "$vi_cv_path_tcl" >&6; }
5688 else
5689 { $as_echo "$as_me:$LINENO: result: no" >&5
5690 $as_echo "no" >&6; }
5695 if test "X$vi_cv_path_tcl" = "X"; then
5696 tclsh_name="tclsh"
5697 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5698 set dummy $tclsh_name; ac_word=$2
5699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5702 $as_echo_n "(cached) " >&6
5703 else
5704 case $vi_cv_path_tcl in
5705 [\\/]* | ?:[\\/]*)
5706 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718 break 2
5720 done
5721 done
5722 IFS=$as_save_IFS
5725 esac
5727 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5728 if test -n "$vi_cv_path_tcl"; then
5729 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5730 $as_echo "$vi_cv_path_tcl" >&6; }
5731 else
5732 { $as_echo "$as_me:$LINENO: result: no" >&5
5733 $as_echo "no" >&6; }
5738 if test "X$vi_cv_path_tcl" != "X"; then
5739 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5740 $as_echo_n "checking Tcl version... " >&6; }
5741 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5742 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5743 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5744 $as_echo "$tclver - OK" >&6; };
5745 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 -`
5747 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5748 $as_echo_n "checking for location of Tcl include... " >&6; }
5749 if test "x$MACOSX" != "xyes"; then
5750 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5751 else
5752 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5754 TCL_INC=
5755 for try in $tclinc; do
5756 if test -f "$try/tcl.h"; then
5757 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5758 $as_echo "$try/tcl.h" >&6; }
5759 TCL_INC=$try
5760 break
5762 done
5763 if test -z "$TCL_INC"; then
5764 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5765 $as_echo "<not found>" >&6; }
5766 SKIP_TCL=YES
5768 if test -z "$SKIP_TCL"; then
5769 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5770 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5771 if test "x$MACOSX" != "xyes"; then
5772 tclcnf=`echo $tclinc | sed s/include/lib/g`
5773 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5774 else
5775 tclcnf="/System/Library/Frameworks/Tcl.framework"
5777 for try in $tclcnf; do
5778 if test -f $try/tclConfig.sh; then
5779 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5780 $as_echo "$try/tclConfig.sh" >&6; }
5781 . $try/tclConfig.sh
5782 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5783 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'`
5784 break
5786 done
5787 if test -z "$TCL_LIBS"; then
5788 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5789 $as_echo "<not found>" >&6; }
5790 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5791 $as_echo_n "checking for Tcl library by myself... " >&6; }
5792 tcllib=`echo $tclinc | sed s/include/lib/g`
5793 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5794 for ext in .so .a ; do
5795 for ver in "" $tclver ; do
5796 for try in $tcllib ; do
5797 trylib=tcl$ver$ext
5798 if test -f $try/lib$trylib ; then
5799 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5800 $as_echo "$try/lib$trylib" >&6; }
5801 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5802 if test "`(uname) 2>/dev/null`" = SunOS &&
5803 uname -r | grep '^5' >/dev/null; then
5804 TCL_LIBS="$TCL_LIBS -R $try"
5806 break 3
5808 done
5809 done
5810 done
5811 if test -z "$TCL_LIBS"; then
5812 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5813 $as_echo "<not found>" >&6; }
5814 SKIP_TCL=YES
5817 if test -z "$SKIP_TCL"; then
5818 cat >>confdefs.h <<\_ACEOF
5819 #define FEAT_TCL 1
5820 _ACEOF
5822 TCL_SRC=if_tcl.c
5823 TCL_OBJ=objects/if_tcl.o
5824 TCL_PRO=if_tcl.pro
5825 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5828 else
5829 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5830 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5840 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5841 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5842 # Check whether --enable-rubyinterp was given.
5843 if test "${enable_rubyinterp+set}" = set; then
5844 enableval=$enable_rubyinterp;
5845 else
5846 enable_rubyinterp="no"
5849 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5850 $as_echo "$enable_rubyinterp" >&6; }
5851 if test "$enable_rubyinterp" = "yes"; then
5853 # Extract the first word of "ruby", so it can be a program name with args.
5854 set dummy ruby; ac_word=$2
5855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5858 $as_echo_n "(cached) " >&6
5859 else
5860 case $vi_cv_path_ruby in
5861 [\\/]* | ?:[\\/]*)
5862 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5881 esac
5883 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5884 if test -n "$vi_cv_path_ruby"; then
5885 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5886 $as_echo "$vi_cv_path_ruby" >&6; }
5887 else
5888 { $as_echo "$as_me:$LINENO: result: no" >&5
5889 $as_echo "no" >&6; }
5893 if test "X$vi_cv_path_ruby" != "X"; then
5894 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5895 $as_echo_n "checking Ruby version... " >&6; }
5896 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5897 { $as_echo "$as_me:$LINENO: result: OK" >&5
5898 $as_echo "OK" >&6; }
5899 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5900 $as_echo_n "checking Ruby header files... " >&6; }
5901 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5902 if test "X$rubyhdrdir" != "X"; then
5903 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5904 $as_echo "$rubyhdrdir" >&6; }
5905 RUBY_CFLAGS="-I$rubyhdrdir"
5906 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5907 if test "X$rubylibs" != "X"; then
5908 RUBY_LIBS="$rubylibs"
5910 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5911 if test -f "$rubyhdrdir/$librubyarg"; then
5912 librubyarg="$rubyhdrdir/$librubyarg"
5913 else
5914 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5915 if test -f "$rubylibdir/$librubyarg"; then
5916 librubyarg="$rubylibdir/$librubyarg"
5917 elif test "$librubyarg" = "libruby.a"; then
5918 librubyarg="-lruby"
5919 else
5920 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5924 if test "X$librubyarg" != "X"; then
5925 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5927 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5928 if test "X$rubyldflags" != "X"; then
5929 LDFLAGS="$rubyldflags $LDFLAGS"
5931 RUBY_SRC="if_ruby.c"
5932 RUBY_OBJ="objects/if_ruby.o"
5933 RUBY_PRO="if_ruby.pro"
5934 cat >>confdefs.h <<\_ACEOF
5935 #define FEAT_RUBY 1
5936 _ACEOF
5938 else
5939 { $as_echo "$as_me:$LINENO: result: not found" >&5
5940 $as_echo "not found" >&6; }
5942 else
5943 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5944 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5954 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5955 $as_echo_n "checking --enable-cscope argument... " >&6; }
5956 # Check whether --enable-cscope was given.
5957 if test "${enable_cscope+set}" = set; then
5958 enableval=$enable_cscope;
5959 else
5960 enable_cscope="no"
5963 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5964 $as_echo "$enable_cscope" >&6; }
5965 if test "$enable_cscope" = "yes"; then
5966 cat >>confdefs.h <<\_ACEOF
5967 #define FEAT_CSCOPE 1
5968 _ACEOF
5972 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5973 $as_echo_n "checking --enable-workshop argument... " >&6; }
5974 # Check whether --enable-workshop was given.
5975 if test "${enable_workshop+set}" = set; then
5976 enableval=$enable_workshop;
5977 else
5978 enable_workshop="no"
5981 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5982 $as_echo "$enable_workshop" >&6; }
5983 if test "$enable_workshop" = "yes"; then
5984 cat >>confdefs.h <<\_ACEOF
5985 #define FEAT_SUN_WORKSHOP 1
5986 _ACEOF
5988 WORKSHOP_SRC="workshop.c integration.c"
5990 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5992 if test "${enable_gui-xxx}" = xxx; then
5993 enable_gui=motif
5997 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5998 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5999 # Check whether --enable-netbeans was given.
6000 if test "${enable_netbeans+set}" = set; then
6001 enableval=$enable_netbeans;
6002 else
6003 enable_netbeans="yes"
6006 if test "$enable_netbeans" = "yes"; then
6007 { $as_echo "$as_me:$LINENO: result: no" >&5
6008 $as_echo "no" >&6; }
6010 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
6011 $as_echo_n "checking for socket in -lsocket... " >&6; }
6012 if test "${ac_cv_lib_socket_socket+set}" = set; then
6013 $as_echo_n "(cached) " >&6
6014 else
6015 ac_check_lib_save_LIBS=$LIBS
6016 LIBS="-lsocket $LIBS"
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6024 /* Override any GCC internal prototype to avoid an error.
6025 Use char because int might match the return type of a GCC
6026 builtin and then its argument prototype would still apply. */
6027 #ifdef __cplusplus
6028 extern "C"
6029 #endif
6030 char socket ();
6032 main ()
6034 return socket ();
6036 return 0;
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (ac_try="$ac_link"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046 $as_echo "$ac_try_echo") >&5
6047 (eval "$ac_link") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest$ac_exeext && {
6057 test "$cross_compiling" = yes ||
6058 $as_test_x conftest$ac_exeext
6059 }; then
6060 ac_cv_lib_socket_socket=yes
6061 else
6062 $as_echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_lib_socket_socket=no
6068 rm -rf conftest.dSYM
6069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6070 conftest$ac_exeext conftest.$ac_ext
6071 LIBS=$ac_check_lib_save_LIBS
6073 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6074 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6075 if test "x$ac_cv_lib_socket_socket" = x""yes; then
6076 cat >>confdefs.h <<_ACEOF
6077 #define HAVE_LIBSOCKET 1
6078 _ACEOF
6080 LIBS="-lsocket $LIBS"
6085 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6086 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6087 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6088 $as_echo_n "(cached) " >&6
6089 else
6090 ac_check_lib_save_LIBS=$LIBS
6091 LIBS="-lnsl $LIBS"
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6099 /* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6102 #ifdef __cplusplus
6103 extern "C"
6104 #endif
6105 char gethostbyname ();
6107 main ()
6109 return gethostbyname ();
6111 return 0;
6113 _ACEOF
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (ac_try="$ac_link"
6116 case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119 esac
6120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6121 $as_echo "$ac_try_echo") >&5
6122 (eval "$ac_link") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest$ac_exeext && {
6132 test "$cross_compiling" = yes ||
6133 $as_test_x conftest$ac_exeext
6134 }; then
6135 ac_cv_lib_nsl_gethostbyname=yes
6136 else
6137 $as_echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 ac_cv_lib_nsl_gethostbyname=no
6143 rm -rf conftest.dSYM
6144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6145 conftest$ac_exeext conftest.$ac_ext
6146 LIBS=$ac_check_lib_save_LIBS
6148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6149 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6150 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6151 cat >>confdefs.h <<_ACEOF
6152 #define HAVE_LIBNSL 1
6153 _ACEOF
6155 LIBS="-lnsl $LIBS"
6159 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6160 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 #include <stdio.h>
6169 #include <stdlib.h>
6170 #include <stdarg.h>
6171 #include <fcntl.h>
6172 #include <netdb.h>
6173 #include <netinet/in.h>
6174 #include <errno.h>
6175 #include <sys/types.h>
6176 #include <sys/socket.h>
6177 /* Check bitfields */
6178 struct nbbuf {
6179 unsigned int initDone:1;
6180 ushort signmaplen;
6184 main ()
6187 /* Check creating a socket. */
6188 struct sockaddr_in server;
6189 (void)socket(AF_INET, SOCK_STREAM, 0);
6190 (void)htons(100);
6191 (void)gethostbyname("microsoft.com");
6192 if (errno == ECONNREFUSED)
6193 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6196 return 0;
6198 _ACEOF
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (ac_try="$ac_link"
6201 case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204 esac
6205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206 $as_echo "$ac_try_echo") >&5
6207 (eval "$ac_link") 2>conftest.er1
6208 ac_status=$?
6209 grep -v '^ *+' conftest.er1 >conftest.err
6210 rm -f conftest.er1
6211 cat conftest.err >&5
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest$ac_exeext && {
6217 test "$cross_compiling" = yes ||
6218 $as_test_x conftest$ac_exeext
6219 }; then
6220 { $as_echo "$as_me:$LINENO: result: yes" >&5
6221 $as_echo "yes" >&6; }
6222 else
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 { $as_echo "$as_me:$LINENO: result: no" >&5
6227 $as_echo "no" >&6; }; enable_netbeans="no"
6230 rm -rf conftest.dSYM
6231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6232 conftest$ac_exeext conftest.$ac_ext
6233 else
6234 { $as_echo "$as_me:$LINENO: result: yes" >&5
6235 $as_echo "yes" >&6; }
6237 if test "$enable_netbeans" = "yes"; then
6238 cat >>confdefs.h <<\_ACEOF
6239 #define FEAT_NETBEANS_INTG 1
6240 _ACEOF
6242 NETBEANS_SRC="netbeans.c"
6244 NETBEANS_OBJ="objects/netbeans.o"
6248 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6249 $as_echo_n "checking --enable-sniff argument... " >&6; }
6250 # Check whether --enable-sniff was given.
6251 if test "${enable_sniff+set}" = set; then
6252 enableval=$enable_sniff;
6253 else
6254 enable_sniff="no"
6257 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6258 $as_echo "$enable_sniff" >&6; }
6259 if test "$enable_sniff" = "yes"; then
6260 cat >>confdefs.h <<\_ACEOF
6261 #define FEAT_SNIFF 1
6262 _ACEOF
6264 SNIFF_SRC="if_sniff.c"
6266 SNIFF_OBJ="objects/if_sniff.o"
6270 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6271 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6272 # Check whether --enable-multibyte was given.
6273 if test "${enable_multibyte+set}" = set; then
6274 enableval=$enable_multibyte;
6275 else
6276 enable_multibyte="no"
6279 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6280 $as_echo "$enable_multibyte" >&6; }
6281 if test "$enable_multibyte" = "yes"; then
6282 cat >>confdefs.h <<\_ACEOF
6283 #define FEAT_MBYTE 1
6284 _ACEOF
6288 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6289 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6290 # Check whether --enable-hangulinput was given.
6291 if test "${enable_hangulinput+set}" = set; then
6292 enableval=$enable_hangulinput;
6293 else
6294 enable_hangulinput="no"
6297 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6298 $as_echo "$enable_hangulinput" >&6; }
6300 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6301 $as_echo_n "checking --enable-xim argument... " >&6; }
6302 # Check whether --enable-xim was given.
6303 if test "${enable_xim+set}" = set; then
6304 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6305 $as_echo "$enable_xim" >&6; }
6306 else
6307 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6308 $as_echo "defaulting to auto" >&6; }
6312 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6313 $as_echo_n "checking --enable-fontset argument... " >&6; }
6314 # Check whether --enable-fontset was given.
6315 if test "${enable_fontset+set}" = set; then
6316 enableval=$enable_fontset;
6317 else
6318 enable_fontset="no"
6321 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6322 $as_echo "$enable_fontset" >&6; }
6324 test -z "$with_x" && with_x=yes
6325 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6326 if test "$with_x" = no; then
6327 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6328 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6329 else
6331 # Extract the first word of "xmkmf", so it can be a program name with args.
6332 set dummy xmkmf; ac_word=$2
6333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6336 $as_echo_n "(cached) " >&6
6337 else
6338 case $xmkmfpath in
6339 [\\/]* | ?:[\\/]*)
6340 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6354 done
6355 done
6356 IFS=$as_save_IFS
6359 esac
6361 xmkmfpath=$ac_cv_path_xmkmfpath
6362 if test -n "$xmkmfpath"; then
6363 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6364 $as_echo "$xmkmfpath" >&6; }
6365 else
6366 { $as_echo "$as_me:$LINENO: result: no" >&5
6367 $as_echo "no" >&6; }
6372 { $as_echo "$as_me:$LINENO: checking for X" >&5
6373 $as_echo_n "checking for X... " >&6; }
6376 # Check whether --with-x was given.
6377 if test "${with_x+set}" = set; then
6378 withval=$with_x;
6381 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6382 if test "x$with_x" = xno; then
6383 # The user explicitly disabled X.
6384 have_x=disabled
6385 else
6386 case $x_includes,$x_libraries in #(
6387 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6388 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6389 { (exit 1); exit 1; }; };; #(
6390 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6391 $as_echo_n "(cached) " >&6
6392 else
6393 # One or both of the vars are not set, and there is no cached value.
6394 ac_x_includes=no ac_x_libraries=no
6395 rm -f -r conftest.dir
6396 if mkdir conftest.dir; then
6397 cd conftest.dir
6398 cat >Imakefile <<'_ACEOF'
6399 incroot:
6400 @echo incroot='${INCROOT}'
6401 usrlibdir:
6402 @echo usrlibdir='${USRLIBDIR}'
6403 libdir:
6404 @echo libdir='${LIBDIR}'
6405 _ACEOF
6406 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6407 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6408 for ac_var in incroot usrlibdir libdir; do
6409 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6410 done
6411 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6412 for ac_extension in a so sl dylib la dll; do
6413 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6414 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6415 ac_im_usrlibdir=$ac_im_libdir; break
6417 done
6418 # Screen out bogus values from the imake configuration. They are
6419 # bogus both because they are the default anyway, and because
6420 # using them would break gcc on systems where it needs fixed includes.
6421 case $ac_im_incroot in
6422 /usr/include) ac_x_includes= ;;
6423 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6424 esac
6425 case $ac_im_usrlibdir in
6426 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6427 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6428 esac
6430 cd ..
6431 rm -f -r conftest.dir
6434 # Standard set of common directories for X headers.
6435 # Check X11 before X11Rn because it is often a symlink to the current release.
6436 ac_x_header_dirs='
6437 /usr/X11/include
6438 /usr/X11R6/include
6439 /usr/X11R5/include
6440 /usr/X11R4/include
6442 /usr/include/X11
6443 /usr/include/X11R6
6444 /usr/include/X11R5
6445 /usr/include/X11R4
6447 /usr/local/X11/include
6448 /usr/local/X11R6/include
6449 /usr/local/X11R5/include
6450 /usr/local/X11R4/include
6452 /usr/local/include/X11
6453 /usr/local/include/X11R6
6454 /usr/local/include/X11R5
6455 /usr/local/include/X11R4
6457 /usr/X386/include
6458 /usr/x386/include
6459 /usr/XFree86/include/X11
6461 /usr/include
6462 /usr/local/include
6463 /usr/unsupported/include
6464 /usr/athena/include
6465 /usr/local/x11r5/include
6466 /usr/lpp/Xamples/include
6468 /usr/openwin/include
6469 /usr/openwin/share/include'
6471 if test "$ac_x_includes" = no; then
6472 # Guess where to find include files, by looking for Xlib.h.
6473 # First, try using that file with no special directory specified.
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <X11/Xlib.h>
6481 _ACEOF
6482 if { (ac_try="$ac_cpp conftest.$ac_ext"
6483 case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486 esac
6487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6488 $as_echo "$ac_try_echo") >&5
6489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6490 ac_status=$?
6491 grep -v '^ *+' conftest.er1 >conftest.err
6492 rm -f conftest.er1
6493 cat conftest.err >&5
6494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } >/dev/null && {
6496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6497 test ! -s conftest.err
6498 }; then
6499 # We can compile using X headers with no special include directory.
6500 ac_x_includes=
6501 else
6502 $as_echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 for ac_dir in $ac_x_header_dirs; do
6506 if test -r "$ac_dir/X11/Xlib.h"; then
6507 ac_x_includes=$ac_dir
6508 break
6510 done
6513 rm -f conftest.err conftest.$ac_ext
6514 fi # $ac_x_includes = no
6516 if test "$ac_x_libraries" = no; then
6517 # Check for the libraries.
6518 # See if we find them without any special options.
6519 # Don't add to $LIBS permanently.
6520 ac_save_LIBS=$LIBS
6521 LIBS="-lX11 $LIBS"
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <X11/Xlib.h>
6530 main ()
6532 XrmInitialize ()
6534 return 0;
6536 _ACEOF
6537 rm -f conftest.$ac_objext conftest$ac_exeext
6538 if { (ac_try="$ac_link"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_link") 2>conftest.er1
6546 ac_status=$?
6547 grep -v '^ *+' conftest.er1 >conftest.err
6548 rm -f conftest.er1
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest$ac_exeext && {
6555 test "$cross_compiling" = yes ||
6556 $as_test_x conftest$ac_exeext
6557 }; then
6558 LIBS=$ac_save_LIBS
6559 # We can link X programs with no special library path.
6560 ac_x_libraries=
6561 else
6562 $as_echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.$ac_ext >&5
6565 LIBS=$ac_save_LIBS
6566 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6568 # Don't even attempt the hair of trying to link an X program!
6569 for ac_extension in a so sl dylib la dll; do
6570 if test -r "$ac_dir/libX11.$ac_extension"; then
6571 ac_x_libraries=$ac_dir
6572 break 2
6574 done
6575 done
6578 rm -rf conftest.dSYM
6579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6580 conftest$ac_exeext conftest.$ac_ext
6581 fi # $ac_x_libraries = no
6583 case $ac_x_includes,$ac_x_libraries in #(
6584 no,* | *,no | *\'*)
6585 # Didn't find X, or a directory has "'" in its name.
6586 ac_cv_have_x="have_x=no";; #(
6588 # Record where we found X for the cache.
6589 ac_cv_have_x="have_x=yes\
6590 ac_x_includes='$ac_x_includes'\
6591 ac_x_libraries='$ac_x_libraries'"
6592 esac
6594 ;; #(
6595 *) have_x=yes;;
6596 esac
6597 eval "$ac_cv_have_x"
6598 fi # $with_x != no
6600 if test "$have_x" != yes; then
6601 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6602 $as_echo "$have_x" >&6; }
6603 no_x=yes
6604 else
6605 # If each of the values was on the command line, it overrides each guess.
6606 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6607 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6608 # Update the cache value to reflect the command line values.
6609 ac_cv_have_x="have_x=yes\
6610 ac_x_includes='$x_includes'\
6611 ac_x_libraries='$x_libraries'"
6612 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6613 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6616 if test "$no_x" = yes; then
6617 # Not all programs may use this symbol, but it does not hurt to define it.
6619 cat >>confdefs.h <<\_ACEOF
6620 #define X_DISPLAY_MISSING 1
6621 _ACEOF
6623 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6624 else
6625 if test -n "$x_includes"; then
6626 X_CFLAGS="$X_CFLAGS -I$x_includes"
6629 # It would also be nice to do this for all -L options, not just this one.
6630 if test -n "$x_libraries"; then
6631 X_LIBS="$X_LIBS -L$x_libraries"
6632 # For Solaris; some versions of Sun CC require a space after -R and
6633 # others require no space. Words are not sufficient . . . .
6634 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6635 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6636 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6637 ac_xsave_c_werror_flag=$ac_c_werror_flag
6638 ac_c_werror_flag=yes
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6647 main ()
6651 return 0;
6653 _ACEOF
6654 rm -f conftest.$ac_objext conftest$ac_exeext
6655 if { (ac_try="$ac_link"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6661 $as_echo "$ac_try_echo") >&5
6662 (eval "$ac_link") 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest$ac_exeext && {
6672 test "$cross_compiling" = yes ||
6673 $as_test_x conftest$ac_exeext
6674 }; then
6675 { $as_echo "$as_me:$LINENO: result: no" >&5
6676 $as_echo "no" >&6; }
6677 X_LIBS="$X_LIBS -R$x_libraries"
6678 else
6679 $as_echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6682 LIBS="$ac_xsave_LIBS -R $x_libraries"
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6691 main ()
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext conftest$ac_exeext
6699 if { (ac_try="$ac_link"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_link") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest$ac_exeext && {
6716 test "$cross_compiling" = yes ||
6717 $as_test_x conftest$ac_exeext
6718 }; then
6719 { $as_echo "$as_me:$LINENO: result: yes" >&5
6720 $as_echo "yes" >&6; }
6721 X_LIBS="$X_LIBS -R $x_libraries"
6722 else
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6727 $as_echo "neither works" >&6; }
6730 rm -rf conftest.dSYM
6731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6732 conftest$ac_exeext conftest.$ac_ext
6735 rm -rf conftest.dSYM
6736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6737 conftest$ac_exeext conftest.$ac_ext
6738 ac_c_werror_flag=$ac_xsave_c_werror_flag
6739 LIBS=$ac_xsave_LIBS
6742 # Check for system-dependent libraries X programs must link with.
6743 # Do this before checking for the system-independent R6 libraries
6744 # (-lICE), since we may need -lsocket or whatever for X linking.
6746 if test "$ISC" = yes; then
6747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6748 else
6749 # Martyn Johnson says this is needed for Ultrix, if the X
6750 # libraries were built with DECnet support. And Karl Berry says
6751 # the Alpha needs dnet_stub (dnet does not exist).
6752 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6760 /* Override any GCC internal prototype to avoid an error.
6761 Use char because int might match the return type of a GCC
6762 builtin and then its argument prototype would still apply. */
6763 #ifdef __cplusplus
6764 extern "C"
6765 #endif
6766 char XOpenDisplay ();
6768 main ()
6770 return XOpenDisplay ();
6772 return 0;
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_link") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest$ac_exeext && {
6793 test "$cross_compiling" = yes ||
6794 $as_test_x conftest$ac_exeext
6795 }; then
6797 else
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6802 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6803 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6804 $as_echo_n "(cached) " >&6
6805 else
6806 ac_check_lib_save_LIBS=$LIBS
6807 LIBS="-ldnet $LIBS"
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6815 /* Override any GCC internal prototype to avoid an error.
6816 Use char because int might match the return type of a GCC
6817 builtin and then its argument prototype would still apply. */
6818 #ifdef __cplusplus
6819 extern "C"
6820 #endif
6821 char dnet_ntoa ();
6823 main ()
6825 return dnet_ntoa ();
6827 return 0;
6829 _ACEOF
6830 rm -f conftest.$ac_objext conftest$ac_exeext
6831 if { (ac_try="$ac_link"
6832 case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835 esac
6836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6837 $as_echo "$ac_try_echo") >&5
6838 (eval "$ac_link") 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && {
6845 test -z "$ac_c_werror_flag" ||
6846 test ! -s conftest.err
6847 } && test -s conftest$ac_exeext && {
6848 test "$cross_compiling" = yes ||
6849 $as_test_x conftest$ac_exeext
6850 }; then
6851 ac_cv_lib_dnet_dnet_ntoa=yes
6852 else
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_cv_lib_dnet_dnet_ntoa=no
6859 rm -rf conftest.dSYM
6860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6861 conftest$ac_exeext conftest.$ac_ext
6862 LIBS=$ac_check_lib_save_LIBS
6864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6865 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6866 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6867 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6870 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6871 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6872 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6873 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6874 $as_echo_n "(cached) " >&6
6875 else
6876 ac_check_lib_save_LIBS=$LIBS
6877 LIBS="-ldnet_stub $LIBS"
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6885 /* Override any GCC internal prototype to avoid an error.
6886 Use char because int might match the return type of a GCC
6887 builtin and then its argument prototype would still apply. */
6888 #ifdef __cplusplus
6889 extern "C"
6890 #endif
6891 char dnet_ntoa ();
6893 main ()
6895 return dnet_ntoa ();
6897 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6902 case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905 esac
6906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6907 $as_echo "$ac_try_echo") >&5
6908 (eval "$ac_link") 2>conftest.er1
6909 ac_status=$?
6910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
6913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_c_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest$ac_exeext && {
6918 test "$cross_compiling" = yes ||
6919 $as_test_x conftest$ac_exeext
6920 }; then
6921 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6922 else
6923 $as_echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_lib_dnet_stub_dnet_ntoa=no
6929 rm -rf conftest.dSYM
6930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6931 conftest$ac_exeext conftest.$ac_ext
6932 LIBS=$ac_check_lib_save_LIBS
6934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6935 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6936 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6937 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6943 rm -rf conftest.dSYM
6944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6945 conftest$ac_exeext conftest.$ac_ext
6946 LIBS="$ac_xsave_LIBS"
6948 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6949 # to get the SysV transport functions.
6950 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6951 # needs -lnsl.
6952 # The nsl library prevents programs from opening the X display
6953 # on Irix 5.2, according to T.E. Dickey.
6954 # The functions gethostbyname, getservbyname, and inet_addr are
6955 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6956 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6957 $as_echo_n "checking for gethostbyname... " >&6; }
6958 if test "${ac_cv_func_gethostbyname+set}" = set; then
6959 $as_echo_n "(cached) " >&6
6960 else
6961 cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h. */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h. */
6967 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6969 #define gethostbyname innocuous_gethostbyname
6971 /* System header to define __stub macros and hopefully few prototypes,
6972 which can conflict with char gethostbyname (); below.
6973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6974 <limits.h> exists even on freestanding compilers. */
6976 #ifdef __STDC__
6977 # include <limits.h>
6978 #else
6979 # include <assert.h>
6980 #endif
6982 #undef gethostbyname
6984 /* Override any GCC internal prototype to avoid an error.
6985 Use char because int might match the return type of a GCC
6986 builtin and then its argument prototype would still apply. */
6987 #ifdef __cplusplus
6988 extern "C"
6989 #endif
6990 char gethostbyname ();
6991 /* The GNU C library defines this for functions which it implements
6992 to always fail with ENOSYS. Some functions are actually named
6993 something starting with __ and the normal name is an alias. */
6994 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6995 choke me
6996 #endif
6999 main ()
7001 return gethostbyname ();
7003 return 0;
7005 _ACEOF
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_link") 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest$ac_exeext && {
7024 test "$cross_compiling" = yes ||
7025 $as_test_x conftest$ac_exeext
7026 }; then
7027 ac_cv_func_gethostbyname=yes
7028 else
7029 $as_echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_func_gethostbyname=no
7035 rm -rf conftest.dSYM
7036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7037 conftest$ac_exeext conftest.$ac_ext
7039 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7040 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7042 if test $ac_cv_func_gethostbyname = no; then
7043 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7044 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7045 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7046 $as_echo_n "(cached) " >&6
7047 else
7048 ac_check_lib_save_LIBS=$LIBS
7049 LIBS="-lnsl $LIBS"
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7057 /* Override any GCC internal prototype to avoid an error.
7058 Use char because int might match the return type of a GCC
7059 builtin and then its argument prototype would still apply. */
7060 #ifdef __cplusplus
7061 extern "C"
7062 #endif
7063 char gethostbyname ();
7065 main ()
7067 return gethostbyname ();
7069 return 0;
7071 _ACEOF
7072 rm -f conftest.$ac_objext conftest$ac_exeext
7073 if { (ac_try="$ac_link"
7074 case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077 esac
7078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7079 $as_echo "$ac_try_echo") >&5
7080 (eval "$ac_link") 2>conftest.er1
7081 ac_status=$?
7082 grep -v '^ *+' conftest.er1 >conftest.err
7083 rm -f conftest.er1
7084 cat conftest.err >&5
7085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && {
7087 test -z "$ac_c_werror_flag" ||
7088 test ! -s conftest.err
7089 } && test -s conftest$ac_exeext && {
7090 test "$cross_compiling" = yes ||
7091 $as_test_x conftest$ac_exeext
7092 }; then
7093 ac_cv_lib_nsl_gethostbyname=yes
7094 else
7095 $as_echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 ac_cv_lib_nsl_gethostbyname=no
7101 rm -rf conftest.dSYM
7102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7103 conftest$ac_exeext conftest.$ac_ext
7104 LIBS=$ac_check_lib_save_LIBS
7106 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7107 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7108 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7109 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7112 if test $ac_cv_lib_nsl_gethostbyname = no; then
7113 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7114 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7115 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7116 $as_echo_n "(cached) " >&6
7117 else
7118 ac_check_lib_save_LIBS=$LIBS
7119 LIBS="-lbsd $LIBS"
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7127 /* Override any GCC internal prototype to avoid an error.
7128 Use char because int might match the return type of a GCC
7129 builtin and then its argument prototype would still apply. */
7130 #ifdef __cplusplus
7131 extern "C"
7132 #endif
7133 char gethostbyname ();
7135 main ()
7137 return gethostbyname ();
7139 return 0;
7141 _ACEOF
7142 rm -f conftest.$ac_objext conftest$ac_exeext
7143 if { (ac_try="$ac_link"
7144 case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147 esac
7148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7149 $as_echo "$ac_try_echo") >&5
7150 (eval "$ac_link") 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest$ac_exeext && {
7160 test "$cross_compiling" = yes ||
7161 $as_test_x conftest$ac_exeext
7162 }; then
7163 ac_cv_lib_bsd_gethostbyname=yes
7164 else
7165 $as_echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_lib_bsd_gethostbyname=no
7171 rm -rf conftest.dSYM
7172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7173 conftest$ac_exeext conftest.$ac_ext
7174 LIBS=$ac_check_lib_save_LIBS
7176 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7177 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7178 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7185 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7186 # socket/setsockopt and other routines are undefined under SCO ODT
7187 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7188 # on later versions), says Simon Leinen: it contains gethostby*
7189 # variants that don't use the name server (or something). -lsocket
7190 # must be given before -lnsl if both are needed. We assume that
7191 # if connect needs -lnsl, so does gethostbyname.
7192 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7193 $as_echo_n "checking for connect... " >&6; }
7194 if test "${ac_cv_func_connect+set}" = set; then
7195 $as_echo_n "(cached) " >&6
7196 else
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */
7203 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7205 #define connect innocuous_connect
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char connect (); below.
7209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7210 <limits.h> exists even on freestanding compilers. */
7212 #ifdef __STDC__
7213 # include <limits.h>
7214 #else
7215 # include <assert.h>
7216 #endif
7218 #undef connect
7220 /* Override any GCC internal prototype to avoid an error.
7221 Use char because int might match the return type of a GCC
7222 builtin and then its argument prototype would still apply. */
7223 #ifdef __cplusplus
7224 extern "C"
7225 #endif
7226 char connect ();
7227 /* The GNU C library defines this for functions which it implements
7228 to always fail with ENOSYS. Some functions are actually named
7229 something starting with __ and the normal name is an alias. */
7230 #if defined __stub_connect || defined __stub___connect
7231 choke me
7232 #endif
7235 main ()
7237 return connect ();
7239 return 0;
7241 _ACEOF
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (ac_try="$ac_link"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7249 $as_echo "$ac_try_echo") >&5
7250 (eval "$ac_link") 2>conftest.er1
7251 ac_status=$?
7252 grep -v '^ *+' conftest.er1 >conftest.err
7253 rm -f conftest.er1
7254 cat conftest.err >&5
7255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest$ac_exeext && {
7260 test "$cross_compiling" = yes ||
7261 $as_test_x conftest$ac_exeext
7262 }; then
7263 ac_cv_func_connect=yes
7264 else
7265 $as_echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7268 ac_cv_func_connect=no
7271 rm -rf conftest.dSYM
7272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7273 conftest$ac_exeext conftest.$ac_ext
7275 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7276 $as_echo "$ac_cv_func_connect" >&6; }
7278 if test $ac_cv_func_connect = no; then
7279 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7280 $as_echo_n "checking for connect in -lsocket... " >&6; }
7281 if test "${ac_cv_lib_socket_connect+set}" = set; then
7282 $as_echo_n "(cached) " >&6
7283 else
7284 ac_check_lib_save_LIBS=$LIBS
7285 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7286 cat >conftest.$ac_ext <<_ACEOF
7287 /* confdefs.h. */
7288 _ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7293 /* Override any GCC internal prototype to avoid an error.
7294 Use char because int might match the return type of a GCC
7295 builtin and then its argument prototype would still apply. */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 char connect ();
7301 main ()
7303 return connect ();
7305 return 0;
7307 _ACEOF
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (ac_try="$ac_link"
7310 case "(($ac_try" in
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7313 esac
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316 (eval "$ac_link") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest$ac_exeext && {
7326 test "$cross_compiling" = yes ||
7327 $as_test_x conftest$ac_exeext
7328 }; then
7329 ac_cv_lib_socket_connect=yes
7330 else
7331 $as_echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_cv_lib_socket_connect=no
7337 rm -rf conftest.dSYM
7338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7339 conftest$ac_exeext conftest.$ac_ext
7340 LIBS=$ac_check_lib_save_LIBS
7342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7343 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7344 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7345 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7350 # Guillermo Gomez says -lposix is necessary on A/UX.
7351 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7352 $as_echo_n "checking for remove... " >&6; }
7353 if test "${ac_cv_func_remove+set}" = set; then
7354 $as_echo_n "(cached) " >&6
7355 else
7356 cat >conftest.$ac_ext <<_ACEOF
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7364 #define remove innocuous_remove
7366 /* System header to define __stub macros and hopefully few prototypes,
7367 which can conflict with char remove (); below.
7368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7369 <limits.h> exists even on freestanding compilers. */
7371 #ifdef __STDC__
7372 # include <limits.h>
7373 #else
7374 # include <assert.h>
7375 #endif
7377 #undef remove
7379 /* Override any GCC internal prototype to avoid an error.
7380 Use char because int might match the return type of a GCC
7381 builtin and then its argument prototype would still apply. */
7382 #ifdef __cplusplus
7383 extern "C"
7384 #endif
7385 char remove ();
7386 /* The GNU C library defines this for functions which it implements
7387 to always fail with ENOSYS. Some functions are actually named
7388 something starting with __ and the normal name is an alias. */
7389 #if defined __stub_remove || defined __stub___remove
7390 choke me
7391 #endif
7394 main ()
7396 return remove ();
7398 return 0;
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (ac_try="$ac_link"
7403 case "(($ac_try" in
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7406 esac
7407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7408 $as_echo "$ac_try_echo") >&5
7409 (eval "$ac_link") 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest$ac_exeext && {
7419 test "$cross_compiling" = yes ||
7420 $as_test_x conftest$ac_exeext
7421 }; then
7422 ac_cv_func_remove=yes
7423 else
7424 $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_cv_func_remove=no
7430 rm -rf conftest.dSYM
7431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7432 conftest$ac_exeext conftest.$ac_ext
7434 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7435 $as_echo "$ac_cv_func_remove" >&6; }
7437 if test $ac_cv_func_remove = no; then
7438 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7439 $as_echo_n "checking for remove in -lposix... " >&6; }
7440 if test "${ac_cv_lib_posix_remove+set}" = set; then
7441 $as_echo_n "(cached) " >&6
7442 else
7443 ac_check_lib_save_LIBS=$LIBS
7444 LIBS="-lposix $LIBS"
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7452 /* Override any GCC internal prototype to avoid an error.
7453 Use char because int might match the return type of a GCC
7454 builtin and then its argument prototype would still apply. */
7455 #ifdef __cplusplus
7456 extern "C"
7457 #endif
7458 char remove ();
7460 main ()
7462 return remove ();
7464 return 0;
7466 _ACEOF
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (ac_try="$ac_link"
7469 case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472 esac
7473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7474 $as_echo "$ac_try_echo") >&5
7475 (eval "$ac_link") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest$ac_exeext && {
7485 test "$cross_compiling" = yes ||
7486 $as_test_x conftest$ac_exeext
7487 }; then
7488 ac_cv_lib_posix_remove=yes
7489 else
7490 $as_echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7493 ac_cv_lib_posix_remove=no
7496 rm -rf conftest.dSYM
7497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7498 conftest$ac_exeext conftest.$ac_ext
7499 LIBS=$ac_check_lib_save_LIBS
7501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7502 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7503 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7504 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7509 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7510 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7511 $as_echo_n "checking for shmat... " >&6; }
7512 if test "${ac_cv_func_shmat+set}" = set; then
7513 $as_echo_n "(cached) " >&6
7514 else
7515 cat >conftest.$ac_ext <<_ACEOF
7516 /* confdefs.h. */
7517 _ACEOF
7518 cat confdefs.h >>conftest.$ac_ext
7519 cat >>conftest.$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7523 #define shmat innocuous_shmat
7525 /* System header to define __stub macros and hopefully few prototypes,
7526 which can conflict with char shmat (); below.
7527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7528 <limits.h> exists even on freestanding compilers. */
7530 #ifdef __STDC__
7531 # include <limits.h>
7532 #else
7533 # include <assert.h>
7534 #endif
7536 #undef shmat
7538 /* Override any GCC internal prototype to avoid an error.
7539 Use char because int might match the return type of a GCC
7540 builtin and then its argument prototype would still apply. */
7541 #ifdef __cplusplus
7542 extern "C"
7543 #endif
7544 char shmat ();
7545 /* The GNU C library defines this for functions which it implements
7546 to always fail with ENOSYS. Some functions are actually named
7547 something starting with __ and the normal name is an alias. */
7548 #if defined __stub_shmat || defined __stub___shmat
7549 choke me
7550 #endif
7553 main ()
7555 return shmat ();
7557 return 0;
7559 _ACEOF
7560 rm -f conftest.$ac_objext conftest$ac_exeext
7561 if { (ac_try="$ac_link"
7562 case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565 esac
7566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7567 $as_echo "$ac_try_echo") >&5
7568 (eval "$ac_link") 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest$ac_exeext && {
7578 test "$cross_compiling" = yes ||
7579 $as_test_x conftest$ac_exeext
7580 }; then
7581 ac_cv_func_shmat=yes
7582 else
7583 $as_echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_cv_func_shmat=no
7589 rm -rf conftest.dSYM
7590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7591 conftest$ac_exeext conftest.$ac_ext
7593 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7594 $as_echo "$ac_cv_func_shmat" >&6; }
7596 if test $ac_cv_func_shmat = no; then
7597 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7598 $as_echo_n "checking for shmat in -lipc... " >&6; }
7599 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7600 $as_echo_n "(cached) " >&6
7601 else
7602 ac_check_lib_save_LIBS=$LIBS
7603 LIBS="-lipc $LIBS"
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h. */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7611 /* Override any GCC internal prototype to avoid an error.
7612 Use char because int might match the return type of a GCC
7613 builtin and then its argument prototype would still apply. */
7614 #ifdef __cplusplus
7615 extern "C"
7616 #endif
7617 char shmat ();
7619 main ()
7621 return shmat ();
7623 return 0;
7625 _ACEOF
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (ac_try="$ac_link"
7628 case "(($ac_try" in
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7631 esac
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634 (eval "$ac_link") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest$ac_exeext && {
7644 test "$cross_compiling" = yes ||
7645 $as_test_x conftest$ac_exeext
7646 }; then
7647 ac_cv_lib_ipc_shmat=yes
7648 else
7649 $as_echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 ac_cv_lib_ipc_shmat=no
7655 rm -rf conftest.dSYM
7656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7657 conftest$ac_exeext conftest.$ac_ext
7658 LIBS=$ac_check_lib_save_LIBS
7660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7661 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7662 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7669 # Check for libraries that X11R6 Xt/Xaw programs need.
7670 ac_save_LDFLAGS=$LDFLAGS
7671 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7672 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7673 # check for ICE first), but we must link in the order -lSM -lICE or
7674 # we get undefined symbols. So assume we have SM if we have ICE.
7675 # These have to be linked with before -lX11, unlike the other
7676 # libraries we check for below, so use a different variable.
7677 # John Interrante, Karl Berry
7678 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7679 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7680 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7682 else
7683 ac_check_lib_save_LIBS=$LIBS
7684 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7685 cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h. */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7692 /* Override any GCC internal prototype to avoid an error.
7693 Use char because int might match the return type of a GCC
7694 builtin and then its argument prototype would still apply. */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 char IceConnectionNumber ();
7700 main ()
7702 return IceConnectionNumber ();
7704 return 0;
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (ac_try="$ac_link"
7709 case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712 esac
7713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7714 $as_echo "$ac_try_echo") >&5
7715 (eval "$ac_link") 2>conftest.er1
7716 ac_status=$?
7717 grep -v '^ *+' conftest.er1 >conftest.err
7718 rm -f conftest.er1
7719 cat conftest.err >&5
7720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && {
7722 test -z "$ac_c_werror_flag" ||
7723 test ! -s conftest.err
7724 } && test -s conftest$ac_exeext && {
7725 test "$cross_compiling" = yes ||
7726 $as_test_x conftest$ac_exeext
7727 }; then
7728 ac_cv_lib_ICE_IceConnectionNumber=yes
7729 else
7730 $as_echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7733 ac_cv_lib_ICE_IceConnectionNumber=no
7736 rm -rf conftest.dSYM
7737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7738 conftest$ac_exeext conftest.$ac_ext
7739 LIBS=$ac_check_lib_save_LIBS
7741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7742 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7743 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7744 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7747 LDFLAGS=$ac_save_LDFLAGS
7752 if test "$OS390Unix" = "yes"; then
7753 CFLAGS="$CFLAGS -W c,dll"
7754 LDFLAGS="$LDFLAGS -W l,dll"
7755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7759 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7760 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7761 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7762 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7763 X_LIBS="$X_LIBS -L$x_libraries"
7764 if test "`(uname) 2>/dev/null`" = SunOS &&
7765 uname -r | grep '^5' >/dev/null; then
7766 X_LIBS="$X_LIBS -R $x_libraries"
7770 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7771 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7772 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7773 $as_echo "Corrected X includes to $x_includes" >&6; }
7774 X_CFLAGS="$X_CFLAGS -I$x_includes"
7777 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7778 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7779 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7782 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7783 $as_echo_n "checking if X11 header files can be found... " >&6; }
7784 cflags_save=$CFLAGS
7785 CFLAGS="$CFLAGS $X_CFLAGS"
7786 cat >conftest.$ac_ext <<_ACEOF
7787 /* confdefs.h. */
7788 _ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 #include <X11/Xlib.h>
7793 #include <X11/Intrinsic.h>
7795 main ()
7799 return 0;
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7804 case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807 esac
7808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7820 { $as_echo "$as_me:$LINENO: result: yes" >&5
7821 $as_echo "yes" >&6; }
7822 else
7823 $as_echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7826 { $as_echo "$as_me:$LINENO: result: no" >&5
7827 $as_echo "no" >&6; }; no_x=yes
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 CFLAGS=$cflags_save
7833 if test "${no_x-no}" = yes; then
7834 with_x=no
7835 else
7836 cat >>confdefs.h <<\_ACEOF
7837 #define HAVE_X11 1
7838 _ACEOF
7840 X_LIB="-lXt -lX11";
7843 ac_save_LDFLAGS="$LDFLAGS"
7844 LDFLAGS="-L$x_libraries $LDFLAGS"
7846 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7847 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7848 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7849 $as_echo_n "(cached) " >&6
7850 else
7851 ac_check_lib_save_LIBS=$LIBS
7852 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char _XdmcpAuthDoIt ();
7868 main ()
7870 return _XdmcpAuthDoIt ();
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7882 $as_echo "$ac_try_echo") >&5
7883 (eval "$ac_link") 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } && {
7890 test -z "$ac_c_werror_flag" ||
7891 test ! -s conftest.err
7892 } && test -s conftest$ac_exeext && {
7893 test "$cross_compiling" = yes ||
7894 $as_test_x conftest$ac_exeext
7895 }; then
7896 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7897 else
7898 $as_echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7904 rm -rf conftest.dSYM
7905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7906 conftest$ac_exeext conftest.$ac_ext
7907 LIBS=$ac_check_lib_save_LIBS
7909 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7910 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7911 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7916 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7917 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7918 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7919 $as_echo_n "(cached) " >&6
7920 else
7921 ac_check_lib_save_LIBS=$LIBS
7922 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7930 /* Override any GCC internal prototype to avoid an error.
7931 Use char because int might match the return type of a GCC
7932 builtin and then its argument prototype would still apply. */
7933 #ifdef __cplusplus
7934 extern "C"
7935 #endif
7936 char IceOpenConnection ();
7938 main ()
7940 return IceOpenConnection ();
7942 return 0;
7944 _ACEOF
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7947 case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7952 $as_echo "$ac_try_echo") >&5
7953 (eval "$ac_link") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext && {
7963 test "$cross_compiling" = yes ||
7964 $as_test_x conftest$ac_exeext
7965 }; then
7966 ac_cv_lib_ICE_IceOpenConnection=yes
7967 else
7968 $as_echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_lib_ICE_IceOpenConnection=no
7974 rm -rf conftest.dSYM
7975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7980 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7981 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7986 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7987 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7988 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7989 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7990 $as_echo_n "(cached) " >&6
7991 else
7992 ac_check_lib_save_LIBS=$LIBS
7993 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8001 /* Override any GCC internal prototype to avoid an error.
8002 Use char because int might match the return type of a GCC
8003 builtin and then its argument prototype would still apply. */
8004 #ifdef __cplusplus
8005 extern "C"
8006 #endif
8007 char XpmCreatePixmapFromData ();
8009 main ()
8011 return XpmCreatePixmapFromData ();
8013 return 0;
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (ac_try="$ac_link"
8018 case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8023 $as_echo "$ac_try_echo") >&5
8024 (eval "$ac_link") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext && {
8034 test "$cross_compiling" = yes ||
8035 $as_test_x conftest$ac_exeext
8036 }; then
8037 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
8038 else
8039 $as_echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
8045 rm -rf conftest.dSYM
8046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8047 conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
8051 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
8052 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
8053 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8057 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8058 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8059 cflags_save=$CFLAGS
8060 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <X11/Xlib.h>
8069 main ()
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8078 case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081 esac
8082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8083 $as_echo "$ac_try_echo") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 { $as_echo "$as_me:$LINENO: result: no" >&5
8095 $as_echo "no" >&6; }
8096 else
8097 $as_echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 CFLAGS="$CFLAGS -Wno-implicit-int"
8101 cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h. */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 #include <X11/Xlib.h>
8109 main ()
8113 return 0;
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8118 case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8123 $as_echo "$ac_try_echo") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 { $as_echo "$as_me:$LINENO: result: yes" >&5
8135 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8136 else
8137 $as_echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8141 $as_echo "test failed" >&6; }
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8150 CFLAGS=$cflags_save
8152 LDFLAGS="$ac_save_LDFLAGS"
8154 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8155 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8156 if test "${ac_cv_small_wchar_t+set}" = set; then
8157 $as_echo_n "(cached) " >&6
8158 else
8159 if test "$cross_compiling" = yes; then
8160 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8161 $as_echo "$as_me: error: failed to compile test program" >&2;}
8162 { (exit 1); exit 1; }; }
8163 else
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8171 #include <X11/Xlib.h>
8172 #if STDC_HEADERS
8173 # include <stdlib.h>
8174 # include <stddef.h>
8175 #endif
8176 main()
8178 if (sizeof(wchar_t) <= 2)
8179 exit(1);
8180 exit(0);
8182 _ACEOF
8183 rm -f conftest$ac_exeext
8184 if { (ac_try="$ac_link"
8185 case "(($ac_try" in
8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187 *) ac_try_echo=$ac_try;;
8188 esac
8189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8190 $as_echo "$ac_try_echo") >&5
8191 (eval "$ac_link") 2>&5
8192 ac_status=$?
8193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8195 { (case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_try") 2>&5
8202 ac_status=$?
8203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_small_wchar_t="no"
8206 else
8207 $as_echo "$as_me: program exited with status $ac_status" >&5
8208 $as_echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.$ac_ext >&5
8211 ( exit $ac_status )
8212 ac_cv_small_wchar_t="yes"
8214 rm -rf conftest.dSYM
8215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8221 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8222 $as_echo "$ac_cv_small_wchar_t" >&6; }
8223 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8224 cat >>confdefs.h <<\_ACEOF
8225 #define SMALL_WCHAR_T 1
8226 _ACEOF
8233 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8235 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8236 $as_echo_n "checking --enable-gui argument... " >&6; }
8237 # Check whether --enable-gui was given.
8238 if test "${enable_gui+set}" = set; then
8239 enableval=$enable_gui;
8240 else
8241 enable_gui="auto"
8245 enable_gui_canon=`echo "_$enable_gui" | \
8246 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8248 SKIP_GTK=YES
8249 SKIP_GTK2=YES
8250 SKIP_GNOME=YES
8251 SKIP_MOTIF=YES
8252 SKIP_ATHENA=YES
8253 SKIP_NEXTAW=YES
8254 SKIP_PHOTON=YES
8255 SKIP_CARBON=YES
8256 SKIP_MACVIM=YES
8257 GUITYPE=NONE
8259 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8260 SKIP_PHOTON=
8261 case "$enable_gui_canon" in
8262 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8263 $as_echo "no GUI support" >&6; }
8264 SKIP_PHOTON=YES ;;
8265 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8266 $as_echo "yes - automatic GUI support" >&6; } ;;
8267 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8268 $as_echo "auto - automatic GUI support" >&6; } ;;
8269 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8270 $as_echo "Photon GUI support" >&6; } ;;
8271 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8272 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8273 SKIP_PHOTON=YES ;;
8274 esac
8276 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8277 SKIP_CARBON=
8278 SKIP_MACVIM=
8279 case "$enable_gui_canon" in
8280 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8281 $as_echo "no GUI support" >&6; }
8282 SKIP_CARBON=YES
8283 SKIP_MACVIM=YES ;;
8284 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8285 $as_echo "yes - automatic GUI support" >&6; } ;;
8286 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8287 $as_echo "auto - automatic GUI support" >&6; } ;;
8288 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8289 $as_echo "Carbon GUI support" >&6; }
8290 SKIP_MACVIM=YES ;;
8291 macvim) { $as_echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8292 $as_echo "MacVim GUI support" >&6; }
8293 SKIP_CARBON=YES ;;
8294 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8295 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8296 SKIP_CARBON=YES
8297 SKIP_MACVIM=YES ;;
8298 esac
8300 else
8302 case "$enable_gui_canon" in
8303 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8304 $as_echo "no GUI support" >&6; } ;;
8305 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8306 $as_echo "yes/auto - automatic GUI support" >&6; }
8307 SKIP_GTK=
8308 SKIP_GTK2=
8309 SKIP_GNOME=
8310 SKIP_MOTIF=
8311 SKIP_ATHENA=
8312 SKIP_NEXTAW=
8313 SKIP_MACVIM=
8314 SKIP_CARBON=;;
8315 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8316 $as_echo "GTK+ 1.x GUI support" >&6; }
8317 SKIP_GTK=;;
8318 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8319 $as_echo "GTK+ 2.x GUI support" >&6; }
8320 SKIP_GTK=
8321 SKIP_GTK2=;;
8322 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8323 $as_echo "GNOME 1.x GUI support" >&6; }
8324 SKIP_GNOME=
8325 SKIP_GTK=;;
8326 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8327 $as_echo "GNOME 2.x GUI support" >&6; }
8328 SKIP_GNOME=
8329 SKIP_GTK=
8330 SKIP_GTK2=;;
8331 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8332 $as_echo "Motif GUI support" >&6; }
8333 SKIP_MOTIF=;;
8334 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8335 $as_echo "Athena GUI support" >&6; }
8336 SKIP_ATHENA=;;
8337 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8338 $as_echo "neXtaw GUI support" >&6; }
8339 SKIP_NEXTAW=;;
8340 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8341 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8342 esac
8346 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8347 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8348 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8349 # Check whether --enable-gtk-check was given.
8350 if test "${enable_gtk_check+set}" = set; then
8351 enableval=$enable_gtk_check;
8352 else
8353 enable_gtk_check="yes"
8356 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8357 $as_echo "$enable_gtk_check" >&6; }
8358 if test "x$enable_gtk_check" = "xno"; then
8359 SKIP_GTK=YES
8360 SKIP_GNOME=YES
8364 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8365 -a "$enable_gui_canon" != "gnome2"; then
8366 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8367 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8368 # Check whether --enable-gtk2-check was given.
8369 if test "${enable_gtk2_check+set}" = set; then
8370 enableval=$enable_gtk2_check;
8371 else
8372 enable_gtk2_check="yes"
8375 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8376 $as_echo "$enable_gtk2_check" >&6; }
8377 if test "x$enable_gtk2_check" = "xno"; then
8378 SKIP_GTK2=YES
8382 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8383 -a "$enable_gui_canon" != "gnome2"; then
8384 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8385 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8386 # Check whether --enable-gnome-check was given.
8387 if test "${enable_gnome_check+set}" = set; then
8388 enableval=$enable_gnome_check;
8389 else
8390 enable_gnome_check="no"
8393 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8394 $as_echo "$enable_gnome_check" >&6; }
8395 if test "x$enable_gnome_check" = "xno"; then
8396 SKIP_GNOME=YES
8400 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8401 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8402 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8403 # Check whether --enable-motif-check was given.
8404 if test "${enable_motif_check+set}" = set; then
8405 enableval=$enable_motif_check;
8406 else
8407 enable_motif_check="yes"
8410 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8411 $as_echo "$enable_motif_check" >&6; }
8412 if test "x$enable_motif_check" = "xno"; then
8413 SKIP_MOTIF=YES
8417 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8418 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8419 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8420 # Check whether --enable-athena-check was given.
8421 if test "${enable_athena_check+set}" = set; then
8422 enableval=$enable_athena_check;
8423 else
8424 enable_athena_check="yes"
8427 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8428 $as_echo "$enable_athena_check" >&6; }
8429 if test "x$enable_athena_check" = "xno"; then
8430 SKIP_ATHENA=YES
8434 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8435 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8436 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8437 # Check whether --enable-nextaw-check was given.
8438 if test "${enable_nextaw_check+set}" = set; then
8439 enableval=$enable_nextaw_check;
8440 else
8441 enable_nextaw_check="yes"
8444 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8445 $as_echo "$enable_nextaw_check" >&6; };
8446 if test "x$enable_nextaw_check" = "xno"; then
8447 SKIP_NEXTAW=YES
8451 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8452 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8453 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8454 # Check whether --enable-carbon-check was given.
8455 if test "${enable_carbon_check+set}" = set; then
8456 enableval=$enable_carbon_check;
8457 else
8458 enable_carbon_check="yes"
8461 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8462 $as_echo "$enable_carbon_check" >&6; };
8463 if test "x$enable_carbon_check" = "xno"; then
8464 SKIP_CARBON=YES
8468 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8469 { $as_echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8470 $as_echo_n "checking whether or not to look for MacVim... " >&6; }
8471 # Check whether --enable-macvim-check was given.
8472 if test "${enable_macvim_check+set}" = set; then
8473 enableval=$enable_macvim_check;
8474 else
8475 enable_macvim_check="yes"
8478 { $as_echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8479 $as_echo "$enable_macvim_check" >&6; };
8480 if test "x$enable_macvim_check" = "xno"; then
8481 SKIP_MACVIM=YES
8485 if test "x$MACOSX" = "xyes"; then
8486 if test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8487 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8488 $as_echo_n "checking for Carbon GUI... " >&6; }
8489 { $as_echo "$as_me:$LINENO: result: yes" >&5
8490 $as_echo "yes" >&6; };
8491 GUITYPE=CARBONGUI
8492 elif test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8493 { $as_echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8494 $as_echo_n "checking for MacVim GUI... " >&6; }
8495 { $as_echo "$as_me:$LINENO: result: yes" >&5
8496 $as_echo "yes" >&6; };
8497 GUITYPE=MACVIMGUI
8500 if test "$VIMNAME" = "vim"; then
8501 VIMNAME=Vim
8504 if test x$prefix = xNONE; then
8505 prefix=/Applications
8508 datadir='${prefix}/Vim.app/Contents/Resources'
8510 SKIP_GTK=YES;
8511 SKIP_GTK2=YES;
8512 SKIP_GNOME=YES;
8513 SKIP_MOTIF=YES;
8514 SKIP_ATHENA=YES;
8515 SKIP_NEXTAW=YES;
8516 SKIP_PHOTON=YES;
8517 SKIP_MACVIM=YES;
8518 SKIP_CARBON=YES
8529 if test -z "$SKIP_GTK"; then
8531 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8532 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8534 # Check whether --with-gtk-prefix was given.
8535 if test "${with_gtk_prefix+set}" = set; then
8536 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8537 $as_echo "$gtk_config_prefix" >&6; }
8538 else
8539 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8540 $as_echo "no" >&6; }
8544 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8545 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8547 # Check whether --with-gtk-exec-prefix was given.
8548 if test "${with_gtk_exec_prefix+set}" = set; then
8549 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8550 $as_echo "$gtk_config_prefix" >&6; }
8551 else
8552 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8553 $as_echo "no" >&6; }
8557 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8558 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8559 # Check whether --enable-gtktest was given.
8560 if test "${enable_gtktest+set}" = set; then
8561 enableval=$enable_gtktest;
8562 else
8563 enable_gtktest=yes
8566 if test "x$enable_gtktest" = "xyes" ; then
8567 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8568 $as_echo "gtk test enabled" >&6; }
8569 else
8570 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8571 $as_echo "gtk test disabled" >&6; }
8574 if test "x$gtk_config_prefix" != "x" ; then
8575 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8576 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8578 if test "x$gtk_config_exec_prefix" != "x" ; then
8579 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8580 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8582 if test "X$GTK_CONFIG" = "X"; then
8583 # Extract the first word of "gtk-config", so it can be a program name with args.
8584 set dummy gtk-config; ac_word=$2
8585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8588 $as_echo_n "(cached) " >&6
8589 else
8590 case $GTK_CONFIG in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8610 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8612 esac
8614 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8615 if test -n "$GTK_CONFIG"; then
8616 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8617 $as_echo "$GTK_CONFIG" >&6; }
8618 else
8619 { $as_echo "$as_me:$LINENO: result: no" >&5
8620 $as_echo "no" >&6; }
8624 if test "X$GTK_CONFIG" = "Xno"; then
8625 # Extract the first word of "gtk12-config", so it can be a program name with args.
8626 set dummy gtk12-config; ac_word=$2
8627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8628 $as_echo_n "checking for $ac_word... " >&6; }
8629 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8630 $as_echo_n "(cached) " >&6
8631 else
8632 case $GTK12_CONFIG in
8633 [\\/]* | ?:[\\/]*)
8634 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8644 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8648 done
8649 done
8650 IFS=$as_save_IFS
8652 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8654 esac
8656 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8657 if test -n "$GTK12_CONFIG"; then
8658 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8659 $as_echo "$GTK12_CONFIG" >&6; }
8660 else
8661 { $as_echo "$as_me:$LINENO: result: no" >&5
8662 $as_echo "no" >&6; }
8666 GTK_CONFIG="$GTK12_CONFIG"
8668 else
8669 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8670 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8672 if test "X$PKG_CONFIG" = "X"; then
8673 # Extract the first word of "pkg-config", so it can be a program name with args.
8674 set dummy pkg-config; ac_word=$2
8675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8678 $as_echo_n "(cached) " >&6
8679 else
8680 case $PKG_CONFIG in
8681 [\\/]* | ?:[\\/]*)
8682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8688 IFS=$as_save_IFS
8689 test -z "$as_dir" && as_dir=.
8690 for ac_exec_ext in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 break 2
8696 done
8697 done
8698 IFS=$as_save_IFS
8700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8702 esac
8704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8705 if test -n "$PKG_CONFIG"; then
8706 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8707 $as_echo "$PKG_CONFIG" >&6; }
8708 else
8709 { $as_echo "$as_me:$LINENO: result: no" >&5
8710 $as_echo "no" >&6; }
8716 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8717 if test "X$SKIP_GTK2" != "XYES"; then
8719 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8721 min_gtk_version=2.2.0
8722 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8723 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8724 no_gtk=""
8725 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8726 && $PKG_CONFIG --exists gtk+-2.0; then
8728 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8729 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8730 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8731 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8732 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8733 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8734 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8735 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8736 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8738 elif test "X$GTK_CONFIG" != "Xno"; then
8740 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8741 GTK_LIBDIR=
8742 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8743 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8744 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8745 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8746 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8747 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8748 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8750 else
8751 no_gtk=yes
8754 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8756 ac_save_CFLAGS="$CFLAGS"
8757 ac_save_LIBS="$LIBS"
8758 CFLAGS="$CFLAGS $GTK_CFLAGS"
8759 LIBS="$LIBS $GTK_LIBS"
8761 rm -f conf.gtktest
8762 if test "$cross_compiling" = yes; then
8763 echo $ac_n "cross compiling; assumed OK... $ac_c"
8764 else
8765 cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h. */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 #include <gtk/gtk.h>
8773 #include <stdio.h>
8774 #if STDC_HEADERS
8775 # include <stdlib.h>
8776 # include <stddef.h>
8777 #endif
8780 main ()
8782 int major, minor, micro;
8783 char *tmp_version;
8785 system ("touch conf.gtktest");
8787 /* HP/UX 9 (%@#!) writes to sscanf strings */
8788 tmp_version = g_strdup("$min_gtk_version");
8789 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8790 printf("%s, bad version string\n", "$min_gtk_version");
8791 exit(1);
8794 if ((gtk_major_version > major) ||
8795 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8796 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8797 (gtk_micro_version >= micro)))
8799 return 0;
8801 return 1;
8804 _ACEOF
8805 rm -f conftest$ac_exeext
8806 if { (ac_try="$ac_link"
8807 case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810 esac
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_link") 2>&5
8814 ac_status=$?
8815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8817 { (case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8822 $as_echo "$ac_try_echo") >&5
8823 (eval "$ac_try") 2>&5
8824 ac_status=$?
8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; }; then
8828 else
8829 $as_echo "$as_me: program exited with status $ac_status" >&5
8830 $as_echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8833 ( exit $ac_status )
8834 no_gtk=yes
8836 rm -rf conftest.dSYM
8837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8841 CFLAGS="$ac_save_CFLAGS"
8842 LIBS="$ac_save_LIBS"
8845 if test "x$no_gtk" = x ; then
8846 if test "x$enable_gtktest" = "xyes"; then
8847 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8848 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8849 else
8850 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8851 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8853 GUI_LIB_LOC="$GTK_LIBDIR"
8854 GTK_LIBNAME="$GTK_LIBS"
8855 GUI_INC_LOC="$GTK_CFLAGS"
8856 else
8858 { $as_echo "$as_me:$LINENO: result: no" >&5
8859 $as_echo "no" >&6; }
8860 GTK_CFLAGS=""
8861 GTK_LIBS=""
8866 else
8867 GTK_CFLAGS=""
8868 GTK_LIBS=""
8873 rm -f conf.gtktest
8875 if test "x$GTK_CFLAGS" != "x"; then
8876 SKIP_ATHENA=YES
8877 SKIP_NEXTAW=YES
8878 SKIP_MOTIF=YES
8879 GUITYPE=GTK
8884 if test "x$GUITYPE" != "xGTK"; then
8885 SKIP_GTK2=YES
8887 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8889 min_gtk_version=1.1.16
8890 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8891 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8892 no_gtk=""
8893 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8894 && $PKG_CONFIG --exists gtk+-2.0; then
8896 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8897 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8898 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8899 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8900 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8901 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8902 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8903 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8904 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8906 elif test "X$GTK_CONFIG" != "Xno"; then
8908 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8909 GTK_LIBDIR=
8910 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8911 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8912 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8913 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8914 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8915 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8916 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8918 else
8919 no_gtk=yes
8922 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8924 ac_save_CFLAGS="$CFLAGS"
8925 ac_save_LIBS="$LIBS"
8926 CFLAGS="$CFLAGS $GTK_CFLAGS"
8927 LIBS="$LIBS $GTK_LIBS"
8929 rm -f conf.gtktest
8930 if test "$cross_compiling" = yes; then
8931 echo $ac_n "cross compiling; assumed OK... $ac_c"
8932 else
8933 cat >conftest.$ac_ext <<_ACEOF
8934 /* confdefs.h. */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8940 #include <gtk/gtk.h>
8941 #include <stdio.h>
8942 #if STDC_HEADERS
8943 # include <stdlib.h>
8944 # include <stddef.h>
8945 #endif
8948 main ()
8950 int major, minor, micro;
8951 char *tmp_version;
8953 system ("touch conf.gtktest");
8955 /* HP/UX 9 (%@#!) writes to sscanf strings */
8956 tmp_version = g_strdup("$min_gtk_version");
8957 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8958 printf("%s, bad version string\n", "$min_gtk_version");
8959 exit(1);
8962 if ((gtk_major_version > major) ||
8963 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8964 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8965 (gtk_micro_version >= micro)))
8967 return 0;
8969 return 1;
8972 _ACEOF
8973 rm -f conftest$ac_exeext
8974 if { (ac_try="$ac_link"
8975 case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978 esac
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981 (eval "$ac_link") 2>&5
8982 ac_status=$?
8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8985 { (case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991 (eval "$ac_try") 2>&5
8992 ac_status=$?
8993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8996 else
8997 $as_echo "$as_me: program exited with status $ac_status" >&5
8998 $as_echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9001 ( exit $ac_status )
9002 no_gtk=yes
9004 rm -rf conftest.dSYM
9005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9009 CFLAGS="$ac_save_CFLAGS"
9010 LIBS="$ac_save_LIBS"
9013 if test "x$no_gtk" = x ; then
9014 if test "x$enable_gtktest" = "xyes"; then
9015 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9016 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9017 else
9018 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
9019 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
9021 GTK_LIBNAME="$GTK_LIBS"
9022 GUI_INC_LOC="$GTK_CFLAGS"
9023 else
9025 { $as_echo "$as_me:$LINENO: result: no" >&5
9026 $as_echo "no" >&6; }
9027 GTK_CFLAGS=""
9028 GTK_LIBS=""
9033 else
9034 GTK_CFLAGS=""
9035 GTK_LIBS=""
9040 rm -f conf.gtktest
9042 if test "x$GTK_CFLAGS" != "x"; then
9043 SKIP_ATHENA=YES
9044 SKIP_NEXTAW=YES
9045 SKIP_MOTIF=YES
9046 GUITYPE=GTK
9051 if test "x$GUITYPE" = "xGTK"; then
9052 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
9053 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
9054 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
9055 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
9056 else
9058 if test "0$gtk_major_version" -ge 2; then
9059 cat >>confdefs.h <<\_ACEOF
9060 #define HAVE_GTK2 1
9061 _ACEOF
9063 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
9064 || test "0$gtk_minor_version" -ge 2 \
9065 || test "0$gtk_major_version" -gt 2; then
9066 cat >>confdefs.h <<\_ACEOF
9067 #define HAVE_GTK_MULTIHEAD 1
9068 _ACEOF
9072 if test -z "$SKIP_GNOME"; then
9080 # Check whether --with-gnome-includes was given.
9081 if test "${with_gnome_includes+set}" = set; then
9082 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9088 # Check whether --with-gnome-libs was given.
9089 if test "${with_gnome_libs+set}" = set; then
9090 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9096 # Check whether --with-gnome was given.
9097 if test "${with_gnome+set}" = set; then
9098 withval=$with_gnome; if test x$withval = xyes; then
9099 want_gnome=yes
9100 have_gnome=yes
9101 else
9102 if test "x$withval" = xno; then
9103 want_gnome=no
9104 else
9105 want_gnome=yes
9106 LDFLAGS="$LDFLAGS -L$withval/lib"
9107 CFLAGS="$CFLAGS -I$withval/include"
9108 gnome_prefix=$withval/lib
9111 else
9112 want_gnome=yes
9116 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9118 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9119 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9120 if $PKG_CONFIG --exists libgnomeui-2.0; then
9121 { $as_echo "$as_me:$LINENO: result: yes" >&5
9122 $as_echo "yes" >&6; }
9123 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9124 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9125 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9127 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9128 $as_echo_n "checking for FreeBSD... " >&6; }
9129 if test "`(uname) 2>/dev/null`" = FreeBSD; then
9130 { $as_echo "$as_me:$LINENO: result: yes" >&5
9131 $as_echo "yes" >&6; }
9132 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9133 GNOME_LIBS="$GNOME_LIBS -pthread"
9134 else
9135 { $as_echo "$as_me:$LINENO: result: no" >&5
9136 $as_echo "no" >&6; }
9138 have_gnome=yes
9139 else
9140 { $as_echo "$as_me:$LINENO: result: not found" >&5
9141 $as_echo "not found" >&6; }
9142 if test "x" = xfail; then
9143 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9144 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9145 { (exit 1); exit 1; }; }
9149 elif test "x$want_gnome" = xyes; then
9151 # Extract the first word of "gnome-config", so it can be a program name with args.
9152 set dummy gnome-config; ac_word=$2
9153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9156 $as_echo_n "(cached) " >&6
9157 else
9158 case $GNOME_CONFIG in
9159 [\\/]* | ?:[\\/]*)
9160 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9164 for as_dir in $PATH
9166 IFS=$as_save_IFS
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 break 2
9174 done
9175 done
9176 IFS=$as_save_IFS
9178 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9180 esac
9182 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9183 if test -n "$GNOME_CONFIG"; then
9184 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9185 $as_echo "$GNOME_CONFIG" >&6; }
9186 else
9187 { $as_echo "$as_me:$LINENO: result: no" >&5
9188 $as_echo "no" >&6; }
9192 if test "$GNOME_CONFIG" = "no"; then
9193 no_gnome_config="yes"
9194 else
9195 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9196 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9197 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9198 { $as_echo "$as_me:$LINENO: result: yes" >&5
9199 $as_echo "yes" >&6; }
9200 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9201 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9202 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9203 have_gnome=yes
9204 else
9205 { $as_echo "$as_me:$LINENO: result: no" >&5
9206 $as_echo "no" >&6; }
9207 no_gnome_config="yes"
9211 if test x$exec_prefix = xNONE; then
9212 if test x$prefix = xNONE; then
9213 gnome_prefix=$ac_default_prefix/lib
9214 else
9215 gnome_prefix=$prefix/lib
9217 else
9218 gnome_prefix=`eval echo \`echo $libdir\``
9221 if test "$no_gnome_config" = "yes"; then
9222 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9223 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9224 if test -f $gnome_prefix/gnomeConf.sh; then
9225 { $as_echo "$as_me:$LINENO: result: found" >&5
9226 $as_echo "found" >&6; }
9227 echo "loading gnome configuration from" \
9228 "$gnome_prefix/gnomeConf.sh"
9229 . $gnome_prefix/gnomeConf.sh
9230 have_gnome=yes
9231 else
9232 { $as_echo "$as_me:$LINENO: result: not found" >&5
9233 $as_echo "not found" >&6; }
9234 if test x = xfail; then
9235 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9236 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9237 { (exit 1); exit 1; }; }
9244 if test x$have_gnome = xyes ; then
9245 cat >>confdefs.h <<\_ACEOF
9246 #define FEAT_GUI_GNOME 1
9247 _ACEOF
9249 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9250 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9260 if test -z "$SKIP_MOTIF"; then
9261 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"
9262 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9264 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9265 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9266 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9267 GUI_INC_LOC=
9268 for try in $gui_includes; do
9269 if test -f "$try/Xm/Xm.h"; then
9270 GUI_INC_LOC=$try
9272 done
9273 if test -n "$GUI_INC_LOC"; then
9274 if test "$GUI_INC_LOC" = /usr/include; then
9275 GUI_INC_LOC=
9276 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9277 $as_echo "in default path" >&6; }
9278 else
9279 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9280 $as_echo "$GUI_INC_LOC" >&6; }
9282 else
9283 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9284 $as_echo "<not found>" >&6; }
9285 SKIP_MOTIF=YES
9290 if test -z "$SKIP_MOTIF"; then
9291 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9292 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9294 # Check whether --with-motif-lib was given.
9295 if test "${with_motif_lib+set}" = set; then
9296 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9300 if test -n "$MOTIF_LIBNAME"; then
9301 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9302 $as_echo "$MOTIF_LIBNAME" >&6; }
9303 GUI_LIB_LOC=
9304 else
9305 { $as_echo "$as_me:$LINENO: result: no" >&5
9306 $as_echo "no" >&6; }
9308 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9310 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9311 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9312 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"
9313 GUI_LIB_LOC=
9314 for try in $gui_libs; do
9315 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9316 if test -f "$libtry"; then
9317 GUI_LIB_LOC=$try
9319 done
9320 done
9321 if test -n "$GUI_LIB_LOC"; then
9322 if test "$GUI_LIB_LOC" = /usr/lib; then
9323 GUI_LIB_LOC=
9324 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9325 $as_echo "in default path" >&6; }
9326 else
9327 if test -n "$GUI_LIB_LOC"; then
9328 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9329 $as_echo "$GUI_LIB_LOC" >&6; }
9330 if test "`(uname) 2>/dev/null`" = SunOS &&
9331 uname -r | grep '^5' >/dev/null; then
9332 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9336 MOTIF_LIBNAME=-lXm
9337 else
9338 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9339 $as_echo "<not found>" >&6; }
9340 SKIP_MOTIF=YES
9345 if test -z "$SKIP_MOTIF"; then
9346 SKIP_ATHENA=YES
9347 SKIP_NEXTAW=YES
9348 GUITYPE=MOTIF
9353 GUI_X_LIBS=
9355 if test -z "$SKIP_ATHENA"; then
9356 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9357 $as_echo_n "checking if Athena header files can be found... " >&6; }
9358 cflags_save=$CFLAGS
9359 CFLAGS="$CFLAGS $X_CFLAGS"
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9367 #include <X11/Intrinsic.h>
9368 #include <X11/Xaw/Paned.h>
9370 main ()
9374 return 0;
9376 _ACEOF
9377 rm -f conftest.$ac_objext
9378 if { (ac_try="$ac_compile"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9384 $as_echo "$ac_try_echo") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.$ac_objext; then
9395 { $as_echo "$as_me:$LINENO: result: yes" >&5
9396 $as_echo "yes" >&6; }
9397 else
9398 $as_echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 { $as_echo "$as_me:$LINENO: result: no" >&5
9402 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 CFLAGS=$cflags_save
9409 if test -z "$SKIP_ATHENA"; then
9410 GUITYPE=ATHENA
9413 if test -z "$SKIP_NEXTAW"; then
9414 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9415 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9416 cflags_save=$CFLAGS
9417 CFLAGS="$CFLAGS $X_CFLAGS"
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h. */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9425 #include <X11/Intrinsic.h>
9426 #include <X11/neXtaw/Paned.h>
9428 main ()
9432 return 0;
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (ac_try="$ac_compile"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9453 { $as_echo "$as_me:$LINENO: result: yes" >&5
9454 $as_echo "yes" >&6; }
9455 else
9456 $as_echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 { $as_echo "$as_me:$LINENO: result: no" >&5
9460 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 CFLAGS=$cflags_save
9467 if test -z "$SKIP_NEXTAW"; then
9468 GUITYPE=NEXTAW
9471 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9472 if test -n "$GUI_INC_LOC"; then
9473 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9475 if test -n "$GUI_LIB_LOC"; then
9476 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9479 ldflags_save=$LDFLAGS
9480 LDFLAGS="$X_LIBS $LDFLAGS"
9481 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9482 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9483 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9484 $as_echo_n "(cached) " >&6
9485 else
9486 ac_check_lib_save_LIBS=$LIBS
9487 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9488 cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9495 /* Override any GCC internal prototype to avoid an error.
9496 Use char because int might match the return type of a GCC
9497 builtin and then its argument prototype would still apply. */
9498 #ifdef __cplusplus
9499 extern "C"
9500 #endif
9501 char XShapeQueryExtension ();
9503 main ()
9505 return XShapeQueryExtension ();
9507 return 0;
9509 _ACEOF
9510 rm -f conftest.$ac_objext conftest$ac_exeext
9511 if { (ac_try="$ac_link"
9512 case "(($ac_try" in
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9515 esac
9516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9517 $as_echo "$ac_try_echo") >&5
9518 (eval "$ac_link") 2>conftest.er1
9519 ac_status=$?
9520 grep -v '^ *+' conftest.er1 >conftest.err
9521 rm -f conftest.er1
9522 cat conftest.err >&5
9523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } && {
9525 test -z "$ac_c_werror_flag" ||
9526 test ! -s conftest.err
9527 } && test -s conftest$ac_exeext && {
9528 test "$cross_compiling" = yes ||
9529 $as_test_x conftest$ac_exeext
9530 }; then
9531 ac_cv_lib_Xext_XShapeQueryExtension=yes
9532 else
9533 $as_echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9536 ac_cv_lib_Xext_XShapeQueryExtension=no
9539 rm -rf conftest.dSYM
9540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9545 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9546 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9547 GUI_X_LIBS="-lXext"
9550 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9551 $as_echo_n "checking for wslen in -lw... " >&6; }
9552 if test "${ac_cv_lib_w_wslen+set}" = set; then
9553 $as_echo_n "(cached) " >&6
9554 else
9555 ac_check_lib_save_LIBS=$LIBS
9556 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9564 /* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char wslen ();
9572 main ()
9574 return wslen ();
9576 return 0;
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9586 $as_echo "$ac_try_echo") >&5
9587 (eval "$ac_link") 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_c_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest$ac_exeext && {
9597 test "$cross_compiling" = yes ||
9598 $as_test_x conftest$ac_exeext
9599 }; then
9600 ac_cv_lib_w_wslen=yes
9601 else
9602 $as_echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 ac_cv_lib_w_wslen=no
9608 rm -rf conftest.dSYM
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9613 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9614 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9615 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9619 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9620 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9621 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9622 $as_echo_n "(cached) " >&6
9623 else
9624 ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char dlsym ();
9641 main ()
9643 return dlsym ();
9645 return 0;
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9650 case "(($ac_try" in
9651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652 *) ac_try_echo=$ac_try;;
9653 esac
9654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9655 $as_echo "$ac_try_echo") >&5
9656 (eval "$ac_link") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } && {
9663 test -z "$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 } && test -s conftest$ac_exeext && {
9666 test "$cross_compiling" = yes ||
9667 $as_test_x conftest$ac_exeext
9668 }; then
9669 ac_cv_lib_dl_dlsym=yes
9670 else
9671 $as_echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9674 ac_cv_lib_dl_dlsym=no
9677 rm -rf conftest.dSYM
9678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_lib_save_LIBS
9682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9683 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9684 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9685 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9688 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9689 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9690 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9691 $as_echo_n "(cached) " >&6
9692 else
9693 ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9702 /* Override any GCC internal prototype to avoid an error.
9703 Use char because int might match the return type of a GCC
9704 builtin and then its argument prototype would still apply. */
9705 #ifdef __cplusplus
9706 extern "C"
9707 #endif
9708 char XmuCreateStippledPixmap ();
9710 main ()
9712 return XmuCreateStippledPixmap ();
9714 return 0;
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (ac_try="$ac_link"
9719 case "(($ac_try" in
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9722 esac
9723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9724 $as_echo "$ac_try_echo") >&5
9725 (eval "$ac_link") 2>conftest.er1
9726 ac_status=$?
9727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
9730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext && {
9735 test "$cross_compiling" = yes ||
9736 $as_test_x conftest$ac_exeext
9737 }; then
9738 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9739 else
9740 $as_echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9746 rm -rf conftest.dSYM
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9752 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9753 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9754 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9757 if test -z "$SKIP_MOTIF"; then
9758 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9759 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9760 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9761 $as_echo_n "(cached) " >&6
9762 else
9763 ac_check_lib_save_LIBS=$LIBS
9764 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9765 cat >conftest.$ac_ext <<_ACEOF
9766 /* confdefs.h. */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9772 /* Override any GCC internal prototype to avoid an error.
9773 Use char because int might match the return type of a GCC
9774 builtin and then its argument prototype would still apply. */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 char XpEndJob ();
9780 main ()
9782 return XpEndJob ();
9784 return 0;
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_link") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest$ac_exeext && {
9805 test "$cross_compiling" = yes ||
9806 $as_test_x conftest$ac_exeext
9807 }; then
9808 ac_cv_lib_Xp_XpEndJob=yes
9809 else
9810 $as_echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 ac_cv_lib_Xp_XpEndJob=no
9816 rm -rf conftest.dSYM
9817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9818 conftest$ac_exeext conftest.$ac_ext
9819 LIBS=$ac_check_lib_save_LIBS
9821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9822 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9823 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9824 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9828 LDFLAGS=$ldflags_save
9830 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9831 $as_echo_n "checking for extra X11 defines... " >&6; }
9832 NARROW_PROTO=
9833 rm -fr conftestdir
9834 if mkdir conftestdir; then
9835 cd conftestdir
9836 cat > Imakefile <<'EOF'
9837 acfindx:
9838 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9840 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9841 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9843 cd ..
9844 rm -fr conftestdir
9846 if test -z "$NARROW_PROTO"; then
9847 { $as_echo "$as_me:$LINENO: result: no" >&5
9848 $as_echo "no" >&6; }
9849 else
9850 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9851 $as_echo "$NARROW_PROTO" >&6; }
9856 if test "$enable_xsmp" = "yes"; then
9857 cppflags_save=$CPPFLAGS
9858 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9860 for ac_header in X11/SM/SMlib.h
9862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 $as_echo_n "checking for $ac_header... " >&6; }
9866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9867 $as_echo_n "(cached) " >&6
9869 ac_res=`eval 'as_val=${'$as_ac_Header'}
9870 $as_echo "$as_val"'`
9871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9872 $as_echo "$ac_res" >&6; }
9873 else
9874 # Is the header compilable?
9875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9876 $as_echo_n "checking $ac_header usability... " >&6; }
9877 cat >conftest.$ac_ext <<_ACEOF
9878 /* confdefs.h. */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 $ac_includes_default
9884 #include <$ac_header>
9885 _ACEOF
9886 rm -f conftest.$ac_objext
9887 if { (ac_try="$ac_compile"
9888 case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891 esac
9892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9893 $as_echo "$ac_try_echo") >&5
9894 (eval "$ac_compile") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest.$ac_objext; then
9904 ac_header_compiler=yes
9905 else
9906 $as_echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9909 ac_header_compiler=no
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9914 $as_echo "$ac_header_compiler" >&6; }
9916 # Is the header present?
9917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9918 $as_echo_n "checking $ac_header presence... " >&6; }
9919 cat >conftest.$ac_ext <<_ACEOF
9920 /* confdefs.h. */
9921 _ACEOF
9922 cat confdefs.h >>conftest.$ac_ext
9923 cat >>conftest.$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 #include <$ac_header>
9926 _ACEOF
9927 if { (ac_try="$ac_cpp conftest.$ac_ext"
9928 case "(($ac_try" in
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9931 esac
9932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9933 $as_echo "$ac_try_echo") >&5
9934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } >/dev/null && {
9941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 }; then
9944 ac_header_preproc=yes
9945 else
9946 $as_echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_header_preproc=no
9952 rm -f conftest.err conftest.$ac_ext
9953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9954 $as_echo "$ac_header_preproc" >&6; }
9956 # So? What about this header?
9957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9958 yes:no: )
9959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9963 ac_header_preproc=yes
9965 no:yes:* )
9966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9980 esac
9981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9982 $as_echo_n "checking for $ac_header... " >&6; }
9983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9984 $as_echo_n "(cached) " >&6
9985 else
9986 eval "$as_ac_Header=\$ac_header_preproc"
9988 ac_res=`eval 'as_val=${'$as_ac_Header'}
9989 $as_echo "$as_val"'`
9990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9991 $as_echo "$ac_res" >&6; }
9994 as_val=`eval 'as_val=${'$as_ac_Header'}
9995 $as_echo "$as_val"'`
9996 if test "x$as_val" = x""yes; then
9997 cat >>confdefs.h <<_ACEOF
9998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999 _ACEOF
10003 done
10005 CPPFLAGS=$cppflags_save
10009 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
10010 cppflags_save=$CPPFLAGS
10011 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10014 for ac_header in X11/xpm.h X11/Sunkeysym.h
10016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 $as_echo_n "checking for $ac_header... " >&6; }
10020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10021 $as_echo_n "(cached) " >&6
10023 ac_res=`eval 'as_val=${'$as_ac_Header'}
10024 $as_echo "$as_val"'`
10025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10026 $as_echo "$ac_res" >&6; }
10027 else
10028 # Is the header compilable?
10029 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10030 $as_echo_n "checking $ac_header usability... " >&6; }
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10038 #include <$ac_header>
10039 _ACEOF
10040 rm -f conftest.$ac_objext
10041 if { (ac_try="$ac_compile"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10047 $as_echo "$ac_try_echo") >&5
10048 (eval "$ac_compile") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest.$ac_objext; then
10058 ac_header_compiler=yes
10059 else
10060 $as_echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 ac_header_compiler=no
10066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10068 $as_echo "$ac_header_compiler" >&6; }
10070 # Is the header present?
10071 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10072 $as_echo_n "checking $ac_header presence... " >&6; }
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 #include <$ac_header>
10080 _ACEOF
10081 if { (ac_try="$ac_cpp conftest.$ac_ext"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085 esac
10086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10087 $as_echo "$ac_try_echo") >&5
10088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } >/dev/null && {
10095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10096 test ! -s conftest.err
10097 }; then
10098 ac_header_preproc=yes
10099 else
10100 $as_echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 ac_header_preproc=no
10106 rm -f conftest.err conftest.$ac_ext
10107 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10108 $as_echo "$ac_header_preproc" >&6; }
10110 # So? What about this header?
10111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10112 yes:no: )
10113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10114 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10117 ac_header_preproc=yes
10119 no:yes:* )
10120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10121 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10123 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10125 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10127 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10131 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10134 esac
10135 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10136 $as_echo_n "checking for $ac_header... " >&6; }
10137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10138 $as_echo_n "(cached) " >&6
10139 else
10140 eval "$as_ac_Header=\$ac_header_preproc"
10142 ac_res=`eval 'as_val=${'$as_ac_Header'}
10143 $as_echo "$as_val"'`
10144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10145 $as_echo "$ac_res" >&6; }
10148 as_val=`eval 'as_val=${'$as_ac_Header'}
10149 $as_echo "$as_val"'`
10150 if test "x$as_val" = x""yes; then
10151 cat >>confdefs.h <<_ACEOF
10152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10153 _ACEOF
10157 done
10160 if test ! "$enable_xim" = "no"; then
10161 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10162 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10163 cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h. */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10169 #include <X11/Xlib.h>
10170 _ACEOF
10171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10172 $EGREP "XIMText" >/dev/null 2>&1; then
10173 { $as_echo "$as_me:$LINENO: result: yes" >&5
10174 $as_echo "yes" >&6; }
10175 else
10176 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10177 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10179 rm -f conftest*
10182 CPPFLAGS=$cppflags_save
10184 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10185 -a "x$GUITYPE" != "xNONE" ; then
10186 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10187 $as_echo "X GUI selected; xim has been enabled" >&6; }
10188 enable_xim="yes"
10192 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10193 cppflags_save=$CPPFLAGS
10194 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10195 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10196 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h. */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10204 #include <X11/Intrinsic.h>
10205 #include <X11/Xmu/Editres.h>
10207 main ()
10209 int i; i = 0;
10211 return 0;
10213 _ACEOF
10214 rm -f conftest.$ac_objext
10215 if { (ac_try="$ac_compile"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10221 $as_echo "$ac_try_echo") >&5
10222 (eval "$ac_compile") 2>conftest.er1
10223 ac_status=$?
10224 grep -v '^ *+' conftest.er1 >conftest.err
10225 rm -f conftest.er1
10226 cat conftest.err >&5
10227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && {
10229 test -z "$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10231 } && test -s conftest.$ac_objext; then
10232 { $as_echo "$as_me:$LINENO: result: yes" >&5
10233 $as_echo "yes" >&6; }
10234 cat >>confdefs.h <<\_ACEOF
10235 #define HAVE_X11_XMU_EDITRES_H 1
10236 _ACEOF
10238 else
10239 $as_echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 { $as_echo "$as_me:$LINENO: result: no" >&5
10243 $as_echo "no" >&6; }
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 CPPFLAGS=$cppflags_save
10250 if test -z "$SKIP_MOTIF"; then
10251 cppflags_save=$CPPFLAGS
10252 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10260 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10261 Xm/UnhighlightT.h Xm/Notebook.h
10263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10266 $as_echo_n "checking for $ac_header... " >&6; }
10267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10268 $as_echo_n "(cached) " >&6
10270 ac_res=`eval 'as_val=${'$as_ac_Header'}
10271 $as_echo "$as_val"'`
10272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10273 $as_echo "$ac_res" >&6; }
10274 else
10275 # Is the header compilable?
10276 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10277 $as_echo_n "checking $ac_header usability... " >&6; }
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h. */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 $ac_includes_default
10285 #include <$ac_header>
10286 _ACEOF
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292 esac
10293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10294 $as_echo "$ac_try_echo") >&5
10295 (eval "$ac_compile") 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest.$ac_objext; then
10305 ac_header_compiler=yes
10306 else
10307 $as_echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_header_compiler=no
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10315 $as_echo "$ac_header_compiler" >&6; }
10317 # Is the header present?
10318 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10319 $as_echo_n "checking $ac_header presence... " >&6; }
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h. */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <$ac_header>
10327 _ACEOF
10328 if { (ac_try="$ac_cpp conftest.$ac_ext"
10329 case "(($ac_try" in
10330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331 *) ac_try_echo=$ac_try;;
10332 esac
10333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10334 $as_echo "$ac_try_echo") >&5
10335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } >/dev/null && {
10342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 }; then
10345 ac_header_preproc=yes
10346 else
10347 $as_echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_header_preproc=no
10353 rm -f conftest.err conftest.$ac_ext
10354 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10355 $as_echo "$ac_header_preproc" >&6; }
10357 # So? What about this header?
10358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10359 yes:no: )
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10361 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10364 ac_header_preproc=yes
10366 no:yes:* )
10367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10368 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10370 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10378 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10381 esac
10382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10383 $as_echo_n "checking for $ac_header... " >&6; }
10384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10385 $as_echo_n "(cached) " >&6
10386 else
10387 eval "$as_ac_Header=\$ac_header_preproc"
10389 ac_res=`eval 'as_val=${'$as_ac_Header'}
10390 $as_echo "$as_val"'`
10391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10392 $as_echo "$ac_res" >&6; }
10395 as_val=`eval 'as_val=${'$as_ac_Header'}
10396 $as_echo "$as_val"'`
10397 if test "x$as_val" = x""yes; then
10398 cat >>confdefs.h <<_ACEOF
10399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400 _ACEOF
10404 done
10407 if test $ac_cv_header_Xm_XpmP_h = yes; then
10408 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10409 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10410 cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h. */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h. */
10416 #include <Xm/XpmP.h>
10418 main ()
10420 XpmAttributes_21 attr;
10422 return 0;
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (ac_try="$ac_compile"
10427 case "(($ac_try" in
10428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10430 esac
10431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10432 $as_echo "$ac_try_echo") >&5
10433 (eval "$ac_compile") 2>conftest.er1
10434 ac_status=$?
10435 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1
10437 cat conftest.err >&5
10438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && {
10440 test -z "$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest.$ac_objext; then
10443 { $as_echo "$as_me:$LINENO: result: yes" >&5
10444 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10445 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10446 _ACEOF
10448 else
10449 $as_echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 { $as_echo "$as_me:$LINENO: result: no" >&5
10453 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10454 #define XPMATTRIBUTES_TYPE XpmAttributes
10455 _ACEOF
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 else
10462 cat >>confdefs.h <<\_ACEOF
10463 #define XPMATTRIBUTES_TYPE XpmAttributes
10464 _ACEOF
10467 CPPFLAGS=$cppflags_save
10470 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10471 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10472 $as_echo "no GUI selected; xim has been disabled" >&6; }
10473 enable_xim="no"
10475 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10476 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10477 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10478 enable_fontset="no"
10480 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10481 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10482 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10483 enable_fontset="no"
10486 if test -z "$SKIP_PHOTON"; then
10487 GUITYPE=PHOTONGUI
10495 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10496 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10497 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10498 { (exit 1); exit 1; }; }
10501 if test "$enable_xim" = "yes"; then
10502 cat >>confdefs.h <<\_ACEOF
10503 #define FEAT_XIM 1
10504 _ACEOF
10507 if test "$enable_fontset" = "yes"; then
10508 cat >>confdefs.h <<\_ACEOF
10509 #define FEAT_XFONTSET 1
10510 _ACEOF
10517 if test "$enable_hangulinput" = "yes"; then
10518 if test "x$GUITYPE" = "xNONE"; then
10519 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10520 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10521 enable_hangulinput=no
10522 else
10523 cat >>confdefs.h <<\_ACEOF
10524 #define FEAT_HANGULIN 1
10525 _ACEOF
10527 HANGULIN_SRC=hangulin.c
10529 HANGULIN_OBJ=objects/hangulin.o
10534 { $as_echo "$as_me:$LINENO: checking --disable-uimfep argument" >&5
10535 $as_echo_n "checking --disable-uimfep argument... " >&6; }
10536 # Check whether --enable-uimfep was given.
10537 if test "${enable_uimfep+set}" = set; then
10538 enableval=$enable_uimfep;
10539 else
10540 enable_uimfep="yes"
10543 if test "$enable_uimfep" = "yes"; then
10544 { $as_echo "$as_me:$LINENO: result: no" >&5
10545 $as_echo "no" >&6; }
10546 cat >>confdefs.h <<\_ACEOF
10547 #define FEAT_UIMFEP 1
10548 _ACEOF
10550 else
10551 { $as_echo "$as_me:$LINENO: result: yes" >&5
10552 $as_echo "yes" >&6; }
10557 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10558 $as_echo_n "checking whether toupper is broken... " >&6; }
10559 if test "${vim_cv_toupper_broken+set}" = set; then
10560 $as_echo_n "(cached) " >&6
10561 else
10563 if test "$cross_compiling" = yes; then
10565 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10566 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10567 { (exit 1); exit 1; }; }
10569 else
10570 cat >conftest.$ac_ext <<_ACEOF
10572 #include "confdefs.h"
10573 #include <ctype.h>
10574 #if STDC_HEADERS
10575 # include <stdlib.h>
10576 # include <stddef.h>
10577 #endif
10578 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10580 _ACEOF
10581 rm -f conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588 $as_echo "$ac_try_echo") >&5
10589 (eval "$ac_link") 2>&5
10590 ac_status=$?
10591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596 esac
10597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10598 $as_echo "$ac_try_echo") >&5
10599 (eval "$ac_try") 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10604 vim_cv_toupper_broken=yes
10606 else
10607 $as_echo "$as_me: program exited with status $ac_status" >&5
10608 $as_echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10611 ( exit $ac_status )
10613 vim_cv_toupper_broken=no
10616 rm -rf conftest.dSYM
10617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10622 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10623 $as_echo "$vim_cv_toupper_broken" >&6; }
10625 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define BROKEN_TOUPPER 1
10628 _ACEOF
10632 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10633 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 #include <stdio.h>
10642 main ()
10644 printf("(" __DATE__ " " __TIME__ ")");
10646 return 0;
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654 esac
10655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657 (eval "$ac_compile") 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest.$ac_objext; then
10667 { $as_echo "$as_me:$LINENO: result: yes" >&5
10668 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_DATE_TIME 1
10670 _ACEOF
10672 else
10673 $as_echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10676 { $as_echo "$as_me:$LINENO: result: no" >&5
10677 $as_echo "no" >&6; }
10680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10683 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h. */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <stdio.h>
10692 main ()
10694 int x __attribute__((unused));
10696 return 0;
10698 _ACEOF
10699 rm -f conftest.$ac_objext
10700 if { (ac_try="$ac_compile"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10706 $as_echo "$ac_try_echo") >&5
10707 (eval "$ac_compile") 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } && {
10714 test -z "$ac_c_werror_flag" ||
10715 test ! -s conftest.err
10716 } && test -s conftest.$ac_objext; then
10717 { $as_echo "$as_me:$LINENO: result: yes" >&5
10718 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10719 #define HAVE_ATTRIBUTE_UNUSED 1
10720 _ACEOF
10722 else
10723 $as_echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 { $as_echo "$as_me:$LINENO: result: no" >&5
10727 $as_echo "no" >&6; }
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 if test "${ac_cv_header_elf_h+set}" = set; then
10733 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10734 $as_echo_n "checking for elf.h... " >&6; }
10735 if test "${ac_cv_header_elf_h+set}" = set; then
10736 $as_echo_n "(cached) " >&6
10738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10739 $as_echo "$ac_cv_header_elf_h" >&6; }
10740 else
10741 # Is the header compilable?
10742 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10743 $as_echo_n "checking elf.h usability... " >&6; }
10744 cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h. */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h. */
10750 $ac_includes_default
10751 #include <elf.h>
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (ac_try="$ac_compile"
10755 case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10760 $as_echo "$ac_try_echo") >&5
10761 (eval "$ac_compile") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest.$ac_objext; then
10771 ac_header_compiler=yes
10772 else
10773 $as_echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10776 ac_header_compiler=no
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10781 $as_echo "$ac_header_compiler" >&6; }
10783 # Is the header present?
10784 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10785 $as_echo_n "checking elf.h presence... " >&6; }
10786 cat >conftest.$ac_ext <<_ACEOF
10787 /* confdefs.h. */
10788 _ACEOF
10789 cat confdefs.h >>conftest.$ac_ext
10790 cat >>conftest.$ac_ext <<_ACEOF
10791 /* end confdefs.h. */
10792 #include <elf.h>
10793 _ACEOF
10794 if { (ac_try="$ac_cpp conftest.$ac_ext"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10800 $as_echo "$ac_try_echo") >&5
10801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } >/dev/null && {
10808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 }; then
10811 ac_header_preproc=yes
10812 else
10813 $as_echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10816 ac_header_preproc=no
10819 rm -f conftest.err conftest.$ac_ext
10820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10821 $as_echo "$ac_header_preproc" >&6; }
10823 # So? What about this header?
10824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10825 yes:no: )
10826 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10827 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10828 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10829 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10830 ac_header_preproc=yes
10832 no:yes:* )
10833 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10834 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10835 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10836 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10837 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10838 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10839 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10840 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10841 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10842 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10843 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10844 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10847 esac
10848 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10849 $as_echo_n "checking for elf.h... " >&6; }
10850 if test "${ac_cv_header_elf_h+set}" = set; then
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_cv_header_elf_h=$ac_header_preproc
10855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10856 $as_echo "$ac_cv_header_elf_h" >&6; }
10859 if test "x$ac_cv_header_elf_h" = x""yes; then
10860 HAS_ELF=1
10864 if test "$HAS_ELF" = 1; then
10866 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10867 $as_echo_n "checking for main in -lelf... " >&6; }
10868 if test "${ac_cv_lib_elf_main+set}" = set; then
10869 $as_echo_n "(cached) " >&6
10870 else
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lelf $LIBS"
10873 cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h. */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10882 main ()
10884 return main ();
10886 return 0;
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10909 }; then
10910 ac_cv_lib_elf_main=yes
10911 else
10912 $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 ac_cv_lib_elf_main=no
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10921 LIBS=$ac_check_lib_save_LIBS
10923 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10924 $as_echo "$ac_cv_lib_elf_main" >&6; }
10925 if test "x$ac_cv_lib_elf_main" = x""yes; then
10926 cat >>confdefs.h <<_ACEOF
10927 #define HAVE_LIBELF 1
10928 _ACEOF
10930 LIBS="-lelf $LIBS"
10941 ac_header_dirent=no
10942 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10943 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10944 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10945 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10947 $as_echo_n "(cached) " >&6
10948 else
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 #include <sys/types.h>
10956 #include <$ac_hdr>
10959 main ()
10961 if ((DIR *) 0)
10962 return 0;
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (ac_try="$ac_compile"
10969 case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972 esac
10973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10974 $as_echo "$ac_try_echo") >&5
10975 (eval "$ac_compile") 2>conftest.er1
10976 ac_status=$?
10977 grep -v '^ *+' conftest.er1 >conftest.err
10978 rm -f conftest.er1
10979 cat conftest.err >&5
10980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && {
10982 test -z "$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10984 } && test -s conftest.$ac_objext; then
10985 eval "$as_ac_Header=yes"
10986 else
10987 $as_echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 eval "$as_ac_Header=no"
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10995 ac_res=`eval 'as_val=${'$as_ac_Header'}
10996 $as_echo "$as_val"'`
10997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998 $as_echo "$ac_res" >&6; }
10999 as_val=`eval 'as_val=${'$as_ac_Header'}
11000 $as_echo "$as_val"'`
11001 if test "x$as_val" = x""yes; then
11002 cat >>confdefs.h <<_ACEOF
11003 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11004 _ACEOF
11006 ac_header_dirent=$ac_hdr; break
11009 done
11010 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11011 if test $ac_header_dirent = dirent.h; then
11012 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11013 $as_echo_n "checking for library containing opendir... " >&6; }
11014 if test "${ac_cv_search_opendir+set}" = set; then
11015 $as_echo_n "(cached) " >&6
11016 else
11017 ac_func_search_save_LIBS=$LIBS
11018 cat >conftest.$ac_ext <<_ACEOF
11019 /* confdefs.h. */
11020 _ACEOF
11021 cat confdefs.h >>conftest.$ac_ext
11022 cat >>conftest.$ac_ext <<_ACEOF
11023 /* end confdefs.h. */
11025 /* Override any GCC internal prototype to avoid an error.
11026 Use char because int might match the return type of a GCC
11027 builtin and then its argument prototype would still apply. */
11028 #ifdef __cplusplus
11029 extern "C"
11030 #endif
11031 char opendir ();
11033 main ()
11035 return opendir ();
11037 return 0;
11039 _ACEOF
11040 for ac_lib in '' dir; do
11041 if test -z "$ac_lib"; then
11042 ac_res="none required"
11043 else
11044 ac_res=-l$ac_lib
11045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (ac_try="$ac_link"
11049 case "(($ac_try" in
11050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051 *) ac_try_echo=$ac_try;;
11052 esac
11053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11054 $as_echo "$ac_try_echo") >&5
11055 (eval "$ac_link") 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest$ac_exeext && {
11065 test "$cross_compiling" = yes ||
11066 $as_test_x conftest$ac_exeext
11067 }; then
11068 ac_cv_search_opendir=$ac_res
11069 else
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11076 rm -rf conftest.dSYM
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext
11079 if test "${ac_cv_search_opendir+set}" = set; then
11080 break
11082 done
11083 if test "${ac_cv_search_opendir+set}" = set; then
11085 else
11086 ac_cv_search_opendir=no
11088 rm conftest.$ac_ext
11089 LIBS=$ac_func_search_save_LIBS
11091 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11092 $as_echo "$ac_cv_search_opendir" >&6; }
11093 ac_res=$ac_cv_search_opendir
11094 if test "$ac_res" != no; then
11095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11099 else
11100 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
11101 $as_echo_n "checking for library containing opendir... " >&6; }
11102 if test "${ac_cv_search_opendir+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11104 else
11105 ac_func_search_save_LIBS=$LIBS
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h. */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char opendir ();
11121 main ()
11123 return opendir ();
11125 return 0;
11127 _ACEOF
11128 for ac_lib in '' x; do
11129 if test -z "$ac_lib"; then
11130 ac_res="none required"
11131 else
11132 ac_res=-l$ac_lib
11133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140 esac
11141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11142 $as_echo "$ac_try_echo") >&5
11143 (eval "$ac_link") 2>conftest.er1
11144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest$ac_exeext && {
11153 test "$cross_compiling" = yes ||
11154 $as_test_x conftest$ac_exeext
11155 }; then
11156 ac_cv_search_opendir=$ac_res
11157 else
11158 $as_echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11164 rm -rf conftest.dSYM
11165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11166 conftest$ac_exeext
11167 if test "${ac_cv_search_opendir+set}" = set; then
11168 break
11170 done
11171 if test "${ac_cv_search_opendir+set}" = set; then
11173 else
11174 ac_cv_search_opendir=no
11176 rm conftest.$ac_ext
11177 LIBS=$ac_func_search_save_LIBS
11179 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11180 $as_echo "$ac_cv_search_opendir" >&6; }
11181 ac_res=$ac_cv_search_opendir
11182 if test "$ac_res" != no; then
11183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11190 if test $ac_cv_header_sys_wait_h = no; then
11191 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11192 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h. */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <sys/wait.h>
11201 main ()
11203 union wait xx, yy; xx = yy
11205 return 0;
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.$ac_objext; then
11226 { $as_echo "$as_me:$LINENO: result: yes" >&5
11227 $as_echo "yes" >&6; }
11228 cat >>confdefs.h <<\_ACEOF
11229 #define HAVE_SYS_WAIT_H 1
11230 _ACEOF
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_UNION_WAIT 1
11234 _ACEOF
11236 else
11237 $as_echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 { $as_echo "$as_me:$LINENO: result: no" >&5
11241 $as_echo "no" >&6; }
11244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11288 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11289 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11290 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11291 migemo.h \
11292 sys/resource.h sys/systeminfo.h locale.h \
11293 sys/stream.h termios.h libc.h sys/statfs.h \
11294 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11295 libgen.h util/debug.h util/msg18n.h frame.h \
11296 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 $as_echo_n "checking for $ac_header... " >&6; }
11302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11303 $as_echo_n "(cached) " >&6
11305 ac_res=`eval 'as_val=${'$as_ac_Header'}
11306 $as_echo "$as_val"'`
11307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11308 $as_echo "$ac_res" >&6; }
11309 else
11310 # Is the header compilable?
11311 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 $as_echo_n "checking $ac_header usability... " >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 #include <$ac_header>
11321 _ACEOF
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11329 $as_echo "$ac_try_echo") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest.$ac_objext; then
11340 ac_header_compiler=yes
11341 else
11342 $as_echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_header_compiler=no
11348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350 $as_echo "$ac_header_compiler" >&6; }
11352 # Is the header present?
11353 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11354 $as_echo_n "checking $ac_header presence... " >&6; }
11355 cat >conftest.$ac_ext <<_ACEOF
11356 /* confdefs.h. */
11357 _ACEOF
11358 cat confdefs.h >>conftest.$ac_ext
11359 cat >>conftest.$ac_ext <<_ACEOF
11360 /* end confdefs.h. */
11361 #include <$ac_header>
11362 _ACEOF
11363 if { (ac_try="$ac_cpp conftest.$ac_ext"
11364 case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367 esac
11368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11369 $as_echo "$ac_try_echo") >&5
11370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } >/dev/null && {
11377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 }; then
11380 ac_header_preproc=yes
11381 else
11382 $as_echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_header_preproc=no
11388 rm -f conftest.err conftest.$ac_ext
11389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11390 $as_echo "$ac_header_preproc" >&6; }
11392 # So? What about this header?
11393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 yes:no: )
11395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11396 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11399 ac_header_preproc=yes
11401 no:yes:* )
11402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11403 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11405 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11407 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11409 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11411 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11413 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11416 esac
11417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11418 $as_echo_n "checking for $ac_header... " >&6; }
11419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11420 $as_echo_n "(cached) " >&6
11421 else
11422 eval "$as_ac_Header=\$ac_header_preproc"
11424 ac_res=`eval 'as_val=${'$as_ac_Header'}
11425 $as_echo "$as_val"'`
11426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11427 $as_echo "$ac_res" >&6; }
11430 as_val=`eval 'as_val=${'$as_ac_Header'}
11431 $as_echo "$as_val"'`
11432 if test "x$as_val" = x""yes; then
11433 cat >>confdefs.h <<_ACEOF
11434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11435 _ACEOF
11439 done
11443 for ac_header in sys/ptem.h
11445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11447 $as_echo_n "checking for $ac_header... " >&6; }
11448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 $as_echo_n "(cached) " >&6
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 #if defined HAVE_SYS_STREAM_H
11458 # include <sys/stream.h>
11459 #endif
11461 #include <$ac_header>
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (ac_try="$ac_compile"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470 $as_echo "$ac_try_echo") >&5
11471 (eval "$ac_compile") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest.$ac_objext; then
11481 eval "$as_ac_Header=yes"
11482 else
11483 $as_echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 eval "$as_ac_Header=no"
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 ac_res=`eval 'as_val=${'$as_ac_Header'}
11492 $as_echo "$as_val"'`
11493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11494 $as_echo "$ac_res" >&6; }
11495 as_val=`eval 'as_val=${'$as_ac_Header'}
11496 $as_echo "$as_val"'`
11497 if test "x$as_val" = x""yes; then
11498 cat >>confdefs.h <<_ACEOF
11499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11500 _ACEOF
11504 done
11508 for ac_header in sys/sysctl.h
11510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11512 $as_echo_n "checking for $ac_header... " >&6; }
11513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11514 $as_echo_n "(cached) " >&6
11515 else
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 #if defined HAVE_SYS_PARAM_H
11523 # include <sys/param.h>
11524 #endif
11526 #include <$ac_header>
11527 _ACEOF
11528 rm -f conftest.$ac_objext
11529 if { (ac_try="$ac_compile"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533 esac
11534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11535 $as_echo "$ac_try_echo") >&5
11536 (eval "$ac_compile") 2>conftest.er1
11537 ac_status=$?
11538 grep -v '^ *+' conftest.er1 >conftest.err
11539 rm -f conftest.er1
11540 cat conftest.err >&5
11541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest.$ac_objext; then
11546 eval "$as_ac_Header=yes"
11547 else
11548 $as_echo "$as_me: failed program was:" >&5
11549 sed 's/^/| /' conftest.$ac_ext >&5
11551 eval "$as_ac_Header=no"
11554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556 ac_res=`eval 'as_val=${'$as_ac_Header'}
11557 $as_echo "$as_val"'`
11558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11559 $as_echo "$ac_res" >&6; }
11560 as_val=`eval 'as_val=${'$as_ac_Header'}
11561 $as_echo "$as_val"'`
11562 if test "x$as_val" = x""yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11565 _ACEOF
11569 done
11573 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11574 $as_echo_n "checking for pthread_np.h... " >&6; }
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11582 #include <pthread.h>
11583 #include <pthread_np.h>
11585 main ()
11587 int i; i = 0;
11589 return 0;
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599 $as_echo "$ac_try_echo") >&5
11600 (eval "$ac_compile") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest.$ac_objext; then
11610 { $as_echo "$as_me:$LINENO: result: yes" >&5
11611 $as_echo "yes" >&6; }
11612 cat >>confdefs.h <<\_ACEOF
11613 #define HAVE_PTHREAD_NP_H 1
11614 _ACEOF
11616 else
11617 $as_echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 { $as_echo "$as_me:$LINENO: result: no" >&5
11621 $as_echo "no" >&6; }
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 for ac_header in strings.h
11629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11632 $as_echo_n "checking for $ac_header... " >&6; }
11633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11634 $as_echo_n "(cached) " >&6
11636 ac_res=`eval 'as_val=${'$as_ac_Header'}
11637 $as_echo "$as_val"'`
11638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11639 $as_echo "$ac_res" >&6; }
11640 else
11641 # Is the header compilable?
11642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 $as_echo_n "checking $ac_header usability... " >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h. */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 #include <$ac_header>
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658 esac
11659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11660 $as_echo "$ac_try_echo") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest.$ac_objext; then
11671 ac_header_compiler=yes
11672 else
11673 $as_echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 ac_header_compiler=no
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11681 $as_echo "$ac_header_compiler" >&6; }
11683 # Is the header present?
11684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11685 $as_echo_n "checking $ac_header presence... " >&6; }
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 #include <$ac_header>
11693 _ACEOF
11694 if { (ac_try="$ac_cpp conftest.$ac_ext"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11700 $as_echo "$ac_try_echo") >&5
11701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11702 ac_status=$?
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
11706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } >/dev/null && {
11708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11709 test ! -s conftest.err
11710 }; then
11711 ac_header_preproc=yes
11712 else
11713 $as_echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 ac_header_preproc=no
11719 rm -f conftest.err conftest.$ac_ext
11720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11721 $as_echo "$ac_header_preproc" >&6; }
11723 # So? What about this header?
11724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11725 yes:no: )
11726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11730 ac_header_preproc=yes
11732 no:yes:* )
11733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11736 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11740 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11747 esac
11748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11749 $as_echo_n "checking for $ac_header... " >&6; }
11750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11751 $as_echo_n "(cached) " >&6
11752 else
11753 eval "$as_ac_Header=\$ac_header_preproc"
11755 ac_res=`eval 'as_val=${'$as_ac_Header'}
11756 $as_echo "$as_val"'`
11757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11758 $as_echo "$ac_res" >&6; }
11761 as_val=`eval 'as_val=${'$as_ac_Header'}
11762 $as_echo "$as_val"'`
11763 if test "x$as_val" = x""yes; then
11764 cat >>confdefs.h <<_ACEOF
11765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11766 _ACEOF
11770 done
11772 if test "x$MACOSX" = "xyes"; then
11773 cat >>confdefs.h <<\_ACEOF
11774 #define NO_STRINGS_WITH_STRING_H 1
11775 _ACEOF
11777 else
11779 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11780 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11781 cppflags_save=$CPPFLAGS
11782 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11790 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11791 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11792 /* but don't do it on AIX 5.1 (Uribarri) */
11793 #endif
11794 #ifdef HAVE_XM_XM_H
11795 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11796 #endif
11797 #ifdef HAVE_STRING_H
11798 # include <string.h>
11799 #endif
11800 #if defined(HAVE_STRINGS_H)
11801 # include <strings.h>
11802 #endif
11805 main ()
11807 int i; i = 0;
11809 return 0;
11811 _ACEOF
11812 rm -f conftest.$ac_objext
11813 if { (ac_try="$ac_compile"
11814 case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817 esac
11818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11819 $as_echo "$ac_try_echo") >&5
11820 (eval "$ac_compile") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest.$ac_objext; then
11830 { $as_echo "$as_me:$LINENO: result: yes" >&5
11831 $as_echo "yes" >&6; }
11832 else
11833 $as_echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 cat >>confdefs.h <<\_ACEOF
11837 #define NO_STRINGS_WITH_STRING_H 1
11838 _ACEOF
11840 { $as_echo "$as_me:$LINENO: result: no" >&5
11841 $as_echo "no" >&6; }
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 CPPFLAGS=$cppflags_save
11848 if test $ac_cv_c_compiler_gnu = yes; then
11849 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11850 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11851 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11853 else
11854 ac_pattern="Autoconf.*'x'"
11855 cat >conftest.$ac_ext <<_ACEOF
11856 /* confdefs.h. */
11857 _ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 #include <sgtty.h>
11862 Autoconf TIOCGETP
11863 _ACEOF
11864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11865 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11866 ac_cv_prog_gcc_traditional=yes
11867 else
11868 ac_cv_prog_gcc_traditional=no
11870 rm -f conftest*
11873 if test $ac_cv_prog_gcc_traditional = no; then
11874 cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h. */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 #include <termio.h>
11881 Autoconf TCGETA
11882 _ACEOF
11883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11884 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11885 ac_cv_prog_gcc_traditional=yes
11887 rm -f conftest*
11891 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11892 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11893 if test $ac_cv_prog_gcc_traditional = yes; then
11894 CC="$CC -traditional"
11898 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11899 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11900 if test "${ac_cv_c_const+set}" = set; then
11901 $as_echo_n "(cached) " >&6
11902 else
11903 cat >conftest.$ac_ext <<_ACEOF
11904 /* confdefs.h. */
11905 _ACEOF
11906 cat confdefs.h >>conftest.$ac_ext
11907 cat >>conftest.$ac_ext <<_ACEOF
11908 /* end confdefs.h. */
11911 main ()
11913 /* FIXME: Include the comments suggested by Paul. */
11914 #ifndef __cplusplus
11915 /* Ultrix mips cc rejects this. */
11916 typedef int charset[2];
11917 const charset cs;
11918 /* SunOS 4.1.1 cc rejects this. */
11919 char const *const *pcpcc;
11920 char **ppc;
11921 /* NEC SVR4.0.2 mips cc rejects this. */
11922 struct point {int x, y;};
11923 static struct point const zero = {0,0};
11924 /* AIX XL C 1.02.0.0 rejects this.
11925 It does not let you subtract one const X* pointer from another in
11926 an arm of an if-expression whose if-part is not a constant
11927 expression */
11928 const char *g = "string";
11929 pcpcc = &g + (g ? g-g : 0);
11930 /* HPUX 7.0 cc rejects these. */
11931 ++pcpcc;
11932 ppc = (char**) pcpcc;
11933 pcpcc = (char const *const *) ppc;
11934 { /* SCO 3.2v4 cc rejects this. */
11935 char *t;
11936 char const *s = 0 ? (char *) 0 : (char const *) 0;
11938 *t++ = 0;
11939 if (s) return 0;
11941 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11942 int x[] = {25, 17};
11943 const int *foo = &x[0];
11944 ++foo;
11946 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11947 typedef const int *iptr;
11948 iptr p = 0;
11949 ++p;
11951 { /* AIX XL C 1.02.0.0 rejects this saying
11952 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11953 struct s { int j; const int *ap[3]; };
11954 struct s *b; b->j = 5;
11956 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11957 const int foo = 10;
11958 if (!foo) return 0;
11960 return !cs[0] && !zero.x;
11961 #endif
11964 return 0;
11966 _ACEOF
11967 rm -f conftest.$ac_objext
11968 if { (ac_try="$ac_compile"
11969 case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972 esac
11973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11974 $as_echo "$ac_try_echo") >&5
11975 (eval "$ac_compile") 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest.$ac_objext; then
11985 ac_cv_c_const=yes
11986 else
11987 $as_echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_cv_c_const=no
11993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11996 $as_echo "$ac_cv_c_const" >&6; }
11997 if test $ac_cv_c_const = no; then
11999 cat >>confdefs.h <<\_ACEOF
12000 #define const /**/
12001 _ACEOF
12005 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
12006 $as_echo_n "checking for working volatile... " >&6; }
12007 if test "${ac_cv_c_volatile+set}" = set; then
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h. */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12018 main ()
12021 volatile int x;
12022 int * volatile y = (int *) 0;
12023 return !x && !y;
12025 return 0;
12027 _ACEOF
12028 rm -f conftest.$ac_objext
12029 if { (ac_try="$ac_compile"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033 esac
12034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12035 $as_echo "$ac_try_echo") >&5
12036 (eval "$ac_compile") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest.$ac_objext; then
12046 ac_cv_c_volatile=yes
12047 else
12048 $as_echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 ac_cv_c_volatile=no
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12057 $as_echo "$ac_cv_c_volatile" >&6; }
12058 if test $ac_cv_c_volatile = no; then
12060 cat >>confdefs.h <<\_ACEOF
12061 #define volatile /**/
12062 _ACEOF
12066 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
12067 $as_echo_n "checking for mode_t... " >&6; }
12068 if test "${ac_cv_type_mode_t+set}" = set; then
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_cv_type_mode_t=no
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 $ac_includes_default
12080 main ()
12082 if (sizeof (mode_t))
12083 return 0;
12085 return 0;
12087 _ACEOF
12088 rm -f conftest.$ac_objext
12089 if { (ac_try="$ac_compile"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_compile") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest.$ac_objext; then
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h. */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 $ac_includes_default
12114 main ()
12116 if (sizeof ((mode_t)))
12117 return 0;
12119 return 0;
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (ac_try="$ac_compile"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12127 esac
12128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12129 $as_echo "$ac_try_echo") >&5
12130 (eval "$ac_compile") 2>conftest.er1
12131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest.$ac_objext; then
12141 else
12142 $as_echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_cv_type_mode_t=yes
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 else
12150 $as_echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12159 $as_echo "$ac_cv_type_mode_t" >&6; }
12160 if test "x$ac_cv_type_mode_t" = x""yes; then
12162 else
12164 cat >>confdefs.h <<_ACEOF
12165 #define mode_t int
12166 _ACEOF
12170 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12171 $as_echo_n "checking for off_t... " >&6; }
12172 if test "${ac_cv_type_off_t+set}" = set; then
12173 $as_echo_n "(cached) " >&6
12174 else
12175 ac_cv_type_off_t=no
12176 cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h. */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 $ac_includes_default
12184 main ()
12186 if (sizeof (off_t))
12187 return 0;
12189 return 0;
12191 _ACEOF
12192 rm -f conftest.$ac_objext
12193 if { (ac_try="$ac_compile"
12194 case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197 esac
12198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12199 $as_echo "$ac_try_echo") >&5
12200 (eval "$ac_compile") 2>conftest.er1
12201 ac_status=$?
12202 grep -v '^ *+' conftest.er1 >conftest.err
12203 rm -f conftest.er1
12204 cat conftest.err >&5
12205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } && {
12207 test -z "$ac_c_werror_flag" ||
12208 test ! -s conftest.err
12209 } && test -s conftest.$ac_objext; then
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 $ac_includes_default
12218 main ()
12220 if (sizeof ((off_t)))
12221 return 0;
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
12245 else
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 ac_cv_type_off_t=yes
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 else
12254 $as_echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12263 $as_echo "$ac_cv_type_off_t" >&6; }
12264 if test "x$ac_cv_type_off_t" = x""yes; then
12266 else
12268 cat >>confdefs.h <<_ACEOF
12269 #define off_t long int
12270 _ACEOF
12274 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12275 $as_echo_n "checking for pid_t... " >&6; }
12276 if test "${ac_cv_type_pid_t+set}" = set; then
12277 $as_echo_n "(cached) " >&6
12278 else
12279 ac_cv_type_pid_t=no
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12288 main ()
12290 if (sizeof (pid_t))
12291 return 0;
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12303 $as_echo "$ac_try_echo") >&5
12304 (eval "$ac_compile") 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } && {
12311 test -z "$ac_c_werror_flag" ||
12312 test ! -s conftest.err
12313 } && test -s conftest.$ac_objext; then
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 $ac_includes_default
12322 main ()
12324 if (sizeof ((pid_t)))
12325 return 0;
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext
12331 if { (ac_try="$ac_compile"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12335 esac
12336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12337 $as_echo "$ac_try_echo") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12349 else
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_type_pid_t=yes
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 else
12358 $as_echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12367 $as_echo "$ac_cv_type_pid_t" >&6; }
12368 if test "x$ac_cv_type_pid_t" = x""yes; then
12370 else
12372 cat >>confdefs.h <<_ACEOF
12373 #define pid_t int
12374 _ACEOF
12378 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12379 $as_echo_n "checking for size_t... " >&6; }
12380 if test "${ac_cv_type_size_t+set}" = set; then
12381 $as_echo_n "(cached) " >&6
12382 else
12383 ac_cv_type_size_t=no
12384 cat >conftest.$ac_ext <<_ACEOF
12385 /* confdefs.h. */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 $ac_includes_default
12392 main ()
12394 if (sizeof (size_t))
12395 return 0;
12397 return 0;
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (ac_try="$ac_compile"
12402 case "(($ac_try" in
12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404 *) ac_try_echo=$ac_try;;
12405 esac
12406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12407 $as_echo "$ac_try_echo") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12409 ac_status=$?
12410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
12413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.$ac_objext; then
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 $ac_includes_default
12426 main ()
12428 if (sizeof ((size_t)))
12429 return 0;
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (ac_try="$ac_compile"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12441 $as_echo "$ac_try_echo") >&5
12442 (eval "$ac_compile") 2>conftest.er1
12443 ac_status=$?
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && {
12449 test -z "$ac_c_werror_flag" ||
12450 test ! -s conftest.err
12451 } && test -s conftest.$ac_objext; then
12453 else
12454 $as_echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12457 ac_cv_type_size_t=yes
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 else
12462 $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12471 $as_echo "$ac_cv_type_size_t" >&6; }
12472 if test "x$ac_cv_type_size_t" = x""yes; then
12474 else
12476 cat >>confdefs.h <<_ACEOF
12477 #define size_t unsigned int
12478 _ACEOF
12482 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12483 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12484 if test "${ac_cv_type_uid_t+set}" = set; then
12485 $as_echo_n "(cached) " >&6
12486 else
12487 cat >conftest.$ac_ext <<_ACEOF
12488 /* confdefs.h. */
12489 _ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 #include <sys/types.h>
12495 _ACEOF
12496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12497 $EGREP "uid_t" >/dev/null 2>&1; then
12498 ac_cv_type_uid_t=yes
12499 else
12500 ac_cv_type_uid_t=no
12502 rm -f conftest*
12505 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12506 $as_echo "$ac_cv_type_uid_t" >&6; }
12507 if test $ac_cv_type_uid_t = no; then
12509 cat >>confdefs.h <<\_ACEOF
12510 #define uid_t int
12511 _ACEOF
12514 cat >>confdefs.h <<\_ACEOF
12515 #define gid_t int
12516 _ACEOF
12520 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12521 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12522 if test "${ac_cv_header_time+set}" = set; then
12523 $as_echo_n "(cached) " >&6
12524 else
12525 cat >conftest.$ac_ext <<_ACEOF
12526 /* confdefs.h. */
12527 _ACEOF
12528 cat confdefs.h >>conftest.$ac_ext
12529 cat >>conftest.$ac_ext <<_ACEOF
12530 /* end confdefs.h. */
12531 #include <sys/types.h>
12532 #include <sys/time.h>
12533 #include <time.h>
12536 main ()
12538 if ((struct tm *) 0)
12539 return 0;
12541 return 0;
12543 _ACEOF
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549 esac
12550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12551 $as_echo "$ac_try_echo") >&5
12552 (eval "$ac_compile") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest.$ac_objext; then
12562 ac_cv_header_time=yes
12563 else
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 ac_cv_header_time=no
12570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12573 $as_echo "$ac_cv_header_time" >&6; }
12574 if test $ac_cv_header_time = yes; then
12576 cat >>confdefs.h <<\_ACEOF
12577 #define TIME_WITH_SYS_TIME 1
12578 _ACEOF
12582 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12583 $as_echo_n "checking for ino_t... " >&6; }
12584 if test "${ac_cv_type_ino_t+set}" = set; then
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_cv_type_ino_t=no
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 $ac_includes_default
12596 main ()
12598 if (sizeof (ino_t))
12599 return 0;
12601 return 0;
12603 _ACEOF
12604 rm -f conftest.$ac_objext
12605 if { (ac_try="$ac_compile"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12611 $as_echo "$ac_try_echo") >&5
12612 (eval "$ac_compile") 2>conftest.er1
12613 ac_status=$?
12614 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1
12616 cat conftest.err >&5
12617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && {
12619 test -z "$ac_c_werror_flag" ||
12620 test ! -s conftest.err
12621 } && test -s conftest.$ac_objext; then
12622 cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h. */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12630 main ()
12632 if (sizeof ((ino_t)))
12633 return 0;
12635 return 0;
12637 _ACEOF
12638 rm -f conftest.$ac_objext
12639 if { (ac_try="$ac_compile"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12643 esac
12644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12645 $as_echo "$ac_try_echo") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12657 else
12658 $as_echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_cv_type_ino_t=yes
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 else
12666 $as_echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12675 $as_echo "$ac_cv_type_ino_t" >&6; }
12676 if test "x$ac_cv_type_ino_t" = x""yes; then
12678 else
12680 cat >>confdefs.h <<_ACEOF
12681 #define ino_t long
12682 _ACEOF
12686 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12687 $as_echo_n "checking for dev_t... " >&6; }
12688 if test "${ac_cv_type_dev_t+set}" = set; then
12689 $as_echo_n "(cached) " >&6
12690 else
12691 ac_cv_type_dev_t=no
12692 cat >conftest.$ac_ext <<_ACEOF
12693 /* confdefs.h. */
12694 _ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 $ac_includes_default
12700 main ()
12702 if (sizeof (dev_t))
12703 return 0;
12705 return 0;
12707 _ACEOF
12708 rm -f conftest.$ac_objext
12709 if { (ac_try="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713 esac
12714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12715 $as_echo "$ac_try_echo") >&5
12716 (eval "$ac_compile") 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest.$ac_objext; then
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 $ac_includes_default
12734 main ()
12736 if (sizeof ((dev_t)))
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
12761 else
12762 $as_echo "$as_me: failed program was:" >&5
12763 sed 's/^/| /' conftest.$ac_ext >&5
12765 ac_cv_type_dev_t=yes
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769 else
12770 $as_echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.$ac_ext >&5
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12779 $as_echo "$ac_cv_type_dev_t" >&6; }
12780 if test "x$ac_cv_type_dev_t" = x""yes; then
12782 else
12784 cat >>confdefs.h <<_ACEOF
12785 #define dev_t unsigned
12786 _ACEOF
12791 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12792 $as_echo_n "checking for rlim_t... " >&6; }
12793 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12794 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12795 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12796 else
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12804 #include <sys/types.h>
12805 #if STDC_HEADERS
12806 # include <stdlib.h>
12807 # include <stddef.h>
12808 #endif
12809 #ifdef HAVE_SYS_RESOURCE_H
12810 # include <sys/resource.h>
12811 #endif
12813 _ACEOF
12814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12815 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12816 ac_cv_type_rlim_t=yes
12817 else
12818 ac_cv_type_rlim_t=no
12820 rm -f conftest*
12822 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12823 $as_echo "$ac_cv_type_rlim_t" >&6; }
12825 if test $ac_cv_type_rlim_t = no; then
12826 cat >> confdefs.h <<\EOF
12827 #define rlim_t unsigned long
12831 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12832 $as_echo_n "checking for stack_t... " >&6; }
12833 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12834 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12835 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12836 else
12837 cat >conftest.$ac_ext <<_ACEOF
12838 /* confdefs.h. */
12839 _ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 #include <sys/types.h>
12845 #if STDC_HEADERS
12846 # include <stdlib.h>
12847 # include <stddef.h>
12848 #endif
12849 #include <signal.h>
12851 _ACEOF
12852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12853 $EGREP "stack_t" >/dev/null 2>&1; then
12854 ac_cv_type_stack_t=yes
12855 else
12856 ac_cv_type_stack_t=no
12858 rm -f conftest*
12860 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12861 $as_echo "$ac_cv_type_stack_t" >&6; }
12863 if test $ac_cv_type_stack_t = no; then
12864 cat >> confdefs.h <<\EOF
12865 #define stack_t struct sigaltstack
12869 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12870 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h. */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12878 #include <sys/types.h>
12879 #if STDC_HEADERS
12880 # include <stdlib.h>
12881 # include <stddef.h>
12882 #endif
12883 #include <signal.h>
12884 #include "confdefs.h"
12887 main ()
12889 stack_t sigstk; sigstk.ss_base = 0;
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (ac_try="$ac_compile"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899 esac
12900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902 (eval "$ac_compile") 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest.$ac_objext; then
12912 { $as_echo "$as_me:$LINENO: result: yes" >&5
12913 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_SS_BASE 1
12915 _ACEOF
12917 else
12918 $as_echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 { $as_echo "$as_me:$LINENO: result: no" >&5
12922 $as_echo "no" >&6; }
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 olibs="$LIBS"
12928 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12929 $as_echo_n "checking --with-tlib argument... " >&6; }
12931 # Check whether --with-tlib was given.
12932 if test "${with_tlib+set}" = set; then
12933 withval=$with_tlib;
12936 if test -n "$with_tlib"; then
12937 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12938 $as_echo "$with_tlib" >&6; }
12939 LIBS="$LIBS -l$with_tlib"
12940 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12941 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h. */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12950 main ()
12954 return 0;
12956 _ACEOF
12957 rm -f conftest.$ac_objext conftest$ac_exeext
12958 if { (ac_try="$ac_link"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12964 $as_echo "$ac_try_echo") >&5
12965 (eval "$ac_link") 2>conftest.er1
12966 ac_status=$?
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
12970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
12974 } && test -s conftest$ac_exeext && {
12975 test "$cross_compiling" = yes ||
12976 $as_test_x conftest$ac_exeext
12977 }; then
12978 { $as_echo "$as_me:$LINENO: result: OK" >&5
12979 $as_echo "OK" >&6; }
12980 else
12981 $as_echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12985 $as_echo "$as_me: error: FAILED" >&2;}
12986 { (exit 1); exit 1; }; }
12989 rm -rf conftest.dSYM
12990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12991 conftest$ac_exeext conftest.$ac_ext
12992 olibs="$LIBS"
12993 else
12994 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12995 $as_echo "empty: automatic terminal library selection" >&6; }
12996 case "`uname -s 2>/dev/null`" in
12997 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12998 *) tlibs="ncurses termlib termcap curses";;
12999 esac
13000 for libname in $tlibs; do
13002 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
13003 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
13004 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
13005 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
13006 $as_echo_n "(cached) " >&6
13007 else
13008 ac_check_lib_save_LIBS=$LIBS
13009 LIBS="-l${libname} $LIBS"
13010 cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h. */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13017 /* Override any GCC internal prototype to avoid an error.
13018 Use char because int might match the return type of a GCC
13019 builtin and then its argument prototype would still apply. */
13020 #ifdef __cplusplus
13021 extern "C"
13022 #endif
13023 char tgetent ();
13025 main ()
13027 return tgetent ();
13029 return 0;
13031 _ACEOF
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13039 $as_echo "$ac_try_echo") >&5
13040 (eval "$ac_link") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest$ac_exeext && {
13050 test "$cross_compiling" = yes ||
13051 $as_test_x conftest$ac_exeext
13052 }; then
13053 eval "$as_ac_Lib=yes"
13054 else
13055 $as_echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 eval "$as_ac_Lib=no"
13061 rm -rf conftest.dSYM
13062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13063 conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13066 ac_res=`eval 'as_val=${'$as_ac_Lib'}
13067 $as_echo "$as_val"'`
13068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13069 $as_echo "$ac_res" >&6; }
13070 as_val=`eval 'as_val=${'$as_ac_Lib'}
13071 $as_echo "$as_val"'`
13072 if test "x$as_val" = x""yes; then
13073 cat >>confdefs.h <<_ACEOF
13074 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
13075 _ACEOF
13077 LIBS="-l${libname} $LIBS"
13081 if test "x$olibs" != "x$LIBS"; then
13082 if test "$cross_compiling" = yes; then
13083 res="FAIL"
13084 else
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h. */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13092 #ifdef HAVE_TERMCAP_H
13093 # include <termcap.h>
13094 #endif
13095 #if STDC_HEADERS
13096 # include <stdlib.h>
13097 # include <stddef.h>
13098 #endif
13099 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
13100 _ACEOF
13101 rm -f conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106 esac
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109 (eval "$ac_link") 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13113 { (case "(($ac_try" in
13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13115 *) ac_try_echo=$ac_try;;
13116 esac
13117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13118 $as_echo "$ac_try_echo") >&5
13119 (eval "$ac_try") 2>&5
13120 ac_status=$?
13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 res="OK"
13124 else
13125 $as_echo "$as_me: program exited with status $ac_status" >&5
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ( exit $ac_status )
13130 res="FAIL"
13132 rm -rf conftest.dSYM
13133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13137 if test "$res" = "OK"; then
13138 break
13140 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13141 $as_echo "$libname library is not usable" >&6; }
13142 LIBS="$olibs"
13144 done
13145 if test "x$olibs" = "x$LIBS"; then
13146 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13147 $as_echo "no terminal library found" >&6; }
13151 if test "x$olibs" = "x$LIBS"; then
13152 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13153 $as_echo_n "checking for tgetent()... " >&6; }
13154 cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h. */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13162 main ()
13164 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13166 return 0;
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (ac_try="$ac_link"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174 esac
13175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13176 $as_echo "$ac_try_echo") >&5
13177 (eval "$ac_link") 2>conftest.er1
13178 ac_status=$?
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest$ac_exeext && {
13187 test "$cross_compiling" = yes ||
13188 $as_test_x conftest$ac_exeext
13189 }; then
13190 { $as_echo "$as_me:$LINENO: result: yes" >&5
13191 $as_echo "yes" >&6; }
13192 else
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13196 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13197 You need to install a terminal library; for example ncurses.
13198 Or specify the name of the library with --with-tlib." >&5
13199 $as_echo "$as_me: error: NOT FOUND!
13200 You need to install a terminal library; for example ncurses.
13201 Or specify the name of the library with --with-tlib." >&2;}
13202 { (exit 1); exit 1; }; }
13205 rm -rf conftest.dSYM
13206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13207 conftest$ac_exeext conftest.$ac_ext
13210 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13211 $as_echo_n "checking whether we talk terminfo... " >&6; }
13212 if test "${vim_cv_terminfo+set}" = set; then
13213 $as_echo_n "(cached) " >&6
13214 else
13216 if test "$cross_compiling" = yes; then
13218 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13219 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13220 { (exit 1); exit 1; }; }
13222 else
13223 cat >conftest.$ac_ext <<_ACEOF
13225 #include "confdefs.h"
13226 #ifdef HAVE_TERMCAP_H
13227 # include <termcap.h>
13228 #endif
13229 #ifdef HAVE_STRING_H
13230 # include <string.h>
13231 #endif
13232 #if STDC_HEADERS
13233 # include <stdlib.h>
13234 # include <stddef.h>
13235 #endif
13236 main()
13237 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13239 _ACEOF
13240 rm -f conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245 esac
13246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13247 $as_echo "$ac_try_echo") >&5
13248 (eval "$ac_link") 2>&5
13249 ac_status=$?
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13252 { (case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255 esac
13256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257 $as_echo "$ac_try_echo") >&5
13258 (eval "$ac_try") 2>&5
13259 ac_status=$?
13260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13263 vim_cv_terminfo=no
13265 else
13266 $as_echo "$as_me: program exited with status $ac_status" >&5
13267 $as_echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ( exit $ac_status )
13272 vim_cv_terminfo=yes
13275 rm -rf conftest.dSYM
13276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13282 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13283 $as_echo "$vim_cv_terminfo" >&6; }
13285 if test "x$vim_cv_terminfo" = "xyes" ; then
13286 cat >>confdefs.h <<\_ACEOF
13287 #define TERMINFO 1
13288 _ACEOF
13292 if test "x$olibs" != "x$LIBS"; then
13293 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13294 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13295 if test "${vim_cv_tgent+set}" = set; then
13296 $as_echo_n "(cached) " >&6
13297 else
13299 if test "$cross_compiling" = yes; then
13301 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13302 $as_echo "$as_me: error: failed to compile test program." >&2;}
13303 { (exit 1); exit 1; }; }
13305 else
13306 cat >conftest.$ac_ext <<_ACEOF
13308 #include "confdefs.h"
13309 #ifdef HAVE_TERMCAP_H
13310 # include <termcap.h>
13311 #endif
13312 #if STDC_HEADERS
13313 # include <stdlib.h>
13314 # include <stddef.h>
13315 #endif
13316 main()
13317 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13319 _ACEOF
13320 rm -f conftest$ac_exeext
13321 if { (ac_try="$ac_link"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13325 esac
13326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13327 $as_echo "$ac_try_echo") >&5
13328 (eval "$ac_link") 2>&5
13329 ac_status=$?
13330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13332 { (case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13337 $as_echo "$ac_try_echo") >&5
13338 (eval "$ac_try") 2>&5
13339 ac_status=$?
13340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13343 vim_cv_tgent=zero
13345 else
13346 $as_echo "$as_me: program exited with status $ac_status" >&5
13347 $as_echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ( exit $ac_status )
13352 vim_cv_tgent=non-zero
13355 rm -rf conftest.dSYM
13356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13362 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13363 $as_echo "$vim_cv_tgent" >&6; }
13365 if test "x$vim_cv_tgent" = "xzero" ; then
13366 cat >>confdefs.h <<\_ACEOF
13367 #define TGETENT_ZERO_ERR 0
13368 _ACEOF
13373 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13374 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13382 #ifdef HAVE_TERMCAP_H
13383 # include <termcap.h>
13384 #endif
13387 main ()
13389 ospeed = 20000
13391 return 0;
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399 esac
13400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13401 $as_echo "$ac_try_echo") >&5
13402 (eval "$ac_link") 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest$ac_exeext && {
13412 test "$cross_compiling" = yes ||
13413 $as_test_x conftest$ac_exeext
13414 }; then
13415 { $as_echo "$as_me:$LINENO: result: yes" >&5
13416 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13417 #define HAVE_OSPEED 1
13418 _ACEOF
13420 else
13421 $as_echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13424 { $as_echo "$as_me:$LINENO: result: no" >&5
13425 $as_echo "no" >&6; }
13426 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13427 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13428 cat >conftest.$ac_ext <<_ACEOF
13429 /* confdefs.h. */
13430 _ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13435 #ifdef HAVE_TERMCAP_H
13436 # include <termcap.h>
13437 #endif
13438 extern short ospeed;
13441 main ()
13443 ospeed = 20000
13445 return 0;
13447 _ACEOF
13448 rm -f conftest.$ac_objext conftest$ac_exeext
13449 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest$ac_exeext && {
13466 test "$cross_compiling" = yes ||
13467 $as_test_x conftest$ac_exeext
13468 }; then
13469 { $as_echo "$as_me:$LINENO: result: yes" >&5
13470 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13471 #define OSPEED_EXTERN 1
13472 _ACEOF
13474 else
13475 $as_echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13478 { $as_echo "$as_me:$LINENO: result: no" >&5
13479 $as_echo "no" >&6; }
13482 rm -rf conftest.dSYM
13483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13484 conftest$ac_exeext conftest.$ac_ext
13488 rm -rf conftest.dSYM
13489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13490 conftest$ac_exeext conftest.$ac_ext
13492 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13493 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h. */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13501 #ifdef HAVE_TERMCAP_H
13502 # include <termcap.h>
13503 #endif
13506 main ()
13508 if (UP == 0 && BC == 0) PC = 1
13510 return 0;
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (ac_try="$ac_link"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13520 $as_echo "$ac_try_echo") >&5
13521 (eval "$ac_link") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest$ac_exeext && {
13531 test "$cross_compiling" = yes ||
13532 $as_test_x conftest$ac_exeext
13533 }; then
13534 { $as_echo "$as_me:$LINENO: result: yes" >&5
13535 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13536 #define HAVE_UP_BC_PC 1
13537 _ACEOF
13539 else
13540 $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13543 { $as_echo "$as_me:$LINENO: result: no" >&5
13544 $as_echo "no" >&6; }
13545 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13546 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h. */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13554 #ifdef HAVE_TERMCAP_H
13555 # include <termcap.h>
13556 #endif
13557 extern char *UP, *BC, PC;
13560 main ()
13562 if (UP == 0 && BC == 0) PC = 1
13564 return 0;
13566 _ACEOF
13567 rm -f conftest.$ac_objext conftest$ac_exeext
13568 if { (ac_try="$ac_link"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572 esac
13573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13574 $as_echo "$ac_try_echo") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext && {
13585 test "$cross_compiling" = yes ||
13586 $as_test_x conftest$ac_exeext
13587 }; then
13588 { $as_echo "$as_me:$LINENO: result: yes" >&5
13589 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13590 #define UP_BC_PC_EXTERN 1
13591 _ACEOF
13593 else
13594 $as_echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 { $as_echo "$as_me:$LINENO: result: no" >&5
13598 $as_echo "no" >&6; }
13601 rm -rf conftest.dSYM
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13607 rm -rf conftest.dSYM
13608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13609 conftest$ac_exeext conftest.$ac_ext
13611 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13612 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13613 cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h. */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13620 #ifdef HAVE_TERMCAP_H
13621 # include <termcap.h>
13622 #endif
13625 main ()
13627 extern int xx(); tputs("test", 1, (outfuntype)xx)
13629 return 0;
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13639 $as_echo "$ac_try_echo") >&5
13640 (eval "$ac_compile") 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } && {
13647 test -z "$ac_c_werror_flag" ||
13648 test ! -s conftest.err
13649 } && test -s conftest.$ac_objext; then
13650 { $as_echo "$as_me:$LINENO: result: yes" >&5
13651 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_OUTFUNTYPE 1
13653 _ACEOF
13655 else
13656 $as_echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 { $as_echo "$as_me:$LINENO: result: no" >&5
13660 $as_echo "no" >&6; }
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13666 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h. */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 #include <sys/types.h>
13675 #include <sys/time.h>
13676 #include <sys/select.h>
13678 main ()
13682 return 0;
13684 _ACEOF
13685 rm -f conftest.$ac_objext
13686 if { (ac_try="$ac_compile"
13687 case "(($ac_try" in
13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13690 esac
13691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13692 $as_echo "$ac_try_echo") >&5
13693 (eval "$ac_compile") 2>conftest.er1
13694 ac_status=$?
13695 grep -v '^ *+' conftest.er1 >conftest.err
13696 rm -f conftest.er1
13697 cat conftest.err >&5
13698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest.$ac_objext; then
13703 { $as_echo "$as_me:$LINENO: result: yes" >&5
13704 $as_echo "yes" >&6; }
13705 cat >>confdefs.h <<\_ACEOF
13706 #define SYS_SELECT_WITH_SYS_TIME 1
13707 _ACEOF
13709 else
13710 $as_echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13713 { $as_echo "$as_me:$LINENO: result: no" >&5
13714 $as_echo "no" >&6; }
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13721 $as_echo_n "checking for /dev/ptc... " >&6; }
13722 if test -r /dev/ptc; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_DEV_PTC 1
13725 _ACEOF
13727 { $as_echo "$as_me:$LINENO: result: yes" >&5
13728 $as_echo "yes" >&6; }
13729 else
13730 { $as_echo "$as_me:$LINENO: result: no" >&5
13731 $as_echo "no" >&6; }
13734 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13735 $as_echo_n "checking for SVR4 ptys... " >&6; }
13736 if test -c /dev/ptmx ; then
13737 cat >conftest.$ac_ext <<_ACEOF
13738 /* confdefs.h. */
13739 _ACEOF
13740 cat confdefs.h >>conftest.$ac_ext
13741 cat >>conftest.$ac_ext <<_ACEOF
13742 /* end confdefs.h. */
13745 main ()
13747 ptsname(0);grantpt(0);unlockpt(0);
13749 return 0;
13751 _ACEOF
13752 rm -f conftest.$ac_objext conftest$ac_exeext
13753 if { (ac_try="$ac_link"
13754 case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757 esac
13758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13759 $as_echo "$ac_try_echo") >&5
13760 (eval "$ac_link") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } && {
13767 test -z "$ac_c_werror_flag" ||
13768 test ! -s conftest.err
13769 } && test -s conftest$ac_exeext && {
13770 test "$cross_compiling" = yes ||
13771 $as_test_x conftest$ac_exeext
13772 }; then
13773 { $as_echo "$as_me:$LINENO: result: yes" >&5
13774 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_SVR4_PTYS 1
13776 _ACEOF
13778 else
13779 $as_echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 { $as_echo "$as_me:$LINENO: result: no" >&5
13783 $as_echo "no" >&6; }
13786 rm -rf conftest.dSYM
13787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13788 conftest$ac_exeext conftest.$ac_ext
13789 else
13790 { $as_echo "$as_me:$LINENO: result: no" >&5
13791 $as_echo "no" >&6; }
13794 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13795 $as_echo_n "checking for ptyranges... " >&6; }
13796 if test -d /dev/ptym ; then
13797 pdir='/dev/ptym'
13798 else
13799 pdir='/dev'
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 #ifdef M_UNIX
13808 yes;
13809 #endif
13811 _ACEOF
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 $EGREP "yes" >/dev/null 2>&1; then
13814 ptys=`echo /dev/ptyp??`
13815 else
13816 ptys=`echo $pdir/pty??`
13818 rm -f conftest*
13820 if test "$ptys" != "$pdir/pty??" ; then
13821 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13822 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13823 cat >>confdefs.h <<_ACEOF
13824 #define PTYRANGE0 "$p0"
13825 _ACEOF
13827 cat >>confdefs.h <<_ACEOF
13828 #define PTYRANGE1 "$p1"
13829 _ACEOF
13831 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13832 $as_echo "$p0 / $p1" >&6; }
13833 else
13834 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13835 $as_echo "don't know" >&6; }
13838 rm -f conftest_grp
13839 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13840 $as_echo_n "checking default tty permissions/group... " >&6; }
13841 if test "${vim_cv_tty_group+set}" = set; then
13842 $as_echo_n "(cached) " >&6
13843 else
13845 if test "$cross_compiling" = yes; then
13847 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13848 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13849 { (exit 1); exit 1; }; }
13851 else
13852 cat >conftest.$ac_ext <<_ACEOF
13854 #include "confdefs.h"
13855 #include <sys/types.h>
13856 #if STDC_HEADERS
13857 # include <stdlib.h>
13858 # include <stddef.h>
13859 #endif
13860 #ifdef HAVE_UNISTD_H
13861 #include <unistd.h>
13862 #endif
13863 #include <sys/stat.h>
13864 #include <stdio.h>
13865 main()
13867 struct stat sb;
13868 char *x,*ttyname();
13869 int om, m;
13870 FILE *fp;
13872 if (!(x = ttyname(0))) exit(1);
13873 if (stat(x, &sb)) exit(1);
13874 om = sb.st_mode;
13875 if (om & 002) exit(0);
13876 m = system("mesg y");
13877 if (m == -1 || m == 127) exit(1);
13878 if (stat(x, &sb)) exit(1);
13879 m = sb.st_mode;
13880 if (chmod(x, om)) exit(1);
13881 if (m & 002) exit(0);
13882 if (sb.st_gid == getgid()) exit(1);
13883 if (!(fp=fopen("conftest_grp", "w")))
13884 exit(1);
13885 fprintf(fp, "%d\n", sb.st_gid);
13886 fclose(fp);
13887 exit(0);
13890 _ACEOF
13891 rm -f conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13898 $as_echo "$ac_try_echo") >&5
13899 (eval "$ac_link") 2>&5
13900 ac_status=$?
13901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906 esac
13907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13908 $as_echo "$ac_try_echo") >&5
13909 (eval "$ac_try") 2>&5
13910 ac_status=$?
13911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); }; }; then
13914 if test -f conftest_grp; then
13915 vim_cv_tty_group=`cat conftest_grp`
13916 if test "x$vim_cv_tty_mode" = "x" ; then
13917 vim_cv_tty_mode=0620
13919 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13920 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13921 else
13922 vim_cv_tty_group=world
13923 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13924 $as_echo "ptys are world accessable" >&6; }
13927 else
13928 $as_echo "$as_me: program exited with status $ac_status" >&5
13929 $as_echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ( exit $ac_status )
13934 vim_cv_tty_group=world
13935 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13936 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13939 rm -rf conftest.dSYM
13940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13946 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13947 $as_echo "$vim_cv_tty_group" >&6; }
13948 rm -f conftest_grp
13950 if test "x$vim_cv_tty_group" != "xworld" ; then
13951 cat >>confdefs.h <<_ACEOF
13952 #define PTYGROUP $vim_cv_tty_group
13953 _ACEOF
13955 if test "x$vim_cv_tty_mode" = "x" ; then
13956 { { $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
13957 $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;}
13958 { (exit 1); exit 1; }; }
13959 else
13960 cat >>confdefs.h <<\_ACEOF
13961 #define PTYMODE 0620
13962 _ACEOF
13968 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13969 $as_echo_n "checking return type of signal handlers... " >&6; }
13970 if test "${ac_cv_type_signal+set}" = set; then
13971 $as_echo_n "(cached) " >&6
13972 else
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h. */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13980 #include <signal.h>
13983 main ()
13985 return *(signal (0, 0)) (0) == 1;
13987 return 0;
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (ac_try="$ac_compile"
13992 case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995 esac
13996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13997 $as_echo "$ac_try_echo") >&5
13998 (eval "$ac_compile") 2>conftest.er1
13999 ac_status=$?
14000 grep -v '^ *+' conftest.er1 >conftest.err
14001 rm -f conftest.er1
14002 cat conftest.err >&5
14003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } && {
14005 test -z "$ac_c_werror_flag" ||
14006 test ! -s conftest.err
14007 } && test -s conftest.$ac_objext; then
14008 ac_cv_type_signal=int
14009 else
14010 $as_echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14013 ac_cv_type_signal=void
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14019 $as_echo "$ac_cv_type_signal" >&6; }
14021 cat >>confdefs.h <<_ACEOF
14022 #define RETSIGTYPE $ac_cv_type_signal
14023 _ACEOF
14027 if test $ac_cv_type_signal = void; then
14028 cat >>confdefs.h <<\_ACEOF
14029 #define SIGRETURN return
14030 _ACEOF
14032 else
14033 cat >>confdefs.h <<\_ACEOF
14034 #define SIGRETURN return 0
14035 _ACEOF
14039 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
14040 $as_echo_n "checking for struct sigcontext... " >&6; }
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h. */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 #include <signal.h>
14049 test_sig()
14051 struct sigcontext *scont;
14052 scont = (struct sigcontext *)0;
14053 return 1;
14056 main ()
14060 return 0;
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (ac_try="$ac_compile"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14070 $as_echo "$ac_try_echo") >&5
14071 (eval "$ac_compile") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } && {
14078 test -z "$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14080 } && test -s conftest.$ac_objext; then
14081 { $as_echo "$as_me:$LINENO: result: yes" >&5
14082 $as_echo "yes" >&6; }
14083 cat >>confdefs.h <<\_ACEOF
14084 #define HAVE_SIGCONTEXT 1
14085 _ACEOF
14087 else
14088 $as_echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 { $as_echo "$as_me:$LINENO: result: no" >&5
14092 $as_echo "no" >&6; }
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
14098 $as_echo_n "checking getcwd implementation is broken... " >&6; }
14099 if test "${vim_cv_getcwd_broken+set}" = set; then
14100 $as_echo_n "(cached) " >&6
14101 else
14103 if test "$cross_compiling" = yes; then
14105 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
14106 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
14107 { (exit 1); exit 1; }; }
14109 else
14110 cat >conftest.$ac_ext <<_ACEOF
14112 #include "confdefs.h"
14113 #ifdef HAVE_UNISTD_H
14114 #include <unistd.h>
14115 #endif
14116 char *dagger[] = { "IFS=pwd", 0 };
14117 main()
14119 char buffer[500];
14120 extern char **environ;
14121 environ = dagger;
14122 return getcwd(buffer, 500) ? 0 : 1;
14125 _ACEOF
14126 rm -f conftest$ac_exeext
14127 if { (ac_try="$ac_link"
14128 case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131 esac
14132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14133 $as_echo "$ac_try_echo") >&5
14134 (eval "$ac_link") 2>&5
14135 ac_status=$?
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14138 { (case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141 esac
14142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144 (eval "$ac_try") 2>&5
14145 ac_status=$?
14146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14149 vim_cv_getcwd_broken=no
14151 else
14152 $as_echo "$as_me: program exited with status $ac_status" >&5
14153 $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ( exit $ac_status )
14158 vim_cv_getcwd_broken=yes
14161 rm -rf conftest.dSYM
14162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14168 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14169 $as_echo "$vim_cv_getcwd_broken" >&6; }
14171 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14172 cat >>confdefs.h <<\_ACEOF
14173 #define BAD_GETCWD 1
14174 _ACEOF
14224 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
14225 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14226 memset nanosleep opendir putenv qsort readlink select setenv \
14227 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14228 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14229 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14230 usleep utime utimes
14232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14234 $as_echo_n "checking for $ac_func... " >&6; }
14235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14236 $as_echo_n "(cached) " >&6
14237 else
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14246 #define $ac_func innocuous_$ac_func
14248 /* System header to define __stub macros and hopefully few prototypes,
14249 which can conflict with char $ac_func (); below.
14250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14251 <limits.h> exists even on freestanding compilers. */
14253 #ifdef __STDC__
14254 # include <limits.h>
14255 #else
14256 # include <assert.h>
14257 #endif
14259 #undef $ac_func
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char $ac_func ();
14268 /* The GNU C library defines this for functions which it implements
14269 to always fail with ENOSYS. Some functions are actually named
14270 something starting with __ and the normal name is an alias. */
14271 #if defined __stub_$ac_func || defined __stub___$ac_func
14272 choke me
14273 #endif
14276 main ()
14278 return $ac_func ();
14280 return 0;
14282 _ACEOF
14283 rm -f conftest.$ac_objext conftest$ac_exeext
14284 if { (ac_try="$ac_link"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14288 esac
14289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14290 $as_echo "$ac_try_echo") >&5
14291 (eval "$ac_link") 2>conftest.er1
14292 ac_status=$?
14293 grep -v '^ *+' conftest.er1 >conftest.err
14294 rm -f conftest.er1
14295 cat conftest.err >&5
14296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest$ac_exeext && {
14301 test "$cross_compiling" = yes ||
14302 $as_test_x conftest$ac_exeext
14303 }; then
14304 eval "$as_ac_var=yes"
14305 else
14306 $as_echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 eval "$as_ac_var=no"
14312 rm -rf conftest.dSYM
14313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14314 conftest$ac_exeext conftest.$ac_ext
14316 ac_res=`eval 'as_val=${'$as_ac_var'}
14317 $as_echo "$as_val"'`
14318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14319 $as_echo "$ac_res" >&6; }
14320 as_val=`eval 'as_val=${'$as_ac_var'}
14321 $as_echo "$as_val"'`
14322 if test "x$as_val" = x""yes; then
14323 cat >>confdefs.h <<_ACEOF
14324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14325 _ACEOF
14328 done
14331 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14332 $as_echo_n "checking for st_blksize... " >&6; }
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 #include <sys/types.h>
14340 #include <sys/stat.h>
14342 main ()
14344 struct stat st;
14345 int n;
14347 stat("/", &st);
14348 n = (int)st.st_blksize;
14350 return 0;
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14358 esac
14359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14360 $as_echo "$ac_try_echo") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest.$ac_objext; then
14371 { $as_echo "$as_me:$LINENO: result: yes" >&5
14372 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14373 #define HAVE_ST_BLKSIZE 1
14374 _ACEOF
14376 else
14377 $as_echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 { $as_echo "$as_me:$LINENO: result: no" >&5
14381 $as_echo "no" >&6; }
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14387 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14388 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14389 $as_echo_n "(cached) " >&6
14390 else
14392 if test "$cross_compiling" = yes; then
14394 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14395 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14396 { (exit 1); exit 1; }; }
14398 else
14399 cat >conftest.$ac_ext <<_ACEOF
14401 #include "confdefs.h"
14402 #if STDC_HEADERS
14403 # include <stdlib.h>
14404 # include <stddef.h>
14405 #endif
14406 #include <sys/types.h>
14407 #include <sys/stat.h>
14408 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14410 _ACEOF
14411 rm -f conftest$ac_exeext
14412 if { (ac_try="$ac_link"
14413 case "(($ac_try" in
14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14415 *) ac_try_echo=$ac_try;;
14416 esac
14417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14418 $as_echo "$ac_try_echo") >&5
14419 (eval "$ac_link") 2>&5
14420 ac_status=$?
14421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14423 { (case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426 esac
14427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14428 $as_echo "$ac_try_echo") >&5
14429 (eval "$ac_try") 2>&5
14430 ac_status=$?
14431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14434 vim_cv_stat_ignores_slash=yes
14436 else
14437 $as_echo "$as_me: program exited with status $ac_status" >&5
14438 $as_echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ( exit $ac_status )
14443 vim_cv_stat_ignores_slash=no
14446 rm -rf conftest.dSYM
14447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14453 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14454 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14456 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14457 cat >>confdefs.h <<\_ACEOF
14458 #define STAT_IGNORES_SLASH 1
14459 _ACEOF
14463 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14464 $as_echo_n "checking for iconv_open()... " >&6; }
14465 save_LIBS="$LIBS"
14466 LIBS="$LIBS -liconv"
14467 cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h. */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14474 #ifdef HAVE_ICONV_H
14475 # include <iconv.h>
14476 #endif
14479 main ()
14481 iconv_open("fr", "to");
14483 return 0;
14485 _ACEOF
14486 rm -f conftest.$ac_objext conftest$ac_exeext
14487 if { (ac_try="$ac_link"
14488 case "(($ac_try" in
14489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490 *) ac_try_echo=$ac_try;;
14491 esac
14492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14493 $as_echo "$ac_try_echo") >&5
14494 (eval "$ac_link") 2>conftest.er1
14495 ac_status=$?
14496 grep -v '^ *+' conftest.er1 >conftest.err
14497 rm -f conftest.er1
14498 cat conftest.err >&5
14499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest$ac_exeext && {
14504 test "$cross_compiling" = yes ||
14505 $as_test_x conftest$ac_exeext
14506 }; then
14507 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14508 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14509 #define HAVE_ICONV 1
14510 _ACEOF
14512 else
14513 $as_echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14516 LIBS="$save_LIBS"
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14524 #ifdef HAVE_ICONV_H
14525 # include <iconv.h>
14526 #endif
14529 main ()
14531 iconv_open("fr", "to");
14533 return 0;
14535 _ACEOF
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541 esac
14542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14543 $as_echo "$ac_try_echo") >&5
14544 (eval "$ac_link") 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } && {
14551 test -z "$ac_c_werror_flag" ||
14552 test ! -s conftest.err
14553 } && test -s conftest$ac_exeext && {
14554 test "$cross_compiling" = yes ||
14555 $as_test_x conftest$ac_exeext
14556 }; then
14557 { $as_echo "$as_me:$LINENO: result: yes" >&5
14558 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_ICONV 1
14560 _ACEOF
14562 else
14563 $as_echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 { $as_echo "$as_me:$LINENO: result: no" >&5
14567 $as_echo "no" >&6; }
14570 rm -rf conftest.dSYM
14571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14572 conftest$ac_exeext conftest.$ac_ext
14575 rm -rf conftest.dSYM
14576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14577 conftest$ac_exeext conftest.$ac_ext
14580 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14581 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
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. */
14589 #ifdef HAVE_LANGINFO_H
14590 # include <langinfo.h>
14591 #endif
14594 main ()
14596 char *cs = nl_langinfo(CODESET);
14598 return 0;
14600 _ACEOF
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14606 esac
14607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14608 $as_echo "$ac_try_echo") >&5
14609 (eval "$ac_link") 2>conftest.er1
14610 ac_status=$?
14611 grep -v '^ *+' conftest.er1 >conftest.err
14612 rm -f conftest.er1
14613 cat conftest.err >&5
14614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest$ac_exeext && {
14619 test "$cross_compiling" = yes ||
14620 $as_test_x conftest$ac_exeext
14621 }; then
14622 { $as_echo "$as_me:$LINENO: result: yes" >&5
14623 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14624 #define HAVE_NL_LANGINFO_CODESET 1
14625 _ACEOF
14627 else
14628 $as_echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 { $as_echo "$as_me:$LINENO: result: no" >&5
14632 $as_echo "no" >&6; }
14635 rm -rf conftest.dSYM
14636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14637 conftest$ac_exeext conftest.$ac_ext
14640 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14641 $as_echo_n "checking for strtod in -lm... " >&6; }
14642 if test "${ac_cv_lib_m_strtod+set}" = set; then
14643 $as_echo_n "(cached) " >&6
14644 else
14645 ac_check_lib_save_LIBS=$LIBS
14646 LIBS="-lm $LIBS"
14647 cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h. */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14654 /* Override any GCC internal prototype to avoid an error.
14655 Use char because int might match the return type of a GCC
14656 builtin and then its argument prototype would still apply. */
14657 #ifdef __cplusplus
14658 extern "C"
14659 #endif
14660 char strtod ();
14662 main ()
14664 return strtod ();
14666 return 0;
14668 _ACEOF
14669 rm -f conftest.$ac_objext conftest$ac_exeext
14670 if { (ac_try="$ac_link"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674 esac
14675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14676 $as_echo "$ac_try_echo") >&5
14677 (eval "$ac_link") 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } && {
14684 test -z "$ac_c_werror_flag" ||
14685 test ! -s conftest.err
14686 } && test -s conftest$ac_exeext && {
14687 test "$cross_compiling" = yes ||
14688 $as_test_x conftest$ac_exeext
14689 }; then
14690 ac_cv_lib_m_strtod=yes
14691 else
14692 $as_echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 ac_cv_lib_m_strtod=no
14698 rm -rf conftest.dSYM
14699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14700 conftest$ac_exeext conftest.$ac_ext
14701 LIBS=$ac_check_lib_save_LIBS
14703 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14704 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14705 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14706 cat >>confdefs.h <<_ACEOF
14707 #define HAVE_LIBM 1
14708 _ACEOF
14710 LIBS="-lm $LIBS"
14714 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14715 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14716 cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h. */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h. */
14723 #ifdef HAVE_MATH_H
14724 # include <math.h>
14725 #endif
14726 #if STDC_HEADERS
14727 # include <stdlib.h>
14728 # include <stddef.h>
14729 #endif
14732 main ()
14734 char *s; double d;
14735 d = strtod("1.1", &s);
14736 d = fabs(1.11);
14737 d = ceil(1.11);
14738 d = floor(1.11);
14739 d = log10(1.11);
14740 d = pow(1.11, 2.22);
14741 d = sqrt(1.11);
14742 d = sin(1.11);
14743 d = cos(1.11);
14744 d = atan(1.11);
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758 (eval "$ac_link") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } && {
14765 test -z "$ac_c_werror_flag" ||
14766 test ! -s conftest.err
14767 } && test -s conftest$ac_exeext && {
14768 test "$cross_compiling" = yes ||
14769 $as_test_x conftest$ac_exeext
14770 }; then
14771 { $as_echo "$as_me:$LINENO: result: yes" >&5
14772 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14773 #define HAVE_FLOAT_FUNCS 1
14774 _ACEOF
14776 else
14777 $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 { $as_echo "$as_me:$LINENO: result: no" >&5
14781 $as_echo "no" >&6; }
14784 rm -rf conftest.dSYM
14785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14786 conftest$ac_exeext conftest.$ac_ext
14788 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14789 $as_echo_n "checking --disable-acl argument... " >&6; }
14790 # Check whether --enable-acl was given.
14791 if test "${enable_acl+set}" = set; then
14792 enableval=$enable_acl;
14793 else
14794 enable_acl="yes"
14797 if test "$enable_acl" = "yes"; then
14798 { $as_echo "$as_me:$LINENO: result: no" >&5
14799 $as_echo "no" >&6; }
14800 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14801 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14802 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14803 $as_echo_n "(cached) " >&6
14804 else
14805 ac_check_lib_save_LIBS=$LIBS
14806 LIBS="-lposix1e $LIBS"
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14814 /* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14817 #ifdef __cplusplus
14818 extern "C"
14819 #endif
14820 char acl_get_file ();
14822 main ()
14824 return acl_get_file ();
14826 return 0;
14828 _ACEOF
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834 esac
14835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14836 $as_echo "$ac_try_echo") >&5
14837 (eval "$ac_link") 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext && {
14847 test "$cross_compiling" = yes ||
14848 $as_test_x conftest$ac_exeext
14849 }; then
14850 ac_cv_lib_posix1e_acl_get_file=yes
14851 else
14852 $as_echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_lib_posix1e_acl_get_file=no
14858 rm -rf conftest.dSYM
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14861 LIBS=$ac_check_lib_save_LIBS
14863 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14864 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14865 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14866 LIBS="$LIBS -lposix1e"
14867 else
14868 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14869 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14870 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14871 $as_echo_n "(cached) " >&6
14872 else
14873 ac_check_lib_save_LIBS=$LIBS
14874 LIBS="-lacl $LIBS"
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h. */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14885 #ifdef __cplusplus
14886 extern "C"
14887 #endif
14888 char acl_get_file ();
14890 main ()
14892 return acl_get_file ();
14894 return 0;
14896 _ACEOF
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (ac_try="$ac_link"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902 esac
14903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14904 $as_echo "$ac_try_echo") >&5
14905 (eval "$ac_link") 2>conftest.er1
14906 ac_status=$?
14907 grep -v '^ *+' conftest.er1 >conftest.err
14908 rm -f conftest.er1
14909 cat conftest.err >&5
14910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } && {
14912 test -z "$ac_c_werror_flag" ||
14913 test ! -s conftest.err
14914 } && test -s conftest$ac_exeext && {
14915 test "$cross_compiling" = yes ||
14916 $as_test_x conftest$ac_exeext
14917 }; then
14918 ac_cv_lib_acl_acl_get_file=yes
14919 else
14920 $as_echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_cv_lib_acl_acl_get_file=no
14926 rm -rf conftest.dSYM
14927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14928 conftest$ac_exeext conftest.$ac_ext
14929 LIBS=$ac_check_lib_save_LIBS
14931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14932 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14933 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
14934 LIBS="$LIBS -lacl"
14935 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14936 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14937 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14938 $as_echo_n "(cached) " >&6
14939 else
14940 ac_check_lib_save_LIBS=$LIBS
14941 LIBS="-lattr $LIBS"
14942 cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h. */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14952 #ifdef __cplusplus
14953 extern "C"
14954 #endif
14955 char fgetxattr ();
14957 main ()
14959 return fgetxattr ();
14961 return 0;
14963 _ACEOF
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (ac_try="$ac_link"
14966 case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14969 esac
14970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972 (eval "$ac_link") 2>conftest.er1
14973 ac_status=$?
14974 grep -v '^ *+' conftest.er1 >conftest.err
14975 rm -f conftest.er1
14976 cat conftest.err >&5
14977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext && {
14982 test "$cross_compiling" = yes ||
14983 $as_test_x conftest$ac_exeext
14984 }; then
14985 ac_cv_lib_attr_fgetxattr=yes
14986 else
14987 $as_echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_attr_fgetxattr=no
14993 rm -rf conftest.dSYM
14994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14995 conftest$ac_exeext conftest.$ac_ext
14996 LIBS=$ac_check_lib_save_LIBS
14998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14999 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15000 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15001 LIBS="$LIBS -lattr"
15009 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15010 $as_echo_n "checking for POSIX ACL support... " >&6; }
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h. */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15018 #include <sys/types.h>
15019 #ifdef HAVE_SYS_ACL_H
15020 # include <sys/acl.h>
15021 #endif
15022 acl_t acl;
15024 main ()
15026 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15027 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15028 acl_free(acl);
15030 return 0;
15032 _ACEOF
15033 rm -f conftest.$ac_objext conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038 esac
15039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15040 $as_echo "$ac_try_echo") >&5
15041 (eval "$ac_link") 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && {
15048 test -z "$ac_c_werror_flag" ||
15049 test ! -s conftest.err
15050 } && test -s conftest$ac_exeext && {
15051 test "$cross_compiling" = yes ||
15052 $as_test_x conftest$ac_exeext
15053 }; then
15054 { $as_echo "$as_me:$LINENO: result: yes" >&5
15055 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15056 #define HAVE_POSIX_ACL 1
15057 _ACEOF
15059 else
15060 $as_echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 { $as_echo "$as_me:$LINENO: result: no" >&5
15064 $as_echo "no" >&6; }
15067 rm -rf conftest.dSYM
15068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15069 conftest$ac_exeext conftest.$ac_ext
15071 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15072 $as_echo_n "checking for Solaris ACL support... " >&6; }
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h. */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15080 #ifdef HAVE_SYS_ACL_H
15081 # include <sys/acl.h>
15082 #endif
15084 main ()
15086 acl("foo", GETACLCNT, 0, NULL);
15089 return 0;
15091 _ACEOF
15092 rm -f conftest.$ac_objext conftest$ac_exeext
15093 if { (ac_try="$ac_link"
15094 case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097 esac
15098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15099 $as_echo "$ac_try_echo") >&5
15100 (eval "$ac_link") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest$ac_exeext && {
15110 test "$cross_compiling" = yes ||
15111 $as_test_x conftest$ac_exeext
15112 }; then
15113 { $as_echo "$as_me:$LINENO: result: yes" >&5
15114 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_SOLARIS_ACL 1
15116 _ACEOF
15118 else
15119 $as_echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 { $as_echo "$as_me:$LINENO: result: no" >&5
15123 $as_echo "no" >&6; }
15126 rm -rf conftest.dSYM
15127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15128 conftest$ac_exeext conftest.$ac_ext
15130 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15131 $as_echo_n "checking for AIX ACL support... " >&6; }
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h. */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 #if STDC_HEADERS
15140 # include <stdlib.h>
15141 # include <stddef.h>
15142 #endif
15143 #ifdef HAVE_SYS_ACL_H
15144 # include <sys/acl.h>
15145 #endif
15146 #ifdef HAVE_SYS_ACCESS_H
15147 # include <sys/access.h>
15148 #endif
15149 #define _ALL_SOURCE
15151 #include <sys/stat.h>
15153 int aclsize;
15154 struct acl *aclent;
15156 main ()
15158 aclsize = sizeof(struct acl);
15159 aclent = (void *)malloc(aclsize);
15160 statacl("foo", STX_NORMAL, aclent, aclsize);
15163 return 0;
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (ac_try="$ac_link"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15171 esac
15172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15173 $as_echo "$ac_try_echo") >&5
15174 (eval "$ac_link") 2>conftest.er1
15175 ac_status=$?
15176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
15179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } && {
15181 test -z "$ac_c_werror_flag" ||
15182 test ! -s conftest.err
15183 } && test -s conftest$ac_exeext && {
15184 test "$cross_compiling" = yes ||
15185 $as_test_x conftest$ac_exeext
15186 }; then
15187 { $as_echo "$as_me:$LINENO: result: yes" >&5
15188 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_AIX_ACL 1
15190 _ACEOF
15192 else
15193 $as_echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 { $as_echo "$as_me:$LINENO: result: no" >&5
15197 $as_echo "no" >&6; }
15200 rm -rf conftest.dSYM
15201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15202 conftest$ac_exeext conftest.$ac_ext
15203 else
15204 { $as_echo "$as_me:$LINENO: result: yes" >&5
15205 $as_echo "yes" >&6; }
15208 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15209 $as_echo_n "checking --disable-gpm argument... " >&6; }
15210 # Check whether --enable-gpm was given.
15211 if test "${enable_gpm+set}" = set; then
15212 enableval=$enable_gpm;
15213 else
15214 enable_gpm="yes"
15218 if test "$enable_gpm" = "yes"; then
15219 { $as_echo "$as_me:$LINENO: result: no" >&5
15220 $as_echo "no" >&6; }
15221 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15222 $as_echo_n "checking for gpm... " >&6; }
15223 if test "${vi_cv_have_gpm+set}" = set; then
15224 $as_echo_n "(cached) " >&6
15225 else
15226 olibs="$LIBS" ; LIBS="-lgpm"
15227 cat >conftest.$ac_ext <<_ACEOF
15228 /* confdefs.h. */
15229 _ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 #include <gpm.h>
15234 #include <linux/keyboard.h>
15236 main ()
15238 Gpm_GetLibVersion(NULL);
15240 return 0;
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (ac_try="$ac_link"
15245 case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248 esac
15249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15250 $as_echo "$ac_try_echo") >&5
15251 (eval "$ac_link") 2>conftest.er1
15252 ac_status=$?
15253 grep -v '^ *+' conftest.er1 >conftest.err
15254 rm -f conftest.er1
15255 cat conftest.err >&5
15256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } && {
15258 test -z "$ac_c_werror_flag" ||
15259 test ! -s conftest.err
15260 } && test -s conftest$ac_exeext && {
15261 test "$cross_compiling" = yes ||
15262 $as_test_x conftest$ac_exeext
15263 }; then
15264 vi_cv_have_gpm=yes
15265 else
15266 $as_echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 vi_cv_have_gpm=no
15272 rm -rf conftest.dSYM
15273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15274 conftest$ac_exeext conftest.$ac_ext
15275 LIBS="$olibs"
15278 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15279 $as_echo "$vi_cv_have_gpm" >&6; }
15280 if test $vi_cv_have_gpm = yes; then
15281 LIBS="$LIBS -lgpm"
15282 cat >>confdefs.h <<\_ACEOF
15283 #define HAVE_GPM 1
15284 _ACEOF
15287 else
15288 { $as_echo "$as_me:$LINENO: result: yes" >&5
15289 $as_echo "yes" >&6; }
15292 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15293 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15294 # Check whether --enable-sysmouse was given.
15295 if test "${enable_sysmouse+set}" = set; then
15296 enableval=$enable_sysmouse;
15297 else
15298 enable_sysmouse="yes"
15302 if test "$enable_sysmouse" = "yes"; then
15303 { $as_echo "$as_me:$LINENO: result: no" >&5
15304 $as_echo "no" >&6; }
15305 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15306 $as_echo_n "checking for sysmouse... " >&6; }
15307 if test "${vi_cv_have_sysmouse+set}" = set; then
15308 $as_echo_n "(cached) " >&6
15309 else
15310 cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h. */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 #include <sys/consio.h>
15317 #include <signal.h>
15318 #include <sys/fbio.h>
15320 main ()
15322 struct mouse_info mouse;
15323 mouse.operation = MOUSE_MODE;
15324 mouse.operation = MOUSE_SHOW;
15325 mouse.u.mode.mode = 0;
15326 mouse.u.mode.signal = SIGUSR2;
15328 return 0;
15330 _ACEOF
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336 esac
15337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15338 $as_echo "$ac_try_echo") >&5
15339 (eval "$ac_link") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest$ac_exeext && {
15349 test "$cross_compiling" = yes ||
15350 $as_test_x conftest$ac_exeext
15351 }; then
15352 vi_cv_have_sysmouse=yes
15353 else
15354 $as_echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 vi_cv_have_sysmouse=no
15360 rm -rf conftest.dSYM
15361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15362 conftest$ac_exeext conftest.$ac_ext
15365 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15366 $as_echo "$vi_cv_have_sysmouse" >&6; }
15367 if test $vi_cv_have_sysmouse = yes; then
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE_SYSMOUSE 1
15370 _ACEOF
15373 else
15374 { $as_echo "$as_me:$LINENO: result: yes" >&5
15375 $as_echo "yes" >&6; }
15378 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15379 $as_echo_n "checking for rename... " >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 #include <stdio.h>
15388 main ()
15390 rename("this", "that")
15392 return 0;
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15400 esac
15401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15402 $as_echo "$ac_try_echo") >&5
15403 (eval "$ac_link") 2>conftest.er1
15404 ac_status=$?
15405 grep -v '^ *+' conftest.er1 >conftest.err
15406 rm -f conftest.er1
15407 cat conftest.err >&5
15408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && {
15410 test -z "$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 } && test -s conftest$ac_exeext && {
15413 test "$cross_compiling" = yes ||
15414 $as_test_x conftest$ac_exeext
15415 }; then
15416 { $as_echo "$as_me:$LINENO: result: yes" >&5
15417 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15418 #define HAVE_RENAME 1
15419 _ACEOF
15421 else
15422 $as_echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 { $as_echo "$as_me:$LINENO: result: no" >&5
15426 $as_echo "no" >&6; }
15429 rm -rf conftest.dSYM
15430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15431 conftest$ac_exeext conftest.$ac_ext
15433 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15434 $as_echo_n "checking for sysctl... " >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 #include <sys/types.h>
15442 #include <sys/sysctl.h>
15444 main ()
15446 int mib[2], r;
15447 size_t len;
15449 mib[0] = CTL_HW;
15450 mib[1] = HW_USERMEM;
15451 len = sizeof(r);
15452 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15455 return 0;
15457 _ACEOF
15458 rm -f conftest.$ac_objext
15459 if { (ac_try="$ac_compile"
15460 case "(($ac_try" in
15461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462 *) ac_try_echo=$ac_try;;
15463 esac
15464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15465 $as_echo "$ac_try_echo") >&5
15466 (eval "$ac_compile") 2>conftest.er1
15467 ac_status=$?
15468 grep -v '^ *+' conftest.er1 >conftest.err
15469 rm -f conftest.er1
15470 cat conftest.err >&5
15471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } && {
15473 test -z "$ac_c_werror_flag" ||
15474 test ! -s conftest.err
15475 } && test -s conftest.$ac_objext; then
15476 { $as_echo "$as_me:$LINENO: result: yes" >&5
15477 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_SYSCTL 1
15479 _ACEOF
15481 else
15482 $as_echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15486 $as_echo "not usable" >&6; }
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15492 $as_echo_n "checking for sysinfo... " >&6; }
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. */
15499 #include <sys/types.h>
15500 #include <sys/sysinfo.h>
15502 main ()
15504 struct sysinfo sinfo;
15505 int t;
15507 (void)sysinfo(&sinfo);
15508 t = sinfo.totalram;
15511 return 0;
15513 _ACEOF
15514 rm -f conftest.$ac_objext
15515 if { (ac_try="$ac_compile"
15516 case "(($ac_try" in
15517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15519 esac
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522 (eval "$ac_compile") 2>conftest.er1
15523 ac_status=$?
15524 grep -v '^ *+' conftest.er1 >conftest.err
15525 rm -f conftest.er1
15526 cat conftest.err >&5
15527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); } && {
15529 test -z "$ac_c_werror_flag" ||
15530 test ! -s conftest.err
15531 } && test -s conftest.$ac_objext; then
15532 { $as_echo "$as_me:$LINENO: result: yes" >&5
15533 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_SYSINFO 1
15535 _ACEOF
15537 else
15538 $as_echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15541 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15542 $as_echo "not usable" >&6; }
15545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15548 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <sys/types.h>
15556 #include <sys/sysinfo.h>
15558 main ()
15560 struct sysinfo sinfo;
15561 sinfo.mem_unit = 1;
15564 return 0;
15566 _ACEOF
15567 rm -f conftest.$ac_objext
15568 if { (ac_try="$ac_compile"
15569 case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572 esac
15573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574 $as_echo "$ac_try_echo") >&5
15575 (eval "$ac_compile") 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
15584 } && test -s conftest.$ac_objext; then
15585 { $as_echo "$as_me:$LINENO: result: yes" >&5
15586 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_SYSINFO_MEM_UNIT 1
15588 _ACEOF
15590 else
15591 $as_echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 { $as_echo "$as_me:$LINENO: result: no" >&5
15595 $as_echo "no" >&6; }
15598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15600 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15601 $as_echo_n "checking for sysconf... " >&6; }
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 #include <unistd.h>
15610 main ()
15612 (void)sysconf(_SC_PAGESIZE);
15613 (void)sysconf(_SC_PHYS_PAGES);
15616 return 0;
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (ac_try="$ac_compile"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624 esac
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_compile") 2>conftest.er1
15628 ac_status=$?
15629 grep -v '^ *+' conftest.er1 >conftest.err
15630 rm -f conftest.er1
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest.$ac_objext; then
15637 { $as_echo "$as_me:$LINENO: result: yes" >&5
15638 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15639 #define HAVE_SYSCONF 1
15640 _ACEOF
15642 else
15643 $as_echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15647 $as_echo "not usable" >&6; }
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15654 $as_echo_n "checking size of int... " >&6; }
15655 if test "${ac_cv_sizeof_int+set}" = set; then
15656 $as_echo_n "(cached) " >&6
15657 else
15658 if test "$cross_compiling" = yes; then
15659 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15660 $as_echo "$as_me: error: failed to compile test program" >&2;}
15661 { (exit 1); exit 1; }; }
15662 else
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15670 #include <stdio.h>
15671 #if STDC_HEADERS
15672 # include <stdlib.h>
15673 # include <stddef.h>
15674 #endif
15675 main()
15677 FILE *f=fopen("conftestval", "w");
15678 if (!f) exit(1);
15679 fprintf(f, "%d\n", (int)sizeof(int));
15680 exit(0);
15682 _ACEOF
15683 rm -f conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687 *) ac_try_echo=$ac_try;;
15688 esac
15689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15690 $as_echo "$ac_try_echo") >&5
15691 (eval "$ac_link") 2>&5
15692 ac_status=$?
15693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698 esac
15699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700 $as_echo "$ac_try_echo") >&5
15701 (eval "$ac_try") 2>&5
15702 ac_status=$?
15703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 ac_cv_sizeof_int=`cat conftestval`
15706 else
15707 $as_echo "$as_me: program exited with status $ac_status" >&5
15708 $as_echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 ( exit $ac_status )
15712 ac_cv_sizeof_int=0
15714 rm -rf conftest.dSYM
15715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15721 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15722 $as_echo "$ac_cv_sizeof_int" >&6; }
15723 cat >>confdefs.h <<_ACEOF
15724 #define SIZEOF_INT $ac_cv_sizeof_int
15725 _ACEOF
15729 bcopy_test_prog='
15730 #include "confdefs.h"
15731 #ifdef HAVE_STRING_H
15732 # include <string.h>
15733 #endif
15734 #if STDC_HEADERS
15735 # include <stdlib.h>
15736 # include <stddef.h>
15737 #endif
15738 main() {
15739 char buf[10];
15740 strcpy(buf, "abcdefghi");
15741 mch_memmove(buf, buf + 2, 3);
15742 if (strncmp(buf, "ababcf", 6))
15743 exit(1);
15744 strcpy(buf, "abcdefghi");
15745 mch_memmove(buf + 2, buf, 3);
15746 if (strncmp(buf, "cdedef", 6))
15747 exit(1);
15748 exit(0); /* libc version works properly. */
15751 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15752 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15753 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15754 $as_echo_n "(cached) " >&6
15755 else
15757 if test "$cross_compiling" = yes; then
15759 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15760 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15761 { (exit 1); exit 1; }; }
15763 else
15764 cat >conftest.$ac_ext <<_ACEOF
15765 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15766 _ACEOF
15767 rm -f conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772 esac
15773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15774 $as_echo "$ac_try_echo") >&5
15775 (eval "$ac_link") 2>&5
15776 ac_status=$?
15777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15779 { (case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15782 esac
15783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15784 $as_echo "$ac_try_echo") >&5
15785 (eval "$ac_try") 2>&5
15786 ac_status=$?
15787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15790 vim_cv_memmove_handles_overlap=yes
15792 else
15793 $as_echo "$as_me: program exited with status $ac_status" >&5
15794 $as_echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 ( exit $ac_status )
15799 vim_cv_memmove_handles_overlap=no
15802 rm -rf conftest.dSYM
15803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15809 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15810 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15812 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15813 cat >>confdefs.h <<\_ACEOF
15814 #define USEMEMMOVE 1
15815 _ACEOF
15817 else
15818 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15819 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15820 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15821 $as_echo_n "(cached) " >&6
15822 else
15824 if test "$cross_compiling" = yes; then
15826 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15827 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15828 { (exit 1); exit 1; }; }
15830 else
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15833 _ACEOF
15834 rm -f conftest$ac_exeext
15835 if { (ac_try="$ac_link"
15836 case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15839 esac
15840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15841 $as_echo "$ac_try_echo") >&5
15842 (eval "$ac_link") 2>&5
15843 ac_status=$?
15844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15851 $as_echo "$ac_try_echo") >&5
15852 (eval "$ac_try") 2>&5
15853 ac_status=$?
15854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15857 vim_cv_bcopy_handles_overlap=yes
15859 else
15860 $as_echo "$as_me: program exited with status $ac_status" >&5
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ( exit $ac_status )
15866 vim_cv_bcopy_handles_overlap=no
15869 rm -rf conftest.dSYM
15870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15876 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15877 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15879 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15880 cat >>confdefs.h <<\_ACEOF
15881 #define USEBCOPY 1
15882 _ACEOF
15884 else
15885 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15886 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15887 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15888 $as_echo_n "(cached) " >&6
15889 else
15891 if test "$cross_compiling" = yes; then
15893 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15894 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15895 { (exit 1); exit 1; }; }
15897 else
15898 cat >conftest.$ac_ext <<_ACEOF
15899 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15900 _ACEOF
15901 rm -f conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906 esac
15907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15908 $as_echo "$ac_try_echo") >&5
15909 (eval "$ac_link") 2>&5
15910 ac_status=$?
15911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916 esac
15917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15918 $as_echo "$ac_try_echo") >&5
15919 (eval "$ac_try") 2>&5
15920 ac_status=$?
15921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15924 vim_cv_memcpy_handles_overlap=yes
15926 else
15927 $as_echo "$as_me: program exited with status $ac_status" >&5
15928 $as_echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15931 ( exit $ac_status )
15933 vim_cv_memcpy_handles_overlap=no
15936 rm -rf conftest.dSYM
15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15943 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15944 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15946 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15947 cat >>confdefs.h <<\_ACEOF
15948 #define USEMEMCPY 1
15949 _ACEOF
15957 if test "$enable_multibyte" = "yes"; then
15958 cflags_save=$CFLAGS
15959 ldflags_save=$LDFLAGS
15960 if test "x$x_includes" != "xNONE" ; then
15961 CFLAGS="$CFLAGS -I$x_includes"
15962 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15963 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15964 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <X11/Xlocale.h>
15973 main ()
15977 return 0;
15979 _ACEOF
15980 rm -f conftest.$ac_objext
15981 if { (ac_try="$ac_compile"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15987 $as_echo "$ac_try_echo") >&5
15988 (eval "$ac_compile") 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && {
15995 test -z "$ac_c_werror_flag" ||
15996 test ! -s conftest.err
15997 } && test -s conftest.$ac_objext; then
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h. */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h. */
16005 /* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
16008 #ifdef __cplusplus
16009 extern "C"
16010 #endif
16011 char _Xsetlocale ();
16013 main ()
16015 return _Xsetlocale ();
16017 return 0;
16019 _ACEOF
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (ac_try="$ac_link"
16022 case "(($ac_try" in
16023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024 *) ac_try_echo=$ac_try;;
16025 esac
16026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16027 $as_echo "$ac_try_echo") >&5
16028 (eval "$ac_link") 2>conftest.er1
16029 ac_status=$?
16030 grep -v '^ *+' conftest.er1 >conftest.err
16031 rm -f conftest.er1
16032 cat conftest.err >&5
16033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } && {
16035 test -z "$ac_c_werror_flag" ||
16036 test ! -s conftest.err
16037 } && test -s conftest$ac_exeext && {
16038 test "$cross_compiling" = yes ||
16039 $as_test_x conftest$ac_exeext
16040 }; then
16041 { $as_echo "$as_me:$LINENO: result: yes" >&5
16042 $as_echo "yes" >&6; }
16043 cat >>confdefs.h <<\_ACEOF
16044 #define X_LOCALE 1
16045 _ACEOF
16047 else
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 { $as_echo "$as_me:$LINENO: result: no" >&5
16052 $as_echo "no" >&6; }
16055 rm -rf conftest.dSYM
16056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16057 conftest$ac_exeext conftest.$ac_ext
16058 else
16059 $as_echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 { $as_echo "$as_me:$LINENO: result: no" >&5
16063 $as_echo "no" >&6; }
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16068 CFLAGS=$cflags_save
16069 LDFLAGS=$ldflags_save
16072 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16073 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16074 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16075 $as_echo_n "(cached) " >&6
16076 else
16077 ac_check_lib_save_LIBS=$LIBS
16078 LIBS="-lxpg4 $LIBS"
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h. */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h. */
16086 /* Override any GCC internal prototype to avoid an error.
16087 Use char because int might match the return type of a GCC
16088 builtin and then its argument prototype would still apply. */
16089 #ifdef __cplusplus
16090 extern "C"
16091 #endif
16092 char _xpg4_setrunelocale ();
16094 main ()
16096 return _xpg4_setrunelocale ();
16098 return 0;
16100 _ACEOF
16101 rm -f conftest.$ac_objext conftest$ac_exeext
16102 if { (ac_try="$ac_link"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16106 esac
16107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16108 $as_echo "$ac_try_echo") >&5
16109 (eval "$ac_link") 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext && {
16119 test "$cross_compiling" = yes ||
16120 $as_test_x conftest$ac_exeext
16121 }; then
16122 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16123 else
16124 $as_echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16130 rm -rf conftest.dSYM
16131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16132 conftest$ac_exeext conftest.$ac_ext
16133 LIBS=$ac_check_lib_save_LIBS
16135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16136 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16137 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16138 LIBS="$LIBS -lxpg4"
16142 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16143 $as_echo_n "checking how to create tags... " >&6; }
16144 test -f tags && mv tags tags.save
16145 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16146 TAGPRG="ctags -I INIT+ --fields=+S"
16147 else
16148 TAGPRG="ctags"
16149 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16150 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16151 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16152 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16153 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16154 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16155 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16157 test -f tags.save && mv tags.save tags
16158 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16159 $as_echo "$TAGPRG" >&6; }
16161 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16162 $as_echo_n "checking how to run man with a section nr... " >&6; }
16163 MANDEF="man"
16164 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16165 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16166 $as_echo "$MANDEF" >&6; }
16167 if test "$MANDEF" = "man -s"; then
16168 cat >>confdefs.h <<\_ACEOF
16169 #define USEMAN_S 1
16170 _ACEOF
16174 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16175 $as_echo_n "checking --disable-nls argument... " >&6; }
16176 # Check whether --enable-nls was given.
16177 if test "${enable_nls+set}" = set; then
16178 enableval=$enable_nls;
16179 else
16180 enable_nls="yes"
16184 if test "$enable_nls" = "yes"; then
16185 { $as_echo "$as_me:$LINENO: result: no" >&5
16186 $as_echo "no" >&6; }
16188 INSTALL_LANGS=install-languages
16190 INSTALL_TOOL_LANGS=install-tool-languages
16193 # Extract the first word of "msgfmt", so it can be a program name with args.
16194 set dummy msgfmt; ac_word=$2
16195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16196 $as_echo_n "checking for $ac_word... " >&6; }
16197 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16198 $as_echo_n "(cached) " >&6
16199 else
16200 if test -n "$MSGFMT"; then
16201 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16202 else
16203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16204 for as_dir in $PATH
16206 IFS=$as_save_IFS
16207 test -z "$as_dir" && as_dir=.
16208 for ac_exec_ext in '' $ac_executable_extensions; do
16209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16210 ac_cv_prog_MSGFMT="msgfmt"
16211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16212 break 2
16214 done
16215 done
16216 IFS=$as_save_IFS
16220 MSGFMT=$ac_cv_prog_MSGFMT
16221 if test -n "$MSGFMT"; then
16222 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16223 $as_echo "$MSGFMT" >&6; }
16224 else
16225 { $as_echo "$as_me:$LINENO: result: no" >&5
16226 $as_echo "no" >&6; }
16230 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16231 $as_echo_n "checking for NLS... " >&6; }
16232 if test -f po/Makefile; then
16233 have_gettext="no"
16234 if test -n "$MSGFMT"; then
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 #include <libintl.h>
16243 main ()
16245 gettext("Test");
16247 return 0;
16249 _ACEOF
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16255 esac
16256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16257 $as_echo "$ac_try_echo") >&5
16258 (eval "$ac_link") 2>conftest.er1
16259 ac_status=$?
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -f conftest.er1
16262 cat conftest.err >&5
16263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } && {
16265 test -z "$ac_c_werror_flag" ||
16266 test ! -s conftest.err
16267 } && test -s conftest$ac_exeext && {
16268 test "$cross_compiling" = yes ||
16269 $as_test_x conftest$ac_exeext
16270 }; then
16271 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16272 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16273 else
16274 $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 olibs=$LIBS
16278 LIBS="$LIBS -lintl"
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <libintl.h>
16287 main ()
16289 gettext("Test");
16291 return 0;
16293 _ACEOF
16294 rm -f conftest.$ac_objext conftest$ac_exeext
16295 if { (ac_try="$ac_link"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16299 esac
16300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16301 $as_echo "$ac_try_echo") >&5
16302 (eval "$ac_link") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext && {
16312 test "$cross_compiling" = yes ||
16313 $as_test_x conftest$ac_exeext
16314 }; then
16315 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16316 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16317 else
16318 $as_echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16322 $as_echo "gettext() doesn't work" >&6; };
16323 LIBS=$olibs
16326 rm -rf conftest.dSYM
16327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16328 conftest$ac_exeext conftest.$ac_ext
16331 rm -rf conftest.dSYM
16332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16333 conftest$ac_exeext conftest.$ac_ext
16334 else
16335 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16336 $as_echo "msgfmt not found - disabled" >&6; };
16338 if test $have_gettext = "yes"; then
16339 cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_GETTEXT 1
16341 _ACEOF
16343 MAKEMO=yes
16346 for ac_func in bind_textdomain_codeset
16348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 $as_echo_n "checking for $ac_func... " >&6; }
16351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16352 $as_echo_n "(cached) " >&6
16353 else
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16362 #define $ac_func innocuous_$ac_func
16364 /* System header to define __stub macros and hopefully few prototypes,
16365 which can conflict with char $ac_func (); below.
16366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367 <limits.h> exists even on freestanding compilers. */
16369 #ifdef __STDC__
16370 # include <limits.h>
16371 #else
16372 # include <assert.h>
16373 #endif
16375 #undef $ac_func
16377 /* Override any GCC internal prototype to avoid an error.
16378 Use char because int might match the return type of a GCC
16379 builtin and then its argument prototype would still apply. */
16380 #ifdef __cplusplus
16381 extern "C"
16382 #endif
16383 char $ac_func ();
16384 /* The GNU C library defines this for functions which it implements
16385 to always fail with ENOSYS. Some functions are actually named
16386 something starting with __ and the normal name is an alias. */
16387 #if defined __stub_$ac_func || defined __stub___$ac_func
16388 choke me
16389 #endif
16392 main ()
16394 return $ac_func ();
16396 return 0;
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407 (eval "$ac_link") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest$ac_exeext && {
16417 test "$cross_compiling" = yes ||
16418 $as_test_x conftest$ac_exeext
16419 }; then
16420 eval "$as_ac_var=yes"
16421 else
16422 $as_echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 eval "$as_ac_var=no"
16428 rm -rf conftest.dSYM
16429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16430 conftest$ac_exeext conftest.$ac_ext
16432 ac_res=`eval 'as_val=${'$as_ac_var'}
16433 $as_echo "$as_val"'`
16434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16435 $as_echo "$ac_res" >&6; }
16436 as_val=`eval 'as_val=${'$as_ac_var'}
16437 $as_echo "$as_val"'`
16438 if test "x$as_val" = x""yes; then
16439 cat >>confdefs.h <<_ACEOF
16440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16441 _ACEOF
16444 done
16446 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16447 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16448 cat >conftest.$ac_ext <<_ACEOF
16449 /* confdefs.h. */
16450 _ACEOF
16451 cat confdefs.h >>conftest.$ac_ext
16452 cat >>conftest.$ac_ext <<_ACEOF
16453 /* end confdefs.h. */
16454 #include <libintl.h>
16455 extern int _nl_msg_cat_cntr;
16457 main ()
16459 ++_nl_msg_cat_cntr;
16461 return 0;
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469 esac
16470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16471 $as_echo "$ac_try_echo") >&5
16472 (eval "$ac_link") 2>conftest.er1
16473 ac_status=$?
16474 grep -v '^ *+' conftest.er1 >conftest.err
16475 rm -f conftest.er1
16476 cat conftest.err >&5
16477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && {
16479 test -z "$ac_c_werror_flag" ||
16480 test ! -s conftest.err
16481 } && test -s conftest$ac_exeext && {
16482 test "$cross_compiling" = yes ||
16483 $as_test_x conftest$ac_exeext
16484 }; then
16485 { $as_echo "$as_me:$LINENO: result: yes" >&5
16486 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16487 #define HAVE_NL_MSG_CAT_CNTR 1
16488 _ACEOF
16490 else
16491 $as_echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16494 { $as_echo "$as_me:$LINENO: result: no" >&5
16495 $as_echo "no" >&6; }
16498 rm -rf conftest.dSYM
16499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16500 conftest$ac_exeext conftest.$ac_ext
16502 else
16503 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16504 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16506 else
16507 { $as_echo "$as_me:$LINENO: result: yes" >&5
16508 $as_echo "yes" >&6; }
16511 { $as_echo "$as_me:$LINENO: checking --disable-migemo argument" >&5
16512 $as_echo_n "checking --disable-migemo argument... " >&6; }
16513 # Check whether --enable-migemo was given.
16514 if test "${enable_migemo+set}" = set; then
16515 enableval=$enable_migemo;
16516 else
16517 enable_migemo="yes"
16520 if test "$enable_migemo" = "yes"; then
16521 { $as_echo "$as_me:$LINENO: result: no" >&5
16522 $as_echo "no" >&6; }
16523 { $as_echo "$as_me:$LINENO: checking for migemo_open in -lmigemo" >&5
16524 $as_echo_n "checking for migemo_open in -lmigemo... " >&6; }
16525 if test "${ac_cv_lib_migemo_migemo_open+set}" = set; then
16526 $as_echo_n "(cached) " >&6
16527 else
16528 ac_check_lib_save_LIBS=$LIBS
16529 LIBS="-lmigemo $LIBS"
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16537 /* Override any GCC internal prototype to avoid an error.
16538 Use char because int might match the return type of a GCC
16539 builtin and then its argument prototype would still apply. */
16540 #ifdef __cplusplus
16541 extern "C"
16542 #endif
16543 char migemo_open ();
16545 main ()
16547 return migemo_open ();
16549 return 0;
16551 _ACEOF
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16557 esac
16558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16559 $as_echo "$ac_try_echo") >&5
16560 (eval "$ac_link") 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest$ac_exeext && {
16570 test "$cross_compiling" = yes ||
16571 $as_test_x conftest$ac_exeext
16572 }; then
16573 ac_cv_lib_migemo_migemo_open=yes
16574 else
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_migemo_migemo_open=no
16581 rm -rf conftest.dSYM
16582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16583 conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16586 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_migemo_migemo_open" >&5
16587 $as_echo "$ac_cv_lib_migemo_migemo_open" >&6; }
16588 if test "x$ac_cv_lib_migemo_migemo_open" = x""yes; then
16589 LIBS="$LIBS -lmigemo"; cat >>confdefs.h <<\_ACEOF
16590 #define HAVE_MIGEMO 1
16591 _ACEOF
16595 else
16596 { $as_echo "$as_me:$LINENO: result: yes" >&5
16597 $as_echo "yes" >&6; }
16600 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16601 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16602 $as_echo_n "checking for dlfcn.h... " >&6; }
16603 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16604 $as_echo_n "(cached) " >&6
16606 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16607 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16608 else
16609 # Is the header compilable?
16610 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16611 $as_echo_n "checking dlfcn.h usability... " >&6; }
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h. */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16618 $ac_includes_default
16619 #include <dlfcn.h>
16620 _ACEOF
16621 rm -f conftest.$ac_objext
16622 if { (ac_try="$ac_compile"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626 esac
16627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16628 $as_echo "$ac_try_echo") >&5
16629 (eval "$ac_compile") 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest.$ac_objext; then
16639 ac_header_compiler=yes
16640 else
16641 $as_echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ac_header_compiler=no
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16648 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16649 $as_echo "$ac_header_compiler" >&6; }
16651 # Is the header present?
16652 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16653 $as_echo_n "checking dlfcn.h presence... " >&6; }
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h. */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 #include <dlfcn.h>
16661 _ACEOF
16662 if { (ac_try="$ac_cpp conftest.$ac_ext"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666 esac
16667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16668 $as_echo "$ac_try_echo") >&5
16669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16670 ac_status=$?
16671 grep -v '^ *+' conftest.er1 >conftest.err
16672 rm -f conftest.er1
16673 cat conftest.err >&5
16674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } >/dev/null && {
16676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 }; then
16679 ac_header_preproc=yes
16680 else
16681 $as_echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ac_header_preproc=no
16687 rm -f conftest.err conftest.$ac_ext
16688 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16689 $as_echo "$ac_header_preproc" >&6; }
16691 # So? What about this header?
16692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16693 yes:no: )
16694 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16695 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16696 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16697 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16698 ac_header_preproc=yes
16700 no:yes:* )
16701 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16702 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16703 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16704 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16705 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16706 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16707 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16708 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16709 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16710 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16711 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16712 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16715 esac
16716 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16717 $as_echo_n "checking for dlfcn.h... " >&6; }
16718 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16719 $as_echo_n "(cached) " >&6
16720 else
16721 ac_cv_header_dlfcn_h=$ac_header_preproc
16723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16724 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16727 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16728 DLL=dlfcn.h
16729 else
16730 if test "${ac_cv_header_dl_h+set}" = set; then
16731 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16732 $as_echo_n "checking for dl.h... " >&6; }
16733 if test "${ac_cv_header_dl_h+set}" = set; then
16734 $as_echo_n "(cached) " >&6
16736 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16737 $as_echo "$ac_cv_header_dl_h" >&6; }
16738 else
16739 # Is the header compilable?
16740 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16741 $as_echo_n "checking dl.h usability... " >&6; }
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h. */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16748 $ac_includes_default
16749 #include <dl.h>
16750 _ACEOF
16751 rm -f conftest.$ac_objext
16752 if { (ac_try="$ac_compile"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759 (eval "$ac_compile") 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest.$ac_objext; then
16769 ac_header_compiler=yes
16770 else
16771 $as_echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_header_compiler=no
16777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16778 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16779 $as_echo "$ac_header_compiler" >&6; }
16781 # Is the header present?
16782 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16783 $as_echo_n "checking dl.h presence... " >&6; }
16784 cat >conftest.$ac_ext <<_ACEOF
16785 /* confdefs.h. */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h. */
16790 #include <dl.h>
16791 _ACEOF
16792 if { (ac_try="$ac_cpp conftest.$ac_ext"
16793 case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796 esac
16797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16798 $as_echo "$ac_try_echo") >&5
16799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } >/dev/null && {
16806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16807 test ! -s conftest.err
16808 }; then
16809 ac_header_preproc=yes
16810 else
16811 $as_echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16814 ac_header_preproc=no
16817 rm -f conftest.err conftest.$ac_ext
16818 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16819 $as_echo "$ac_header_preproc" >&6; }
16821 # So? What about this header?
16822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16823 yes:no: )
16824 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16825 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16826 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16827 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16828 ac_header_preproc=yes
16830 no:yes:* )
16831 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16832 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16833 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16834 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16835 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16836 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16837 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16838 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16839 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16840 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16841 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16842 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16845 esac
16846 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16847 $as_echo_n "checking for dl.h... " >&6; }
16848 if test "${ac_cv_header_dl_h+set}" = set; then
16849 $as_echo_n "(cached) " >&6
16850 else
16851 ac_cv_header_dl_h=$ac_header_preproc
16853 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16854 $as_echo "$ac_cv_header_dl_h" >&6; }
16857 if test "x$ac_cv_header_dl_h" = x""yes; then
16858 DLL=dl.h
16865 if test x${DLL} = xdlfcn.h; then
16867 cat >>confdefs.h <<\_ACEOF
16868 #define HAVE_DLFCN_H 1
16869 _ACEOF
16871 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16872 $as_echo_n "checking for dlopen()... " >&6; }
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16881 main ()
16884 extern void* dlopen();
16885 dlopen();
16888 return 0;
16890 _ACEOF
16891 rm -f conftest.$ac_objext conftest$ac_exeext
16892 if { (ac_try="$ac_link"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16896 esac
16897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16898 $as_echo "$ac_try_echo") >&5
16899 (eval "$ac_link") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest$ac_exeext && {
16909 test "$cross_compiling" = yes ||
16910 $as_test_x conftest$ac_exeext
16911 }; then
16912 { $as_echo "$as_me:$LINENO: result: yes" >&5
16913 $as_echo "yes" >&6; };
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE_DLOPEN 1
16917 _ACEOF
16919 else
16920 $as_echo "$as_me: failed program was:" >&5
16921 sed 's/^/| /' conftest.$ac_ext >&5
16923 { $as_echo "$as_me:$LINENO: result: no" >&5
16924 $as_echo "no" >&6; };
16925 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16926 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16927 olibs=$LIBS
16928 LIBS="$LIBS -ldl"
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h. */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h. */
16937 main ()
16940 extern void* dlopen();
16941 dlopen();
16944 return 0;
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (ac_try="$ac_link"
16949 case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16952 esac
16953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16954 $as_echo "$ac_try_echo") >&5
16955 (eval "$ac_link") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest$ac_exeext && {
16965 test "$cross_compiling" = yes ||
16966 $as_test_x conftest$ac_exeext
16967 }; then
16968 { $as_echo "$as_me:$LINENO: result: yes" >&5
16969 $as_echo "yes" >&6; };
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_DLOPEN 1
16973 _ACEOF
16975 else
16976 $as_echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 { $as_echo "$as_me:$LINENO: result: no" >&5
16980 $as_echo "no" >&6; };
16981 LIBS=$olibs
16984 rm -rf conftest.dSYM
16985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16986 conftest$ac_exeext conftest.$ac_ext
16989 rm -rf conftest.dSYM
16990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16991 conftest$ac_exeext conftest.$ac_ext
16992 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16993 $as_echo_n "checking for dlsym()... " >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17002 main ()
17005 extern void* dlsym();
17006 dlsym();
17009 return 0;
17011 _ACEOF
17012 rm -f conftest.$ac_objext conftest$ac_exeext
17013 if { (ac_try="$ac_link"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17017 esac
17018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17019 $as_echo "$ac_try_echo") >&5
17020 (eval "$ac_link") 2>conftest.er1
17021 ac_status=$?
17022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } && {
17027 test -z "$ac_c_werror_flag" ||
17028 test ! -s conftest.err
17029 } && test -s conftest$ac_exeext && {
17030 test "$cross_compiling" = yes ||
17031 $as_test_x conftest$ac_exeext
17032 }; then
17033 { $as_echo "$as_me:$LINENO: result: yes" >&5
17034 $as_echo "yes" >&6; };
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_DLSYM 1
17038 _ACEOF
17040 else
17041 $as_echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17044 { $as_echo "$as_me:$LINENO: result: no" >&5
17045 $as_echo "no" >&6; };
17046 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17047 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17048 olibs=$LIBS
17049 LIBS="$LIBS -ldl"
17050 cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h. */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17058 main ()
17061 extern void* dlsym();
17062 dlsym();
17065 return 0;
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (ac_try="$ac_link"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073 esac
17074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17075 $as_echo "$ac_try_echo") >&5
17076 (eval "$ac_link") 2>conftest.er1
17077 ac_status=$?
17078 grep -v '^ *+' conftest.er1 >conftest.err
17079 rm -f conftest.er1
17080 cat conftest.err >&5
17081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && {
17083 test -z "$ac_c_werror_flag" ||
17084 test ! -s conftest.err
17085 } && test -s conftest$ac_exeext && {
17086 test "$cross_compiling" = yes ||
17087 $as_test_x conftest$ac_exeext
17088 }; then
17089 { $as_echo "$as_me:$LINENO: result: yes" >&5
17090 $as_echo "yes" >&6; };
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_DLSYM 1
17094 _ACEOF
17096 else
17097 $as_echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17100 { $as_echo "$as_me:$LINENO: result: no" >&5
17101 $as_echo "no" >&6; };
17102 LIBS=$olibs
17105 rm -rf conftest.dSYM
17106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17107 conftest$ac_exeext conftest.$ac_ext
17110 rm -rf conftest.dSYM
17111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112 conftest$ac_exeext conftest.$ac_ext
17113 elif test x${DLL} = xdl.h; then
17115 cat >>confdefs.h <<\_ACEOF
17116 #define HAVE_DL_H 1
17117 _ACEOF
17119 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17120 $as_echo_n "checking for shl_load()... " >&6; }
17121 cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h. */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17129 main ()
17132 extern void* shl_load();
17133 shl_load();
17136 return 0;
17138 _ACEOF
17139 rm -f conftest.$ac_objext conftest$ac_exeext
17140 if { (ac_try="$ac_link"
17141 case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144 esac
17145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17146 $as_echo "$ac_try_echo") >&5
17147 (eval "$ac_link") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } && {
17154 test -z "$ac_c_werror_flag" ||
17155 test ! -s conftest.err
17156 } && test -s conftest$ac_exeext && {
17157 test "$cross_compiling" = yes ||
17158 $as_test_x conftest$ac_exeext
17159 }; then
17160 { $as_echo "$as_me:$LINENO: result: yes" >&5
17161 $as_echo "yes" >&6; };
17163 cat >>confdefs.h <<\_ACEOF
17164 #define HAVE_SHL_LOAD 1
17165 _ACEOF
17167 else
17168 $as_echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17171 { $as_echo "$as_me:$LINENO: result: no" >&5
17172 $as_echo "no" >&6; };
17173 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17174 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17175 olibs=$LIBS
17176 LIBS="$LIBS -ldld"
17177 cat >conftest.$ac_ext <<_ACEOF
17178 /* confdefs.h. */
17179 _ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17185 main ()
17188 extern void* shl_load();
17189 shl_load();
17192 return 0;
17194 _ACEOF
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17200 esac
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext && {
17213 test "$cross_compiling" = yes ||
17214 $as_test_x conftest$ac_exeext
17215 }; then
17216 { $as_echo "$as_me:$LINENO: result: yes" >&5
17217 $as_echo "yes" >&6; };
17219 cat >>confdefs.h <<\_ACEOF
17220 #define HAVE_SHL_LOAD 1
17221 _ACEOF
17223 else
17224 $as_echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 { $as_echo "$as_me:$LINENO: result: no" >&5
17228 $as_echo "no" >&6; };
17229 LIBS=$olibs
17232 rm -rf conftest.dSYM
17233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17234 conftest$ac_exeext conftest.$ac_ext
17237 rm -rf conftest.dSYM
17238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17239 conftest$ac_exeext conftest.$ac_ext
17242 for ac_header in setjmp.h
17244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17247 $as_echo_n "checking for $ac_header... " >&6; }
17248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17249 $as_echo_n "(cached) " >&6
17251 ac_res=`eval 'as_val=${'$as_ac_Header'}
17252 $as_echo "$as_val"'`
17253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17254 $as_echo "$ac_res" >&6; }
17255 else
17256 # Is the header compilable?
17257 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17258 $as_echo_n "checking $ac_header usability... " >&6; }
17259 cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h. */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h. */
17265 $ac_includes_default
17266 #include <$ac_header>
17267 _ACEOF
17268 rm -f conftest.$ac_objext
17269 if { (ac_try="$ac_compile"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273 esac
17274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17275 $as_echo "$ac_try_echo") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17277 ac_status=$?
17278 grep -v '^ *+' conftest.er1 >conftest.err
17279 rm -f conftest.er1
17280 cat conftest.err >&5
17281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest.$ac_objext; then
17286 ac_header_compiler=yes
17287 else
17288 $as_echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_header_compiler=no
17294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17295 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17296 $as_echo "$ac_header_compiler" >&6; }
17298 # Is the header present?
17299 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17300 $as_echo_n "checking $ac_header presence... " >&6; }
17301 cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h. */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #include <$ac_header>
17308 _ACEOF
17309 if { (ac_try="$ac_cpp conftest.$ac_ext"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313 esac
17314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17315 $as_echo "$ac_try_echo") >&5
17316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } >/dev/null && {
17323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 }; then
17326 ac_header_preproc=yes
17327 else
17328 $as_echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_header_preproc=no
17334 rm -f conftest.err conftest.$ac_ext
17335 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17336 $as_echo "$ac_header_preproc" >&6; }
17338 # So? What about this header?
17339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17340 yes:no: )
17341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17342 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17345 ac_header_preproc=yes
17347 no:yes:* )
17348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17349 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17351 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17353 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17355 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17359 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17362 esac
17363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17364 $as_echo_n "checking for $ac_header... " >&6; }
17365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17366 $as_echo_n "(cached) " >&6
17367 else
17368 eval "$as_ac_Header=\$ac_header_preproc"
17370 ac_res=`eval 'as_val=${'$as_ac_Header'}
17371 $as_echo "$as_val"'`
17372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17373 $as_echo "$ac_res" >&6; }
17376 as_val=`eval 'as_val=${'$as_ac_Header'}
17377 $as_echo "$as_val"'`
17378 if test "x$as_val" = x""yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17381 _ACEOF
17385 done
17388 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17389 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17390 LIBS=`echo $LIBS | sed s/-ldl//`
17391 PERL_LIBS="$PERL_LIBS -ldl"
17395 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17396 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
17397 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17398 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17399 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17400 || test "x$features" = "xhuge"; then
17401 LIBS="$LIBS -framework Carbon"
17402 { $as_echo "$as_me:$LINENO: result: yes" >&5
17403 $as_echo "yes" >&6; }
17404 else
17405 { $as_echo "$as_me:$LINENO: result: no" >&5
17406 $as_echo "no" >&6; }
17409 if test "x$MACARCH" = "xboth"; then
17410 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17413 DEPEND_CFLAGS_FILTER=
17414 if test "$GCC" = yes; then
17415 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17416 $as_echo_n "checking for GCC 3 or later... " >&6; }
17417 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17418 if test "$gccmajor" -gt "2"; then
17419 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17420 { $as_echo "$as_me:$LINENO: result: yes" >&5
17421 $as_echo "yes" >&6; }
17422 else
17423 { $as_echo "$as_me:$LINENO: result: no" >&5
17424 $as_echo "no" >&6; }
17426 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17427 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17428 if test "$gccmajor" -gt "3"; then
17429 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
17430 { $as_echo "$as_me:$LINENO: result: yes" >&5
17431 $as_echo "yes" >&6; }
17432 else
17433 { $as_echo "$as_me:$LINENO: result: no" >&5
17434 $as_echo "no" >&6; }
17439 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17441 cat >confcache <<\_ACEOF
17442 # This file is a shell script that caches the results of configure
17443 # tests run on this system so they can be shared between configure
17444 # scripts and configure runs, see configure's option --config-cache.
17445 # It is not useful on other systems. If it contains results you don't
17446 # want to keep, you may remove or edit it.
17448 # config.status only pays attention to the cache file if you give it
17449 # the --recheck option to rerun configure.
17451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17453 # following values.
17455 _ACEOF
17457 # The following way of writing the cache mishandles newlines in values,
17458 # but we know of no workaround that is simple, portable, and efficient.
17459 # So, we kill variables containing newlines.
17460 # Ultrix sh set writes to stderr and can't be redirected directly,
17461 # and sets the high bit in the cache file unless we assign to the vars.
17463 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17464 eval ac_val=\$$ac_var
17465 case $ac_val in #(
17466 *${as_nl}*)
17467 case $ac_var in #(
17468 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17469 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17470 esac
17471 case $ac_var in #(
17472 _ | IFS | as_nl) ;; #(
17473 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17474 *) $as_unset $ac_var ;;
17475 esac ;;
17476 esac
17477 done
17479 (set) 2>&1 |
17480 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17481 *${as_nl}ac_space=\ *)
17482 # `set' does not quote correctly, so add quotes (double-quote
17483 # substitution turns \\\\ into \\, and sed turns \\ into \).
17484 sed -n \
17485 "s/'/'\\\\''/g;
17486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17487 ;; #(
17489 # `set' quotes correctly as required by POSIX, so do not add quotes.
17490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17492 esac |
17493 sort
17495 sed '
17496 /^ac_cv_env_/b end
17497 t clear
17498 :clear
17499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17500 t end
17501 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17502 :end' >>confcache
17503 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17504 if test -w "$cache_file"; then
17505 test "x$cache_file" != "x/dev/null" &&
17506 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17507 $as_echo "$as_me: updating cache $cache_file" >&6;}
17508 cat confcache >$cache_file
17509 else
17510 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17514 rm -f confcache
17516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17517 # Let make expand exec_prefix.
17518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17520 DEFS=-DHAVE_CONFIG_H
17522 ac_libobjs=
17523 ac_ltlibobjs=
17524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17525 # 1. Remove the extension, and $U if already installed.
17526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17527 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17529 # will be set to the directory where LIBOBJS objects are built.
17530 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17531 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17532 done
17533 LIBOBJS=$ac_libobjs
17535 LTLIBOBJS=$ac_ltlibobjs
17539 : ${CONFIG_STATUS=./config.status}
17540 ac_write_fail=0
17541 ac_clean_files_save=$ac_clean_files
17542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17543 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17544 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17545 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17546 #! $SHELL
17547 # Generated by $as_me.
17548 # Run this file to recreate the current configuration.
17549 # Compiler output produced by configure, useful for debugging
17550 # configure, is in config.log if it exists.
17552 debug=false
17553 ac_cs_recheck=false
17554 ac_cs_silent=false
17555 SHELL=\${CONFIG_SHELL-$SHELL}
17556 _ACEOF
17558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17559 ## --------------------- ##
17560 ## M4sh Initialization. ##
17561 ## --------------------- ##
17563 # Be more Bourne compatible
17564 DUALCASE=1; export DUALCASE # for MKS sh
17565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17566 emulate sh
17567 NULLCMD=:
17568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17569 # is contrary to our usage. Disable this feature.
17570 alias -g '${1+"$@"}'='"$@"'
17571 setopt NO_GLOB_SUBST
17572 else
17573 case `(set -o) 2>/dev/null` in
17574 *posix*) set -o posix ;;
17575 esac
17582 # PATH needs CR
17583 # Avoid depending upon Character Ranges.
17584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17587 as_cr_digits='0123456789'
17588 as_cr_alnum=$as_cr_Letters$as_cr_digits
17590 as_nl='
17592 export as_nl
17593 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17594 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17596 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17597 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17598 as_echo='printf %s\n'
17599 as_echo_n='printf %s'
17600 else
17601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17602 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17603 as_echo_n='/usr/ucb/echo -n'
17604 else
17605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17606 as_echo_n_body='eval
17607 arg=$1;
17608 case $arg in
17609 *"$as_nl"*)
17610 expr "X$arg" : "X\\(.*\\)$as_nl";
17611 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17612 esac;
17613 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17615 export as_echo_n_body
17616 as_echo_n='sh -c $as_echo_n_body as_echo'
17618 export as_echo_body
17619 as_echo='sh -c $as_echo_body as_echo'
17622 # The user is always right.
17623 if test "${PATH_SEPARATOR+set}" != set; then
17624 PATH_SEPARATOR=:
17625 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17626 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17627 PATH_SEPARATOR=';'
17631 # Support unset when possible.
17632 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17633 as_unset=unset
17634 else
17635 as_unset=false
17639 # IFS
17640 # We need space, tab and new line, in precisely that order. Quoting is
17641 # there to prevent editors from complaining about space-tab.
17642 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17643 # splitting by setting IFS to empty value.)
17644 IFS=" "" $as_nl"
17646 # Find who we are. Look in the path if we contain no directory separator.
17647 case $0 in
17648 *[\\/]* ) as_myself=$0 ;;
17649 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17650 for as_dir in $PATH
17652 IFS=$as_save_IFS
17653 test -z "$as_dir" && as_dir=.
17654 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17655 done
17656 IFS=$as_save_IFS
17659 esac
17660 # We did not find ourselves, most probably we were run as `sh COMMAND'
17661 # in which case we are not to be found in the path.
17662 if test "x$as_myself" = x; then
17663 as_myself=$0
17665 if test ! -f "$as_myself"; then
17666 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17667 { (exit 1); exit 1; }
17670 # Work around bugs in pre-3.0 UWIN ksh.
17671 for as_var in ENV MAIL MAILPATH
17672 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17673 done
17674 PS1='$ '
17675 PS2='> '
17676 PS4='+ '
17678 # NLS nuisances.
17679 LC_ALL=C
17680 export LC_ALL
17681 LANGUAGE=C
17682 export LANGUAGE
17684 # Required to use basename.
17685 if expr a : '\(a\)' >/dev/null 2>&1 &&
17686 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17687 as_expr=expr
17688 else
17689 as_expr=false
17692 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17693 as_basename=basename
17694 else
17695 as_basename=false
17699 # Name of the executable.
17700 as_me=`$as_basename -- "$0" ||
17701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17702 X"$0" : 'X\(//\)$' \| \
17703 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17704 $as_echo X/"$0" |
17705 sed '/^.*\/\([^/][^/]*\)\/*$/{
17706 s//\1/
17709 /^X\/\(\/\/\)$/{
17710 s//\1/
17713 /^X\/\(\/\).*/{
17714 s//\1/
17717 s/.*/./; q'`
17719 # CDPATH.
17720 $as_unset CDPATH
17724 as_lineno_1=$LINENO
17725 as_lineno_2=$LINENO
17726 test "x$as_lineno_1" != "x$as_lineno_2" &&
17727 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17729 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17730 # uniformly replaced by the line number. The first 'sed' inserts a
17731 # line-number line after each line using $LINENO; the second 'sed'
17732 # does the real work. The second script uses 'N' to pair each
17733 # line-number line with the line containing $LINENO, and appends
17734 # trailing '-' during substitution so that $LINENO is not a special
17735 # case at line end.
17736 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17737 # scripts with optimization help from Paolo Bonzini. Blame Lee
17738 # E. McMahon (1931-1989) for sed's syntax. :-)
17739 sed -n '
17741 /[$]LINENO/=
17742 ' <$as_myself |
17743 sed '
17744 s/[$]LINENO.*/&-/
17745 t lineno
17747 :lineno
17749 :loop
17750 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17751 t loop
17752 s/-\n.*//
17753 ' >$as_me.lineno &&
17754 chmod +x "$as_me.lineno" ||
17755 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17756 { (exit 1); exit 1; }; }
17758 # Don't try to exec as it changes $[0], causing all sort of problems
17759 # (the dirname of $[0] is not the place where we might find the
17760 # original and so on. Autoconf is especially sensitive to this).
17761 . "./$as_me.lineno"
17762 # Exit status is that of the last command.
17763 exit
17767 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17768 as_dirname=dirname
17769 else
17770 as_dirname=false
17773 ECHO_C= ECHO_N= ECHO_T=
17774 case `echo -n x` in
17775 -n*)
17776 case `echo 'x\c'` in
17777 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17778 *) ECHO_C='\c';;
17779 esac;;
17781 ECHO_N='-n';;
17782 esac
17783 if expr a : '\(a\)' >/dev/null 2>&1 &&
17784 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17785 as_expr=expr
17786 else
17787 as_expr=false
17790 rm -f conf$$ conf$$.exe conf$$.file
17791 if test -d conf$$.dir; then
17792 rm -f conf$$.dir/conf$$.file
17793 else
17794 rm -f conf$$.dir
17795 mkdir conf$$.dir 2>/dev/null
17797 if (echo >conf$$.file) 2>/dev/null; then
17798 if ln -s conf$$.file conf$$ 2>/dev/null; then
17799 as_ln_s='ln -s'
17800 # ... but there are two gotchas:
17801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17803 # In both cases, we have to default to `cp -p'.
17804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17805 as_ln_s='cp -p'
17806 elif ln conf$$.file conf$$ 2>/dev/null; then
17807 as_ln_s=ln
17808 else
17809 as_ln_s='cp -p'
17811 else
17812 as_ln_s='cp -p'
17814 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17815 rmdir conf$$.dir 2>/dev/null
17817 if mkdir -p . 2>/dev/null; then
17818 as_mkdir_p=:
17819 else
17820 test -d ./-p && rmdir ./-p
17821 as_mkdir_p=false
17824 if test -x / >/dev/null 2>&1; then
17825 as_test_x='test -x'
17826 else
17827 if ls -dL / >/dev/null 2>&1; then
17828 as_ls_L_option=L
17829 else
17830 as_ls_L_option=
17832 as_test_x='
17833 eval sh -c '\''
17834 if test -d "$1"; then
17835 test -d "$1/.";
17836 else
17837 case $1 in
17838 -*)set "./$1";;
17839 esac;
17840 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17841 ???[sx]*):;;*)false;;esac;fi
17842 '\'' sh
17845 as_executable_p=$as_test_x
17847 # Sed expression to map a string onto a valid CPP name.
17848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17850 # Sed expression to map a string onto a valid variable name.
17851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17854 exec 6>&1
17856 # Save the log message, to keep $[0] and so on meaningful, and to
17857 # report actual input values of CONFIG_FILES etc. instead of their
17858 # values after options handling.
17859 ac_log="
17860 This file was extended by $as_me, which was
17861 generated by GNU Autoconf 2.63. Invocation command line was
17863 CONFIG_FILES = $CONFIG_FILES
17864 CONFIG_HEADERS = $CONFIG_HEADERS
17865 CONFIG_LINKS = $CONFIG_LINKS
17866 CONFIG_COMMANDS = $CONFIG_COMMANDS
17867 $ $0 $@
17869 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17872 _ACEOF
17874 case $ac_config_files in *"
17875 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17876 esac
17878 case $ac_config_headers in *"
17879 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17880 esac
17883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17884 # Files that config.status was made for.
17885 config_files="$ac_config_files"
17886 config_headers="$ac_config_headers"
17888 _ACEOF
17890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17891 ac_cs_usage="\
17892 \`$as_me' instantiates files from templates according to the
17893 current configuration.
17895 Usage: $0 [OPTION]... [FILE]...
17897 -h, --help print this help, then exit
17898 -V, --version print version number and configuration settings, then exit
17899 -q, --quiet, --silent
17900 do not print progress messages
17901 -d, --debug don't remove temporary files
17902 --recheck update $as_me by reconfiguring in the same conditions
17903 --file=FILE[:TEMPLATE]
17904 instantiate the configuration file FILE
17905 --header=FILE[:TEMPLATE]
17906 instantiate the configuration header FILE
17908 Configuration files:
17909 $config_files
17911 Configuration headers:
17912 $config_headers
17914 Report bugs to <bug-autoconf@gnu.org>."
17916 _ACEOF
17917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17918 ac_cs_version="\\
17919 config.status
17920 configured by $0, generated by GNU Autoconf 2.63,
17921 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17923 Copyright (C) 2008 Free Software Foundation, Inc.
17924 This config.status script is free software; the Free Software Foundation
17925 gives unlimited permission to copy, distribute and modify it."
17927 ac_pwd='$ac_pwd'
17928 srcdir='$srcdir'
17929 AWK='$AWK'
17930 test -n "\$AWK" || AWK=awk
17931 _ACEOF
17933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17934 # The default lists apply if the user does not specify any file.
17935 ac_need_defaults=:
17936 while test $# != 0
17938 case $1 in
17939 --*=*)
17940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17942 ac_shift=:
17945 ac_option=$1
17946 ac_optarg=$2
17947 ac_shift=shift
17949 esac
17951 case $ac_option in
17952 # Handling of the options.
17953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17954 ac_cs_recheck=: ;;
17955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17956 $as_echo "$ac_cs_version"; exit ;;
17957 --debug | --debu | --deb | --de | --d | -d )
17958 debug=: ;;
17959 --file | --fil | --fi | --f )
17960 $ac_shift
17961 case $ac_optarg in
17962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17963 esac
17964 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17965 ac_need_defaults=false;;
17966 --header | --heade | --head | --hea )
17967 $ac_shift
17968 case $ac_optarg in
17969 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17970 esac
17971 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17972 ac_need_defaults=false;;
17973 --he | --h)
17974 # Conflict between --help and --header
17975 { $as_echo "$as_me: error: ambiguous option: $1
17976 Try \`$0 --help' for more information." >&2
17977 { (exit 1); exit 1; }; };;
17978 --help | --hel | -h )
17979 $as_echo "$ac_cs_usage"; exit ;;
17980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17982 ac_cs_silent=: ;;
17984 # This is an error.
17985 -*) { $as_echo "$as_me: error: unrecognized option: $1
17986 Try \`$0 --help' for more information." >&2
17987 { (exit 1); exit 1; }; } ;;
17989 *) ac_config_targets="$ac_config_targets $1"
17990 ac_need_defaults=false ;;
17992 esac
17993 shift
17994 done
17996 ac_configure_extra_args=
17998 if $ac_cs_silent; then
17999 exec 6>/dev/null
18000 ac_configure_extra_args="$ac_configure_extra_args --silent"
18003 _ACEOF
18004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18005 if \$ac_cs_recheck; then
18006 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18007 shift
18008 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18009 CONFIG_SHELL='$SHELL'
18010 export CONFIG_SHELL
18011 exec "\$@"
18014 _ACEOF
18015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18016 exec 5>>auto/config.log
18018 echo
18019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18020 ## Running $as_me. ##
18021 _ASBOX
18022 $as_echo "$ac_log"
18023 } >&5
18025 _ACEOF
18026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18027 _ACEOF
18029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18031 # Handling of arguments.
18032 for ac_config_target in $ac_config_targets
18034 case $ac_config_target in
18035 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18036 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18038 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18039 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18040 { (exit 1); exit 1; }; };;
18041 esac
18042 done
18045 # If the user did not use the arguments to specify the items to instantiate,
18046 # then the envvar interface is used. Set only those that are not.
18047 # We use the long form for the default assignment because of an extremely
18048 # bizarre bug on SunOS 4.1.3.
18049 if $ac_need_defaults; then
18050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18054 # Have a temporary directory for convenience. Make it in the build tree
18055 # simply because there is no reason against having it here, and in addition,
18056 # creating and moving files from /tmp can sometimes cause problems.
18057 # Hook for its removal unless debugging.
18058 # Note that there is a small window in which the directory will not be cleaned:
18059 # after its creation but before its name has been assigned to `$tmp'.
18060 $debug ||
18062 tmp=
18063 trap 'exit_status=$?
18064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18066 trap '{ (exit 1); exit 1; }' 1 2 13 15
18068 # Create a (secure) tmp directory for tmp files.
18071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18072 test -n "$tmp" && test -d "$tmp"
18073 } ||
18075 tmp=./conf$$-$RANDOM
18076 (umask 077 && mkdir "$tmp")
18077 } ||
18079 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18080 { (exit 1); exit 1; }
18083 # Set up the scripts for CONFIG_FILES section.
18084 # No need to generate them if there are no CONFIG_FILES.
18085 # This happens for instance with `./config.status config.h'.
18086 if test -n "$CONFIG_FILES"; then
18089 ac_cr=' '
18090 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18091 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18092 ac_cs_awk_cr='\\r'
18093 else
18094 ac_cs_awk_cr=$ac_cr
18097 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18098 _ACEOF
18102 echo "cat >conf$$subs.awk <<_ACEOF" &&
18103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18104 echo "_ACEOF"
18105 } >conf$$subs.sh ||
18106 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18107 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18108 { (exit 1); exit 1; }; }
18109 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18110 ac_delim='%!_!# '
18111 for ac_last_try in false false false false false :; do
18112 . ./conf$$subs.sh ||
18113 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18114 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18115 { (exit 1); exit 1; }; }
18117 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18118 if test $ac_delim_n = $ac_delim_num; then
18119 break
18120 elif $ac_last_try; then
18121 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18122 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18123 { (exit 1); exit 1; }; }
18124 else
18125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18127 done
18128 rm -f conf$$subs.sh
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18132 _ACEOF
18133 sed -n '
18135 s/^/S["/; s/!.*/"]=/
18138 s/^[^!]*!//
18139 :repl
18140 t repl
18141 s/'"$ac_delim"'$//
18142 t delim
18145 s/\(.\{148\}\).*/\1/
18146 t more1
18147 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18150 b repl
18151 :more1
18152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18155 s/.\{148\}//
18156 t nl
18157 :delim
18159 s/\(.\{148\}\).*/\1/
18160 t more2
18161 s/["\\]/\\&/g; s/^/"/; s/$/"/
18164 :more2
18165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18168 s/.\{148\}//
18169 t delim
18170 ' <conf$$subs.awk | sed '
18171 /^[^""]/{
18173 s/\n//
18175 ' >>$CONFIG_STATUS || ac_write_fail=1
18176 rm -f conf$$subs.awk
18177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18178 _ACAWK
18179 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18180 for (key in S) S_is_set[key] = 1
18181 FS = "\a"
18185 line = $ 0
18186 nfields = split(line, field, "@")
18187 substed = 0
18188 len = length(field[1])
18189 for (i = 2; i < nfields; i++) {
18190 key = field[i]
18191 keylen = length(key)
18192 if (S_is_set[key]) {
18193 value = S[key]
18194 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18195 len += length(value) + length(field[++i])
18196 substed = 1
18197 } else
18198 len += 1 + keylen
18201 print line
18204 _ACAWK
18205 _ACEOF
18206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18208 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18209 else
18211 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18212 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18213 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18214 { (exit 1); exit 1; }; }
18215 _ACEOF
18217 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18218 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18219 # trailing colons and then remove the whole line if VPATH becomes empty
18220 # (actually we leave an empty line to preserve line numbers).
18221 if test "x$srcdir" = x.; then
18222 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18223 s/:*\$(srcdir):*/:/
18224 s/:*\${srcdir}:*/:/
18225 s/:*@srcdir@:*/:/
18226 s/^\([^=]*=[ ]*\):*/\1/
18227 s/:*$//
18228 s/^[^=]*=[ ]*$//
18232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18233 fi # test -n "$CONFIG_FILES"
18235 # Set up the scripts for CONFIG_HEADERS section.
18236 # No need to generate them if there are no CONFIG_HEADERS.
18237 # This happens for instance with `./config.status Makefile'.
18238 if test -n "$CONFIG_HEADERS"; then
18239 cat >"$tmp/defines.awk" <<\_ACAWK ||
18240 BEGIN {
18241 _ACEOF
18243 # Transform confdefs.h into an awk script `defines.awk', embedded as
18244 # here-document in config.status, that substitutes the proper values into
18245 # config.h.in to produce config.h.
18247 # Create a delimiter string that does not exist in confdefs.h, to ease
18248 # handling of long lines.
18249 ac_delim='%!_!# '
18250 for ac_last_try in false false :; do
18251 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18252 if test -z "$ac_t"; then
18253 break
18254 elif $ac_last_try; then
18255 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18256 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18257 { (exit 1); exit 1; }; }
18258 else
18259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18261 done
18263 # For the awk script, D is an array of macro values keyed by name,
18264 # likewise P contains macro parameters if any. Preserve backslash
18265 # newline sequences.
18267 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18268 sed -n '
18269 s/.\{148\}/&'"$ac_delim"'/g
18270 t rset
18271 :rset
18272 s/^[ ]*#[ ]*define[ ][ ]*/ /
18273 t def
18275 :def
18276 s/\\$//
18277 t bsnl
18278 s/["\\]/\\&/g
18279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18280 D["\1"]=" \3"/p
18281 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18283 :bsnl
18284 s/["\\]/\\&/g
18285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18286 D["\1"]=" \3\\\\\\n"\\/p
18287 t cont
18288 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18289 t cont
18291 :cont
18293 s/.\{148\}/&'"$ac_delim"'/g
18294 t clear
18295 :clear
18296 s/\\$//
18297 t bsnlc
18298 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18300 :bsnlc
18301 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18302 b cont
18303 ' <confdefs.h | sed '
18304 s/'"$ac_delim"'/"\\\
18305 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 for (key in D) D_is_set[key] = 1
18309 FS = "\a"
18311 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18312 line = \$ 0
18313 split(line, arg, " ")
18314 if (arg[1] == "#") {
18315 defundef = arg[2]
18316 mac1 = arg[3]
18317 } else {
18318 defundef = substr(arg[1], 2)
18319 mac1 = arg[2]
18321 split(mac1, mac2, "(") #)
18322 macro = mac2[1]
18323 prefix = substr(line, 1, index(line, defundef) - 1)
18324 if (D_is_set[macro]) {
18325 # Preserve the white space surrounding the "#".
18326 print prefix "define", macro P[macro] D[macro]
18327 next
18328 } else {
18329 # Replace #undef with comments. This is necessary, for example,
18330 # in the case of _POSIX_SOURCE, which is predefined and required
18331 # on some systems where configure will not decide to define it.
18332 if (defundef == "undef") {
18333 print "/*", prefix defundef, macro, "*/"
18334 next
18338 { print }
18339 _ACAWK
18340 _ACEOF
18341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18342 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18343 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18344 { (exit 1); exit 1; }; }
18345 fi # test -n "$CONFIG_HEADERS"
18348 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18349 shift
18350 for ac_tag
18352 case $ac_tag in
18353 :[FHLC]) ac_mode=$ac_tag; continue;;
18354 esac
18355 case $ac_mode$ac_tag in
18356 :[FHL]*:*);;
18357 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18358 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18359 { (exit 1); exit 1; }; };;
18360 :[FH]-) ac_tag=-:-;;
18361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18362 esac
18363 ac_save_IFS=$IFS
18364 IFS=:
18365 set x $ac_tag
18366 IFS=$ac_save_IFS
18367 shift
18368 ac_file=$1
18369 shift
18371 case $ac_mode in
18372 :L) ac_source=$1;;
18373 :[FH])
18374 ac_file_inputs=
18375 for ac_f
18377 case $ac_f in
18378 -) ac_f="$tmp/stdin";;
18379 *) # Look for the file first in the build tree, then in the source tree
18380 # (if the path is not absolute). The absolute path cannot be DOS-style,
18381 # because $ac_f cannot contain `:'.
18382 test -f "$ac_f" ||
18383 case $ac_f in
18384 [\\/$]*) false;;
18385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18386 esac ||
18387 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18388 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18389 { (exit 1); exit 1; }; };;
18390 esac
18391 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18392 ac_file_inputs="$ac_file_inputs '$ac_f'"
18393 done
18395 # Let's still pretend it is `configure' which instantiates (i.e., don't
18396 # use $as_me), people would be surprised to read:
18397 # /* config.h. Generated by config.status. */
18398 configure_input='Generated from '`
18399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18400 `' by configure.'
18401 if test x"$ac_file" != x-; then
18402 configure_input="$ac_file. $configure_input"
18403 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18404 $as_echo "$as_me: creating $ac_file" >&6;}
18406 # Neutralize special characters interpreted by sed in replacement strings.
18407 case $configure_input in #(
18408 *\&* | *\|* | *\\* )
18409 ac_sed_conf_input=`$as_echo "$configure_input" |
18410 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18411 *) ac_sed_conf_input=$configure_input;;
18412 esac
18414 case $ac_tag in
18415 *:-:* | *:-) cat >"$tmp/stdin" \
18416 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18417 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18418 { (exit 1); exit 1; }; } ;;
18419 esac
18421 esac
18423 ac_dir=`$as_dirname -- "$ac_file" ||
18424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18425 X"$ac_file" : 'X\(//\)[^/]' \| \
18426 X"$ac_file" : 'X\(//\)$' \| \
18427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18428 $as_echo X"$ac_file" |
18429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18430 s//\1/
18433 /^X\(\/\/\)[^/].*/{
18434 s//\1/
18437 /^X\(\/\/\)$/{
18438 s//\1/
18441 /^X\(\/\).*/{
18442 s//\1/
18445 s/.*/./; q'`
18446 { as_dir="$ac_dir"
18447 case $as_dir in #(
18448 -*) as_dir=./$as_dir;;
18449 esac
18450 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18451 as_dirs=
18452 while :; do
18453 case $as_dir in #(
18454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18455 *) as_qdir=$as_dir;;
18456 esac
18457 as_dirs="'$as_qdir' $as_dirs"
18458 as_dir=`$as_dirname -- "$as_dir" ||
18459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18460 X"$as_dir" : 'X\(//\)[^/]' \| \
18461 X"$as_dir" : 'X\(//\)$' \| \
18462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18463 $as_echo X"$as_dir" |
18464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18465 s//\1/
18468 /^X\(\/\/\)[^/].*/{
18469 s//\1/
18472 /^X\(\/\/\)$/{
18473 s//\1/
18476 /^X\(\/\).*/{
18477 s//\1/
18480 s/.*/./; q'`
18481 test -d "$as_dir" && break
18482 done
18483 test -z "$as_dirs" || eval "mkdir $as_dirs"
18484 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18485 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18486 { (exit 1); exit 1; }; }; }
18487 ac_builddir=.
18489 case "$ac_dir" in
18490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18493 # A ".." for each directory in $ac_dir_suffix.
18494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18495 case $ac_top_builddir_sub in
18496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18498 esac ;;
18499 esac
18500 ac_abs_top_builddir=$ac_pwd
18501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18502 # for backward compatibility:
18503 ac_top_builddir=$ac_top_build_prefix
18505 case $srcdir in
18506 .) # We are building in place.
18507 ac_srcdir=.
18508 ac_top_srcdir=$ac_top_builddir_sub
18509 ac_abs_top_srcdir=$ac_pwd ;;
18510 [\\/]* | ?:[\\/]* ) # Absolute name.
18511 ac_srcdir=$srcdir$ac_dir_suffix;
18512 ac_top_srcdir=$srcdir
18513 ac_abs_top_srcdir=$srcdir ;;
18514 *) # Relative name.
18515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18516 ac_top_srcdir=$ac_top_build_prefix$srcdir
18517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18518 esac
18519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18522 case $ac_mode in
18525 # CONFIG_FILE
18528 _ACEOF
18530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18531 # If the template does not know about datarootdir, expand it.
18532 # FIXME: This hack should be removed a few years after 2.60.
18533 ac_datarootdir_hack=; ac_datarootdir_seen=
18535 ac_sed_dataroot='
18536 /datarootdir/ {
18540 /@datadir@/p
18541 /@docdir@/p
18542 /@infodir@/p
18543 /@localedir@/p
18544 /@mandir@/p
18546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18547 *datarootdir*) ac_datarootdir_seen=yes;;
18548 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18549 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18551 _ACEOF
18552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18553 ac_datarootdir_hack='
18554 s&@datadir@&$datadir&g
18555 s&@docdir@&$docdir&g
18556 s&@infodir@&$infodir&g
18557 s&@localedir@&$localedir&g
18558 s&@mandir@&$mandir&g
18559 s&\\\${datarootdir}&$datarootdir&g' ;;
18560 esac
18561 _ACEOF
18563 # Neutralize VPATH when `$srcdir' = `.'.
18564 # Shell code in configure.ac might set extrasub.
18565 # FIXME: do we really want to maintain this feature?
18566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567 ac_sed_extra="$ac_vpsub
18568 $extrasub
18569 _ACEOF
18570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18573 s|@configure_input@|$ac_sed_conf_input|;t t
18574 s&@top_builddir@&$ac_top_builddir_sub&;t t
18575 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18576 s&@srcdir@&$ac_srcdir&;t t
18577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18578 s&@top_srcdir@&$ac_top_srcdir&;t t
18579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18580 s&@builddir@&$ac_builddir&;t t
18581 s&@abs_builddir@&$ac_abs_builddir&;t t
18582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18583 $ac_datarootdir_hack
18585 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18586 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18587 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18588 { (exit 1); exit 1; }; }
18590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18591 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18593 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18594 which seems to be undefined. Please make sure it is defined." >&5
18595 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18596 which seems to be undefined. Please make sure it is defined." >&2;}
18598 rm -f "$tmp/stdin"
18599 case $ac_file in
18600 -) cat "$tmp/out" && rm -f "$tmp/out";;
18601 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18602 esac \
18603 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18604 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18605 { (exit 1); exit 1; }; }
18609 # CONFIG_HEADER
18611 if test x"$ac_file" != x-; then
18613 $as_echo "/* $configure_input */" \
18614 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18615 } >"$tmp/config.h" \
18616 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18617 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18618 { (exit 1); exit 1; }; }
18619 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18620 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18621 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18622 else
18623 rm -f "$ac_file"
18624 mv "$tmp/config.h" "$ac_file" \
18625 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18626 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18627 { (exit 1); exit 1; }; }
18629 else
18630 $as_echo "/* $configure_input */" \
18631 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18632 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18633 $as_echo "$as_me: error: could not create -" >&2;}
18634 { (exit 1); exit 1; }; }
18639 esac
18641 done # for ac_tag
18644 { (exit 0); exit 0; }
18645 _ACEOF
18646 chmod +x $CONFIG_STATUS
18647 ac_clean_files=$ac_clean_files_save
18649 test $ac_write_fail = 0 ||
18650 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18651 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18652 { (exit 1); exit 1; }; }
18655 # configure is writing to config.log, and then calls config.status.
18656 # config.status does its own redirection, appending to config.log.
18657 # Unfortunately, on DOS this fails, as config.log is still kept open
18658 # by configure, so config.status won't be able to write to it; its
18659 # output is simply discarded. So we exec the FD to /dev/null,
18660 # effectively closing config.log, so it can be properly (re)opened and
18661 # appended to by config.status. When coming back to configure, we
18662 # need to make the FD available again.
18663 if test "$no_create" != yes; then
18664 ac_cs_success=:
18665 ac_config_status_args=
18666 test "$silent" = yes &&
18667 ac_config_status_args="$ac_config_status_args --quiet"
18668 exec 5>/dev/null
18669 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18670 exec 5>>auto/config.log
18671 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18672 # would make configure fail if this is the last instruction.
18673 $ac_cs_success || { (exit 1); exit 1; }
18675 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18676 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18677 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}