Merge branch 'vim-with-runtime' into feat/float-point-ext
[vim_extended.git] / src / auto / configure
blobd8d801036f2f34d0d2adfa7ef6a8e60455418ede
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 XCODE_SELECT
722 CPP_MM
723 STRIP
725 EGREP
726 GREP
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
735 SET_MAKE
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_darwin
777 with_mac_arch
778 with_developer_dir
779 with_local_dir
780 with_vim_name
781 with_ex_name
782 with_view_name
783 with_global_runtime
784 with_modified_by
785 enable_selinux
786 with_features
787 with_compiledby
788 enable_xsmp
789 enable_xsmp_interact
790 enable_mzschemeinterp
791 with_plthome
792 enable_perlinterp
793 enable_pythoninterp
794 with_python_config_dir
795 enable_tclinterp
796 with_tclsh
797 enable_rubyinterp
798 with_ruby_command
799 enable_cscope
800 enable_workshop
801 enable_netbeans
802 enable_sniff
803 enable_multibyte
804 enable_hangulinput
805 enable_xim
806 enable_fontset
807 with_x
808 enable_gui
809 enable_gtk_check
810 enable_gtk2_check
811 enable_gnome_check
812 enable_motif_check
813 enable_athena_check
814 enable_nextaw_check
815 enable_carbon_check
816 with_gtk_prefix
817 with_gtk_exec_prefix
818 enable_gtktest
819 with_gnome_includes
820 with_gnome_libs
821 with_gnome
822 with_motif_lib
823 with_tlib
824 enable_acl
825 enable_gpm
826 enable_sysmouse
827 enable_nls
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
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 --disable-gtktest Do not try to compile and run a test GTK program
1488 --disable-acl Don't check for ACL support.
1489 --disable-gpm Don't use gpm (Linux mouse daemon).
1490 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1491 --disable-nls Don't support NLS (gettext()).
1493 Optional Packages:
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-mac-arch=ARCH current, intel, ppc or both
1497 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1498 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1499 --without-local-dir do not search /usr/local for local libraries.
1500 --with-vim-name=NAME what to call the Vim executable
1501 --with-ex-name=NAME what to call the Ex executable
1502 --with-view-name=NAME what to call the View executable
1503 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1504 --with-modified-by=NAME name of who modified a release version
1505 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1506 --with-compiledby=NAME name to show in :version message
1507 --with-plthome=PLTHOME Use PLTHOME.
1508 --with-python-config-dir=PATH Python's config directory
1509 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1510 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
1511 --with-x use the X Window System
1512 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1513 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1514 --with-gnome-includes=DIR Specify location of GNOME headers
1515 --with-gnome-libs=DIR Specify location of GNOME libs
1516 --with-gnome Specify prefix for GNOME files
1517 --with-motif-lib=STRING Library for Motif
1518 --with-tlib=library terminal library to be used
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1528 CPP C preprocessor
1529 XMKMF Path to xmkmf, Makefile generator for X Window System
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 _ACEOF
1535 ac_status=$?
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 configure
1597 generated by GNU Autoconf 2.63
1599 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1606 cat >auto/config.log <<_ACEOF
1607 This file contains any messages produced by compilers while
1608 running configure, to aid debugging if configure makes a mistake.
1610 It was created by $as_me, which was
1611 generated by GNU Autoconf 2.63. Invocation command line was
1613 $ $0 $@
1615 _ACEOF
1616 exec 5>>auto/config.log
1618 cat <<_ASUNAME
1619 ## --------- ##
1620 ## Platform. ##
1621 ## --------- ##
1623 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1624 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1625 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1626 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1627 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1629 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1630 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1632 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1633 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1634 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1635 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1636 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1637 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1638 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1640 _ASUNAME
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 for as_dir in $PATH
1645 IFS=$as_save_IFS
1646 test -z "$as_dir" && as_dir=.
1647 $as_echo "PATH: $as_dir"
1648 done
1649 IFS=$as_save_IFS
1651 } >&5
1653 cat >&5 <<_ACEOF
1656 ## ----------- ##
1657 ## Core tests. ##
1658 ## ----------- ##
1660 _ACEOF
1663 # Keep a trace of the command line.
1664 # Strip out --no-create and --no-recursion so they do not pile up.
1665 # Strip out --silent because we don't want to record it for future runs.
1666 # Also quote any args containing shell meta-characters.
1667 # Make two passes to allow for proper duplicate-argument suppression.
1668 ac_configure_args=
1669 ac_configure_args0=
1670 ac_configure_args1=
1671 ac_must_keep_next=false
1672 for ac_pass in 1 2
1674 for ac_arg
1676 case $ac_arg in
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1680 continue ;;
1681 *\'*)
1682 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 esac
1684 case $ac_pass in
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
1689 ac_must_keep_next=false # Got value, back to normal.
1690 else
1691 case $ac_arg in
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 esac
1700 -* ) ac_must_keep_next=true ;;
1701 esac
1703 ac_configure_args="$ac_configure_args '$ac_arg'"
1705 esac
1706 done
1707 done
1708 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711 # When interrupted or exit'd, cleanup temporary files, and complete
1712 # config.log. We remove comments because anyway the quotes in there
1713 # would cause problems or look ugly.
1714 # WARNING: Use '\'' to represent an apostrophe within the trap.
1715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1719 echo
1721 cat <<\_ASBOX
1722 ## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##
1725 _ASBOX
1726 echo
1727 # The following way of writing the cache mishandles newlines in values,
1729 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1730 eval ac_val=\$$ac_var
1731 case $ac_val in #(
1732 *${as_nl}*)
1733 case $ac_var in #(
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1736 esac
1737 case $ac_var in #(
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) $as_unset $ac_var ;;
1741 esac ;;
1742 esac
1743 done
1744 (set) 2>&1 |
1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1747 sed -n \
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1750 ;; #(
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1754 esac |
1755 sort
1757 echo
1759 cat <<\_ASBOX
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1763 _ASBOX
1764 echo
1765 for ac_var in $ac_subst_vars
1767 eval ac_val=\$$ac_var
1768 case $ac_val in
1769 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770 esac
1771 $as_echo "$ac_var='\''$ac_val'\''"
1772 done | sort
1773 echo
1775 if test -n "$ac_subst_files"; then
1776 cat <<\_ASBOX
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1780 _ASBOX
1781 echo
1782 for ac_var in $ac_subst_files
1784 eval ac_val=\$$ac_var
1785 case $ac_val in
1786 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1787 esac
1788 $as_echo "$ac_var='\''$ac_val'\''"
1789 done | sort
1790 echo
1793 if test -s confdefs.h; then
1794 cat <<\_ASBOX
1795 ## ----------- ##
1796 ## confdefs.h. ##
1797 ## ----------- ##
1798 _ASBOX
1799 echo
1800 cat confdefs.h
1801 echo
1803 test "$ac_signal" != 0 &&
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
1806 } >&5
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1809 exit $exit_status
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 done
1814 ac_signal=0
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1819 # Predefined preprocessor variables.
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 _ACEOF
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 _ACEOF
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1848 ac_site_file1=NONE
1849 ac_site_file2=NONE
1850 if test -n "$CONFIG_SITE"; then
1851 ac_site_file1=$CONFIG_SITE
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1855 else
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1861 test "x$ac_site_file" = xNONE && continue
1862 if test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1866 . "$ac_site_file"
1868 done
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 $as_echo "$as_me: loading cache $cache_file" >&6;}
1876 case $cache_file in
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1879 esac
1881 else
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 $as_echo "$as_me: creating cache $cache_file" >&6;}
1884 >$cache_file
1887 # Check that the precious variables saved in the cache have kept the same
1888 # value.
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1896 set,)
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1900 ,set)
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1904 ,);;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x $ac_old_val`
1909 ac_new_val_w=`echo x $ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913 ac_cache_corrupted=:
1914 else
1915 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1916 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1923 fi;;
1924 esac
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1927 case $ac_new_val in
1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1930 esac
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 esac
1936 done
1937 if $ac_cache_corrupted; then
1938 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944 { (exit 1); exit 1; }; }
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1973 cat >>confdefs.h <<\_ACEOF
1974 #define UNIX 1
1975 _ACEOF
1977 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1979 set x ${MAKE-make}
1980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1982 $as_echo_n "(cached) " >&6
1983 else
1984 cat >conftest.make <<\_ACEOF
1985 SHELL = /bin/sh
1986 all:
1987 @echo '@@@%%%=$(MAKE)=@@@%%%'
1988 _ACEOF
1989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1991 *@@@%%%=?*=@@@%%%*)
1992 eval ac_cv_prog_make_${ac_make}_set=yes;;
1994 eval ac_cv_prog_make_${ac_make}_set=no;;
1995 esac
1996 rm -f conftest.make
1998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1999 { $as_echo "$as_me:$LINENO: result: yes" >&5
2000 $as_echo "yes" >&6; }
2001 SET_MAKE=
2002 else
2003 { $as_echo "$as_me:$LINENO: result: no" >&5
2004 $as_echo "no" >&6; }
2005 SET_MAKE="MAKE=${MAKE-make}"
2009 ac_ext=c
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2016 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2018 $as_echo_n "checking for $ac_word... " >&6; }
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 $as_echo_n "(cached) " >&6
2021 else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2036 done
2037 done
2038 IFS=$as_save_IFS
2042 CC=$ac_cv_prog_CC
2043 if test -n "$CC"; then
2044 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2045 $as_echo "$CC" >&6; }
2046 else
2047 { $as_echo "$as_me:$LINENO: result: no" >&5
2048 $as_echo "no" >&6; }
2053 if test -z "$ac_cv_prog_CC"; then
2054 ac_ct_CC=$CC
2055 # Extract the first word of "gcc", so it can be a program name with args.
2056 set dummy gcc; ac_word=$2
2057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 $as_echo_n "checking for $ac_word... " >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 $as_echo_n "(cached) " >&6
2061 else
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 else
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="gcc"
2073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 break 2
2076 done
2077 done
2078 IFS=$as_save_IFS
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2085 $as_echo "$ac_ct_CC" >&6; }
2086 else
2087 { $as_echo "$as_me:$LINENO: result: no" >&5
2088 $as_echo "no" >&6; }
2091 if test "x$ac_ct_CC" = x; then
2092 CC=""
2093 else
2094 case $cross_compiling:$ac_tool_warned in
2095 yes:)
2096 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100 CC=$ac_ct_CC
2102 else
2103 CC="$ac_cv_prog_CC"
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}cc; ac_word=$2
2110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 $as_echo_n "checking for $ac_word... " >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 $as_echo_n "(cached) " >&6
2114 else
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121 IFS=$as_save_IFS
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_CC="${ac_tool_prefix}cc"
2126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2131 IFS=$as_save_IFS
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2138 $as_echo "$CC" >&6; }
2139 else
2140 { $as_echo "$as_me:$LINENO: result: no" >&5
2141 $as_echo "no" >&6; }
2147 if test -z "$CC"; then
2148 # Extract the first word of "cc", so it can be a program name with args.
2149 set dummy cc; ac_word=$2
2150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 $as_echo_n "checking for $ac_word... " >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 $as_echo_n "(cached) " >&6
2154 else
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 ac_prog_rejected=no
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2162 IFS=$as_save_IFS
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167 ac_prog_rejected=yes
2168 continue
2170 ac_cv_prog_CC="cc"
2171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172 break 2
2174 done
2175 done
2176 IFS=$as_save_IFS
2178 if test $ac_prog_rejected = yes; then
2179 # We found a bogon in the path, so make sure we never use it.
2180 set dummy $ac_cv_prog_CC
2181 shift
2182 if test $# != 0; then
2183 # We chose a different compiler from the bogus one.
2184 # However, it has the same basename, so the bogon will be chosen
2185 # first if we set CC to just the basename; use the full file name.
2186 shift
2187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2195 $as_echo "$CC" >&6; }
2196 else
2197 { $as_echo "$as_me:$LINENO: result: no" >&5
2198 $as_echo "no" >&6; }
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 for ac_prog in cl.exe
2207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 $as_echo_n "(cached) " >&6
2213 else
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2228 done
2229 done
2230 IFS=$as_save_IFS
2234 CC=$ac_cv_prog_CC
2235 if test -n "$CC"; then
2236 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2237 $as_echo "$CC" >&6; }
2238 else
2239 { $as_echo "$as_me:$LINENO: result: no" >&5
2240 $as_echo "no" >&6; }
2244 test -n "$CC" && break
2245 done
2247 if test -z "$CC"; then
2248 ac_ct_CC=$CC
2249 for ac_prog in cl.exe
2251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 $as_echo_n "checking for $ac_word... " >&6; }
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 $as_echo_n "(cached) " >&6
2257 else
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2264 IFS=$as_save_IFS
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_ac_ct_CC="$ac_prog"
2269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2272 done
2273 done
2274 IFS=$as_save_IFS
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 $as_echo "$ac_ct_CC" >&6; }
2282 else
2283 { $as_echo "$as_me:$LINENO: result: no" >&5
2284 $as_echo "no" >&6; }
2288 test -n "$ac_ct_CC" && break
2289 done
2291 if test "x$ac_ct_CC" = x; then
2292 CC=""
2293 else
2294 case $cross_compiling:$ac_tool_warned in
2295 yes:)
2296 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2298 ac_tool_warned=yes ;;
2299 esac
2300 CC=$ac_ct_CC
2307 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }; }
2315 # Provide some information about the compiler.
2316 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2317 set X $ac_compile
2318 ac_compiler=$2
2319 { (ac_try="$ac_compiler --version >&5"
2320 case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2325 $as_echo "$ac_try_echo") >&5
2326 (eval "$ac_compiler --version >&5") 2>&5
2327 ac_status=$?
2328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2330 { (ac_try="$ac_compiler -v >&5"
2331 case "(($ac_try" in
2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2334 esac
2335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2336 $as_echo "$ac_try_echo") >&5
2337 (eval "$ac_compiler -v >&5") 2>&5
2338 ac_status=$?
2339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341 { (ac_try="$ac_compiler -V >&5"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2347 $as_echo "$ac_try_echo") >&5
2348 (eval "$ac_compiler -V >&5") 2>&5
2349 ac_status=$?
2350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2353 cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h. */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2361 main ()
2365 return 0;
2367 _ACEOF
2368 ac_clean_files_save=$ac_clean_files
2369 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2370 # Try to create an executable without -o first, disregard a.out.
2371 # It will help us diagnose broken compilers, and finding out an intuition
2372 # of exeext.
2373 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2374 $as_echo_n "checking for C compiler default output file name... " >&6; }
2375 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377 # The possible output files:
2378 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2380 ac_rmfiles=
2381 for ac_file in $ac_files
2383 case $ac_file in
2384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2386 esac
2387 done
2388 rm -f $ac_rmfiles
2390 if { (ac_try="$ac_link_default"
2391 case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2396 $as_echo "$ac_try_echo") >&5
2397 (eval "$ac_link_default") 2>&5
2398 ac_status=$?
2399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2402 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2403 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2404 # so that the user can short-circuit this test for compilers unknown to
2405 # Autoconf.
2406 for ac_file in $ac_files ''
2408 test -f "$ac_file" || continue
2409 case $ac_file in
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2412 [ab].out )
2413 # We found the default executable, but exeext='' is most
2414 # certainly right.
2415 break;;
2416 *.* )
2417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2418 then :; else
2419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # We set ac_cv_exeext here because the later test for it is not
2422 # safe: cross compilers may not add the suffix if given an `-o'
2423 # argument, so we may need to know it at that point already.
2424 # Even if this section looks crufty: it has the advantage of
2425 # actually working.
2426 break;;
2428 break;;
2429 esac
2430 done
2431 test "$ac_cv_exeext" = no && ac_cv_exeext=
2433 else
2434 ac_file=''
2437 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2438 $as_echo "$ac_file" >&6; }
2439 if test -z "$ac_file"; then
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&5
2447 $as_echo "$as_me: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&2;}
2449 { (exit 77); exit 77; }; }; }
2452 ac_exeext=$ac_cv_exeext
2454 # Check that the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 $as_echo_n "checking whether the C compiler works... " >&6; }
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461 if { ac_try='./$ac_file'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2467 $as_echo "$ac_try_echo") >&5
2468 (eval "$ac_try") 2>&5
2469 ac_status=$?
2470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 cross_compiling=no
2473 else
2474 if test "$cross_compiling" = maybe; then
2475 cross_compiling=yes
2476 else
2477 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&5
2482 $as_echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }; }
2489 { $as_echo "$as_me:$LINENO: result: yes" >&5
2490 $as_echo "yes" >&6; }
2492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run. If not, either
2495 # the compiler is broken, or we cross compile.
2496 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497 $as_echo_n "checking whether we are cross compiling... " >&6; }
2498 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499 $as_echo "$cross_compiling" >&6; }
2501 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502 $as_echo_n "checking for suffix of executables... " >&6; }
2503 if { (ac_try="$ac_link"
2504 case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507 esac
2508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510 (eval "$ac_link") 2>&5
2511 ac_status=$?
2512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2516 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 # `rm'.
2518 for ac_file in conftest.exe conftest conftest.*; do
2519 test -f "$ac_file" || continue
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 break;;
2524 * ) break;;
2525 esac
2526 done
2527 else
2528 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details." >&5
2532 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }; }
2537 rm -f conftest$ac_cv_exeext
2538 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 $as_echo "$ac_cv_exeext" >&6; }
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 $as_echo_n "checking for suffix of object files... " >&6; }
2546 if test "${ac_cv_objext+set}" = set; then
2547 $as_echo_n "(cached) " >&6
2548 else
2549 cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h. */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2557 main ()
2561 return 0;
2563 _ACEOF
2564 rm -f conftest.o conftest.obj
2565 if { (ac_try="$ac_compile"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571 $as_echo "$ac_try_echo") >&5
2572 (eval "$ac_compile") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 for ac_file in conftest.o conftest.obj conftest.*; do
2577 test -f "$ac_file" || continue;
2578 case $ac_file in
2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2581 break;;
2582 esac
2583 done
2584 else
2585 $as_echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2591 See \`config.log' for more details." >&5
2592 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }; }
2597 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2599 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2600 $as_echo "$ac_cv_objext" >&6; }
2601 OBJEXT=$ac_cv_objext
2602 ac_objext=$OBJEXT
2603 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2604 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2605 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2607 else
2608 cat >conftest.$ac_ext <<_ACEOF
2609 /* confdefs.h. */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2616 main ()
2618 #ifndef __GNUC__
2619 choke me
2620 #endif
2623 return 0;
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (ac_try="$ac_compile"
2628 case "(($ac_try" in
2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2631 esac
2632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2633 $as_echo "$ac_try_echo") >&5
2634 (eval "$ac_compile") 2>conftest.er1
2635 ac_status=$?
2636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
2638 cat conftest.err >&5
2639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } && {
2641 test -z "$ac_c_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest.$ac_objext; then
2644 ac_compiler_gnu=yes
2645 else
2646 $as_echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2649 ac_compiler_gnu=no
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2658 if test $ac_compiler_gnu = yes; then
2659 GCC=yes
2660 else
2661 GCC=
2663 ac_test_CFLAGS=${CFLAGS+set}
2664 ac_save_CFLAGS=$CFLAGS
2665 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2667 if test "${ac_cv_prog_cc_g+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2669 else
2670 ac_save_c_werror_flag=$ac_c_werror_flag
2671 ac_c_werror_flag=yes
2672 ac_cv_prog_cc_g=no
2673 CFLAGS="-g"
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h. */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2682 main ()
2686 return 0;
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2696 $as_echo "$ac_try_echo") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2707 ac_cv_prog_cc_g=yes
2708 else
2709 $as_echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2712 CFLAGS=""
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2721 main ()
2725 return 0;
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2735 $as_echo "$ac_try_echo") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2737 ac_status=$?
2738 grep -v '^ *+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
2747 else
2748 $as_echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 ac_c_werror_flag=$ac_save_c_werror_flag
2752 CFLAGS="-g"
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (ac_try="$ac_compile"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2775 $as_echo "$ac_try_echo") >&5
2776 (eval "$ac_compile") 2>conftest.er1
2777 ac_status=$?
2778 grep -v '^ *+' conftest.er1 >conftest.err
2779 rm -f conftest.er1
2780 cat conftest.err >&5
2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } && {
2783 test -z "$ac_c_werror_flag" ||
2784 test ! -s conftest.err
2785 } && test -s conftest.$ac_objext; then
2786 ac_cv_prog_cc_g=yes
2787 else
2788 $as_echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 ac_c_werror_flag=$ac_save_c_werror_flag
2803 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2804 $as_echo "$ac_cv_prog_cc_g" >&6; }
2805 if test "$ac_test_CFLAGS" = set; then
2806 CFLAGS=$ac_save_CFLAGS
2807 elif test $ac_cv_prog_cc_g = yes; then
2808 if test "$GCC" = yes; then
2809 CFLAGS="-g -O2"
2810 else
2811 CFLAGS="-g"
2813 else
2814 if test "$GCC" = yes; then
2815 CFLAGS="-O2"
2816 else
2817 CFLAGS=
2820 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2822 if test "${ac_cv_prog_cc_c89+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2824 else
2825 ac_cv_prog_cc_c89=no
2826 ac_save_CC=$CC
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2833 #include <stdarg.h>
2834 #include <stdio.h>
2835 #include <sys/types.h>
2836 #include <sys/stat.h>
2837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2838 struct buf { int x; };
2839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2840 static char *e (p, i)
2841 char **p;
2842 int i;
2844 return p[i];
2846 static char *f (char * (*g) (char **, int), char **p, ...)
2848 char *s;
2849 va_list v;
2850 va_start (v,p);
2851 s = g (p, va_arg (v,int));
2852 va_end (v);
2853 return s;
2856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2857 function prototypes and stuff, but not '\xHH' hex character constants.
2858 These don't provoke an error unfortunately, instead are silently treated
2859 as 'x'. The following induces an error, until -std is added to get
2860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2861 array size at least. It's necessary to write '\x00'==0 to get something
2862 that's true only with -std. */
2863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2866 inside strings and character constants. */
2867 #define FOO(x) 'x'
2868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2870 int test (int i, double x);
2871 struct s1 {int (*f) (int a);};
2872 struct s2 {int (*f) (double a);};
2873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2874 int argc;
2875 char **argv;
2877 main ()
2879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2881 return 0;
2883 _ACEOF
2884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2887 CC="$ac_save_CC $ac_arg"
2888 rm -f conftest.$ac_objext
2889 if { (ac_try="$ac_compile"
2890 case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893 esac
2894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2895 $as_echo "$ac_try_echo") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
2906 ac_cv_prog_cc_c89=$ac_arg
2907 else
2908 $as_echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f core conftest.err conftest.$ac_objext
2915 test "x$ac_cv_prog_cc_c89" != "xno" && break
2916 done
2917 rm -f conftest.$ac_ext
2918 CC=$ac_save_CC
2921 # AC_CACHE_VAL
2922 case "x$ac_cv_prog_cc_c89" in
2924 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2925 $as_echo "none needed" >&6; } ;;
2926 xno)
2927 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2928 $as_echo "unsupported" >&6; } ;;
2930 CC="$CC $ac_cv_prog_cc_c89"
2931 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2933 esac
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2947 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2948 # On Suns, sometimes $CPP names a directory.
2949 if test -n "$CPP" && test -d "$CPP"; then
2950 CPP=
2952 if test -z "$CPP"; then
2953 if test "${ac_cv_prog_CPP+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2955 else
2956 # Double quotes because CPP needs to be expanded
2957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959 ac_preproc_ok=false
2960 for ac_c_preproc_warn_flag in '' yes
2962 # Use a header file that comes with gcc, so configuring glibc
2963 # with a fresh cross-compiler works.
2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965 # <limits.h> exists even on freestanding compilers.
2966 # On the NeXT, cc -E runs the code through the compiler's parser,
2967 # not just through cpp. "Syntax error" is here to catch this case.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h. */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979 Syntax error
2980 _ACEOF
2981 if { (ac_try="$ac_cpp conftest.$ac_ext"
2982 case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null && {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 }; then
2999 else
3000 $as_echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 # Broken: fails on valid input.
3004 continue
3007 rm -f conftest.err conftest.$ac_ext
3009 # OK, works on sane cases. Now check whether nonexistent headers
3010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (ac_try="$ac_cpp conftest.$ac_ext"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025 $as_echo "$ac_try_echo") >&5
3026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } >/dev/null && {
3033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 }; then
3036 # Broken: success on invalid input.
3037 continue
3038 else
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 # Passes both tests.
3043 ac_preproc_ok=:
3044 break
3047 rm -f conftest.err conftest.$ac_ext
3049 done
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3053 break
3056 done
3057 ac_cv_prog_CPP=$CPP
3060 CPP=$ac_cv_prog_CPP
3061 else
3062 ac_cv_prog_CPP=$CPP
3064 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3065 $as_echo "$CPP" >&6; }
3066 ac_preproc_ok=false
3067 for ac_c_preproc_warn_flag in '' yes
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h. */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #ifdef __STDC__
3082 # include <limits.h>
3083 #else
3084 # include <assert.h>
3085 #endif
3086 Syntax error
3087 _ACEOF
3088 if { (ac_try="$ac_cpp conftest.$ac_ext"
3089 case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null && {
3102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 }; then
3106 else
3107 $as_echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 # Broken: fails on valid input.
3111 continue
3114 rm -f conftest.err conftest.$ac_ext
3116 # OK, works on sane cases. Now check whether nonexistent headers
3117 # can be detected and how.
3118 cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h. */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 #include <ac_nonexistent.h>
3125 _ACEOF
3126 if { (ac_try="$ac_cpp conftest.$ac_ext"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null && {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3142 }; then
3143 # Broken: success on invalid input.
3144 continue
3145 else
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 # Passes both tests.
3150 ac_preproc_ok=:
3151 break
3154 rm -f conftest.err conftest.$ac_ext
3156 done
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then
3161 else
3162 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }; }
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3180 if test "${ac_cv_path_GREP+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -z "$GREP"; then
3184 ac_path_GREP_found=false
3185 # Loop through the user's path and test for each of PROGNAME-LIST
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_prog in grep ggrep; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3195 # Check for GNU ac_path_GREP and select it if it is found.
3196 # Check for GNU $ac_path_GREP
3197 case `"$ac_path_GREP" --version 2>&1` in
3198 *GNU*)
3199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3201 ac_count=0
3202 $as_echo_n 0123456789 >"conftest.in"
3203 while :
3205 cat "conftest.in" "conftest.in" >"conftest.tmp"
3206 mv "conftest.tmp" "conftest.in"
3207 cp "conftest.in" "conftest.nl"
3208 $as_echo 'GREP' >> "conftest.nl"
3209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3211 ac_count=`expr $ac_count + 1`
3212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3213 # Best one so far, save it but keep looking for a better one
3214 ac_cv_path_GREP="$ac_path_GREP"
3215 ac_path_GREP_max=$ac_count
3217 # 10*(2^10) chars as input seems more than enough
3218 test $ac_count -gt 10 && break
3219 done
3220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3221 esac
3223 $ac_path_GREP_found && break 3
3224 done
3225 done
3226 done
3227 IFS=$as_save_IFS
3228 if test -z "$ac_cv_path_GREP"; then
3229 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3230 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3231 { (exit 1); exit 1; }; }
3233 else
3234 ac_cv_path_GREP=$GREP
3238 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3239 $as_echo "$ac_cv_path_GREP" >&6; }
3240 GREP="$ac_cv_path_GREP"
3243 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3244 $as_echo_n "checking for egrep... " >&6; }
3245 if test "${ac_cv_path_EGREP+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3249 then ac_cv_path_EGREP="$GREP -E"
3250 else
3251 if test -z "$EGREP"; then
3252 ac_path_EGREP_found=false
3253 # Loop through the user's path and test for each of PROGNAME-LIST
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_prog in egrep; do
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3263 # Check for GNU ac_path_EGREP and select it if it is found.
3264 # Check for GNU $ac_path_EGREP
3265 case `"$ac_path_EGREP" --version 2>&1` in
3266 *GNU*)
3267 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3269 ac_count=0
3270 $as_echo_n 0123456789 >"conftest.in"
3271 while :
3273 cat "conftest.in" "conftest.in" >"conftest.tmp"
3274 mv "conftest.tmp" "conftest.in"
3275 cp "conftest.in" "conftest.nl"
3276 $as_echo 'EGREP' >> "conftest.nl"
3277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3279 ac_count=`expr $ac_count + 1`
3280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3281 # Best one so far, save it but keep looking for a better one
3282 ac_cv_path_EGREP="$ac_path_EGREP"
3283 ac_path_EGREP_max=$ac_count
3285 # 10*(2^10) chars as input seems more than enough
3286 test $ac_count -gt 10 && break
3287 done
3288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3289 esac
3291 $ac_path_EGREP_found && break 3
3292 done
3293 done
3294 done
3295 IFS=$as_save_IFS
3296 if test -z "$ac_cv_path_EGREP"; then
3297 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3298 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3299 { (exit 1); exit 1; }; }
3301 else
3302 ac_cv_path_EGREP=$EGREP
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3308 $as_echo "$ac_cv_path_EGREP" >&6; }
3309 EGREP="$ac_cv_path_EGREP"
3312 cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h. */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3319 _ACEOF
3320 rm -f conftest*
3321 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3322 $as_echo_n "checking for library containing strerror... " >&6; }
3323 if test "${ac_cv_search_strerror+set}" = set; then
3324 $as_echo_n "(cached) " >&6
3325 else
3326 ac_func_search_save_LIBS=$LIBS
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 /* Override any GCC internal prototype to avoid an error.
3335 Use char because int might match the return type of a GCC
3336 builtin and then its argument prototype would still apply. */
3337 #ifdef __cplusplus
3338 extern "C"
3339 #endif
3340 char strerror ();
3342 main ()
3344 return strerror ();
3346 return 0;
3348 _ACEOF
3349 for ac_lib in '' cposix; do
3350 if test -z "$ac_lib"; then
3351 ac_res="none required"
3352 else
3353 ac_res=-l$ac_lib
3354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3356 rm -f conftest.$ac_objext conftest$ac_exeext
3357 if { (ac_try="$ac_link"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_link") 2>conftest.er1
3365 ac_status=$?
3366 grep -v '^ *+' conftest.er1 >conftest.err
3367 rm -f conftest.er1
3368 cat conftest.err >&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } && {
3371 test -z "$ac_c_werror_flag" ||
3372 test ! -s conftest.err
3373 } && test -s conftest$ac_exeext && {
3374 test "$cross_compiling" = yes ||
3375 $as_test_x conftest$ac_exeext
3376 }; then
3377 ac_cv_search_strerror=$ac_res
3378 else
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -rf conftest.dSYM
3386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3387 conftest$ac_exeext
3388 if test "${ac_cv_search_strerror+set}" = set; then
3389 break
3391 done
3392 if test "${ac_cv_search_strerror+set}" = set; then
3394 else
3395 ac_cv_search_strerror=no
3397 rm conftest.$ac_ext
3398 LIBS=$ac_func_search_save_LIBS
3400 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3401 $as_echo "$ac_cv_search_strerror" >&6; }
3402 ac_res=$ac_cv_search_strerror
3403 if test "$ac_res" != no; then
3404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3407 for ac_prog in gawk mawk nawk awk
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if test "${ac_cv_prog_AWK+set}" = set; then
3414 $as_echo_n "(cached) " >&6
3415 else
3416 if test -n "$AWK"; then
3417 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_AWK="$ac_prog"
3427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428 break 2
3430 done
3431 done
3432 IFS=$as_save_IFS
3436 AWK=$ac_cv_prog_AWK
3437 if test -n "$AWK"; then
3438 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3439 $as_echo "$AWK" >&6; }
3440 else
3441 { $as_echo "$as_me:$LINENO: result: no" >&5
3442 $as_echo "no" >&6; }
3446 test -n "$AWK" && break
3447 done
3449 # Extract the first word of "strip", so it can be a program name with args.
3450 set dummy strip; ac_word=$2
3451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_prog_STRIP+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$STRIP"; then
3457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_STRIP="strip"
3467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3470 done
3471 done
3472 IFS=$as_save_IFS
3474 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3477 STRIP=$ac_cv_prog_STRIP
3478 if test -n "$STRIP"; then
3479 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3480 $as_echo "$STRIP" >&6; }
3481 else
3482 { $as_echo "$as_me:$LINENO: result: no" >&5
3483 $as_echo "no" >&6; }
3490 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3491 $as_echo_n "checking for ANSI C header files... " >&6; }
3492 if test "${ac_cv_header_stdc+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3494 else
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <stdlib.h>
3502 #include <stdarg.h>
3503 #include <string.h>
3504 #include <float.h>
3507 main ()
3511 return 0;
3513 _ACEOF
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3516 case "(($ac_try" in
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3519 esac
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.$ac_objext; then
3532 ac_cv_header_stdc=yes
3533 else
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3537 ac_cv_header_stdc=no
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 if test $ac_cv_header_stdc = yes; then
3543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3544 cat >conftest.$ac_ext <<_ACEOF
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 #include <string.h>
3552 _ACEOF
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 $EGREP "memchr" >/dev/null 2>&1; then
3556 else
3557 ac_cv_header_stdc=no
3559 rm -f conftest*
3563 if test $ac_cv_header_stdc = yes; then
3564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3565 cat >conftest.$ac_ext <<_ACEOF
3566 /* confdefs.h. */
3567 _ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3571 #include <stdlib.h>
3573 _ACEOF
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "free" >/dev/null 2>&1; then
3577 else
3578 ac_cv_header_stdc=no
3580 rm -f conftest*
3584 if test $ac_cv_header_stdc = yes; then
3585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3586 if test "$cross_compiling" = yes; then
3588 else
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include <ctype.h>
3596 #include <stdlib.h>
3597 #if ((' ' & 0x0FF) == 0x020)
3598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3600 #else
3601 # define ISLOWER(c) \
3602 (('a' <= (c) && (c) <= 'i') \
3603 || ('j' <= (c) && (c) <= 'r') \
3604 || ('s' <= (c) && (c) <= 'z'))
3605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3606 #endif
3608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3610 main ()
3612 int i;
3613 for (i = 0; i < 256; i++)
3614 if (XOR (islower (i), ISLOWER (i))
3615 || toupper (i) != TOUPPER (i))
3616 return 2;
3617 return 0;
3619 _ACEOF
3620 rm -f conftest$ac_exeext
3621 if { (ac_try="$ac_link"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627 $as_echo "$ac_try_echo") >&5
3628 (eval "$ac_link") 2>&5
3629 ac_status=$?
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637 $as_echo "$ac_try_echo") >&5
3638 (eval "$ac_try") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3643 else
3644 $as_echo "$as_me: program exited with status $ac_status" >&5
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 ( exit $ac_status )
3649 ac_cv_header_stdc=no
3651 rm -rf conftest.dSYM
3652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3658 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3659 $as_echo "$ac_cv_header_stdc" >&6; }
3660 if test $ac_cv_header_stdc = yes; then
3662 cat >>confdefs.h <<\_ACEOF
3663 #define STDC_HEADERS 1
3664 _ACEOF
3668 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3669 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3670 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <sys/types.h>
3680 #include <sys/wait.h>
3681 #ifndef WEXITSTATUS
3682 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3683 #endif
3684 #ifndef WIFEXITED
3685 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3686 #endif
3689 main ()
3691 int s;
3692 wait (&s);
3693 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3695 return 0;
3697 _ACEOF
3698 rm -f conftest.$ac_objext
3699 if { (ac_try="$ac_compile"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3705 $as_echo "$ac_try_echo") >&5
3706 (eval "$ac_compile") 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } && {
3713 test -z "$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3715 } && test -s conftest.$ac_objext; then
3716 ac_cv_header_sys_wait_h=yes
3717 else
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 ac_cv_header_sys_wait_h=no
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3728 if test $ac_cv_header_sys_wait_h = yes; then
3730 cat >>confdefs.h <<\_ACEOF
3731 #define HAVE_SYS_WAIT_H 1
3732 _ACEOF
3737 if test -z "$CFLAGS"; then
3738 CFLAGS="-O"
3739 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3741 if test "$GCC" = yes; then
3742 gccversion=`"$CC" -dumpversion`
3743 if test "x$gccversion" = "x"; then
3744 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3746 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3747 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3748 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3749 else
3750 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3751 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3752 CFLAGS="$CFLAGS -fno-strength-reduce"
3757 if test "$cross_compiling" = yes; then
3758 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3759 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3762 test "$GCC" = yes && CPP_MM=M;
3764 if test -f ./toolcheck; then
3765 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3766 $as_echo "$as_me: checking for buggy tools..." >&6;}
3767 sh ./toolcheck 1>&6
3770 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3772 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3773 $as_echo_n "checking for BeOS... " >&6; }
3774 case `uname` in
3775 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3776 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3777 $as_echo "yes" >&6; };;
3778 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3779 $as_echo "no" >&6; };;
3780 esac
3782 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3783 $as_echo_n "checking for QNX... " >&6; }
3784 case `uname` in
3785 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3786 test -z "$with_x" && with_x=no
3787 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3788 $as_echo "yes" >&6; };;
3789 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3790 $as_echo "no" >&6; };;
3791 esac
3793 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3794 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3795 if test "`(uname) 2>/dev/null`" = Darwin; then
3796 { $as_echo "$as_me:$LINENO: result: yes" >&5
3797 $as_echo "yes" >&6; }
3799 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3800 $as_echo_n "checking --disable-darwin argument... " >&6; }
3801 # Check whether --enable-darwin was given.
3802 if test "${enable_darwin+set}" = set; then
3803 enableval=$enable_darwin;
3804 else
3805 enable_darwin="yes"
3808 if test "$enable_darwin" = "yes"; then
3809 { $as_echo "$as_me:$LINENO: result: no" >&5
3810 $as_echo "no" >&6; }
3811 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3812 $as_echo_n "checking if Darwin files are there... " >&6; }
3813 if test -f os_macosx.c; then
3814 { $as_echo "$as_me:$LINENO: result: yes" >&5
3815 $as_echo "yes" >&6; }
3816 else
3817 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3818 $as_echo "no, Darwin support disabled" >&6; }
3819 enable_darwin=no
3821 else
3822 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3823 $as_echo "yes, Darwin support excluded" >&6; }
3826 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3827 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3829 # Check whether --with-mac-arch was given.
3830 if test "${with_mac_arch+set}" = set; then
3831 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3832 $as_echo "$MACARCH" >&6; }
3833 else
3834 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3835 $as_echo "defaulting to $MACARCH" >&6; }
3839 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3840 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3842 # Check whether --with-developer-dir was given.
3843 if test "${with_developer_dir+set}" = set; then
3844 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3845 $as_echo "$DEVELOPER_DIR" >&6; }
3846 else
3847 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3848 $as_echo "not present" >&6; }
3852 if test "x$DEVELOPER_DIR" = "x"; then
3853 # Extract the first word of "xcode-select", so it can be a program name with args.
3854 set dummy xcode-select; ac_word=$2
3855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3859 else
3860 case $XCODE_SELECT in
3861 [\\/]* | ?:[\\/]*)
3862 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3876 done
3877 done
3878 IFS=$as_save_IFS
3881 esac
3883 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3884 if test -n "$XCODE_SELECT"; then
3885 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3886 $as_echo "$XCODE_SELECT" >&6; }
3887 else
3888 { $as_echo "$as_me:$LINENO: result: no" >&5
3889 $as_echo "no" >&6; }
3893 if test "x$XCODE_SELECT" != "x"; then
3894 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3895 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3896 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3897 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3898 $as_echo "$DEVELOPER_DIR" >&6; }
3899 else
3900 DEVELOPER_DIR=/Developer
3904 if test "x$MACARCH" = "xboth"; then
3905 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3906 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3907 save_cppflags="$CPPFLAGS"
3908 save_cflags="$CFLAGS"
3909 save_ldflags="$LDFLAGS"
3910 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3919 main ()
3923 return 0;
3925 _ACEOF
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (ac_try="$ac_link"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934 (eval "$ac_link") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest$ac_exeext && {
3944 test "$cross_compiling" = yes ||
3945 $as_test_x conftest$ac_exeext
3946 }; then
3947 { $as_echo "$as_me:$LINENO: result: found" >&5
3948 $as_echo "found" >&6; }
3949 else
3950 $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 { $as_echo "$as_me:$LINENO: result: not found" >&5
3954 $as_echo "not found" >&6; }
3955 CFLAGS="$save_cflags"
3956 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3957 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3958 CPPFLAGS="$CPPFLAGS -arch i386"
3959 LDFLAGS="$save_ldflags -arch i386"
3960 cat >conftest.$ac_ext <<_ACEOF
3961 /* confdefs.h. */
3962 _ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3968 main ()
3972 return 0;
3974 _ACEOF
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3982 $as_echo "$ac_try_echo") >&5
3983 (eval "$ac_link") 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && {
3990 test -z "$ac_c_werror_flag" ||
3991 test ! -s conftest.err
3992 } && test -s conftest$ac_exeext && {
3993 test "$cross_compiling" = yes ||
3994 $as_test_x conftest$ac_exeext
3995 }; then
3996 { $as_echo "$as_me:$LINENO: result: yes" >&5
3997 $as_echo "yes" >&6; }; MACARCH="intel"
3998 else
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 { $as_echo "$as_me:$LINENO: result: no" >&5
4003 $as_echo "no" >&6; }
4004 MACARCH="ppc"
4005 CPPFLAGS="$save_cppflags -arch ppc"
4006 LDFLAGS="$save_ldflags -arch ppc"
4009 rm -rf conftest.dSYM
4010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4011 conftest$ac_exeext conftest.$ac_ext
4014 rm -rf conftest.dSYM
4015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4016 conftest$ac_exeext conftest.$ac_ext
4017 elif test "x$MACARCH" = "xintel"; then
4018 CPPFLAGS="$CPPFLAGS -arch intel"
4019 LDFLAGS="$LDFLAGS -arch intel"
4020 elif test "x$MACARCH" = "xppc"; then
4021 CPPFLAGS="$CPPFLAGS -arch ppc"
4022 LDFLAGS="$LDFLAGS -arch ppc"
4025 if test "$enable_darwin" = "yes"; then
4026 MACOSX=yes
4027 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4028 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4029 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4030 if test "x$MACARCH" = "xboth"; then
4031 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4032 else
4033 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047 inttypes.h stdint.h unistd.h
4049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4051 $as_echo_n "checking for $ac_header... " >&6; }
4052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h. */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4063 #include <$ac_header>
4064 _ACEOF
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4072 $as_echo "$ac_try_echo") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.$ac_objext; then
4083 eval "$as_ac_Header=yes"
4084 else
4085 $as_echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4088 eval "$as_ac_Header=no"
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_res=`eval 'as_val=${'$as_ac_Header'}
4094 $as_echo "$as_val"'`
4095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4096 $as_echo "$ac_res" >&6; }
4097 as_val=`eval 'as_val=${'$as_ac_Header'}
4098 $as_echo "$as_val"'`
4099 if test "x$as_val" = x""yes; then
4100 cat >>confdefs.h <<_ACEOF
4101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102 _ACEOF
4106 done
4109 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4110 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4111 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4113 $as_echo_n "(cached) " >&6
4115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4116 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4117 else
4118 # Is the header compilable?
4119 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4120 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4121 cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4128 #include <Carbon/Carbon.h>
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135 esac
4136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4137 $as_echo "$ac_try_echo") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_header_compiler=yes
4149 else
4150 $as_echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_header_compiler=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4158 $as_echo "$ac_header_compiler" >&6; }
4160 # Is the header present?
4161 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4162 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <Carbon/Carbon.h>
4170 _ACEOF
4171 if { (ac_try="$ac_cpp conftest.$ac_ext"
4172 case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev/null && {
4185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 }; then
4188 ac_header_preproc=yes
4189 else
4190 $as_echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ac_header_preproc=no
4196 rm -f conftest.err conftest.$ac_ext
4197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4198 $as_echo "$ac_header_preproc" >&6; }
4200 # So? What about this header?
4201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4202 yes:no: )
4203 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4204 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4205 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4206 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4207 ac_header_preproc=yes
4209 no:yes:* )
4210 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4211 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4212 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4213 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4214 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4215 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4216 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4217 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4218 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4219 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4220 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4221 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4224 esac
4225 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4226 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4227 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4233 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4236 if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then
4237 CARBON=yes
4241 if test "x$CARBON" = "xyes"; then
4242 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
4243 with_x=no
4248 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4249 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4252 else
4253 { $as_echo "$as_me:$LINENO: result: no" >&5
4254 $as_echo "no" >&6; }
4260 if test "$cross_compiling" = no; then
4261 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4262 $as_echo_n "checking --with-local-dir argument... " >&6; }
4263 have_local_include=''
4264 have_local_lib=''
4266 # Check whether --with-local-dir was given.
4267 if test "${with_local_dir+set}" = set; then
4268 withval=$with_local_dir;
4269 local_dir="$withval"
4270 case "$withval" in
4271 */*) ;;
4273 # avoid adding local dir to LDFLAGS and CPPFLAGS
4274 have_local_dir=yes
4275 have_local_lib=yes
4277 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4278 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4279 { (exit 1); exit 1; }; } ;;
4280 esac
4281 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4282 $as_echo "$local_dir" >&6; }
4284 else
4286 local_dir=/usr/local
4287 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4288 $as_echo "Defaulting to $local_dir" >&6; }
4292 if test "$GCC" = yes -a "$local_dir" != no; then
4293 echo 'void f(){}' > conftest.c
4294 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4295 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4296 rm -f conftest.c conftest.o
4298 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4299 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4300 if test "$tt" = "$LDFLAGS"; then
4301 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4304 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4305 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4306 if test "$tt" = "$CPPFLAGS"; then
4307 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4312 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4313 $as_echo_n "checking --with-vim-name argument... " >&6; }
4315 # Check whether --with-vim-name was given.
4316 if test "${with_vim_name+set}" = set; then
4317 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4318 $as_echo "$VIMNAME" >&6; }
4319 else
4320 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4321 $as_echo "Defaulting to $VIMNAME" >&6; }
4325 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4326 $as_echo_n "checking --with-ex-name argument... " >&6; }
4328 # Check whether --with-ex-name was given.
4329 if test "${with_ex_name+set}" = set; then
4330 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4331 $as_echo "$EXNAME" >&6; }
4332 else
4333 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4334 $as_echo "Defaulting to ex" >&6; }
4338 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4339 $as_echo_n "checking --with-view-name argument... " >&6; }
4341 # Check whether --with-view-name was given.
4342 if test "${with_view_name+set}" = set; then
4343 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4344 $as_echo "$VIEWNAME" >&6; }
4345 else
4346 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4347 $as_echo "Defaulting to view" >&6; }
4352 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4353 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4355 # Check whether --with-global-runtime was given.
4356 if test "${with_global_runtime+set}" = set; then
4357 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4358 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4359 #define RUNTIME_GLOBAL "$withval"
4360 _ACEOF
4362 else
4363 { $as_echo "$as_me:$LINENO: result: no" >&5
4364 $as_echo "no" >&6; }
4368 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4369 $as_echo_n "checking --with-modified-by argument... " >&6; }
4371 # Check whether --with-modified-by was given.
4372 if test "${with_modified_by+set}" = set; then
4373 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4374 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4375 #define MODIFIED_BY "$withval"
4376 _ACEOF
4378 else
4379 { $as_echo "$as_me:$LINENO: result: no" >&5
4380 $as_echo "no" >&6; }
4384 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4385 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4386 cat >conftest.$ac_ext <<_ACEOF
4387 /* confdefs.h. */
4388 _ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4394 main ()
4396 /* TryCompile function for CharSet.
4397 Treat any failure as ASCII for compatibility with existing art.
4398 Use compile-time rather than run-time tests for cross-compiler
4399 tolerance. */
4400 #if '0'!=240
4401 make an error "Character set is not EBCDIC"
4402 #endif
4404 return 0;
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (ac_try="$ac_compile"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4414 $as_echo "$ac_try_echo") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 # TryCompile action if true
4426 cf_cv_ebcdic=yes
4427 else
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # TryCompile action if false
4432 cf_cv_ebcdic=no
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 # end of TryCompile ])
4437 # end of CacheVal CvEbcdic
4438 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4439 $as_echo "$cf_cv_ebcdic" >&6; }
4440 case "$cf_cv_ebcdic" in #(vi
4441 yes) cat >>confdefs.h <<\_ACEOF
4442 #define EBCDIC 1
4443 _ACEOF
4445 line_break='"\\n"'
4447 *) line_break='"\\012"';;
4448 esac
4451 if test "$cf_cv_ebcdic" = "yes"; then
4452 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4453 $as_echo_n "checking for OS/390 Unix... " >&6; }
4454 case `uname` in
4455 OS/390) OS390Unix="yes";
4456 if test "$CC" = "cc"; then
4457 ccm="$_CC_CCMODE"
4458 ccn="CC"
4459 else
4460 if test "$CC" = "c89"; then
4461 ccm="$_CC_C89MODE"
4462 ccn="C89"
4463 else
4464 ccm=1
4467 if test "$ccm" != "1"; then
4468 echo ""
4469 echo "------------------------------------------"
4470 echo " On OS/390 Unix, the environment variable"
4471 echo " __CC_${ccn}MODE must be set to \"1\"!"
4472 echo " Do:"
4473 echo " export _CC_${ccn}MODE=1"
4474 echo " and then call configure again."
4475 echo "------------------------------------------"
4476 exit 1
4478 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4479 { $as_echo "$as_me:$LINENO: result: yes" >&5
4480 $as_echo "yes" >&6; }
4482 *) OS390Unix="no";
4483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484 $as_echo "no" >&6; }
4486 esac
4489 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4490 $as_echo_n "checking --disable-selinux argument... " >&6; }
4491 # Check whether --enable-selinux was given.
4492 if test "${enable_selinux+set}" = set; then
4493 enableval=$enable_selinux;
4494 else
4495 enable_selinux="yes"
4498 if test "$enable_selinux" = "yes"; then
4499 { $as_echo "$as_me:$LINENO: result: no" >&5
4500 $as_echo "no" >&6; }
4501 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4502 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4503 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4505 else
4506 ac_check_lib_save_LIBS=$LIBS
4507 LIBS="-lselinux $LIBS"
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 /* Override any GCC internal prototype to avoid an error.
4516 Use char because int might match the return type of a GCC
4517 builtin and then its argument prototype would still apply. */
4518 #ifdef __cplusplus
4519 extern "C"
4520 #endif
4521 char is_selinux_enabled ();
4523 main ()
4525 return is_selinux_enabled ();
4527 return 0;
4529 _ACEOF
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (ac_try="$ac_link"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4537 $as_echo "$ac_try_echo") >&5
4538 (eval "$ac_link") 2>conftest.er1
4539 ac_status=$?
4540 grep -v '^ *+' conftest.er1 >conftest.err
4541 rm -f conftest.er1
4542 cat conftest.err >&5
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } && {
4545 test -z "$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 } && test -s conftest$ac_exeext && {
4548 test "$cross_compiling" = yes ||
4549 $as_test_x conftest$ac_exeext
4550 }; then
4551 ac_cv_lib_selinux_is_selinux_enabled=yes
4552 else
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 ac_cv_lib_selinux_is_selinux_enabled=no
4559 rm -rf conftest.dSYM
4560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4561 conftest$ac_exeext conftest.$ac_ext
4562 LIBS=$ac_check_lib_save_LIBS
4564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4565 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4566 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
4567 LIBS="$LIBS -lselinux"
4568 cat >>confdefs.h <<\_ACEOF
4569 #define HAVE_SELINUX 1
4570 _ACEOF
4574 else
4575 { $as_echo "$as_me:$LINENO: result: yes" >&5
4576 $as_echo "yes" >&6; }
4580 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4581 $as_echo_n "checking --with-features argument... " >&6; }
4583 # Check whether --with-features was given.
4584 if test "${with_features+set}" = set; then
4585 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4586 $as_echo "$features" >&6; }
4587 else
4588 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4589 $as_echo "Defaulting to normal" >&6; }
4593 dovimdiff=""
4594 dogvimdiff=""
4595 case "$features" in
4596 tiny) cat >>confdefs.h <<\_ACEOF
4597 #define FEAT_TINY 1
4598 _ACEOF
4600 small) cat >>confdefs.h <<\_ACEOF
4601 #define FEAT_SMALL 1
4602 _ACEOF
4604 normal) cat >>confdefs.h <<\_ACEOF
4605 #define FEAT_NORMAL 1
4606 _ACEOF
4607 dovimdiff="installvimdiff";
4608 dogvimdiff="installgvimdiff" ;;
4609 big) cat >>confdefs.h <<\_ACEOF
4610 #define FEAT_BIG 1
4611 _ACEOF
4612 dovimdiff="installvimdiff";
4613 dogvimdiff="installgvimdiff" ;;
4614 huge) cat >>confdefs.h <<\_ACEOF
4615 #define FEAT_HUGE 1
4616 _ACEOF
4617 dovimdiff="installvimdiff";
4618 dogvimdiff="installgvimdiff" ;;
4619 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4620 $as_echo "Sorry, $features is not supported" >&6; } ;;
4621 esac
4626 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4627 $as_echo_n "checking --with-compiledby argument... " >&6; }
4629 # Check whether --with-compiledby was given.
4630 if test "${with_compiledby+set}" = set; then
4631 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4632 $as_echo "$withval" >&6; }
4633 else
4634 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4640 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4641 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4642 # Check whether --enable-xsmp was given.
4643 if test "${enable_xsmp+set}" = set; then
4644 enableval=$enable_xsmp;
4645 else
4646 enable_xsmp="yes"
4650 if test "$enable_xsmp" = "yes"; then
4651 { $as_echo "$as_me:$LINENO: result: no" >&5
4652 $as_echo "no" >&6; }
4653 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4654 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4655 # Check whether --enable-xsmp-interact was given.
4656 if test "${enable_xsmp_interact+set}" = set; then
4657 enableval=$enable_xsmp_interact;
4658 else
4659 enable_xsmp_interact="yes"
4662 if test "$enable_xsmp_interact" = "yes"; then
4663 { $as_echo "$as_me:$LINENO: result: no" >&5
4664 $as_echo "no" >&6; }
4665 cat >>confdefs.h <<\_ACEOF
4666 #define USE_XSMP_INTERACT 1
4667 _ACEOF
4669 else
4670 { $as_echo "$as_me:$LINENO: result: yes" >&5
4671 $as_echo "yes" >&6; }
4673 else
4674 { $as_echo "$as_me:$LINENO: result: yes" >&5
4675 $as_echo "yes" >&6; }
4678 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4679 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4680 # Check whether --enable-mzschemeinterp was given.
4681 if test "${enable_mzschemeinterp+set}" = set; then
4682 enableval=$enable_mzschemeinterp;
4683 else
4684 enable_mzschemeinterp="no"
4687 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4688 $as_echo "$enable_mzschemeinterp" >&6; }
4690 if test "$enable_mzschemeinterp" = "yes"; then
4693 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4694 $as_echo_n "checking --with-plthome argument... " >&6; }
4696 # Check whether --with-plthome was given.
4697 if test "${with_plthome+set}" = set; then
4698 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4699 $as_echo "$with_plthome" >&6; }
4700 else
4701 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4702 $as_echo "\"no\"" >&6; }
4706 if test "X$with_plthome" != "X"; then
4707 vi_cv_path_mzscheme_pfx="$with_plthome"
4708 else
4709 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4710 $as_echo_n "checking PLTHOME environment var... " >&6; }
4711 if test "X$PLTHOME" != "X"; then
4712 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4713 $as_echo "\"$PLTHOME\"" >&6; }
4714 vi_cv_path_mzscheme_pfx="$PLTHOME"
4715 else
4716 { $as_echo "$as_me:$LINENO: result: not set" >&5
4717 $as_echo "not set" >&6; }
4718 # Extract the first word of "mzscheme", so it can be a program name with args.
4719 set dummy mzscheme; ac_word=$2
4720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4723 $as_echo_n "(cached) " >&6
4724 else
4725 case $vi_cv_path_mzscheme in
4726 [\\/]* | ?:[\\/]*)
4727 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4746 esac
4748 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4749 if test -n "$vi_cv_path_mzscheme"; then
4750 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4751 $as_echo "$vi_cv_path_mzscheme" >&6; }
4752 else
4753 { $as_echo "$as_me:$LINENO: result: no" >&5
4754 $as_echo "no" >&6; }
4759 if test "X$vi_cv_path_mzscheme" != "X"; then
4760 lsout=`ls -l $vi_cv_path_mzscheme`
4761 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4762 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4766 if test "X$vi_cv_path_mzscheme" != "X"; then
4767 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4768 $as_echo_n "checking MzScheme install prefix... " >&6; }
4769 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4770 $as_echo_n "(cached) " >&6
4771 else
4772 echo "(display (simplify-path \
4773 (build-path (call-with-values \
4774 (lambda () (split-path (find-system-path (quote exec-file)))) \
4775 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4776 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4777 sed -e 's+/$++'`
4779 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4780 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4781 rm -f mzdirs.scm
4786 SCHEME_INC=
4787 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4788 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4789 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4790 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4791 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4792 { $as_echo "$as_me:$LINENO: result: yes" >&5
4793 $as_echo "yes" >&6; }
4794 else
4795 { $as_echo "$as_me:$LINENO: result: no" >&5
4796 $as_echo "no" >&6; }
4797 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4798 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4799 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4800 { $as_echo "$as_me:$LINENO: result: yes" >&5
4801 $as_echo "yes" >&6; }
4802 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4803 else
4804 { $as_echo "$as_me:$LINENO: result: no" >&5
4805 $as_echo "no" >&6; }
4806 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4807 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4808 if test -f /usr/include/plt/scheme.h; then
4809 { $as_echo "$as_me:$LINENO: result: yes" >&5
4810 $as_echo "yes" >&6; }
4811 SCHEME_INC=/usr/include/plt
4812 else
4813 { $as_echo "$as_me:$LINENO: result: no" >&5
4814 $as_echo "no" >&6; }
4815 vi_cv_path_mzscheme_pfx=
4821 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4822 if test "x$MACOSX" = "xyes"; then
4823 MZSCHEME_LIBS="-framework PLT_MzScheme"
4824 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4825 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4826 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4827 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4828 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4829 else
4830 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4831 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4832 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4833 else
4834 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4836 if test "$GCC" = yes; then
4837 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4838 elif test "`(uname) 2>/dev/null`" = SunOS &&
4839 uname -r | grep '^5' >/dev/null; then
4840 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4843 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4844 SCHEME_COLLECTS=lib/plt/
4846 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4847 MZSCHEME_EXTRA="mzscheme_base.c"
4848 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4849 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4851 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4852 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4853 MZSCHEME_SRC="if_mzsch.c"
4854 MZSCHEME_OBJ="objects/if_mzsch.o"
4855 MZSCHEME_PRO="if_mzsch.pro"
4856 cat >>confdefs.h <<\_ACEOF
4857 #define FEAT_MZSCHEME 1
4858 _ACEOF
4871 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4872 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4873 # Check whether --enable-perlinterp was given.
4874 if test "${enable_perlinterp+set}" = set; then
4875 enableval=$enable_perlinterp;
4876 else
4877 enable_perlinterp="no"
4880 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4881 $as_echo "$enable_perlinterp" >&6; }
4882 if test "$enable_perlinterp" = "yes"; then
4884 # Extract the first word of "perl", so it can be a program name with args.
4885 set dummy perl; ac_word=$2
4886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4889 $as_echo_n "(cached) " >&6
4890 else
4891 case $vi_cv_path_perl in
4892 [\\/]* | ?:[\\/]*)
4893 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4907 done
4908 done
4909 IFS=$as_save_IFS
4912 esac
4914 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4915 if test -n "$vi_cv_path_perl"; then
4916 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4917 $as_echo "$vi_cv_path_perl" >&6; }
4918 else
4919 { $as_echo "$as_me:$LINENO: result: no" >&5
4920 $as_echo "no" >&6; }
4924 if test "X$vi_cv_path_perl" != "X"; then
4925 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4926 $as_echo_n "checking Perl version... " >&6; }
4927 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4928 eval `$vi_cv_path_perl -V:usethreads`
4929 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4930 badthreads=no
4931 else
4932 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4933 eval `$vi_cv_path_perl -V:use5005threads`
4934 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4935 badthreads=no
4936 else
4937 badthreads=yes
4938 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4939 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4941 else
4942 badthreads=yes
4943 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4944 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4947 if test $badthreads = no; then
4948 { $as_echo "$as_me:$LINENO: result: OK" >&5
4949 $as_echo "OK" >&6; }
4950 eval `$vi_cv_path_perl -V:shrpenv`
4951 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4952 shrpenv=""
4954 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4956 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4957 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4958 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4959 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4960 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4961 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4962 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4964 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4965 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4966 cflags_save=$CFLAGS
4967 libs_save=$LIBS
4968 ldflags_save=$LDFLAGS
4969 CFLAGS="$CFLAGS $perlcppflags"
4970 LIBS="$LIBS $perllibs"
4971 LDFLAGS="$perlldflags $LDFLAGS"
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4980 main ()
4984 return 0;
4986 _ACEOF
4987 rm -f conftest.$ac_objext conftest$ac_exeext
4988 if { (ac_try="$ac_link"
4989 case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4994 $as_echo "$ac_try_echo") >&5
4995 (eval "$ac_link") 2>conftest.er1
4996 ac_status=$?
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
5000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest$ac_exeext && {
5005 test "$cross_compiling" = yes ||
5006 $as_test_x conftest$ac_exeext
5007 }; then
5008 { $as_echo "$as_me:$LINENO: result: yes" >&5
5009 $as_echo "yes" >&6; }; perl_ok=yes
5010 else
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5015 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5018 rm -rf conftest.dSYM
5019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5020 conftest$ac_exeext conftest.$ac_ext
5021 CFLAGS=$cflags_save
5022 LIBS=$libs_save
5023 LDFLAGS=$ldflags_save
5024 if test $perl_ok = yes; then
5025 if test "X$perlcppflags" != "X"; then
5026 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5028 if test "X$perlldflags" != "X"; then
5029 LDFLAGS="$perlldflags $LDFLAGS"
5031 PERL_LIBS=$perllibs
5032 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5033 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5034 PERL_PRO="if_perl.pro if_perlsfio.pro"
5035 cat >>confdefs.h <<\_ACEOF
5036 #define FEAT_PERL 1
5037 _ACEOF
5041 else
5042 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5043 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5047 if test "x$MACOSX" = "xyes"; then
5048 dir=/System/Library/Perl
5049 darwindir=$dir/darwin
5050 if test -d $darwindir; then
5051 PERL=/usr/bin/perl
5052 else
5053 dir=/System/Library/Perl/5.8.1
5054 darwindir=$dir/darwin-thread-multi-2level
5055 if test -d $darwindir; then
5056 PERL=/usr/bin/perl
5059 if test -n "$PERL"; then
5060 PERL_DIR="$dir"
5061 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5062 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5063 PERL_LIBS="-L$darwindir/CORE -lperl"
5074 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5075 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5076 # Check whether --enable-pythoninterp was given.
5077 if test "${enable_pythoninterp+set}" = set; then
5078 enableval=$enable_pythoninterp;
5079 else
5080 enable_pythoninterp="no"
5083 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5084 $as_echo "$enable_pythoninterp" >&6; }
5085 if test "$enable_pythoninterp" = "yes"; then
5086 # Extract the first word of "python", so it can be a program name with args.
5087 set dummy python; ac_word=$2
5088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5091 $as_echo_n "(cached) " >&6
5092 else
5093 case $vi_cv_path_python in
5094 [\\/]* | ?:[\\/]*)
5095 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5109 done
5110 done
5111 IFS=$as_save_IFS
5114 esac
5116 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5117 if test -n "$vi_cv_path_python"; then
5118 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5119 $as_echo "$vi_cv_path_python" >&6; }
5120 else
5121 { $as_echo "$as_me:$LINENO: result: no" >&5
5122 $as_echo "no" >&6; }
5126 if test "X$vi_cv_path_python" != "X"; then
5128 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5129 $as_echo_n "checking Python version... " >&6; }
5130 if test "${vi_cv_var_python_version+set}" = set; then
5131 $as_echo_n "(cached) " >&6
5132 else
5133 vi_cv_var_python_version=`
5134 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5137 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5138 $as_echo "$vi_cv_var_python_version" >&6; }
5140 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5141 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5142 if ${vi_cv_path_python} -c \
5143 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5144 then
5145 { $as_echo "$as_me:$LINENO: result: yep" >&5
5146 $as_echo "yep" >&6; }
5148 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5149 $as_echo_n "checking Python's install prefix... " >&6; }
5150 if test "${vi_cv_path_python_pfx+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5152 else
5153 vi_cv_path_python_pfx=`
5154 ${vi_cv_path_python} -c \
5155 "import sys; print sys.prefix"`
5157 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5158 $as_echo "$vi_cv_path_python_pfx" >&6; }
5160 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5161 $as_echo_n "checking Python's execution prefix... " >&6; }
5162 if test "${vi_cv_path_python_epfx+set}" = set; then
5163 $as_echo_n "(cached) " >&6
5164 else
5165 vi_cv_path_python_epfx=`
5166 ${vi_cv_path_python} -c \
5167 "import sys; print sys.exec_prefix"`
5169 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5170 $as_echo "$vi_cv_path_python_epfx" >&6; }
5173 if test "${vi_cv_path_pythonpath+set}" = set; then
5174 $as_echo_n "(cached) " >&6
5175 else
5176 vi_cv_path_pythonpath=`
5177 unset PYTHONPATH;
5178 ${vi_cv_path_python} -c \
5179 "import sys, string; print string.join(sys.path,':')"`
5185 # Check whether --with-python-config-dir was given.
5186 if test "${with_python_config_dir+set}" = set; then
5187 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5191 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5192 $as_echo_n "checking Python's configuration directory... " >&6; }
5193 if test "${vi_cv_path_python_conf+set}" = set; then
5194 $as_echo_n "(cached) " >&6
5195 else
5197 vi_cv_path_python_conf=
5198 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5199 for subdir in lib64 lib share; do
5200 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5201 if test -d "$d" && test -f "$d/config.c"; then
5202 vi_cv_path_python_conf="$d"
5204 done
5205 done
5208 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5209 $as_echo "$vi_cv_path_python_conf" >&6; }
5211 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5213 if test "X$PYTHON_CONFDIR" = "X"; then
5214 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5215 $as_echo "can't find it!" >&6; }
5216 else
5218 if test "${vi_cv_path_python_plibs+set}" = set; then
5219 $as_echo_n "(cached) " >&6
5220 else
5222 pwd=`pwd`
5223 tmp_mkf="$pwd/config-PyMake$$"
5224 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5226 @echo "python_MODLIBS='$(MODLIBS)'"
5227 @echo "python_LIBS='$(LIBS)'"
5228 @echo "python_SYSLIBS='$(SYSLIBS)'"
5229 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5231 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5232 rm -f -- "${tmp_mkf}"
5233 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5234 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5235 vi_cv_path_python_plibs="-framework Python"
5236 else
5237 if test "${vi_cv_var_python_version}" = "1.4"; then
5238 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5239 else
5240 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5242 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5243 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5249 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5250 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5251 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5252 else
5253 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}"
5255 PYTHON_SRC="if_python.c"
5256 if test "x$MACOSX" = "xyes"; then
5257 PYTHON_OBJ="objects/if_python.o"
5258 else
5259 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5261 if test "${vi_cv_var_python_version}" = "1.4"; then
5262 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5264 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5266 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5267 $as_echo_n "checking if -pthread should be used... " >&6; }
5268 threadsafe_flag=
5269 thread_lib=
5270 if test "`(uname) 2>/dev/null`" != Darwin; then
5271 test "$GCC" = yes && threadsafe_flag="-pthread"
5272 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5273 threadsafe_flag="-D_THREAD_SAFE"
5274 thread_lib="-pthread"
5277 libs_save_old=$LIBS
5278 if test -n "$threadsafe_flag"; then
5279 cflags_save=$CFLAGS
5280 CFLAGS="$CFLAGS $threadsafe_flag"
5281 LIBS="$LIBS $thread_lib"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5290 main ()
5294 return 0;
5296 _ACEOF
5297 rm -f conftest.$ac_objext conftest$ac_exeext
5298 if { (ac_try="$ac_link"
5299 case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5304 $as_echo "$ac_try_echo") >&5
5305 (eval "$ac_link") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest$ac_exeext && {
5315 test "$cross_compiling" = yes ||
5316 $as_test_x conftest$ac_exeext
5317 }; then
5318 { $as_echo "$as_me:$LINENO: result: yes" >&5
5319 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5320 else
5321 $as_echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5324 { $as_echo "$as_me:$LINENO: result: no" >&5
5325 $as_echo "no" >&6; }; LIBS=$libs_save_old
5329 rm -rf conftest.dSYM
5330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5331 conftest$ac_exeext conftest.$ac_ext
5332 CFLAGS=$cflags_save
5333 else
5334 { $as_echo "$as_me:$LINENO: result: no" >&5
5335 $as_echo "no" >&6; }
5338 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5339 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5340 cflags_save=$CFLAGS
5341 libs_save=$LIBS
5342 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5343 LIBS="$LIBS $PYTHON_LIBS"
5344 cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5352 main ()
5356 return 0;
5358 _ACEOF
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (ac_try="$ac_link"
5361 case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364 esac
5365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5366 $as_echo "$ac_try_echo") >&5
5367 (eval "$ac_link") 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && {
5374 test -z "$ac_c_werror_flag" ||
5375 test ! -s conftest.err
5376 } && test -s conftest$ac_exeext && {
5377 test "$cross_compiling" = yes ||
5378 $as_test_x conftest$ac_exeext
5379 }; then
5380 { $as_echo "$as_me:$LINENO: result: yes" >&5
5381 $as_echo "yes" >&6; }; python_ok=yes
5382 else
5383 $as_echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5387 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5390 rm -rf conftest.dSYM
5391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5392 conftest$ac_exeext conftest.$ac_ext
5393 CFLAGS=$cflags_save
5394 LIBS=$libs_save
5395 if test $python_ok = yes; then
5396 cat >>confdefs.h <<\_ACEOF
5397 #define FEAT_PYTHON 1
5398 _ACEOF
5400 else
5401 LIBS=$libs_save_old
5402 PYTHON_SRC=
5403 PYTHON_OBJ=
5404 PYTHON_LIBS=
5405 PYTHON_CFLAGS=
5409 else
5410 { $as_echo "$as_me:$LINENO: result: too old" >&5
5411 $as_echo "too old" >&6; }
5422 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5423 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5424 # Check whether --enable-tclinterp was given.
5425 if test "${enable_tclinterp+set}" = set; then
5426 enableval=$enable_tclinterp;
5427 else
5428 enable_tclinterp="no"
5431 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5432 $as_echo "$enable_tclinterp" >&6; }
5434 if test "$enable_tclinterp" = "yes"; then
5436 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5437 $as_echo_n "checking --with-tclsh argument... " >&6; }
5439 # Check whether --with-tclsh was given.
5440 if test "${with_tclsh+set}" = set; then
5441 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5442 $as_echo "$tclsh_name" >&6; }
5443 else
5444 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5445 $as_echo "no" >&6; }
5448 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5449 set dummy $tclsh_name; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5454 else
5455 case $vi_cv_path_tcl in
5456 [\\/]* | ?:[\\/]*)
5457 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5476 esac
5478 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5479 if test -n "$vi_cv_path_tcl"; then
5480 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5481 $as_echo "$vi_cv_path_tcl" >&6; }
5482 else
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5490 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5491 tclsh_name="tclsh8.4"
5492 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5493 set dummy $tclsh_name; ac_word=$2
5494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5497 $as_echo_n "(cached) " >&6
5498 else
5499 case $vi_cv_path_tcl in
5500 [\\/]* | ?:[\\/]*)
5501 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5515 done
5516 done
5517 IFS=$as_save_IFS
5520 esac
5522 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5523 if test -n "$vi_cv_path_tcl"; then
5524 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5525 $as_echo "$vi_cv_path_tcl" >&6; }
5526 else
5527 { $as_echo "$as_me:$LINENO: result: no" >&5
5528 $as_echo "no" >&6; }
5533 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5534 tclsh_name="tclsh8.2"
5535 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5536 set dummy $tclsh_name; ac_word=$2
5537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5540 $as_echo_n "(cached) " >&6
5541 else
5542 case $vi_cv_path_tcl in
5543 [\\/]* | ?:[\\/]*)
5544 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5558 done
5559 done
5560 IFS=$as_save_IFS
5563 esac
5565 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5566 if test -n "$vi_cv_path_tcl"; then
5567 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5568 $as_echo "$vi_cv_path_tcl" >&6; }
5569 else
5570 { $as_echo "$as_me:$LINENO: result: no" >&5
5571 $as_echo "no" >&6; }
5576 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5577 tclsh_name="tclsh8.0"
5578 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5579 set dummy $tclsh_name; ac_word=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5584 else
5585 case $vi_cv_path_tcl in
5586 [\\/]* | ?:[\\/]*)
5587 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5601 done
5602 done
5603 IFS=$as_save_IFS
5606 esac
5608 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5609 if test -n "$vi_cv_path_tcl"; then
5610 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5611 $as_echo "$vi_cv_path_tcl" >&6; }
5612 else
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5619 if test "X$vi_cv_path_tcl" = "X"; then
5620 tclsh_name="tclsh"
5621 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5622 set dummy $tclsh_name; ac_word=$2
5623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5627 else
5628 case $vi_cv_path_tcl in
5629 [\\/]* | ?:[\\/]*)
5630 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5649 esac
5651 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5652 if test -n "$vi_cv_path_tcl"; then
5653 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5654 $as_echo "$vi_cv_path_tcl" >&6; }
5655 else
5656 { $as_echo "$as_me:$LINENO: result: no" >&5
5657 $as_echo "no" >&6; }
5662 if test "X$vi_cv_path_tcl" != "X"; then
5663 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5664 $as_echo_n "checking Tcl version... " >&6; }
5665 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5666 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5667 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5668 $as_echo "$tclver - OK" >&6; };
5669 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 -`
5671 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5672 $as_echo_n "checking for location of Tcl include... " >&6; }
5673 if test "x$MACOSX" != "xyes"; then
5674 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5675 else
5676 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5678 TCL_INC=
5679 for try in $tclinc; do
5680 if test -f "$try/tcl.h"; then
5681 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5682 $as_echo "$try/tcl.h" >&6; }
5683 TCL_INC=$try
5684 break
5686 done
5687 if test -z "$TCL_INC"; then
5688 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5689 $as_echo "<not found>" >&6; }
5690 SKIP_TCL=YES
5692 if test -z "$SKIP_TCL"; then
5693 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5694 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5695 if test "x$MACOSX" != "xyes"; then
5696 tclcnf=`echo $tclinc | sed s/include/lib/g`
5697 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5698 else
5699 tclcnf="/System/Library/Frameworks/Tcl.framework"
5701 for try in $tclcnf; do
5702 if test -f $try/tclConfig.sh; then
5703 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5704 $as_echo "$try/tclConfig.sh" >&6; }
5705 . $try/tclConfig.sh
5706 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5707 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'`
5708 break
5710 done
5711 if test -z "$TCL_LIBS"; then
5712 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5713 $as_echo "<not found>" >&6; }
5714 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5715 $as_echo_n "checking for Tcl library by myself... " >&6; }
5716 tcllib=`echo $tclinc | sed s/include/lib/g`
5717 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5718 for ext in .so .a ; do
5719 for ver in "" $tclver ; do
5720 for try in $tcllib ; do
5721 trylib=tcl$ver$ext
5722 if test -f $try/lib$trylib ; then
5723 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5724 $as_echo "$try/lib$trylib" >&6; }
5725 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5726 if test "`(uname) 2>/dev/null`" = SunOS &&
5727 uname -r | grep '^5' >/dev/null; then
5728 TCL_LIBS="$TCL_LIBS -R $try"
5730 break 3
5732 done
5733 done
5734 done
5735 if test -z "$TCL_LIBS"; then
5736 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5737 $as_echo "<not found>" >&6; }
5738 SKIP_TCL=YES
5741 if test -z "$SKIP_TCL"; then
5742 cat >>confdefs.h <<\_ACEOF
5743 #define FEAT_TCL 1
5744 _ACEOF
5746 TCL_SRC=if_tcl.c
5747 TCL_OBJ=objects/if_tcl.o
5748 TCL_PRO=if_tcl.pro
5749 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5752 else
5753 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5754 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5764 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5765 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5766 # Check whether --enable-rubyinterp was given.
5767 if test "${enable_rubyinterp+set}" = set; then
5768 enableval=$enable_rubyinterp;
5769 else
5770 enable_rubyinterp="no"
5773 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5774 $as_echo "$enable_rubyinterp" >&6; }
5775 if test "$enable_rubyinterp" = "yes"; then
5776 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5777 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5779 # Check whether --with-ruby-command was given.
5780 if test "${with_ruby_command+set}" = set; then
5781 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5782 $as_echo "$RUBY_CMD" >&6; }
5783 else
5784 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5785 $as_echo "defaulting to $RUBY_CMD" >&6; }
5789 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5790 set dummy $RUBY_CMD; ac_word=$2
5791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5794 $as_echo_n "(cached) " >&6
5795 else
5796 case $vi_cv_path_ruby in
5797 [\\/]* | ?:[\\/]*)
5798 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5812 done
5813 done
5814 IFS=$as_save_IFS
5817 esac
5819 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5820 if test -n "$vi_cv_path_ruby"; then
5821 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5822 $as_echo "$vi_cv_path_ruby" >&6; }
5823 else
5824 { $as_echo "$as_me:$LINENO: result: no" >&5
5825 $as_echo "no" >&6; }
5829 if test "X$vi_cv_path_ruby" != "X"; then
5830 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5831 $as_echo_n "checking Ruby version... " >&6; }
5832 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5833 { $as_echo "$as_me:$LINENO: result: OK" >&5
5834 $as_echo "OK" >&6; }
5835 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5836 $as_echo_n "checking Ruby header files... " >&6; }
5837 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5838 if test "X$rubyhdrdir" != "X"; then
5839 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5840 $as_echo "$rubyhdrdir" >&6; }
5841 RUBY_CFLAGS="-I$rubyhdrdir"
5842 rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5843 if test -d "$rubyhdrdir/$rubyarch"; then
5844 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5846 rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5847 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5848 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5849 if test "X$rubylibs" != "X"; then
5850 RUBY_LIBS="$rubylibs"
5852 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5853 if test -f "$rubyhdrdir/$librubyarg"; then
5854 librubyarg="$rubyhdrdir/$librubyarg"
5855 else
5856 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5857 if test -f "$rubylibdir/$librubyarg"; then
5858 librubyarg="$rubylibdir/$librubyarg"
5859 elif test "$librubyarg" = "libruby.a"; then
5860 librubyarg="-lruby"
5861 else
5862 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5866 if test "X$librubyarg" != "X"; then
5867 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5869 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5870 if test "X$rubyldflags" != "X"; then
5871 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5872 if test "X$rubyldflags" != "X"; then
5873 LDFLAGS="$rubyldflags $LDFLAGS"
5876 RUBY_SRC="if_ruby.c"
5877 RUBY_OBJ="objects/if_ruby.o"
5878 RUBY_PRO="if_ruby.pro"
5879 cat >>confdefs.h <<\_ACEOF
5880 #define FEAT_RUBY 1
5881 _ACEOF
5883 else
5884 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5885 $as_echo "not found; disabling Ruby" >&6; }
5887 else
5888 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5889 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5899 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5900 $as_echo_n "checking --enable-cscope argument... " >&6; }
5901 # Check whether --enable-cscope was given.
5902 if test "${enable_cscope+set}" = set; then
5903 enableval=$enable_cscope;
5904 else
5905 enable_cscope="no"
5908 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5909 $as_echo "$enable_cscope" >&6; }
5910 if test "$enable_cscope" = "yes"; then
5911 cat >>confdefs.h <<\_ACEOF
5912 #define FEAT_CSCOPE 1
5913 _ACEOF
5917 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5918 $as_echo_n "checking --enable-workshop argument... " >&6; }
5919 # Check whether --enable-workshop was given.
5920 if test "${enable_workshop+set}" = set; then
5921 enableval=$enable_workshop;
5922 else
5923 enable_workshop="no"
5926 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5927 $as_echo "$enable_workshop" >&6; }
5928 if test "$enable_workshop" = "yes"; then
5929 cat >>confdefs.h <<\_ACEOF
5930 #define FEAT_SUN_WORKSHOP 1
5931 _ACEOF
5933 WORKSHOP_SRC="workshop.c integration.c"
5935 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5937 if test "${enable_gui-xxx}" = xxx; then
5938 enable_gui=motif
5942 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5943 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5944 # Check whether --enable-netbeans was given.
5945 if test "${enable_netbeans+set}" = set; then
5946 enableval=$enable_netbeans;
5947 else
5948 enable_netbeans="yes"
5951 if test "$enable_netbeans" = "yes"; then
5952 { $as_echo "$as_me:$LINENO: result: no" >&5
5953 $as_echo "no" >&6; }
5955 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5956 $as_echo_n "checking for socket in -lsocket... " >&6; }
5957 if test "${ac_cv_lib_socket_socket+set}" = set; then
5958 $as_echo_n "(cached) " >&6
5959 else
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lsocket $LIBS"
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 /* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
5972 #ifdef __cplusplus
5973 extern "C"
5974 #endif
5975 char socket ();
5977 main ()
5979 return socket ();
5981 return 0;
5983 _ACEOF
5984 rm -f conftest.$ac_objext conftest$ac_exeext
5985 if { (ac_try="$ac_link"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992 (eval "$ac_link") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest$ac_exeext && {
6002 test "$cross_compiling" = yes ||
6003 $as_test_x conftest$ac_exeext
6004 }; then
6005 ac_cv_lib_socket_socket=yes
6006 else
6007 $as_echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6010 ac_cv_lib_socket_socket=no
6013 rm -rf conftest.dSYM
6014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6015 conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_check_lib_save_LIBS
6018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6019 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6020 if test "x$ac_cv_lib_socket_socket" = x""yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define HAVE_LIBSOCKET 1
6023 _ACEOF
6025 LIBS="-lsocket $LIBS"
6030 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6031 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6032 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6033 $as_echo_n "(cached) " >&6
6034 else
6035 ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lnsl $LIBS"
6037 cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h. */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 /* Override any GCC internal prototype to avoid an error.
6045 Use char because int might match the return type of a GCC
6046 builtin and then its argument prototype would still apply. */
6047 #ifdef __cplusplus
6048 extern "C"
6049 #endif
6050 char gethostbyname ();
6052 main ()
6054 return gethostbyname ();
6056 return 0;
6058 _ACEOF
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (ac_try="$ac_link"
6061 case "(($ac_try" in
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6064 esac
6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6066 $as_echo "$ac_try_echo") >&5
6067 (eval "$ac_link") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest$ac_exeext && {
6077 test "$cross_compiling" = yes ||
6078 $as_test_x conftest$ac_exeext
6079 }; then
6080 ac_cv_lib_nsl_gethostbyname=yes
6081 else
6082 $as_echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_lib_nsl_gethostbyname=no
6088 rm -rf conftest.dSYM
6089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6090 conftest$ac_exeext conftest.$ac_ext
6091 LIBS=$ac_check_lib_save_LIBS
6093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6094 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6095 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6096 cat >>confdefs.h <<_ACEOF
6097 #define HAVE_LIBNSL 1
6098 _ACEOF
6100 LIBS="-lnsl $LIBS"
6104 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6105 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 #include <stdio.h>
6114 #include <stdlib.h>
6115 #include <stdarg.h>
6116 #include <fcntl.h>
6117 #include <netdb.h>
6118 #include <netinet/in.h>
6119 #include <errno.h>
6120 #include <sys/types.h>
6121 #include <sys/socket.h>
6122 /* Check bitfields */
6123 struct nbbuf {
6124 unsigned int initDone:1;
6125 ushort signmaplen;
6129 main ()
6132 /* Check creating a socket. */
6133 struct sockaddr_in server;
6134 (void)socket(AF_INET, SOCK_STREAM, 0);
6135 (void)htons(100);
6136 (void)gethostbyname("microsoft.com");
6137 if (errno == ECONNREFUSED)
6138 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6141 return 0;
6143 _ACEOF
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && {
6159 test -z "$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 } && test -s conftest$ac_exeext && {
6162 test "$cross_compiling" = yes ||
6163 $as_test_x conftest$ac_exeext
6164 }; then
6165 { $as_echo "$as_me:$LINENO: result: yes" >&5
6166 $as_echo "yes" >&6; }
6167 else
6168 $as_echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 { $as_echo "$as_me:$LINENO: result: no" >&5
6172 $as_echo "no" >&6; }; enable_netbeans="no"
6175 rm -rf conftest.dSYM
6176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6177 conftest$ac_exeext conftest.$ac_ext
6178 else
6179 { $as_echo "$as_me:$LINENO: result: yes" >&5
6180 $as_echo "yes" >&6; }
6182 if test "$enable_netbeans" = "yes"; then
6183 cat >>confdefs.h <<\_ACEOF
6184 #define FEAT_NETBEANS_INTG 1
6185 _ACEOF
6187 NETBEANS_SRC="netbeans.c"
6189 NETBEANS_OBJ="objects/netbeans.o"
6193 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6194 $as_echo_n "checking --enable-sniff argument... " >&6; }
6195 # Check whether --enable-sniff was given.
6196 if test "${enable_sniff+set}" = set; then
6197 enableval=$enable_sniff;
6198 else
6199 enable_sniff="no"
6202 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6203 $as_echo "$enable_sniff" >&6; }
6204 if test "$enable_sniff" = "yes"; then
6205 cat >>confdefs.h <<\_ACEOF
6206 #define FEAT_SNIFF 1
6207 _ACEOF
6209 SNIFF_SRC="if_sniff.c"
6211 SNIFF_OBJ="objects/if_sniff.o"
6215 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6216 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6217 # Check whether --enable-multibyte was given.
6218 if test "${enable_multibyte+set}" = set; then
6219 enableval=$enable_multibyte;
6220 else
6221 enable_multibyte="no"
6224 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6225 $as_echo "$enable_multibyte" >&6; }
6226 if test "$enable_multibyte" = "yes"; then
6227 cat >>confdefs.h <<\_ACEOF
6228 #define FEAT_MBYTE 1
6229 _ACEOF
6233 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6234 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6235 # Check whether --enable-hangulinput was given.
6236 if test "${enable_hangulinput+set}" = set; then
6237 enableval=$enable_hangulinput;
6238 else
6239 enable_hangulinput="no"
6242 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6243 $as_echo "$enable_hangulinput" >&6; }
6245 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6246 $as_echo_n "checking --enable-xim argument... " >&6; }
6247 # Check whether --enable-xim was given.
6248 if test "${enable_xim+set}" = set; then
6249 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6250 $as_echo "$enable_xim" >&6; }
6251 else
6252 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6253 $as_echo "defaulting to auto" >&6; }
6257 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6258 $as_echo_n "checking --enable-fontset argument... " >&6; }
6259 # Check whether --enable-fontset was given.
6260 if test "${enable_fontset+set}" = set; then
6261 enableval=$enable_fontset;
6262 else
6263 enable_fontset="no"
6266 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6267 $as_echo "$enable_fontset" >&6; }
6269 test -z "$with_x" && with_x=yes
6270 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6271 if test "$with_x" = no; then
6272 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6273 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6274 else
6276 # Extract the first word of "xmkmf", so it can be a program name with args.
6277 set dummy xmkmf; ac_word=$2
6278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6281 $as_echo_n "(cached) " >&6
6282 else
6283 case $xmkmfpath in
6284 [\\/]* | ?:[\\/]*)
6285 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6299 done
6300 done
6301 IFS=$as_save_IFS
6304 esac
6306 xmkmfpath=$ac_cv_path_xmkmfpath
6307 if test -n "$xmkmfpath"; then
6308 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6309 $as_echo "$xmkmfpath" >&6; }
6310 else
6311 { $as_echo "$as_me:$LINENO: result: no" >&5
6312 $as_echo "no" >&6; }
6317 { $as_echo "$as_me:$LINENO: checking for X" >&5
6318 $as_echo_n "checking for X... " >&6; }
6321 # Check whether --with-x was given.
6322 if test "${with_x+set}" = set; then
6323 withval=$with_x;
6326 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6327 if test "x$with_x" = xno; then
6328 # The user explicitly disabled X.
6329 have_x=disabled
6330 else
6331 case $x_includes,$x_libraries in #(
6332 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6333 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6334 { (exit 1); exit 1; }; };; #(
6335 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6336 $as_echo_n "(cached) " >&6
6337 else
6338 # One or both of the vars are not set, and there is no cached value.
6339 ac_x_includes=no ac_x_libraries=no
6340 rm -f -r conftest.dir
6341 if mkdir conftest.dir; then
6342 cd conftest.dir
6343 cat >Imakefile <<'_ACEOF'
6344 incroot:
6345 @echo incroot='${INCROOT}'
6346 usrlibdir:
6347 @echo usrlibdir='${USRLIBDIR}'
6348 libdir:
6349 @echo libdir='${LIBDIR}'
6350 _ACEOF
6351 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6353 for ac_var in incroot usrlibdir libdir; do
6354 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6355 done
6356 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6357 for ac_extension in a so sl dylib la dll; do
6358 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6359 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6360 ac_im_usrlibdir=$ac_im_libdir; break
6362 done
6363 # Screen out bogus values from the imake configuration. They are
6364 # bogus both because they are the default anyway, and because
6365 # using them would break gcc on systems where it needs fixed includes.
6366 case $ac_im_incroot in
6367 /usr/include) ac_x_includes= ;;
6368 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6369 esac
6370 case $ac_im_usrlibdir in
6371 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6372 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6373 esac
6375 cd ..
6376 rm -f -r conftest.dir
6379 # Standard set of common directories for X headers.
6380 # Check X11 before X11Rn because it is often a symlink to the current release.
6381 ac_x_header_dirs='
6382 /usr/X11/include
6383 /usr/X11R6/include
6384 /usr/X11R5/include
6385 /usr/X11R4/include
6387 /usr/include/X11
6388 /usr/include/X11R6
6389 /usr/include/X11R5
6390 /usr/include/X11R4
6392 /usr/local/X11/include
6393 /usr/local/X11R6/include
6394 /usr/local/X11R5/include
6395 /usr/local/X11R4/include
6397 /usr/local/include/X11
6398 /usr/local/include/X11R6
6399 /usr/local/include/X11R5
6400 /usr/local/include/X11R4
6402 /usr/X386/include
6403 /usr/x386/include
6404 /usr/XFree86/include/X11
6406 /usr/include
6407 /usr/local/include
6408 /usr/unsupported/include
6409 /usr/athena/include
6410 /usr/local/x11r5/include
6411 /usr/lpp/Xamples/include
6413 /usr/openwin/include
6414 /usr/openwin/share/include'
6416 if test "$ac_x_includes" = no; then
6417 # Guess where to find include files, by looking for Xlib.h.
6418 # First, try using that file with no special directory specified.
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #include <X11/Xlib.h>
6426 _ACEOF
6427 if { (ac_try="$ac_cpp conftest.$ac_ext"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev/null && {
6441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 }; then
6444 # We can compile using X headers with no special include directory.
6445 ac_x_includes=
6446 else
6447 $as_echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 for ac_dir in $ac_x_header_dirs; do
6451 if test -r "$ac_dir/X11/Xlib.h"; then
6452 ac_x_includes=$ac_dir
6453 break
6455 done
6458 rm -f conftest.err conftest.$ac_ext
6459 fi # $ac_x_includes = no
6461 if test "$ac_x_libraries" = no; then
6462 # Check for the libraries.
6463 # See if we find them without any special options.
6464 # Don't add to $LIBS permanently.
6465 ac_save_LIBS=$LIBS
6466 LIBS="-lX11 $LIBS"
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <X11/Xlib.h>
6475 main ()
6477 XrmInitialize ()
6479 return 0;
6481 _ACEOF
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (ac_try="$ac_link"
6484 case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490 (eval "$ac_link") 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 } && test -s conftest$ac_exeext && {
6500 test "$cross_compiling" = yes ||
6501 $as_test_x conftest$ac_exeext
6502 }; then
6503 LIBS=$ac_save_LIBS
6504 # We can link X programs with no special library path.
6505 ac_x_libraries=
6506 else
6507 $as_echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 LIBS=$ac_save_LIBS
6511 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6513 # Don't even attempt the hair of trying to link an X program!
6514 for ac_extension in a so sl dylib la dll; do
6515 if test -r "$ac_dir/libX11.$ac_extension"; then
6516 ac_x_libraries=$ac_dir
6517 break 2
6519 done
6520 done
6523 rm -rf conftest.dSYM
6524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6525 conftest$ac_exeext conftest.$ac_ext
6526 fi # $ac_x_libraries = no
6528 case $ac_x_includes,$ac_x_libraries in #(
6529 no,* | *,no | *\'*)
6530 # Didn't find X, or a directory has "'" in its name.
6531 ac_cv_have_x="have_x=no";; #(
6533 # Record where we found X for the cache.
6534 ac_cv_have_x="have_x=yes\
6535 ac_x_includes='$ac_x_includes'\
6536 ac_x_libraries='$ac_x_libraries'"
6537 esac
6539 ;; #(
6540 *) have_x=yes;;
6541 esac
6542 eval "$ac_cv_have_x"
6543 fi # $with_x != no
6545 if test "$have_x" != yes; then
6546 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6547 $as_echo "$have_x" >&6; }
6548 no_x=yes
6549 else
6550 # If each of the values was on the command line, it overrides each guess.
6551 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6552 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6553 # Update the cache value to reflect the command line values.
6554 ac_cv_have_x="have_x=yes\
6555 ac_x_includes='$x_includes'\
6556 ac_x_libraries='$x_libraries'"
6557 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6558 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6561 if test "$no_x" = yes; then
6562 # Not all programs may use this symbol, but it does not hurt to define it.
6564 cat >>confdefs.h <<\_ACEOF
6565 #define X_DISPLAY_MISSING 1
6566 _ACEOF
6568 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6569 else
6570 if test -n "$x_includes"; then
6571 X_CFLAGS="$X_CFLAGS -I$x_includes"
6574 # It would also be nice to do this for all -L options, not just this one.
6575 if test -n "$x_libraries"; then
6576 X_LIBS="$X_LIBS -L$x_libraries"
6577 # For Solaris; some versions of Sun CC require a space after -R and
6578 # others require no space. Words are not sufficient . . . .
6579 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6580 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6581 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6582 ac_xsave_c_werror_flag=$ac_c_werror_flag
6583 ac_c_werror_flag=yes
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6592 main ()
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext conftest$ac_exeext
6600 if { (ac_try="$ac_link"
6601 case "(($ac_try" in
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6604 esac
6605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6606 $as_echo "$ac_try_echo") >&5
6607 (eval "$ac_link") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest$ac_exeext && {
6617 test "$cross_compiling" = yes ||
6618 $as_test_x conftest$ac_exeext
6619 }; then
6620 { $as_echo "$as_me:$LINENO: result: no" >&5
6621 $as_echo "no" >&6; }
6622 X_LIBS="$X_LIBS -R$x_libraries"
6623 else
6624 $as_echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 LIBS="$ac_xsave_LIBS -R $x_libraries"
6628 cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h. */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6636 main ()
6640 return 0;
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6645 case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648 esac
6649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6650 $as_echo "$ac_try_echo") >&5
6651 (eval "$ac_link") 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest$ac_exeext && {
6661 test "$cross_compiling" = yes ||
6662 $as_test_x conftest$ac_exeext
6663 }; then
6664 { $as_echo "$as_me:$LINENO: result: yes" >&5
6665 $as_echo "yes" >&6; }
6666 X_LIBS="$X_LIBS -R $x_libraries"
6667 else
6668 $as_echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6672 $as_echo "neither works" >&6; }
6675 rm -rf conftest.dSYM
6676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6677 conftest$ac_exeext conftest.$ac_ext
6680 rm -rf conftest.dSYM
6681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6682 conftest$ac_exeext conftest.$ac_ext
6683 ac_c_werror_flag=$ac_xsave_c_werror_flag
6684 LIBS=$ac_xsave_LIBS
6687 # Check for system-dependent libraries X programs must link with.
6688 # Do this before checking for the system-independent R6 libraries
6689 # (-lICE), since we may need -lsocket or whatever for X linking.
6691 if test "$ISC" = yes; then
6692 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6693 else
6694 # Martyn Johnson says this is needed for Ultrix, if the X
6695 # libraries were built with DECnet support. And Karl Berry says
6696 # the Alpha needs dnet_stub (dnet does not exist).
6697 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6705 /* Override any GCC internal prototype to avoid an error.
6706 Use char because int might match the return type of a GCC
6707 builtin and then its argument prototype would still apply. */
6708 #ifdef __cplusplus
6709 extern "C"
6710 #endif
6711 char XOpenDisplay ();
6713 main ()
6715 return XOpenDisplay ();
6717 return 0;
6719 _ACEOF
6720 rm -f conftest.$ac_objext conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6722 case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6725 esac
6726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6727 $as_echo "$ac_try_echo") >&5
6728 (eval "$ac_link") 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest$ac_exeext && {
6738 test "$cross_compiling" = yes ||
6739 $as_test_x conftest$ac_exeext
6740 }; then
6742 else
6743 $as_echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6747 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6748 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6749 $as_echo_n "(cached) " >&6
6750 else
6751 ac_check_lib_save_LIBS=$LIBS
6752 LIBS="-ldnet $LIBS"
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 dnet_ntoa ();
6768 main ()
6770 return dnet_ntoa ();
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
6796 ac_cv_lib_dnet_dnet_ntoa=yes
6797 else
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 ac_cv_lib_dnet_dnet_ntoa=no
6804 rm -rf conftest.dSYM
6805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6806 conftest$ac_exeext conftest.$ac_ext
6807 LIBS=$ac_check_lib_save_LIBS
6809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6810 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6811 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6812 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6815 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6816 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6817 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6818 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6820 else
6821 ac_check_lib_save_LIBS=$LIBS
6822 LIBS="-ldnet_stub $LIBS"
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6830 /* Override any GCC internal prototype to avoid an error.
6831 Use char because int might match the return type of a GCC
6832 builtin and then its argument prototype would still apply. */
6833 #ifdef __cplusplus
6834 extern "C"
6835 #endif
6836 char dnet_ntoa ();
6838 main ()
6840 return dnet_ntoa ();
6842 return 0;
6844 _ACEOF
6845 rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (ac_try="$ac_link"
6847 case "(($ac_try" in
6848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6850 esac
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_link") 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest$ac_exeext && {
6863 test "$cross_compiling" = yes ||
6864 $as_test_x conftest$ac_exeext
6865 }; then
6866 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6867 else
6868 $as_echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_cv_lib_dnet_stub_dnet_ntoa=no
6874 rm -rf conftest.dSYM
6875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6876 conftest$ac_exeext conftest.$ac_ext
6877 LIBS=$ac_check_lib_save_LIBS
6879 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6880 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6881 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6882 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6888 rm -rf conftest.dSYM
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890 conftest$ac_exeext conftest.$ac_ext
6891 LIBS="$ac_xsave_LIBS"
6893 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6894 # to get the SysV transport functions.
6895 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6896 # needs -lnsl.
6897 # The nsl library prevents programs from opening the X display
6898 # on Irix 5.2, according to T.E. Dickey.
6899 # The functions gethostbyname, getservbyname, and inet_addr are
6900 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6901 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6902 $as_echo_n "checking for gethostbyname... " >&6; }
6903 if test "${ac_cv_func_gethostbyname+set}" = set; then
6904 $as_echo_n "(cached) " >&6
6905 else
6906 cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h. */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6914 #define gethostbyname innocuous_gethostbyname
6916 /* System header to define __stub macros and hopefully few prototypes,
6917 which can conflict with char gethostbyname (); below.
6918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6919 <limits.h> exists even on freestanding compilers. */
6921 #ifdef __STDC__
6922 # include <limits.h>
6923 #else
6924 # include <assert.h>
6925 #endif
6927 #undef gethostbyname
6929 /* Override any GCC internal prototype to avoid an error.
6930 Use char because int might match the return type of a GCC
6931 builtin and then its argument prototype would still apply. */
6932 #ifdef __cplusplus
6933 extern "C"
6934 #endif
6935 char gethostbyname ();
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6940 choke me
6941 #endif
6944 main ()
6946 return gethostbyname ();
6948 return 0;
6950 _ACEOF
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (ac_try="$ac_link"
6953 case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956 esac
6957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958 $as_echo "$ac_try_echo") >&5
6959 (eval "$ac_link") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest$ac_exeext && {
6969 test "$cross_compiling" = yes ||
6970 $as_test_x conftest$ac_exeext
6971 }; then
6972 ac_cv_func_gethostbyname=yes
6973 else
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_func_gethostbyname=no
6980 rm -rf conftest.dSYM
6981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6982 conftest$ac_exeext conftest.$ac_ext
6984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6985 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6987 if test $ac_cv_func_gethostbyname = no; then
6988 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6989 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6990 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6992 else
6993 ac_check_lib_save_LIBS=$LIBS
6994 LIBS="-lnsl $LIBS"
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7002 /* Override any GCC internal prototype to avoid an error.
7003 Use char because int might match the return type of a GCC
7004 builtin and then its argument prototype would still apply. */
7005 #ifdef __cplusplus
7006 extern "C"
7007 #endif
7008 char gethostbyname ();
7010 main ()
7012 return gethostbyname ();
7014 return 0;
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (ac_try="$ac_link"
7019 case "(($ac_try" in
7020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7022 esac
7023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7024 $as_echo "$ac_try_echo") >&5
7025 (eval "$ac_link") 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest$ac_exeext && {
7035 test "$cross_compiling" = yes ||
7036 $as_test_x conftest$ac_exeext
7037 }; then
7038 ac_cv_lib_nsl_gethostbyname=yes
7039 else
7040 $as_echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 ac_cv_lib_nsl_gethostbyname=no
7046 rm -rf conftest.dSYM
7047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7048 conftest$ac_exeext conftest.$ac_ext
7049 LIBS=$ac_check_lib_save_LIBS
7051 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7052 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7053 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7057 if test $ac_cv_lib_nsl_gethostbyname = no; then
7058 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7059 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7060 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7062 else
7063 ac_check_lib_save_LIBS=$LIBS
7064 LIBS="-lbsd $LIBS"
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7072 /* Override any GCC internal prototype to avoid an error.
7073 Use char because int might match the return type of a GCC
7074 builtin and then its argument prototype would still apply. */
7075 #ifdef __cplusplus
7076 extern "C"
7077 #endif
7078 char gethostbyname ();
7080 main ()
7082 return gethostbyname ();
7084 return 0;
7086 _ACEOF
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7089 case "(($ac_try" in
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7092 esac
7093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest$ac_exeext && {
7105 test "$cross_compiling" = yes ||
7106 $as_test_x conftest$ac_exeext
7107 }; then
7108 ac_cv_lib_bsd_gethostbyname=yes
7109 else
7110 $as_echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_cv_lib_bsd_gethostbyname=no
7116 rm -rf conftest.dSYM
7117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7118 conftest$ac_exeext conftest.$ac_ext
7119 LIBS=$ac_check_lib_save_LIBS
7121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7122 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7123 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7124 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7130 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7131 # socket/setsockopt and other routines are undefined under SCO ODT
7132 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7133 # on later versions), says Simon Leinen: it contains gethostby*
7134 # variants that don't use the name server (or something). -lsocket
7135 # must be given before -lnsl if both are needed. We assume that
7136 # if connect needs -lnsl, so does gethostbyname.
7137 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7138 $as_echo_n "checking for connect... " >&6; }
7139 if test "${ac_cv_func_connect+set}" = set; then
7140 $as_echo_n "(cached) " >&6
7141 else
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h. */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7150 #define connect innocuous_connect
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char connect (); below.
7154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 <limits.h> exists even on freestanding compilers. */
7157 #ifdef __STDC__
7158 # include <limits.h>
7159 #else
7160 # include <assert.h>
7161 #endif
7163 #undef connect
7165 /* Override any GCC internal prototype to avoid an error.
7166 Use char because int might match the return type of a GCC
7167 builtin and then its argument prototype would still apply. */
7168 #ifdef __cplusplus
7169 extern "C"
7170 #endif
7171 char connect ();
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined __stub_connect || defined __stub___connect
7176 choke me
7177 #endif
7180 main ()
7182 return connect ();
7184 return 0;
7186 _ACEOF
7187 rm -f conftest.$ac_objext conftest$ac_exeext
7188 if { (ac_try="$ac_link"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_link") 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest$ac_exeext && {
7205 test "$cross_compiling" = yes ||
7206 $as_test_x conftest$ac_exeext
7207 }; then
7208 ac_cv_func_connect=yes
7209 else
7210 $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_func_connect=no
7216 rm -rf conftest.dSYM
7217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218 conftest$ac_exeext conftest.$ac_ext
7220 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7221 $as_echo "$ac_cv_func_connect" >&6; }
7223 if test $ac_cv_func_connect = no; then
7224 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7225 $as_echo_n "checking for connect in -lsocket... " >&6; }
7226 if test "${ac_cv_lib_socket_connect+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7228 else
7229 ac_check_lib_save_LIBS=$LIBS
7230 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7238 /* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7241 #ifdef __cplusplus
7242 extern "C"
7243 #endif
7244 char connect ();
7246 main ()
7248 return connect ();
7250 return 0;
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (ac_try="$ac_link"
7255 case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258 esac
7259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7260 $as_echo "$ac_try_echo") >&5
7261 (eval "$ac_link") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest$ac_exeext && {
7271 test "$cross_compiling" = yes ||
7272 $as_test_x conftest$ac_exeext
7273 }; then
7274 ac_cv_lib_socket_connect=yes
7275 else
7276 $as_echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 ac_cv_lib_socket_connect=no
7282 rm -rf conftest.dSYM
7283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LIBS=$ac_check_lib_save_LIBS
7287 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7288 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7289 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7290 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7295 # Guillermo Gomez says -lposix is necessary on A/UX.
7296 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7297 $as_echo_n "checking for remove... " >&6; }
7298 if test "${ac_cv_func_remove+set}" = set; then
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7309 #define remove innocuous_remove
7311 /* System header to define __stub macros and hopefully few prototypes,
7312 which can conflict with char remove (); below.
7313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7314 <limits.h> exists even on freestanding compilers. */
7316 #ifdef __STDC__
7317 # include <limits.h>
7318 #else
7319 # include <assert.h>
7320 #endif
7322 #undef remove
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7327 #ifdef __cplusplus
7328 extern "C"
7329 #endif
7330 char remove ();
7331 /* The GNU C library defines this for functions which it implements
7332 to always fail with ENOSYS. Some functions are actually named
7333 something starting with __ and the normal name is an alias. */
7334 #if defined __stub_remove || defined __stub___remove
7335 choke me
7336 #endif
7339 main ()
7341 return remove ();
7343 return 0;
7345 _ACEOF
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (ac_try="$ac_link"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_link") 2>conftest.er1
7355 ac_status=$?
7356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext && {
7364 test "$cross_compiling" = yes ||
7365 $as_test_x conftest$ac_exeext
7366 }; then
7367 ac_cv_func_remove=yes
7368 else
7369 $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_cv_func_remove=no
7375 rm -rf conftest.dSYM
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext conftest.$ac_ext
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7380 $as_echo "$ac_cv_func_remove" >&6; }
7382 if test $ac_cv_func_remove = no; then
7383 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7384 $as_echo_n "checking for remove in -lposix... " >&6; }
7385 if test "${ac_cv_lib_posix_remove+set}" = set; then
7386 $as_echo_n "(cached) " >&6
7387 else
7388 ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-lposix $LIBS"
7390 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7397 /* Override any GCC internal prototype to avoid an error.
7398 Use char because int might match the return type of a GCC
7399 builtin and then its argument prototype would still apply. */
7400 #ifdef __cplusplus
7401 extern "C"
7402 #endif
7403 char remove ();
7405 main ()
7407 return remove ();
7409 return 0;
7411 _ACEOF
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (ac_try="$ac_link"
7414 case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_link") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest$ac_exeext && {
7430 test "$cross_compiling" = yes ||
7431 $as_test_x conftest$ac_exeext
7432 }; then
7433 ac_cv_lib_posix_remove=yes
7434 else
7435 $as_echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_cv_lib_posix_remove=no
7441 rm -rf conftest.dSYM
7442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7443 conftest$ac_exeext conftest.$ac_ext
7444 LIBS=$ac_check_lib_save_LIBS
7446 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7447 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7448 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7454 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7455 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7456 $as_echo_n "checking for shmat... " >&6; }
7457 if test "${ac_cv_func_shmat+set}" = set; then
7458 $as_echo_n "(cached) " >&6
7459 else
7460 cat >conftest.$ac_ext <<_ACEOF
7461 /* confdefs.h. */
7462 _ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7468 #define shmat innocuous_shmat
7470 /* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char shmat (); below.
7472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473 <limits.h> exists even on freestanding compilers. */
7475 #ifdef __STDC__
7476 # include <limits.h>
7477 #else
7478 # include <assert.h>
7479 #endif
7481 #undef shmat
7483 /* Override any GCC internal prototype to avoid an error.
7484 Use char because int might match the return type of a GCC
7485 builtin and then its argument prototype would still apply. */
7486 #ifdef __cplusplus
7487 extern "C"
7488 #endif
7489 char shmat ();
7490 /* The GNU C library defines this for functions which it implements
7491 to always fail with ENOSYS. Some functions are actually named
7492 something starting with __ and the normal name is an alias. */
7493 #if defined __stub_shmat || defined __stub___shmat
7494 choke me
7495 #endif
7498 main ()
7500 return shmat ();
7502 return 0;
7504 _ACEOF
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (ac_try="$ac_link"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512 $as_echo "$ac_try_echo") >&5
7513 (eval "$ac_link") 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest$ac_exeext && {
7523 test "$cross_compiling" = yes ||
7524 $as_test_x conftest$ac_exeext
7525 }; then
7526 ac_cv_func_shmat=yes
7527 else
7528 $as_echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_cv_func_shmat=no
7534 rm -rf conftest.dSYM
7535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7536 conftest$ac_exeext conftest.$ac_ext
7538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7539 $as_echo "$ac_cv_func_shmat" >&6; }
7541 if test $ac_cv_func_shmat = no; then
7542 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7543 $as_echo_n "checking for shmat in -lipc... " >&6; }
7544 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7545 $as_echo_n "(cached) " >&6
7546 else
7547 ac_check_lib_save_LIBS=$LIBS
7548 LIBS="-lipc $LIBS"
7549 cat >conftest.$ac_ext <<_ACEOF
7550 /* confdefs.h. */
7551 _ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7556 /* Override any GCC internal prototype to avoid an error.
7557 Use char because int might match the return type of a GCC
7558 builtin and then its argument prototype would still apply. */
7559 #ifdef __cplusplus
7560 extern "C"
7561 #endif
7562 char shmat ();
7564 main ()
7566 return shmat ();
7568 return 0;
7570 _ACEOF
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (ac_try="$ac_link"
7573 case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7578 $as_echo "$ac_try_echo") >&5
7579 (eval "$ac_link") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest$ac_exeext && {
7589 test "$cross_compiling" = yes ||
7590 $as_test_x conftest$ac_exeext
7591 }; then
7592 ac_cv_lib_ipc_shmat=yes
7593 else
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_lib_ipc_shmat=no
7600 rm -rf conftest.dSYM
7601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7602 conftest$ac_exeext conftest.$ac_ext
7603 LIBS=$ac_check_lib_save_LIBS
7605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7606 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7607 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7614 # Check for libraries that X11R6 Xt/Xaw programs need.
7615 ac_save_LDFLAGS=$LDFLAGS
7616 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7617 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7618 # check for ICE first), but we must link in the order -lSM -lICE or
7619 # we get undefined symbols. So assume we have SM if we have ICE.
7620 # These have to be linked with before -lX11, unlike the other
7621 # libraries we check for below, so use a different variable.
7622 # John Interrante, Karl Berry
7623 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7624 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7625 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7626 $as_echo_n "(cached) " >&6
7627 else
7628 ac_check_lib_save_LIBS=$LIBS
7629 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 char IceConnectionNumber ();
7645 main ()
7647 return IceConnectionNumber ();
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659 $as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext && {
7670 test "$cross_compiling" = yes ||
7671 $as_test_x conftest$ac_exeext
7672 }; then
7673 ac_cv_lib_ICE_IceConnectionNumber=yes
7674 else
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_lib_ICE_IceConnectionNumber=no
7681 rm -rf conftest.dSYM
7682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7687 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7688 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7689 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7692 LDFLAGS=$ac_save_LDFLAGS
7697 if test "$OS390Unix" = "yes"; then
7698 CFLAGS="$CFLAGS -W c,dll"
7699 LDFLAGS="$LDFLAGS -W l,dll"
7700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7704 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7705 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7706 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7707 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7708 X_LIBS="$X_LIBS -L$x_libraries"
7709 if test "`(uname) 2>/dev/null`" = SunOS &&
7710 uname -r | grep '^5' >/dev/null; then
7711 X_LIBS="$X_LIBS -R $x_libraries"
7715 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7716 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7717 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7718 $as_echo "Corrected X includes to $x_includes" >&6; }
7719 X_CFLAGS="$X_CFLAGS -I$x_includes"
7722 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7723 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7724 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7727 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7728 $as_echo_n "checking if X11 header files can be found... " >&6; }
7729 cflags_save=$CFLAGS
7730 CFLAGS="$CFLAGS $X_CFLAGS"
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #include <X11/Xlib.h>
7738 #include <X11/Intrinsic.h>
7740 main ()
7744 return 0;
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7749 case "(($ac_try" in
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7752 esac
7753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7754 $as_echo "$ac_try_echo") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.$ac_objext; then
7765 { $as_echo "$as_me:$LINENO: result: yes" >&5
7766 $as_echo "yes" >&6; }
7767 else
7768 $as_echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 { $as_echo "$as_me:$LINENO: result: no" >&5
7772 $as_echo "no" >&6; }; no_x=yes
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776 CFLAGS=$cflags_save
7778 if test "${no_x-no}" = yes; then
7779 with_x=no
7780 else
7781 cat >>confdefs.h <<\_ACEOF
7782 #define HAVE_X11 1
7783 _ACEOF
7785 X_LIB="-lXt -lX11";
7788 ac_save_LDFLAGS="$LDFLAGS"
7789 LDFLAGS="-L$x_libraries $LDFLAGS"
7791 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7792 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7793 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7794 $as_echo_n "(cached) " >&6
7795 else
7796 ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any GCC internal prototype to avoid an error.
7806 Use char because int might match the return type of a GCC
7807 builtin and then its argument prototype would still apply. */
7808 #ifdef __cplusplus
7809 extern "C"
7810 #endif
7811 char _XdmcpAuthDoIt ();
7813 main ()
7815 return _XdmcpAuthDoIt ();
7817 return 0;
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (ac_try="$ac_link"
7822 case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7827 $as_echo "$ac_try_echo") >&5
7828 (eval "$ac_link") 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest$ac_exeext && {
7838 test "$cross_compiling" = yes ||
7839 $as_test_x conftest$ac_exeext
7840 }; then
7841 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7842 else
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7849 rm -rf conftest.dSYM
7850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851 conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7855 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7856 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7861 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7862 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7863 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7865 else
7866 ac_check_lib_save_LIBS=$LIBS
7867 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 char IceOpenConnection ();
7883 main ()
7885 return IceOpenConnection ();
7887 return 0;
7889 _ACEOF
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (ac_try="$ac_link"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898 (eval "$ac_link") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest$ac_exeext && {
7908 test "$cross_compiling" = yes ||
7909 $as_test_x conftest$ac_exeext
7910 }; then
7911 ac_cv_lib_ICE_IceOpenConnection=yes
7912 else
7913 $as_echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 ac_cv_lib_ICE_IceOpenConnection=no
7919 rm -rf conftest.dSYM
7920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7921 conftest$ac_exeext conftest.$ac_ext
7922 LIBS=$ac_check_lib_save_LIBS
7924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7925 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7926 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then
7927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7931 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7932 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7933 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7934 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7935 $as_echo_n "(cached) " >&6
7936 else
7937 ac_check_lib_save_LIBS=$LIBS
7938 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 /* Override any GCC internal prototype to avoid an error.
7947 Use char because int might match the return type of a GCC
7948 builtin and then its argument prototype would still apply. */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 char XpmCreatePixmapFromData ();
7954 main ()
7956 return XpmCreatePixmapFromData ();
7958 return 0;
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_link") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest$ac_exeext && {
7979 test "$cross_compiling" = yes ||
7980 $as_test_x conftest$ac_exeext
7981 }; then
7982 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7983 else
7984 $as_echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7990 rm -rf conftest.dSYM
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7996 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7997 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7998 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8002 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8003 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8004 cflags_save=$CFLAGS
8005 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <X11/Xlib.h>
8014 main ()
8018 return 0;
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8023 case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026 esac
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 { $as_echo "$as_me:$LINENO: result: no" >&5
8040 $as_echo "no" >&6; }
8041 else
8042 $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 CFLAGS="$CFLAGS -Wno-implicit-int"
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 #include <X11/Xlib.h>
8054 main ()
8058 return 0;
8060 _ACEOF
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8063 case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066 esac
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 { $as_echo "$as_me:$LINENO: result: yes" >&5
8080 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8081 else
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8086 $as_echo "test failed" >&6; }
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 CFLAGS=$cflags_save
8097 LDFLAGS="$ac_save_LDFLAGS"
8099 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8100 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8101 if test "${ac_cv_small_wchar_t+set}" = set; then
8102 $as_echo_n "(cached) " >&6
8103 else
8104 if test "$cross_compiling" = yes; then
8105 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8106 $as_echo "$as_me: error: failed to compile test program" >&2;}
8107 { (exit 1); exit 1; }; }
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 #include <X11/Xlib.h>
8117 #if STDC_HEADERS
8118 # include <stdlib.h>
8119 # include <stddef.h>
8120 #endif
8121 main()
8123 if (sizeof(wchar_t) <= 2)
8124 exit(1);
8125 exit(0);
8127 _ACEOF
8128 rm -f conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8130 case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8135 $as_echo "$ac_try_echo") >&5
8136 (eval "$ac_link") 2>&5
8137 ac_status=$?
8138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8140 { (case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8145 $as_echo "$ac_try_echo") >&5
8146 (eval "$ac_try") 2>&5
8147 ac_status=$?
8148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_small_wchar_t="no"
8151 else
8152 $as_echo "$as_me: program exited with status $ac_status" >&5
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ( exit $ac_status )
8157 ac_cv_small_wchar_t="yes"
8159 rm -rf conftest.dSYM
8160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8166 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8167 $as_echo "$ac_cv_small_wchar_t" >&6; }
8168 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8169 cat >>confdefs.h <<\_ACEOF
8170 #define SMALL_WCHAR_T 1
8171 _ACEOF
8178 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8180 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8181 $as_echo_n "checking --enable-gui argument... " >&6; }
8182 # Check whether --enable-gui was given.
8183 if test "${enable_gui+set}" = set; then
8184 enableval=$enable_gui;
8185 else
8186 enable_gui="auto"
8190 enable_gui_canon=`echo "_$enable_gui" | \
8191 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8193 SKIP_GTK=YES
8194 SKIP_GTK2=YES
8195 SKIP_GNOME=YES
8196 SKIP_MOTIF=YES
8197 SKIP_ATHENA=YES
8198 SKIP_NEXTAW=YES
8199 SKIP_PHOTON=YES
8200 SKIP_CARBON=YES
8201 GUITYPE=NONE
8203 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8204 SKIP_PHOTON=
8205 case "$enable_gui_canon" in
8206 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8207 $as_echo "no GUI support" >&6; }
8208 SKIP_PHOTON=YES ;;
8209 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8210 $as_echo "yes - automatic GUI support" >&6; } ;;
8211 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8212 $as_echo "auto - automatic GUI support" >&6; } ;;
8213 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8214 $as_echo "Photon GUI support" >&6; } ;;
8215 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8216 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8217 SKIP_PHOTON=YES ;;
8218 esac
8220 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8221 SKIP_CARBON=
8222 case "$enable_gui_canon" in
8223 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8224 $as_echo "no GUI support" >&6; }
8225 SKIP_CARBON=YES ;;
8226 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8227 $as_echo "yes - automatic GUI support" >&6; } ;;
8228 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8229 $as_echo "auto - automatic GUI support" >&6; } ;;
8230 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8231 $as_echo "Carbon GUI support" >&6; } ;;
8232 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8233 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8234 SKIP_CARBON=YES ;;
8235 esac
8237 else
8239 case "$enable_gui_canon" in
8240 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8241 $as_echo "no GUI support" >&6; } ;;
8242 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8243 $as_echo "yes/auto - automatic GUI support" >&6; }
8244 SKIP_GTK=
8245 SKIP_GTK2=
8246 SKIP_GNOME=
8247 SKIP_MOTIF=
8248 SKIP_ATHENA=
8249 SKIP_NEXTAW=
8250 SKIP_CARBON=;;
8251 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8252 $as_echo "GTK+ 1.x GUI support" >&6; }
8253 SKIP_GTK=;;
8254 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8255 $as_echo "GTK+ 2.x GUI support" >&6; }
8256 SKIP_GTK=
8257 SKIP_GTK2=;;
8258 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8259 $as_echo "GNOME 1.x GUI support" >&6; }
8260 SKIP_GNOME=
8261 SKIP_GTK=;;
8262 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8263 $as_echo "GNOME 2.x GUI support" >&6; }
8264 SKIP_GNOME=
8265 SKIP_GTK=
8266 SKIP_GTK2=;;
8267 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8268 $as_echo "Motif GUI support" >&6; }
8269 SKIP_MOTIF=;;
8270 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8271 $as_echo "Athena GUI support" >&6; }
8272 SKIP_ATHENA=;;
8273 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8274 $as_echo "neXtaw GUI support" >&6; }
8275 SKIP_NEXTAW=;;
8276 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8277 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8278 esac
8282 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8283 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8284 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8285 # Check whether --enable-gtk-check was given.
8286 if test "${enable_gtk_check+set}" = set; then
8287 enableval=$enable_gtk_check;
8288 else
8289 enable_gtk_check="yes"
8292 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8293 $as_echo "$enable_gtk_check" >&6; }
8294 if test "x$enable_gtk_check" = "xno"; then
8295 SKIP_GTK=YES
8296 SKIP_GNOME=YES
8300 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8301 -a "$enable_gui_canon" != "gnome2"; then
8302 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8303 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8304 # Check whether --enable-gtk2-check was given.
8305 if test "${enable_gtk2_check+set}" = set; then
8306 enableval=$enable_gtk2_check;
8307 else
8308 enable_gtk2_check="yes"
8311 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8312 $as_echo "$enable_gtk2_check" >&6; }
8313 if test "x$enable_gtk2_check" = "xno"; then
8314 SKIP_GTK2=YES
8318 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8319 -a "$enable_gui_canon" != "gnome2"; then
8320 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8321 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8322 # Check whether --enable-gnome-check was given.
8323 if test "${enable_gnome_check+set}" = set; then
8324 enableval=$enable_gnome_check;
8325 else
8326 enable_gnome_check="no"
8329 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8330 $as_echo "$enable_gnome_check" >&6; }
8331 if test "x$enable_gnome_check" = "xno"; then
8332 SKIP_GNOME=YES
8336 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8337 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8338 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8339 # Check whether --enable-motif-check was given.
8340 if test "${enable_motif_check+set}" = set; then
8341 enableval=$enable_motif_check;
8342 else
8343 enable_motif_check="yes"
8346 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8347 $as_echo "$enable_motif_check" >&6; }
8348 if test "x$enable_motif_check" = "xno"; then
8349 SKIP_MOTIF=YES
8353 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8354 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8355 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8356 # Check whether --enable-athena-check was given.
8357 if test "${enable_athena_check+set}" = set; then
8358 enableval=$enable_athena_check;
8359 else
8360 enable_athena_check="yes"
8363 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8364 $as_echo "$enable_athena_check" >&6; }
8365 if test "x$enable_athena_check" = "xno"; then
8366 SKIP_ATHENA=YES
8370 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8371 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8372 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8373 # Check whether --enable-nextaw-check was given.
8374 if test "${enable_nextaw_check+set}" = set; then
8375 enableval=$enable_nextaw_check;
8376 else
8377 enable_nextaw_check="yes"
8380 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8381 $as_echo "$enable_nextaw_check" >&6; };
8382 if test "x$enable_nextaw_check" = "xno"; then
8383 SKIP_NEXTAW=YES
8387 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8388 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8389 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8390 # Check whether --enable-carbon-check was given.
8391 if test "${enable_carbon_check+set}" = set; then
8392 enableval=$enable_carbon_check;
8393 else
8394 enable_carbon_check="yes"
8397 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8398 $as_echo "$enable_carbon_check" >&6; };
8399 if test "x$enable_carbon_check" = "xno"; then
8400 SKIP_CARBON=YES
8405 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8406 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8407 $as_echo_n "checking for Carbon GUI... " >&6; }
8408 { $as_echo "$as_me:$LINENO: result: yes" >&5
8409 $as_echo "yes" >&6; };
8410 GUITYPE=CARBONGUI
8411 if test "$VIMNAME" = "vim"; then
8412 VIMNAME=Vim
8415 if test x$prefix = xNONE; then
8416 prefix=/Applications
8419 datadir='${prefix}/Vim.app/Contents/Resources'
8421 SKIP_GTK=YES;
8422 SKIP_GTK2=YES;
8423 SKIP_GNOME=YES;
8424 SKIP_MOTIF=YES;
8425 SKIP_ATHENA=YES;
8426 SKIP_NEXTAW=YES;
8427 SKIP_PHOTON=YES;
8428 SKIP_CARBON=YES
8439 if test -z "$SKIP_GTK"; then
8441 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8442 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8444 # Check whether --with-gtk-prefix was given.
8445 if test "${with_gtk_prefix+set}" = set; then
8446 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8447 $as_echo "$gtk_config_prefix" >&6; }
8448 else
8449 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8450 $as_echo "no" >&6; }
8454 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8455 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8457 # Check whether --with-gtk-exec-prefix was given.
8458 if test "${with_gtk_exec_prefix+set}" = set; then
8459 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8460 $as_echo "$gtk_config_prefix" >&6; }
8461 else
8462 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8463 $as_echo "no" >&6; }
8467 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8468 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8469 # Check whether --enable-gtktest was given.
8470 if test "${enable_gtktest+set}" = set; then
8471 enableval=$enable_gtktest;
8472 else
8473 enable_gtktest=yes
8476 if test "x$enable_gtktest" = "xyes" ; then
8477 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8478 $as_echo "gtk test enabled" >&6; }
8479 else
8480 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8481 $as_echo "gtk test disabled" >&6; }
8484 if test "x$gtk_config_prefix" != "x" ; then
8485 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8486 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8488 if test "x$gtk_config_exec_prefix" != "x" ; then
8489 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8490 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8492 if test "X$GTK_CONFIG" = "X"; then
8493 # Extract the first word of "gtk-config", so it can be a program name with args.
8494 set dummy gtk-config; ac_word=$2
8495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8499 else
8500 case $GTK_CONFIG in
8501 [\\/]* | ?:[\\/]*)
8502 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8508 IFS=$as_save_IFS
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 break 2
8516 done
8517 done
8518 IFS=$as_save_IFS
8520 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8522 esac
8524 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8525 if test -n "$GTK_CONFIG"; then
8526 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8527 $as_echo "$GTK_CONFIG" >&6; }
8528 else
8529 { $as_echo "$as_me:$LINENO: result: no" >&5
8530 $as_echo "no" >&6; }
8534 if test "X$GTK_CONFIG" = "Xno"; then
8535 # Extract the first word of "gtk12-config", so it can be a program name with args.
8536 set dummy gtk12-config; ac_word=$2
8537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8540 $as_echo_n "(cached) " >&6
8541 else
8542 case $GTK12_CONFIG in
8543 [\\/]* | ?:[\\/]*)
8544 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8562 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8564 esac
8566 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8567 if test -n "$GTK12_CONFIG"; then
8568 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8569 $as_echo "$GTK12_CONFIG" >&6; }
8570 else
8571 { $as_echo "$as_me:$LINENO: result: no" >&5
8572 $as_echo "no" >&6; }
8576 GTK_CONFIG="$GTK12_CONFIG"
8578 else
8579 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8580 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8582 if test "X$PKG_CONFIG" = "X"; then
8583 # Extract the first word of "pkg-config", so it can be a program name with args.
8584 set dummy pkg-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_PKG_CONFIG+set}" = set; then
8588 $as_echo_n "(cached) " >&6
8589 else
8590 case $PKG_CONFIG in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_PKG_CONFIG="$PKG_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_PKG_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_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8612 esac
8614 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8615 if test -n "$PKG_CONFIG"; then
8616 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8617 $as_echo "$PKG_CONFIG" >&6; }
8618 else
8619 { $as_echo "$as_me:$LINENO: result: no" >&5
8620 $as_echo "no" >&6; }
8626 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8627 if test "X$SKIP_GTK2" != "XYES"; then
8629 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8631 min_gtk_version=2.2.0
8632 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8633 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8634 no_gtk=""
8635 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8636 && $PKG_CONFIG --exists gtk+-2.0; then
8638 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8639 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8640 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8641 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8642 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8643 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8644 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8645 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8648 elif test "X$GTK_CONFIG" != "Xno"; then
8650 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8651 GTK_LIBDIR=
8652 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8653 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8654 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8655 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8656 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8657 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8658 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8660 else
8661 no_gtk=yes
8664 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8666 ac_save_CFLAGS="$CFLAGS"
8667 ac_save_LIBS="$LIBS"
8668 CFLAGS="$CFLAGS $GTK_CFLAGS"
8669 LIBS="$LIBS $GTK_LIBS"
8671 rm -f conf.gtktest
8672 if test "$cross_compiling" = yes; then
8673 echo $ac_n "cross compiling; assumed OK... $ac_c"
8674 else
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8682 #include <gtk/gtk.h>
8683 #include <stdio.h>
8684 #if STDC_HEADERS
8685 # include <stdlib.h>
8686 # include <stddef.h>
8687 #endif
8690 main ()
8692 int major, minor, micro;
8693 char *tmp_version;
8695 system ("touch conf.gtktest");
8697 /* HP/UX 9 (%@#!) writes to sscanf strings */
8698 tmp_version = g_strdup("$min_gtk_version");
8699 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8700 printf("%s, bad version string\n", "$min_gtk_version");
8701 exit(1);
8704 if ((gtk_major_version > major) ||
8705 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8706 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8707 (gtk_micro_version >= micro)))
8709 return 0;
8711 return 1;
8714 _ACEOF
8715 rm -f conftest$ac_exeext
8716 if { (ac_try="$ac_link"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723 (eval "$ac_link") 2>&5
8724 ac_status=$?
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8727 { (case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730 esac
8731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8732 $as_echo "$ac_try_echo") >&5
8733 (eval "$ac_try") 2>&5
8734 ac_status=$?
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8738 else
8739 $as_echo "$as_me: program exited with status $ac_status" >&5
8740 $as_echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ( exit $ac_status )
8744 no_gtk=yes
8746 rm -rf conftest.dSYM
8747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8751 CFLAGS="$ac_save_CFLAGS"
8752 LIBS="$ac_save_LIBS"
8755 if test "x$no_gtk" = x ; then
8756 if test "x$enable_gtktest" = "xyes"; then
8757 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8758 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8759 else
8760 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8761 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8763 GUI_LIB_LOC="$GTK_LIBDIR"
8764 GTK_LIBNAME="$GTK_LIBS"
8765 GUI_INC_LOC="$GTK_CFLAGS"
8766 else
8768 { $as_echo "$as_me:$LINENO: result: no" >&5
8769 $as_echo "no" >&6; }
8770 GTK_CFLAGS=""
8771 GTK_LIBS=""
8776 else
8777 GTK_CFLAGS=""
8778 GTK_LIBS=""
8783 rm -f conf.gtktest
8785 if test "x$GTK_CFLAGS" != "x"; then
8786 SKIP_ATHENA=YES
8787 SKIP_NEXTAW=YES
8788 SKIP_MOTIF=YES
8789 GUITYPE=GTK
8794 if test "x$GUITYPE" != "xGTK"; then
8795 SKIP_GTK2=YES
8797 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8799 min_gtk_version=1.1.16
8800 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8801 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8802 no_gtk=""
8803 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8804 && $PKG_CONFIG --exists gtk+-2.0; then
8806 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8807 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8808 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8809 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8810 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8811 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8812 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8813 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8814 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8816 elif test "X$GTK_CONFIG" != "Xno"; then
8818 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8819 GTK_LIBDIR=
8820 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8821 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8822 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8823 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8824 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8825 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8826 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8828 else
8829 no_gtk=yes
8832 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8834 ac_save_CFLAGS="$CFLAGS"
8835 ac_save_LIBS="$LIBS"
8836 CFLAGS="$CFLAGS $GTK_CFLAGS"
8837 LIBS="$LIBS $GTK_LIBS"
8839 rm -f conf.gtktest
8840 if test "$cross_compiling" = yes; then
8841 echo $ac_n "cross compiling; assumed OK... $ac_c"
8842 else
8843 cat >conftest.$ac_ext <<_ACEOF
8844 /* confdefs.h. */
8845 _ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8850 #include <gtk/gtk.h>
8851 #include <stdio.h>
8852 #if STDC_HEADERS
8853 # include <stdlib.h>
8854 # include <stddef.h>
8855 #endif
8858 main ()
8860 int major, minor, micro;
8861 char *tmp_version;
8863 system ("touch conf.gtktest");
8865 /* HP/UX 9 (%@#!) writes to sscanf strings */
8866 tmp_version = g_strdup("$min_gtk_version");
8867 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8868 printf("%s, bad version string\n", "$min_gtk_version");
8869 exit(1);
8872 if ((gtk_major_version > major) ||
8873 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8874 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8875 (gtk_micro_version >= micro)))
8877 return 0;
8879 return 1;
8882 _ACEOF
8883 rm -f conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8885 case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_link") 2>&5
8892 ac_status=$?
8893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8895 { (case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898 esac
8899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8900 $as_echo "$ac_try_echo") >&5
8901 (eval "$ac_try") 2>&5
8902 ac_status=$?
8903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8906 else
8907 $as_echo "$as_me: program exited with status $ac_status" >&5
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ( exit $ac_status )
8912 no_gtk=yes
8914 rm -rf conftest.dSYM
8915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8919 CFLAGS="$ac_save_CFLAGS"
8920 LIBS="$ac_save_LIBS"
8923 if test "x$no_gtk" = x ; then
8924 if test "x$enable_gtktest" = "xyes"; then
8925 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8926 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8927 else
8928 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8929 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8931 GTK_LIBNAME="$GTK_LIBS"
8932 GUI_INC_LOC="$GTK_CFLAGS"
8933 else
8935 { $as_echo "$as_me:$LINENO: result: no" >&5
8936 $as_echo "no" >&6; }
8937 GTK_CFLAGS=""
8938 GTK_LIBS=""
8943 else
8944 GTK_CFLAGS=""
8945 GTK_LIBS=""
8950 rm -f conf.gtktest
8952 if test "x$GTK_CFLAGS" != "x"; then
8953 SKIP_ATHENA=YES
8954 SKIP_NEXTAW=YES
8955 SKIP_MOTIF=YES
8956 GUITYPE=GTK
8961 if test "x$GUITYPE" = "xGTK"; then
8962 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8963 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8964 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8965 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8966 else
8968 if test "0$gtk_major_version" -ge 2; then
8969 cat >>confdefs.h <<\_ACEOF
8970 #define HAVE_GTK2 1
8971 _ACEOF
8973 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8974 || test "0$gtk_minor_version" -ge 2 \
8975 || test "0$gtk_major_version" -gt 2; then
8976 cat >>confdefs.h <<\_ACEOF
8977 #define HAVE_GTK_MULTIHEAD 1
8978 _ACEOF
8982 if test -z "$SKIP_GNOME"; then
8990 # Check whether --with-gnome-includes was given.
8991 if test "${with_gnome_includes+set}" = set; then
8992 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8998 # Check whether --with-gnome-libs was given.
8999 if test "${with_gnome_libs+set}" = set; then
9000 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9006 # Check whether --with-gnome was given.
9007 if test "${with_gnome+set}" = set; then
9008 withval=$with_gnome; if test x$withval = xyes; then
9009 want_gnome=yes
9010 have_gnome=yes
9011 else
9012 if test "x$withval" = xno; then
9013 want_gnome=no
9014 else
9015 want_gnome=yes
9016 LDFLAGS="$LDFLAGS -L$withval/lib"
9017 CFLAGS="$CFLAGS -I$withval/include"
9018 gnome_prefix=$withval/lib
9021 else
9022 want_gnome=yes
9026 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9028 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9029 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9030 if $PKG_CONFIG --exists libgnomeui-2.0; then
9031 { $as_echo "$as_me:$LINENO: result: yes" >&5
9032 $as_echo "yes" >&6; }
9033 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
9034 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
9035 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
9037 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9038 $as_echo_n "checking for FreeBSD... " >&6; }
9039 if test "`(uname) 2>/dev/null`" = FreeBSD; then
9040 { $as_echo "$as_me:$LINENO: result: yes" >&5
9041 $as_echo "yes" >&6; }
9042 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9043 GNOME_LIBS="$GNOME_LIBS -pthread"
9044 else
9045 { $as_echo "$as_me:$LINENO: result: no" >&5
9046 $as_echo "no" >&6; }
9048 have_gnome=yes
9049 else
9050 { $as_echo "$as_me:$LINENO: result: not found" >&5
9051 $as_echo "not found" >&6; }
9052 if test "x" = xfail; then
9053 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9054 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9055 { (exit 1); exit 1; }; }
9059 elif test "x$want_gnome" = xyes; then
9061 # Extract the first word of "gnome-config", so it can be a program name with args.
9062 set dummy gnome-config; ac_word=$2
9063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9067 else
9068 case $GNOME_CONFIG in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9086 IFS=$as_save_IFS
9088 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9090 esac
9092 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9093 if test -n "$GNOME_CONFIG"; then
9094 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9095 $as_echo "$GNOME_CONFIG" >&6; }
9096 else
9097 { $as_echo "$as_me:$LINENO: result: no" >&5
9098 $as_echo "no" >&6; }
9102 if test "$GNOME_CONFIG" = "no"; then
9103 no_gnome_config="yes"
9104 else
9105 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9106 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9107 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9108 { $as_echo "$as_me:$LINENO: result: yes" >&5
9109 $as_echo "yes" >&6; }
9110 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
9111 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
9112 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
9113 have_gnome=yes
9114 else
9115 { $as_echo "$as_me:$LINENO: result: no" >&5
9116 $as_echo "no" >&6; }
9117 no_gnome_config="yes"
9121 if test x$exec_prefix = xNONE; then
9122 if test x$prefix = xNONE; then
9123 gnome_prefix=$ac_default_prefix/lib
9124 else
9125 gnome_prefix=$prefix/lib
9127 else
9128 gnome_prefix=`eval echo \`echo $libdir\``
9131 if test "$no_gnome_config" = "yes"; then
9132 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9133 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9134 if test -f $gnome_prefix/gnomeConf.sh; then
9135 { $as_echo "$as_me:$LINENO: result: found" >&5
9136 $as_echo "found" >&6; }
9137 echo "loading gnome configuration from" \
9138 "$gnome_prefix/gnomeConf.sh"
9139 . $gnome_prefix/gnomeConf.sh
9140 have_gnome=yes
9141 else
9142 { $as_echo "$as_me:$LINENO: result: not found" >&5
9143 $as_echo "not found" >&6; }
9144 if test x = xfail; then
9145 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9146 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9147 { (exit 1); exit 1; }; }
9154 if test x$have_gnome = xyes ; then
9155 cat >>confdefs.h <<\_ACEOF
9156 #define FEAT_GUI_GNOME 1
9157 _ACEOF
9159 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9160 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9170 if test -z "$SKIP_MOTIF"; then
9171 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"
9172 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9174 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9175 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9176 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9177 GUI_INC_LOC=
9178 for try in $gui_includes; do
9179 if test -f "$try/Xm/Xm.h"; then
9180 GUI_INC_LOC=$try
9182 done
9183 if test -n "$GUI_INC_LOC"; then
9184 if test "$GUI_INC_LOC" = /usr/include; then
9185 GUI_INC_LOC=
9186 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9187 $as_echo "in default path" >&6; }
9188 else
9189 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9190 $as_echo "$GUI_INC_LOC" >&6; }
9192 else
9193 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9194 $as_echo "<not found>" >&6; }
9195 SKIP_MOTIF=YES
9200 if test -z "$SKIP_MOTIF"; then
9201 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9202 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9204 # Check whether --with-motif-lib was given.
9205 if test "${with_motif_lib+set}" = set; then
9206 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9210 if test -n "$MOTIF_LIBNAME"; then
9211 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9212 $as_echo "$MOTIF_LIBNAME" >&6; }
9213 GUI_LIB_LOC=
9214 else
9215 { $as_echo "$as_me:$LINENO: result: no" >&5
9216 $as_echo "no" >&6; }
9218 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9220 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9221 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9222 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"
9223 GUI_LIB_LOC=
9224 for try in $gui_libs; do
9225 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9226 if test -f "$libtry"; then
9227 GUI_LIB_LOC=$try
9229 done
9230 done
9231 if test -n "$GUI_LIB_LOC"; then
9232 if test "$GUI_LIB_LOC" = /usr/lib; then
9233 GUI_LIB_LOC=
9234 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9235 $as_echo "in default path" >&6; }
9236 else
9237 if test -n "$GUI_LIB_LOC"; then
9238 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9239 $as_echo "$GUI_LIB_LOC" >&6; }
9240 if test "`(uname) 2>/dev/null`" = SunOS &&
9241 uname -r | grep '^5' >/dev/null; then
9242 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9246 MOTIF_LIBNAME=-lXm
9247 else
9248 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9249 $as_echo "<not found>" >&6; }
9250 SKIP_MOTIF=YES
9255 if test -z "$SKIP_MOTIF"; then
9256 SKIP_ATHENA=YES
9257 SKIP_NEXTAW=YES
9258 GUITYPE=MOTIF
9263 GUI_X_LIBS=
9265 if test -z "$SKIP_ATHENA"; then
9266 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9267 $as_echo_n "checking if Athena header files can be found... " >&6; }
9268 cflags_save=$CFLAGS
9269 CFLAGS="$CFLAGS $X_CFLAGS"
9270 cat >conftest.$ac_ext <<_ACEOF
9271 /* confdefs.h. */
9272 _ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9277 #include <X11/Intrinsic.h>
9278 #include <X11/Xaw/Paned.h>
9280 main ()
9284 return 0;
9286 _ACEOF
9287 rm -f conftest.$ac_objext
9288 if { (ac_try="$ac_compile"
9289 case "(($ac_try" in
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9292 esac
9293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294 $as_echo "$ac_try_echo") >&5
9295 (eval "$ac_compile") 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && {
9302 test -z "$ac_c_werror_flag" ||
9303 test ! -s conftest.err
9304 } && test -s conftest.$ac_objext; then
9305 { $as_echo "$as_me:$LINENO: result: yes" >&5
9306 $as_echo "yes" >&6; }
9307 else
9308 $as_echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 { $as_echo "$as_me:$LINENO: result: no" >&5
9312 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316 CFLAGS=$cflags_save
9319 if test -z "$SKIP_ATHENA"; then
9320 GUITYPE=ATHENA
9323 if test -z "$SKIP_NEXTAW"; then
9324 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9325 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9326 cflags_save=$CFLAGS
9327 CFLAGS="$CFLAGS $X_CFLAGS"
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9335 #include <X11/Intrinsic.h>
9336 #include <X11/neXtaw/Paned.h>
9338 main ()
9342 return 0;
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352 $as_echo "$ac_try_echo") >&5
9353 (eval "$ac_compile") 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
9363 { $as_echo "$as_me:$LINENO: result: yes" >&5
9364 $as_echo "yes" >&6; }
9365 else
9366 $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 { $as_echo "$as_me:$LINENO: result: no" >&5
9370 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 CFLAGS=$cflags_save
9377 if test -z "$SKIP_NEXTAW"; then
9378 GUITYPE=NEXTAW
9381 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9382 if test -n "$GUI_INC_LOC"; then
9383 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9385 if test -n "$GUI_LIB_LOC"; then
9386 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9389 ldflags_save=$LDFLAGS
9390 LDFLAGS="$X_LIBS $LDFLAGS"
9391 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9392 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9393 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9394 $as_echo_n "(cached) " >&6
9395 else
9396 ac_check_lib_save_LIBS=$LIBS
9397 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9398 cat >conftest.$ac_ext <<_ACEOF
9399 /* confdefs.h. */
9400 _ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9408 #ifdef __cplusplus
9409 extern "C"
9410 #endif
9411 char XShapeQueryExtension ();
9413 main ()
9415 return XShapeQueryExtension ();
9417 return 0;
9419 _ACEOF
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9427 $as_echo "$ac_try_echo") >&5
9428 (eval "$ac_link") 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest$ac_exeext && {
9438 test "$cross_compiling" = yes ||
9439 $as_test_x conftest$ac_exeext
9440 }; then
9441 ac_cv_lib_Xext_XShapeQueryExtension=yes
9442 else
9443 $as_echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_cv_lib_Xext_XShapeQueryExtension=no
9449 rm -rf conftest.dSYM
9450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9451 conftest$ac_exeext conftest.$ac_ext
9452 LIBS=$ac_check_lib_save_LIBS
9454 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9455 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9456 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
9457 GUI_X_LIBS="-lXext"
9460 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9461 $as_echo_n "checking for wslen in -lw... " >&6; }
9462 if test "${ac_cv_lib_w_wslen+set}" = set; then
9463 $as_echo_n "(cached) " >&6
9464 else
9465 ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9467 cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h. */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9477 #ifdef __cplusplus
9478 extern "C"
9479 #endif
9480 char wslen ();
9482 main ()
9484 return wslen ();
9486 return 0;
9488 _ACEOF
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (ac_try="$ac_link"
9491 case "(($ac_try" in
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9494 esac
9495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9496 $as_echo "$ac_try_echo") >&5
9497 (eval "$ac_link") 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext && {
9507 test "$cross_compiling" = yes ||
9508 $as_test_x conftest$ac_exeext
9509 }; then
9510 ac_cv_lib_w_wslen=yes
9511 else
9512 $as_echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_lib_w_wslen=no
9518 rm -rf conftest.dSYM
9519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9520 conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9523 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9524 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9525 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9529 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9530 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9531 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9532 $as_echo_n "(cached) " >&6
9533 else
9534 ac_check_lib_save_LIBS=$LIBS
9535 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char dlsym ();
9551 main ()
9553 return dlsym ();
9555 return 0;
9557 _ACEOF
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9560 case "(($ac_try" in
9561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9562 *) ac_try_echo=$ac_try;;
9563 esac
9564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9565 $as_echo "$ac_try_echo") >&5
9566 (eval "$ac_link") 2>conftest.er1
9567 ac_status=$?
9568 grep -v '^ *+' conftest.er1 >conftest.err
9569 rm -f conftest.er1
9570 cat conftest.err >&5
9571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest$ac_exeext && {
9576 test "$cross_compiling" = yes ||
9577 $as_test_x conftest$ac_exeext
9578 }; then
9579 ac_cv_lib_dl_dlsym=yes
9580 else
9581 $as_echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_lib_dl_dlsym=no
9587 rm -rf conftest.dSYM
9588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LIBS=$ac_check_lib_save_LIBS
9592 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9593 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9594 if test "x$ac_cv_lib_dl_dlsym" = x""yes; then
9595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9598 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9599 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9600 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9601 $as_echo_n "(cached) " >&6
9602 else
9603 ac_check_lib_save_LIBS=$LIBS
9604 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h. */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9615 #ifdef __cplusplus
9616 extern "C"
9617 #endif
9618 char XmuCreateStippledPixmap ();
9620 main ()
9622 return XmuCreateStippledPixmap ();
9624 return 0;
9626 _ACEOF
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (ac_try="$ac_link"
9629 case "(($ac_try" in
9630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9632 esac
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635 (eval "$ac_link") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest$ac_exeext && {
9645 test "$cross_compiling" = yes ||
9646 $as_test_x conftest$ac_exeext
9647 }; then
9648 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9649 else
9650 $as_echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9656 rm -rf conftest.dSYM
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9662 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9663 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9664 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9667 if test -z "$SKIP_MOTIF"; then
9668 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9669 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9670 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9671 $as_echo_n "(cached) " >&6
9672 else
9673 ac_check_lib_save_LIBS=$LIBS
9674 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9675 cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h. */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 char XpEndJob ();
9690 main ()
9692 return XpEndJob ();
9694 return 0;
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (ac_try="$ac_link"
9699 case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702 esac
9703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9704 $as_echo "$ac_try_echo") >&5
9705 (eval "$ac_link") 2>conftest.er1
9706 ac_status=$?
9707 grep -v '^ *+' conftest.er1 >conftest.err
9708 rm -f conftest.er1
9709 cat conftest.err >&5
9710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest$ac_exeext && {
9715 test "$cross_compiling" = yes ||
9716 $as_test_x conftest$ac_exeext
9717 }; then
9718 ac_cv_lib_Xp_XpEndJob=yes
9719 else
9720 $as_echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_cv_lib_Xp_XpEndJob=no
9726 rm -rf conftest.dSYM
9727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9728 conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9731 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9732 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9733 if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then
9734 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9738 LDFLAGS=$ldflags_save
9740 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9741 $as_echo_n "checking for extra X11 defines... " >&6; }
9742 NARROW_PROTO=
9743 rm -fr conftestdir
9744 if mkdir conftestdir; then
9745 cd conftestdir
9746 cat > Imakefile <<'EOF'
9747 acfindx:
9748 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9750 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9751 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9753 cd ..
9754 rm -fr conftestdir
9756 if test -z "$NARROW_PROTO"; then
9757 { $as_echo "$as_me:$LINENO: result: no" >&5
9758 $as_echo "no" >&6; }
9759 else
9760 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9761 $as_echo "$NARROW_PROTO" >&6; }
9766 if test "$enable_xsmp" = "yes"; then
9767 cppflags_save=$CPPFLAGS
9768 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9770 for ac_header in X11/SM/SMlib.h
9772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 $as_echo_n "checking for $ac_header... " >&6; }
9776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9777 $as_echo_n "(cached) " >&6
9779 ac_res=`eval 'as_val=${'$as_ac_Header'}
9780 $as_echo "$as_val"'`
9781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9782 $as_echo "$ac_res" >&6; }
9783 else
9784 # Is the header compilable?
9785 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 $as_echo_n "checking $ac_header usability... " >&6; }
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9795 _ACEOF
9796 rm -f conftest.$ac_objext
9797 if { (ac_try="$ac_compile"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9803 $as_echo "$ac_try_echo") >&5
9804 (eval "$ac_compile") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest.$ac_objext; then
9814 ac_header_compiler=yes
9815 else
9816 $as_echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_compiler=no
9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9824 $as_echo "$ac_header_compiler" >&6; }
9826 # Is the header present?
9827 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9828 $as_echo_n "checking $ac_header presence... " >&6; }
9829 cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h. */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <$ac_header>
9836 _ACEOF
9837 if { (ac_try="$ac_cpp conftest.$ac_ext"
9838 case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841 esac
9842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9843 $as_echo "$ac_try_echo") >&5
9844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9845 ac_status=$?
9846 grep -v '^ *+' conftest.er1 >conftest.err
9847 rm -f conftest.er1
9848 cat conftest.err >&5
9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } >/dev/null && {
9851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9852 test ! -s conftest.err
9853 }; then
9854 ac_header_preproc=yes
9855 else
9856 $as_echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9859 ac_header_preproc=no
9862 rm -f conftest.err conftest.$ac_ext
9863 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9864 $as_echo "$ac_header_preproc" >&6; }
9866 # So? What about this header?
9867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9868 yes:no: )
9869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9870 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9873 ac_header_preproc=yes
9875 no:yes:* )
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9877 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9890 esac
9891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9892 $as_echo_n "checking for $ac_header... " >&6; }
9893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9894 $as_echo_n "(cached) " >&6
9895 else
9896 eval "$as_ac_Header=\$ac_header_preproc"
9898 ac_res=`eval 'as_val=${'$as_ac_Header'}
9899 $as_echo "$as_val"'`
9900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9901 $as_echo "$ac_res" >&6; }
9904 as_val=`eval 'as_val=${'$as_ac_Header'}
9905 $as_echo "$as_val"'`
9906 if test "x$as_val" = x""yes; then
9907 cat >>confdefs.h <<_ACEOF
9908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9909 _ACEOF
9913 done
9915 CPPFLAGS=$cppflags_save
9919 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9920 cppflags_save=$CPPFLAGS
9921 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9924 for ac_header in X11/xpm.h X11/Sunkeysym.h
9926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9929 $as_echo_n "checking for $ac_header... " >&6; }
9930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9931 $as_echo_n "(cached) " >&6
9933 ac_res=`eval 'as_val=${'$as_ac_Header'}
9934 $as_echo "$as_val"'`
9935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9936 $as_echo "$ac_res" >&6; }
9937 else
9938 # Is the header compilable?
9939 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9940 $as_echo_n "checking $ac_header usability... " >&6; }
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h. */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 $ac_includes_default
9948 #include <$ac_header>
9949 _ACEOF
9950 rm -f conftest.$ac_objext
9951 if { (ac_try="$ac_compile"
9952 case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955 esac
9956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9957 $as_echo "$ac_try_echo") >&5
9958 (eval "$ac_compile") 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest.$ac_objext; then
9968 ac_header_compiler=yes
9969 else
9970 $as_echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_header_compiler=no
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9978 $as_echo "$ac_header_compiler" >&6; }
9980 # Is the header present?
9981 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9982 $as_echo_n "checking $ac_header presence... " >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9984 /* confdefs.h. */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 #include <$ac_header>
9990 _ACEOF
9991 if { (ac_try="$ac_cpp conftest.$ac_ext"
9992 case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995 esac
9996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997 $as_echo "$ac_try_echo") >&5
9998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev/null && {
10005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 }; then
10008 ac_header_preproc=yes
10009 else
10010 $as_echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_header_preproc=no
10016 rm -f conftest.err conftest.$ac_ext
10017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10018 $as_echo "$ac_header_preproc" >&6; }
10020 # So? What about this header?
10021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10022 yes:no: )
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10024 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10027 ac_header_preproc=yes
10029 no:yes:* )
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10031 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10041 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10044 esac
10045 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10046 $as_echo_n "checking for $ac_header... " >&6; }
10047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10048 $as_echo_n "(cached) " >&6
10049 else
10050 eval "$as_ac_Header=\$ac_header_preproc"
10052 ac_res=`eval 'as_val=${'$as_ac_Header'}
10053 $as_echo "$as_val"'`
10054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10055 $as_echo "$ac_res" >&6; }
10058 as_val=`eval 'as_val=${'$as_ac_Header'}
10059 $as_echo "$as_val"'`
10060 if test "x$as_val" = x""yes; then
10061 cat >>confdefs.h <<_ACEOF
10062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10063 _ACEOF
10067 done
10070 if test ! "$enable_xim" = "no"; then
10071 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10072 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&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 <X11/Xlib.h>
10080 _ACEOF
10081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10082 $EGREP "XIMText" >/dev/null 2>&1; then
10083 { $as_echo "$as_me:$LINENO: result: yes" >&5
10084 $as_echo "yes" >&6; }
10085 else
10086 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10087 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
10089 rm -f conftest*
10092 CPPFLAGS=$cppflags_save
10094 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10095 -a "x$GUITYPE" != "xNONE" ; then
10096 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10097 $as_echo "X GUI selected; xim has been enabled" >&6; }
10098 enable_xim="yes"
10102 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10103 cppflags_save=$CPPFLAGS
10104 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10105 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10106 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 #include <X11/Intrinsic.h>
10115 #include <X11/Xmu/Editres.h>
10117 main ()
10119 int i; i = 0;
10121 return 0;
10123 _ACEOF
10124 rm -f conftest.$ac_objext
10125 if { (ac_try="$ac_compile"
10126 case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129 esac
10130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10131 $as_echo "$ac_try_echo") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.$ac_objext; then
10142 { $as_echo "$as_me:$LINENO: result: yes" >&5
10143 $as_echo "yes" >&6; }
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_X11_XMU_EDITRES_H 1
10146 _ACEOF
10148 else
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 { $as_echo "$as_me:$LINENO: result: no" >&5
10153 $as_echo "no" >&6; }
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 CPPFLAGS=$cppflags_save
10160 if test -z "$SKIP_MOTIF"; then
10161 cppflags_save=$CPPFLAGS
10162 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10170 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10171 Xm/UnhighlightT.h Xm/Notebook.h
10173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 $as_echo_n "checking for $ac_header... " >&6; }
10177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10178 $as_echo_n "(cached) " >&6
10180 ac_res=`eval 'as_val=${'$as_ac_Header'}
10181 $as_echo "$as_val"'`
10182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10183 $as_echo "$ac_res" >&6; }
10184 else
10185 # Is the header compilable?
10186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10187 $as_echo_n "checking $ac_header usability... " >&6; }
10188 cat >conftest.$ac_ext <<_ACEOF
10189 /* confdefs.h. */
10190 _ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 $ac_includes_default
10195 #include <$ac_header>
10196 _ACEOF
10197 rm -f conftest.$ac_objext
10198 if { (ac_try="$ac_compile"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10202 esac
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_compile") 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest.$ac_objext; then
10215 ac_header_compiler=yes
10216 else
10217 $as_echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10220 ac_header_compiler=no
10223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10225 $as_echo "$ac_header_compiler" >&6; }
10227 # Is the header present?
10228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10229 $as_echo_n "checking $ac_header presence... " >&6; }
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h. */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 #include <$ac_header>
10237 _ACEOF
10238 if { (ac_try="$ac_cpp conftest.$ac_ext"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242 esac
10243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244 $as_echo "$ac_try_echo") >&5
10245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null && {
10252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 }; then
10255 ac_header_preproc=yes
10256 else
10257 $as_echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_header_preproc=no
10263 rm -f conftest.err conftest.$ac_ext
10264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10265 $as_echo "$ac_header_preproc" >&6; }
10267 # So? What about this header?
10268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10269 yes:no: )
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10274 ac_header_preproc=yes
10276 no:yes:* )
10277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10291 esac
10292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 $as_echo_n "checking for $ac_header... " >&6; }
10294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10295 $as_echo_n "(cached) " >&6
10296 else
10297 eval "$as_ac_Header=\$ac_header_preproc"
10299 ac_res=`eval 'as_val=${'$as_ac_Header'}
10300 $as_echo "$as_val"'`
10301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10302 $as_echo "$ac_res" >&6; }
10305 as_val=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 if test "x$as_val" = x""yes; then
10308 cat >>confdefs.h <<_ACEOF
10309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10310 _ACEOF
10314 done
10317 if test $ac_cv_header_Xm_XpmP_h = yes; then
10318 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10319 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&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 <Xm/XpmP.h>
10328 main ()
10330 XpmAttributes_21 attr;
10332 return 0;
10334 _ACEOF
10335 rm -f conftest.$ac_objext
10336 if { (ac_try="$ac_compile"
10337 case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340 esac
10341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10342 $as_echo "$ac_try_echo") >&5
10343 (eval "$ac_compile") 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest.$ac_objext; then
10353 { $as_echo "$as_me:$LINENO: result: yes" >&5
10354 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10355 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10356 _ACEOF
10358 else
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.$ac_ext >&5
10362 { $as_echo "$as_me:$LINENO: result: no" >&5
10363 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10364 #define XPMATTRIBUTES_TYPE XpmAttributes
10365 _ACEOF
10370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 else
10372 cat >>confdefs.h <<\_ACEOF
10373 #define XPMATTRIBUTES_TYPE XpmAttributes
10374 _ACEOF
10377 CPPFLAGS=$cppflags_save
10380 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10381 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10382 $as_echo "no GUI selected; xim has been disabled" >&6; }
10383 enable_xim="no"
10385 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10386 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10387 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10388 enable_fontset="no"
10390 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10391 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10392 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10393 enable_fontset="no"
10396 if test -z "$SKIP_PHOTON"; then
10397 GUITYPE=PHOTONGUI
10405 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10406 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10407 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10408 { (exit 1); exit 1; }; }
10411 if test "$enable_xim" = "yes"; then
10412 cat >>confdefs.h <<\_ACEOF
10413 #define FEAT_XIM 1
10414 _ACEOF
10417 if test "$enable_fontset" = "yes"; then
10418 cat >>confdefs.h <<\_ACEOF
10419 #define FEAT_XFONTSET 1
10420 _ACEOF
10427 if test "$enable_hangulinput" = "yes"; then
10428 if test "x$GUITYPE" = "xNONE"; then
10429 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10430 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10431 enable_hangulinput=no
10432 else
10433 cat >>confdefs.h <<\_ACEOF
10434 #define FEAT_HANGULIN 1
10435 _ACEOF
10437 HANGULIN_SRC=hangulin.c
10439 HANGULIN_OBJ=objects/hangulin.o
10445 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10446 $as_echo_n "checking whether toupper is broken... " >&6; }
10447 if test "${vim_cv_toupper_broken+set}" = set; then
10448 $as_echo_n "(cached) " >&6
10449 else
10451 if test "$cross_compiling" = yes; then
10453 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10454 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10455 { (exit 1); exit 1; }; }
10457 else
10458 cat >conftest.$ac_ext <<_ACEOF
10460 #include "confdefs.h"
10461 #include <ctype.h>
10462 #if STDC_HEADERS
10463 # include <stdlib.h>
10464 # include <stddef.h>
10465 #endif
10466 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10468 _ACEOF
10469 rm -f conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10474 esac
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>&5
10478 ac_status=$?
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10486 $as_echo "$ac_try_echo") >&5
10487 (eval "$ac_try") 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10492 vim_cv_toupper_broken=yes
10494 else
10495 $as_echo "$as_me: program exited with status $ac_status" >&5
10496 $as_echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ( exit $ac_status )
10501 vim_cv_toupper_broken=no
10504 rm -rf conftest.dSYM
10505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10510 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10511 $as_echo "$vim_cv_toupper_broken" >&6; }
10513 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10514 cat >>confdefs.h <<\_ACEOF
10515 #define BROKEN_TOUPPER 1
10516 _ACEOF
10520 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10521 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h. */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 #include <stdio.h>
10530 main ()
10532 printf("(" __DATE__ " " __TIME__ ")");
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext
10538 if { (ac_try="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542 esac
10543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10544 $as_echo "$ac_try_echo") >&5
10545 (eval "$ac_compile") 2>conftest.er1
10546 ac_status=$?
10547 grep -v '^ *+' conftest.er1 >conftest.err
10548 rm -f conftest.er1
10549 cat conftest.err >&5
10550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest.$ac_objext; then
10555 { $as_echo "$as_me:$LINENO: result: yes" >&5
10556 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10557 #define HAVE_DATE_TIME 1
10558 _ACEOF
10560 else
10561 $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 { $as_echo "$as_me:$LINENO: result: no" >&5
10565 $as_echo "no" >&6; }
10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10571 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10573 /* confdefs.h. */
10574 _ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <stdio.h>
10580 main ()
10582 int x __attribute__((unused));
10584 return 0;
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10592 esac
10593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10605 { $as_echo "$as_me:$LINENO: result: yes" >&5
10606 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10607 #define HAVE_ATTRIBUTE_UNUSED 1
10608 _ACEOF
10610 else
10611 $as_echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10614 { $as_echo "$as_me:$LINENO: result: no" >&5
10615 $as_echo "no" >&6; }
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 if test "${ac_cv_header_elf_h+set}" = set; then
10621 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10622 $as_echo_n "checking for elf.h... " >&6; }
10623 if test "${ac_cv_header_elf_h+set}" = set; then
10624 $as_echo_n "(cached) " >&6
10626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10627 $as_echo "$ac_cv_header_elf_h" >&6; }
10628 else
10629 # Is the header compilable?
10630 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10631 $as_echo_n "checking elf.h usability... " >&6; }
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10639 #include <elf.h>
10640 _ACEOF
10641 rm -f conftest.$ac_objext
10642 if { (ac_try="$ac_compile"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646 esac
10647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10648 $as_echo "$ac_try_echo") >&5
10649 (eval "$ac_compile") 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && {
10656 test -z "$ac_c_werror_flag" ||
10657 test ! -s conftest.err
10658 } && test -s conftest.$ac_objext; then
10659 ac_header_compiler=yes
10660 else
10661 $as_echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_header_compiler=no
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669 $as_echo "$ac_header_compiler" >&6; }
10671 # Is the header present?
10672 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10673 $as_echo_n "checking elf.h presence... " >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <elf.h>
10681 _ACEOF
10682 if { (ac_try="$ac_cpp conftest.$ac_ext"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688 $as_echo "$ac_try_echo") >&5
10689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } >/dev/null && {
10696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 }; then
10699 ac_header_preproc=yes
10700 else
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_header_preproc=no
10707 rm -f conftest.err conftest.$ac_ext
10708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10709 $as_echo "$ac_header_preproc" >&6; }
10711 # So? What about this header?
10712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10713 yes:no: )
10714 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10715 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10716 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10717 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10718 ac_header_preproc=yes
10720 no:yes:* )
10721 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10722 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10723 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10724 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10725 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10726 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10727 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10728 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10729 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10730 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10732 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10735 esac
10736 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10737 $as_echo_n "checking for elf.h... " >&6; }
10738 if test "${ac_cv_header_elf_h+set}" = set; then
10739 $as_echo_n "(cached) " >&6
10740 else
10741 ac_cv_header_elf_h=$ac_header_preproc
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10744 $as_echo "$ac_cv_header_elf_h" >&6; }
10747 if test "x$ac_cv_header_elf_h" = x""yes; then
10748 HAS_ELF=1
10752 if test "$HAS_ELF" = 1; then
10754 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10755 $as_echo_n "checking for main in -lelf... " >&6; }
10756 if test "${ac_cv_lib_elf_main+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10758 else
10759 ac_check_lib_save_LIBS=$LIBS
10760 LIBS="-lelf $LIBS"
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h. */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10770 main ()
10772 return main ();
10774 return 0;
10776 _ACEOF
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782 esac
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10797 }; then
10798 ac_cv_lib_elf_main=yes
10799 else
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_lib_elf_main=no
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10812 $as_echo "$ac_cv_lib_elf_main" >&6; }
10813 if test "x$ac_cv_lib_elf_main" = x""yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define HAVE_LIBELF 1
10816 _ACEOF
10818 LIBS="-lelf $LIBS"
10829 ac_header_dirent=no
10830 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10831 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10832 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10833 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835 $as_echo_n "(cached) " >&6
10836 else
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <sys/types.h>
10844 #include <$ac_hdr>
10847 main ()
10849 if ((DIR *) 0)
10850 return 0;
10852 return 0;
10854 _ACEOF
10855 rm -f conftest.$ac_objext
10856 if { (ac_try="$ac_compile"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10860 esac
10861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863 (eval "$ac_compile") 2>conftest.er1
10864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && {
10870 test -z "$ac_c_werror_flag" ||
10871 test ! -s conftest.err
10872 } && test -s conftest.$ac_objext; then
10873 eval "$as_ac_Header=yes"
10874 else
10875 $as_echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.$ac_ext >&5
10878 eval "$as_ac_Header=no"
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 ac_res=`eval 'as_val=${'$as_ac_Header'}
10884 $as_echo "$as_val"'`
10885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10887 as_val=`eval 'as_val=${'$as_ac_Header'}
10888 $as_echo "$as_val"'`
10889 if test "x$as_val" = x""yes; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10892 _ACEOF
10894 ac_header_dirent=$ac_hdr; break
10897 done
10898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10899 if test $ac_header_dirent = dirent.h; then
10900 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10901 $as_echo_n "checking for library containing opendir... " >&6; }
10902 if test "${ac_cv_search_opendir+set}" = set; then
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_func_search_save_LIBS=$LIBS
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char opendir ();
10921 main ()
10923 return opendir ();
10925 return 0;
10927 _ACEOF
10928 for ac_lib in '' dir; do
10929 if test -z "$ac_lib"; then
10930 ac_res="none required"
10931 else
10932 ac_res=-l$ac_lib
10933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (ac_try="$ac_link"
10937 case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10940 esac
10941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10942 $as_echo "$ac_try_echo") >&5
10943 (eval "$ac_link") 2>conftest.er1
10944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest$ac_exeext && {
10953 test "$cross_compiling" = yes ||
10954 $as_test_x conftest$ac_exeext
10955 }; then
10956 ac_cv_search_opendir=$ac_res
10957 else
10958 $as_echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10964 rm -rf conftest.dSYM
10965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10966 conftest$ac_exeext
10967 if test "${ac_cv_search_opendir+set}" = set; then
10968 break
10970 done
10971 if test "${ac_cv_search_opendir+set}" = set; then
10973 else
10974 ac_cv_search_opendir=no
10976 rm conftest.$ac_ext
10977 LIBS=$ac_func_search_save_LIBS
10979 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980 $as_echo "$ac_cv_search_opendir" >&6; }
10981 ac_res=$ac_cv_search_opendir
10982 if test "$ac_res" != no; then
10983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10987 else
10988 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10989 $as_echo_n "checking for library containing opendir... " >&6; }
10990 if test "${ac_cv_search_opendir+set}" = set; then
10991 $as_echo_n "(cached) " >&6
10992 else
10993 ac_func_search_save_LIBS=$LIBS
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char opendir ();
11009 main ()
11011 return opendir ();
11013 return 0;
11015 _ACEOF
11016 for ac_lib in '' x; do
11017 if test -z "$ac_lib"; then
11018 ac_res="none required"
11019 else
11020 ac_res=-l$ac_lib
11021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030 $as_echo "$ac_try_echo") >&5
11031 (eval "$ac_link") 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest$ac_exeext && {
11041 test "$cross_compiling" = yes ||
11042 $as_test_x conftest$ac_exeext
11043 }; then
11044 ac_cv_search_opendir=$ac_res
11045 else
11046 $as_echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11052 rm -rf conftest.dSYM
11053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11054 conftest$ac_exeext
11055 if test "${ac_cv_search_opendir+set}" = set; then
11056 break
11058 done
11059 if test "${ac_cv_search_opendir+set}" = set; then
11061 else
11062 ac_cv_search_opendir=no
11064 rm conftest.$ac_ext
11065 LIBS=$ac_func_search_save_LIBS
11067 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11068 $as_echo "$ac_cv_search_opendir" >&6; }
11069 ac_res=$ac_cv_search_opendir
11070 if test "$ac_res" != no; then
11071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11078 if test $ac_cv_header_sys_wait_h = no; then
11079 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11080 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11081 cat >conftest.$ac_ext <<_ACEOF
11082 /* confdefs.h. */
11083 _ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #include <sys/wait.h>
11089 main ()
11091 union wait xx, yy; xx = yy
11093 return 0;
11095 _ACEOF
11096 rm -f conftest.$ac_objext
11097 if { (ac_try="$ac_compile"
11098 case "(($ac_try" in
11099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11101 esac
11102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11103 $as_echo "$ac_try_echo") >&5
11104 (eval "$ac_compile") 2>conftest.er1
11105 ac_status=$?
11106 grep -v '^ *+' conftest.er1 >conftest.err
11107 rm -f conftest.er1
11108 cat conftest.err >&5
11109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest.$ac_objext; then
11114 { $as_echo "$as_me:$LINENO: result: yes" >&5
11115 $as_echo "yes" >&6; }
11116 cat >>confdefs.h <<\_ACEOF
11117 #define HAVE_SYS_WAIT_H 1
11118 _ACEOF
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_UNION_WAIT 1
11122 _ACEOF
11124 else
11125 $as_echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 { $as_echo "$as_me:$LINENO: result: no" >&5
11129 $as_echo "no" >&6; }
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11176 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11177 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11178 sys/resource.h sys/systeminfo.h locale.h \
11179 sys/stream.h termios.h libc.h sys/statfs.h \
11180 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11181 libgen.h util/debug.h util/msg18n.h frame.h \
11182 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 $as_echo_n "checking for $ac_header... " >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 $as_echo_n "(cached) " >&6
11191 ac_res=`eval 'as_val=${'$as_ac_Header'}
11192 $as_echo "$as_val"'`
11193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11194 $as_echo "$ac_res" >&6; }
11195 else
11196 # Is the header compilable?
11197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11198 $as_echo_n "checking $ac_header usability... " >&6; }
11199 cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h. */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 $ac_includes_default
11206 #include <$ac_header>
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213 esac
11214 eval 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 ac_header_compiler=yes
11227 else
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_header_compiler=no
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 $as_echo "$ac_header_compiler" >&6; }
11238 # Is the header present?
11239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 $as_echo_n "checking $ac_header presence... " >&6; }
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <$ac_header>
11248 _ACEOF
11249 if { (ac_try="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253 esac
11254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11255 $as_echo "$ac_try_echo") >&5
11256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null && {
11263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11264 test ! -s conftest.err
11265 }; then
11266 ac_header_preproc=yes
11267 else
11268 $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_header_preproc=no
11274 rm -f conftest.err conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 $as_echo "$ac_header_preproc" >&6; }
11278 # So? What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280 yes:no: )
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285 ac_header_preproc=yes
11287 no:yes:* )
11288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11302 esac
11303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 $as_echo_n "checking for $ac_header... " >&6; }
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 $as_echo_n "(cached) " >&6
11307 else
11308 eval "$as_ac_Header=\$ac_header_preproc"
11310 ac_res=`eval 'as_val=${'$as_ac_Header'}
11311 $as_echo "$as_val"'`
11312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11313 $as_echo "$ac_res" >&6; }
11316 as_val=`eval 'as_val=${'$as_ac_Header'}
11317 $as_echo "$as_val"'`
11318 if test "x$as_val" = x""yes; then
11319 cat >>confdefs.h <<_ACEOF
11320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11321 _ACEOF
11325 done
11329 for ac_header in sys/ptem.h
11331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11333 $as_echo_n "checking for $ac_header... " >&6; }
11334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335 $as_echo_n "(cached) " >&6
11336 else
11337 cat >conftest.$ac_ext <<_ACEOF
11338 /* confdefs.h. */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #if defined HAVE_SYS_STREAM_H
11344 # include <sys/stream.h>
11345 #endif
11347 #include <$ac_header>
11348 _ACEOF
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353 *) ac_try_echo=$ac_try;;
11354 esac
11355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11356 $as_echo "$ac_try_echo") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest.$ac_objext; then
11367 eval "$as_ac_Header=yes"
11368 else
11369 $as_echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 eval "$as_ac_Header=no"
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 ac_res=`eval 'as_val=${'$as_ac_Header'}
11378 $as_echo "$as_val"'`
11379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11380 $as_echo "$ac_res" >&6; }
11381 as_val=`eval 'as_val=${'$as_ac_Header'}
11382 $as_echo "$as_val"'`
11383 if test "x$as_val" = x""yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 _ACEOF
11390 done
11394 for ac_header in sys/sysctl.h
11396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 $as_echo_n "checking for $ac_header... " >&6; }
11399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 $as_echo_n "(cached) " >&6
11401 else
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #if defined HAVE_SYS_PARAM_H
11409 # include <sys/param.h>
11410 #endif
11412 #include <$ac_header>
11413 _ACEOF
11414 rm -f conftest.$ac_objext
11415 if { (ac_try="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11419 esac
11420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421 $as_echo "$ac_try_echo") >&5
11422 (eval "$ac_compile") 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest.$ac_objext; then
11432 eval "$as_ac_Header=yes"
11433 else
11434 $as_echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 eval "$as_ac_Header=no"
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 ac_res=`eval 'as_val=${'$as_ac_Header'}
11443 $as_echo "$as_val"'`
11444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11445 $as_echo "$ac_res" >&6; }
11446 as_val=`eval 'as_val=${'$as_ac_Header'}
11447 $as_echo "$as_val"'`
11448 if test "x$as_val" = x""yes; then
11449 cat >>confdefs.h <<_ACEOF
11450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11451 _ACEOF
11455 done
11459 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11460 $as_echo_n "checking for pthread_np.h... " >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11462 /* confdefs.h. */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11468 #include <pthread.h>
11469 #include <pthread_np.h>
11471 main ()
11473 int i; i = 0;
11475 return 0;
11477 _ACEOF
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482 *) ac_try_echo=$ac_try;;
11483 esac
11484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11485 $as_echo "$ac_try_echo") >&5
11486 (eval "$ac_compile") 2>conftest.er1
11487 ac_status=$?
11488 grep -v '^ *+' conftest.er1 >conftest.err
11489 rm -f conftest.er1
11490 cat conftest.err >&5
11491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } && {
11493 test -z "$ac_c_werror_flag" ||
11494 test ! -s conftest.err
11495 } && test -s conftest.$ac_objext; then
11496 { $as_echo "$as_me:$LINENO: result: yes" >&5
11497 $as_echo "yes" >&6; }
11498 cat >>confdefs.h <<\_ACEOF
11499 #define HAVE_PTHREAD_NP_H 1
11500 _ACEOF
11502 else
11503 $as_echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11506 { $as_echo "$as_me:$LINENO: result: no" >&5
11507 $as_echo "no" >&6; }
11510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 for ac_header in strings.h
11515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 $as_echo_n "checking for $ac_header... " >&6; }
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 $as_echo_n "(cached) " >&6
11522 ac_res=`eval 'as_val=${'$as_ac_Header'}
11523 $as_echo "$as_val"'`
11524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11525 $as_echo "$ac_res" >&6; }
11526 else
11527 # Is the header compilable?
11528 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11529 $as_echo_n "checking $ac_header usability... " >&6; }
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h. */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 #include <$ac_header>
11538 _ACEOF
11539 rm -f conftest.$ac_objext
11540 if { (ac_try="$ac_compile"
11541 case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544 esac
11545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11546 $as_echo "$ac_try_echo") >&5
11547 (eval "$ac_compile") 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest.$ac_objext; then
11557 ac_header_compiler=yes
11558 else
11559 $as_echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_compiler=no
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11567 $as_echo "$ac_header_compiler" >&6; }
11569 # Is the header present?
11570 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11571 $as_echo_n "checking $ac_header presence... " >&6; }
11572 cat >conftest.$ac_ext <<_ACEOF
11573 /* confdefs.h. */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 #include <$ac_header>
11579 _ACEOF
11580 if { (ac_try="$ac_cpp conftest.$ac_ext"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11588 ac_status=$?
11589 grep -v '^ *+' conftest.er1 >conftest.err
11590 rm -f conftest.er1
11591 cat conftest.err >&5
11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } >/dev/null && {
11594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 }; then
11597 ac_header_preproc=yes
11598 else
11599 $as_echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_header_preproc=no
11605 rm -f conftest.err conftest.$ac_ext
11606 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607 $as_echo "$ac_header_preproc" >&6; }
11609 # So? What about this header?
11610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11611 yes:no: )
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616 ac_header_preproc=yes
11618 no:yes:* )
11619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11633 esac
11634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11635 $as_echo_n "checking for $ac_header... " >&6; }
11636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11637 $as_echo_n "(cached) " >&6
11638 else
11639 eval "$as_ac_Header=\$ac_header_preproc"
11641 ac_res=`eval 'as_val=${'$as_ac_Header'}
11642 $as_echo "$as_val"'`
11643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11647 as_val=`eval 'as_val=${'$as_ac_Header'}
11648 $as_echo "$as_val"'`
11649 if test "x$as_val" = x""yes; then
11650 cat >>confdefs.h <<_ACEOF
11651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11652 _ACEOF
11656 done
11658 if test "x$MACOSX" = "xyes"; then
11659 cat >>confdefs.h <<\_ACEOF
11660 #define NO_STRINGS_WITH_STRING_H 1
11661 _ACEOF
11663 else
11665 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11666 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11667 cppflags_save=$CPPFLAGS
11668 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11677 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11678 /* but don't do it on AIX 5.1 (Uribarri) */
11679 #endif
11680 #ifdef HAVE_XM_XM_H
11681 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11682 #endif
11683 #ifdef HAVE_STRING_H
11684 # include <string.h>
11685 #endif
11686 #if defined(HAVE_STRINGS_H)
11687 # include <strings.h>
11688 #endif
11691 main ()
11693 int i; i = 0;
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703 esac
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 $as_echo "$ac_try_echo") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11707 ac_status=$?
11708 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1
11710 cat conftest.err >&5
11711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest.$ac_objext; then
11716 { $as_echo "$as_me:$LINENO: result: yes" >&5
11717 $as_echo "yes" >&6; }
11718 else
11719 $as_echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 cat >>confdefs.h <<\_ACEOF
11723 #define NO_STRINGS_WITH_STRING_H 1
11724 _ACEOF
11726 { $as_echo "$as_me:$LINENO: result: no" >&5
11727 $as_echo "no" >&6; }
11730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 CPPFLAGS=$cppflags_save
11734 if test $ac_cv_c_compiler_gnu = yes; then
11735 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11736 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11737 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11738 $as_echo_n "(cached) " >&6
11739 else
11740 ac_pattern="Autoconf.*'x'"
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 #include <sgtty.h>
11748 Autoconf TIOCGETP
11749 _ACEOF
11750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11751 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11752 ac_cv_prog_gcc_traditional=yes
11753 else
11754 ac_cv_prog_gcc_traditional=no
11756 rm -f conftest*
11759 if test $ac_cv_prog_gcc_traditional = no; then
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 #include <termio.h>
11767 Autoconf TCGETA
11768 _ACEOF
11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11770 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11771 ac_cv_prog_gcc_traditional=yes
11773 rm -f conftest*
11777 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11778 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11779 if test $ac_cv_prog_gcc_traditional = yes; then
11780 CC="$CC -traditional"
11784 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11785 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11786 if test "${ac_cv_c_const+set}" = set; then
11787 $as_echo_n "(cached) " >&6
11788 else
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h. */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11797 main ()
11799 /* FIXME: Include the comments suggested by Paul. */
11800 #ifndef __cplusplus
11801 /* Ultrix mips cc rejects this. */
11802 typedef int charset[2];
11803 const charset cs;
11804 /* SunOS 4.1.1 cc rejects this. */
11805 char const *const *pcpcc;
11806 char **ppc;
11807 /* NEC SVR4.0.2 mips cc rejects this. */
11808 struct point {int x, y;};
11809 static struct point const zero = {0,0};
11810 /* AIX XL C 1.02.0.0 rejects this.
11811 It does not let you subtract one const X* pointer from another in
11812 an arm of an if-expression whose if-part is not a constant
11813 expression */
11814 const char *g = "string";
11815 pcpcc = &g + (g ? g-g : 0);
11816 /* HPUX 7.0 cc rejects these. */
11817 ++pcpcc;
11818 ppc = (char**) pcpcc;
11819 pcpcc = (char const *const *) ppc;
11820 { /* SCO 3.2v4 cc rejects this. */
11821 char *t;
11822 char const *s = 0 ? (char *) 0 : (char const *) 0;
11824 *t++ = 0;
11825 if (s) return 0;
11827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11828 int x[] = {25, 17};
11829 const int *foo = &x[0];
11830 ++foo;
11832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11833 typedef const int *iptr;
11834 iptr p = 0;
11835 ++p;
11837 { /* AIX XL C 1.02.0.0 rejects this saying
11838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11839 struct s { int j; const int *ap[3]; };
11840 struct s *b; b->j = 5;
11842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11843 const int foo = 10;
11844 if (!foo) return 0;
11846 return !cs[0] && !zero.x;
11847 #endif
11850 return 0;
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857 *) ac_try_echo=$ac_try;;
11858 esac
11859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11860 $as_echo "$ac_try_echo") >&5
11861 (eval "$ac_compile") 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest.$ac_objext; then
11871 ac_cv_c_const=yes
11872 else
11873 $as_echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_cv_c_const=no
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11882 $as_echo "$ac_cv_c_const" >&6; }
11883 if test $ac_cv_c_const = no; then
11885 cat >>confdefs.h <<\_ACEOF
11886 #define const /**/
11887 _ACEOF
11891 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11892 $as_echo_n "checking for working volatile... " >&6; }
11893 if test "${ac_cv_c_volatile+set}" = set; then
11894 $as_echo_n "(cached) " >&6
11895 else
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11904 main ()
11907 volatile int x;
11908 int * volatile y = (int *) 0;
11909 return !x && !y;
11911 return 0;
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921 $as_echo "$ac_try_echo") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 ac_cv_c_volatile=yes
11933 else
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_cv_c_volatile=no
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11943 $as_echo "$ac_cv_c_volatile" >&6; }
11944 if test $ac_cv_c_volatile = no; then
11946 cat >>confdefs.h <<\_ACEOF
11947 #define volatile /**/
11948 _ACEOF
11952 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11953 $as_echo_n "checking for mode_t... " >&6; }
11954 if test "${ac_cv_type_mode_t+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11956 else
11957 ac_cv_type_mode_t=no
11958 cat >conftest.$ac_ext <<_ACEOF
11959 /* confdefs.h. */
11960 _ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 $ac_includes_default
11966 main ()
11968 if (sizeof (mode_t))
11969 return 0;
11971 return 0;
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (ac_try="$ac_compile"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11981 $as_echo "$ac_try_echo") >&5
11982 (eval "$ac_compile") 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest.$ac_objext; then
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
12000 main ()
12002 if (sizeof ((mode_t)))
12003 return 0;
12005 return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013 esac
12014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015 $as_echo "$ac_try_echo") >&5
12016 (eval "$ac_compile") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest.$ac_objext; then
12027 else
12028 $as_echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_type_mode_t=yes
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 else
12036 $as_echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12045 $as_echo "$ac_cv_type_mode_t" >&6; }
12046 if test "x$ac_cv_type_mode_t" = x""yes; then
12048 else
12050 cat >>confdefs.h <<_ACEOF
12051 #define mode_t int
12052 _ACEOF
12056 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12057 $as_echo_n "checking for off_t... " >&6; }
12058 if test "${ac_cv_type_off_t+set}" = set; then
12059 $as_echo_n "(cached) " >&6
12060 else
12061 ac_cv_type_off_t=no
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 $ac_includes_default
12070 main ()
12072 if (sizeof (off_t))
12073 return 0;
12075 return 0;
12077 _ACEOF
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083 esac
12084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085 $as_echo "$ac_try_echo") >&5
12086 (eval "$ac_compile") 2>conftest.er1
12087 ac_status=$?
12088 grep -v '^ *+' conftest.er1 >conftest.err
12089 rm -f conftest.er1
12090 cat conftest.err >&5
12091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest.$ac_objext; then
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 $ac_includes_default
12104 main ()
12106 if (sizeof ((off_t)))
12107 return 0;
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117 esac
12118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12119 $as_echo "$ac_try_echo") >&5
12120 (eval "$ac_compile") 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && {
12127 test -z "$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12129 } && test -s conftest.$ac_objext; then
12131 else
12132 $as_echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_cv_type_off_t=yes
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 else
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12149 $as_echo "$ac_cv_type_off_t" >&6; }
12150 if test "x$ac_cv_type_off_t" = x""yes; then
12152 else
12154 cat >>confdefs.h <<_ACEOF
12155 #define off_t long int
12156 _ACEOF
12160 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12161 $as_echo_n "checking for pid_t... " >&6; }
12162 if test "${ac_cv_type_pid_t+set}" = set; then
12163 $as_echo_n "(cached) " >&6
12164 else
12165 ac_cv_type_pid_t=no
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h. */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 $ac_includes_default
12174 main ()
12176 if (sizeof (pid_t))
12177 return 0;
12179 return 0;
12181 _ACEOF
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187 esac
12188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.$ac_objext; then
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h. */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12208 main ()
12210 if (sizeof ((pid_t)))
12211 return 0;
12213 return 0;
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12235 else
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_type_pid_t=yes
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 else
12244 $as_echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12253 $as_echo "$ac_cv_type_pid_t" >&6; }
12254 if test "x$ac_cv_type_pid_t" = x""yes; then
12256 else
12258 cat >>confdefs.h <<_ACEOF
12259 #define pid_t int
12260 _ACEOF
12264 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12265 $as_echo_n "checking for size_t... " >&6; }
12266 if test "${ac_cv_type_size_t+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12268 else
12269 ac_cv_type_size_t=no
12270 cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h. */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12278 main ()
12280 if (sizeof (size_t))
12281 return 0;
12283 return 0;
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12291 esac
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_compile") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.$ac_objext; then
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12312 main ()
12314 if (sizeof ((size_t)))
12315 return 0;
12317 return 0;
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (ac_try="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12325 esac
12326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12327 $as_echo "$ac_try_echo") >&5
12328 (eval "$ac_compile") 2>conftest.er1
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } && {
12335 test -z "$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12337 } && test -s conftest.$ac_objext; then
12339 else
12340 $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_type_size_t=yes
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12347 else
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12357 $as_echo "$ac_cv_type_size_t" >&6; }
12358 if test "x$ac_cv_type_size_t" = x""yes; then
12360 else
12362 cat >>confdefs.h <<_ACEOF
12363 #define size_t unsigned int
12364 _ACEOF
12368 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12369 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12370 if test "${ac_cv_type_uid_t+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12372 else
12373 cat >conftest.$ac_ext <<_ACEOF
12374 /* confdefs.h. */
12375 _ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 #include <sys/types.h>
12381 _ACEOF
12382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12383 $EGREP "uid_t" >/dev/null 2>&1; then
12384 ac_cv_type_uid_t=yes
12385 else
12386 ac_cv_type_uid_t=no
12388 rm -f conftest*
12391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12392 $as_echo "$ac_cv_type_uid_t" >&6; }
12393 if test $ac_cv_type_uid_t = no; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define uid_t int
12397 _ACEOF
12400 cat >>confdefs.h <<\_ACEOF
12401 #define gid_t int
12402 _ACEOF
12406 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12407 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12408 if test "${ac_cv_header_time+set}" = set; then
12409 $as_echo_n "(cached) " >&6
12410 else
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <sys/types.h>
12418 #include <sys/time.h>
12419 #include <time.h>
12422 main ()
12424 if ((struct tm *) 0)
12425 return 0;
12427 return 0;
12429 _ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (ac_try="$ac_compile"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435 esac
12436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12437 $as_echo "$ac_try_echo") >&5
12438 (eval "$ac_compile") 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest.$ac_objext; then
12448 ac_cv_header_time=yes
12449 else
12450 $as_echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12453 ac_cv_header_time=no
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12459 $as_echo "$ac_cv_header_time" >&6; }
12460 if test $ac_cv_header_time = yes; then
12462 cat >>confdefs.h <<\_ACEOF
12463 #define TIME_WITH_SYS_TIME 1
12464 _ACEOF
12468 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12469 $as_echo_n "checking for ino_t... " >&6; }
12470 if test "${ac_cv_type_ino_t+set}" = set; then
12471 $as_echo_n "(cached) " >&6
12472 else
12473 ac_cv_type_ino_t=no
12474 cat >conftest.$ac_ext <<_ACEOF
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12482 main ()
12484 if (sizeof (ino_t))
12485 return 0;
12487 return 0;
12489 _ACEOF
12490 rm -f conftest.$ac_objext
12491 if { (ac_try="$ac_compile"
12492 case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495 esac
12496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12499 ac_status=$?
12500 grep -v '^ *+' conftest.er1 >conftest.err
12501 rm -f conftest.er1
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest.$ac_objext; then
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 $ac_includes_default
12516 main ()
12518 if (sizeof ((ino_t)))
12519 return 0;
12521 return 0;
12523 _ACEOF
12524 rm -f conftest.$ac_objext
12525 if { (ac_try="$ac_compile"
12526 case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12529 esac
12530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12531 $as_echo "$ac_try_echo") >&5
12532 (eval "$ac_compile") 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest.$ac_objext; then
12543 else
12544 $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.$ac_ext >&5
12547 ac_cv_type_ino_t=yes
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551 else
12552 $as_echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12561 $as_echo "$ac_cv_type_ino_t" >&6; }
12562 if test "x$ac_cv_type_ino_t" = x""yes; then
12564 else
12566 cat >>confdefs.h <<_ACEOF
12567 #define ino_t long
12568 _ACEOF
12572 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12573 $as_echo_n "checking for dev_t... " >&6; }
12574 if test "${ac_cv_type_dev_t+set}" = set; then
12575 $as_echo_n "(cached) " >&6
12576 else
12577 ac_cv_type_dev_t=no
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 $ac_includes_default
12586 main ()
12588 if (sizeof (dev_t))
12589 return 0;
12591 return 0;
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (ac_try="$ac_compile"
12596 case "(($ac_try" in
12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12599 esac
12600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601 $as_echo "$ac_try_echo") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12620 main ()
12622 if (sizeof ((dev_t)))
12623 return 0;
12625 return 0;
12627 _ACEOF
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12635 $as_echo "$ac_try_echo") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.$ac_objext; then
12647 else
12648 $as_echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_type_dev_t=yes
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 else
12656 $as_echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12665 $as_echo "$ac_cv_type_dev_t" >&6; }
12666 if test "x$ac_cv_type_dev_t" = x""yes; then
12668 else
12670 cat >>confdefs.h <<_ACEOF
12671 #define dev_t unsigned
12672 _ACEOF
12677 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12678 $as_echo_n "checking for rlim_t... " >&6; }
12679 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12680 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12681 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12682 else
12683 cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h. */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12690 #include <sys/types.h>
12691 #if STDC_HEADERS
12692 # include <stdlib.h>
12693 # include <stddef.h>
12694 #endif
12695 #ifdef HAVE_SYS_RESOURCE_H
12696 # include <sys/resource.h>
12697 #endif
12699 _ACEOF
12700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12701 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12702 ac_cv_type_rlim_t=yes
12703 else
12704 ac_cv_type_rlim_t=no
12706 rm -f conftest*
12708 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12709 $as_echo "$ac_cv_type_rlim_t" >&6; }
12711 if test $ac_cv_type_rlim_t = no; then
12712 cat >> confdefs.h <<\EOF
12713 #define rlim_t unsigned long
12717 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12718 $as_echo_n "checking for stack_t... " >&6; }
12719 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12720 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12721 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12722 else
12723 cat >conftest.$ac_ext <<_ACEOF
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 #include <sys/types.h>
12731 #if STDC_HEADERS
12732 # include <stdlib.h>
12733 # include <stddef.h>
12734 #endif
12735 #include <signal.h>
12737 _ACEOF
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "stack_t" >/dev/null 2>&1; then
12740 ac_cv_type_stack_t=yes
12741 else
12742 ac_cv_type_stack_t=no
12744 rm -f conftest*
12746 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12747 $as_echo "$ac_cv_type_stack_t" >&6; }
12749 if test $ac_cv_type_stack_t = no; then
12750 cat >> confdefs.h <<\EOF
12751 #define stack_t struct sigaltstack
12755 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12756 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 #include <sys/types.h>
12765 #if STDC_HEADERS
12766 # include <stdlib.h>
12767 # include <stddef.h>
12768 #endif
12769 #include <signal.h>
12770 #include "confdefs.h"
12773 main ()
12775 stack_t sigstk; sigstk.ss_base = 0;
12777 return 0;
12779 _ACEOF
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12787 $as_echo "$ac_try_echo") >&5
12788 (eval "$ac_compile") 2>conftest.er1
12789 ac_status=$?
12790 grep -v '^ *+' conftest.er1 >conftest.err
12791 rm -f conftest.er1
12792 cat conftest.err >&5
12793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && {
12795 test -z "$ac_c_werror_flag" ||
12796 test ! -s conftest.err
12797 } && test -s conftest.$ac_objext; then
12798 { $as_echo "$as_me:$LINENO: result: yes" >&5
12799 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12800 #define HAVE_SS_BASE 1
12801 _ACEOF
12803 else
12804 $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 { $as_echo "$as_me:$LINENO: result: no" >&5
12808 $as_echo "no" >&6; }
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 olibs="$LIBS"
12814 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12815 $as_echo_n "checking --with-tlib argument... " >&6; }
12817 # Check whether --with-tlib was given.
12818 if test "${with_tlib+set}" = set; then
12819 withval=$with_tlib;
12822 if test -n "$with_tlib"; then
12823 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12824 $as_echo "$with_tlib" >&6; }
12825 LIBS="$LIBS -l$with_tlib"
12826 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12827 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12828 cat >conftest.$ac_ext <<_ACEOF
12829 /* confdefs.h. */
12830 _ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12836 main ()
12840 return 0;
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848 esac
12849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850 $as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest$ac_exeext
12863 }; then
12864 { $as_echo "$as_me:$LINENO: result: OK" >&5
12865 $as_echo "OK" >&6; }
12866 else
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12871 $as_echo "$as_me: error: FAILED" >&2;}
12872 { (exit 1); exit 1; }; }
12875 rm -rf conftest.dSYM
12876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12877 conftest$ac_exeext conftest.$ac_ext
12878 olibs="$LIBS"
12879 else
12880 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12881 $as_echo "empty: automatic terminal library selection" >&6; }
12882 case "`uname -s 2>/dev/null`" in
12883 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12884 *) tlibs="ncurses termlib termcap curses";;
12885 esac
12886 for libname in $tlibs; do
12888 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12889 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12890 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12891 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12892 $as_echo_n "(cached) " >&6
12893 else
12894 ac_check_lib_save_LIBS=$LIBS
12895 LIBS="-l${libname} $LIBS"
12896 cat >conftest.$ac_ext <<_ACEOF
12897 /* confdefs.h. */
12898 _ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12906 #ifdef __cplusplus
12907 extern "C"
12908 #endif
12909 char tgetent ();
12911 main ()
12913 return tgetent ();
12915 return 0;
12917 _ACEOF
12918 rm -f conftest.$ac_objext conftest$ac_exeext
12919 if { (ac_try="$ac_link"
12920 case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923 esac
12924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12925 $as_echo "$ac_try_echo") >&5
12926 (eval "$ac_link") 2>conftest.er1
12927 ac_status=$?
12928 grep -v '^ *+' conftest.er1 >conftest.err
12929 rm -f conftest.er1
12930 cat conftest.err >&5
12931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } && {
12933 test -z "$ac_c_werror_flag" ||
12934 test ! -s conftest.err
12935 } && test -s conftest$ac_exeext && {
12936 test "$cross_compiling" = yes ||
12937 $as_test_x conftest$ac_exeext
12938 }; then
12939 eval "$as_ac_Lib=yes"
12940 else
12941 $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 eval "$as_ac_Lib=no"
12947 rm -rf conftest.dSYM
12948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12953 $as_echo "$as_val"'`
12954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12955 $as_echo "$ac_res" >&6; }
12956 as_val=`eval 'as_val=${'$as_ac_Lib'}
12957 $as_echo "$as_val"'`
12958 if test "x$as_val" = x""yes; then
12959 cat >>confdefs.h <<_ACEOF
12960 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12961 _ACEOF
12963 LIBS="-l${libname} $LIBS"
12967 if test "x$olibs" != "x$LIBS"; then
12968 if test "$cross_compiling" = yes; then
12969 res="FAIL"
12970 else
12971 cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h. */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12978 #ifdef HAVE_TERMCAP_H
12979 # include <termcap.h>
12980 #endif
12981 #if STDC_HEADERS
12982 # include <stdlib.h>
12983 # include <stddef.h>
12984 #endif
12985 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12986 _ACEOF
12987 rm -f conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991 *) ac_try_echo=$ac_try;;
12992 esac
12993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12994 $as_echo "$ac_try_echo") >&5
12995 (eval "$ac_link") 2>&5
12996 ac_status=$?
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13004 $as_echo "$ac_try_echo") >&5
13005 (eval "$ac_try") 2>&5
13006 ac_status=$?
13007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 res="OK"
13010 else
13011 $as_echo "$as_me: program exited with status $ac_status" >&5
13012 $as_echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ( exit $ac_status )
13016 res="FAIL"
13018 rm -rf conftest.dSYM
13019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13023 if test "$res" = "OK"; then
13024 break
13026 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13027 $as_echo "$libname library is not usable" >&6; }
13028 LIBS="$olibs"
13030 done
13031 if test "x$olibs" = "x$LIBS"; then
13032 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13033 $as_echo "no terminal library found" >&6; }
13037 if test "x$olibs" = "x$LIBS"; then
13038 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13039 $as_echo_n "checking for tgetent()... " >&6; }
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h. */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13048 main ()
13050 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13052 return 0;
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_link") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest$ac_exeext && {
13073 test "$cross_compiling" = yes ||
13074 $as_test_x conftest$ac_exeext
13075 }; then
13076 { $as_echo "$as_me:$LINENO: result: yes" >&5
13077 $as_echo "yes" >&6; }
13078 else
13079 $as_echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13083 You need to install a terminal library; for example ncurses.
13084 Or specify the name of the library with --with-tlib." >&5
13085 $as_echo "$as_me: error: NOT FOUND!
13086 You need to install a terminal library; for example ncurses.
13087 Or specify the name of the library with --with-tlib." >&2;}
13088 { (exit 1); exit 1; }; }
13091 rm -rf conftest.dSYM
13092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13093 conftest$ac_exeext conftest.$ac_ext
13096 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13097 $as_echo_n "checking whether we talk terminfo... " >&6; }
13098 if test "${vim_cv_terminfo+set}" = set; then
13099 $as_echo_n "(cached) " >&6
13100 else
13102 if test "$cross_compiling" = yes; then
13104 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13105 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13106 { (exit 1); exit 1; }; }
13108 else
13109 cat >conftest.$ac_ext <<_ACEOF
13111 #include "confdefs.h"
13112 #ifdef HAVE_TERMCAP_H
13113 # include <termcap.h>
13114 #endif
13115 #ifdef HAVE_STRING_H
13116 # include <string.h>
13117 #endif
13118 #if STDC_HEADERS
13119 # include <stdlib.h>
13120 # include <stddef.h>
13121 #endif
13122 main()
13123 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13125 _ACEOF
13126 rm -f conftest$ac_exeext
13127 if { (ac_try="$ac_link"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134 (eval "$ac_link") 2>&5
13135 ac_status=$?
13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141 esac
13142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13143 $as_echo "$ac_try_echo") >&5
13144 (eval "$ac_try") 2>&5
13145 ac_status=$?
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13149 vim_cv_terminfo=no
13151 else
13152 $as_echo "$as_me: program exited with status $ac_status" >&5
13153 $as_echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13156 ( exit $ac_status )
13158 vim_cv_terminfo=yes
13161 rm -rf conftest.dSYM
13162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13169 $as_echo "$vim_cv_terminfo" >&6; }
13171 if test "x$vim_cv_terminfo" = "xyes" ; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define TERMINFO 1
13174 _ACEOF
13178 if test "x$olibs" != "x$LIBS"; then
13179 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13180 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13181 if test "${vim_cv_tgent+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13183 else
13185 if test "$cross_compiling" = yes; then
13187 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13188 $as_echo "$as_me: error: failed to compile test program." >&2;}
13189 { (exit 1); exit 1; }; }
13191 else
13192 cat >conftest.$ac_ext <<_ACEOF
13194 #include "confdefs.h"
13195 #ifdef HAVE_TERMCAP_H
13196 # include <termcap.h>
13197 #endif
13198 #if STDC_HEADERS
13199 # include <stdlib.h>
13200 # include <stddef.h>
13201 #endif
13202 main()
13203 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13205 _ACEOF
13206 rm -f conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13211 esac
13212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213 $as_echo "$ac_try_echo") >&5
13214 (eval "$ac_link") 2>&5
13215 ac_status=$?
13216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221 esac
13222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13223 $as_echo "$ac_try_echo") >&5
13224 (eval "$ac_try") 2>&5
13225 ac_status=$?
13226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13229 vim_cv_tgent=zero
13231 else
13232 $as_echo "$as_me: program exited with status $ac_status" >&5
13233 $as_echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ( exit $ac_status )
13238 vim_cv_tgent=non-zero
13241 rm -rf conftest.dSYM
13242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13248 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13249 $as_echo "$vim_cv_tgent" >&6; }
13251 if test "x$vim_cv_tgent" = "xzero" ; then
13252 cat >>confdefs.h <<\_ACEOF
13253 #define TGETENT_ZERO_ERR 0
13254 _ACEOF
13259 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13260 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13261 cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h. */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 #ifdef HAVE_TERMCAP_H
13269 # include <termcap.h>
13270 #endif
13273 main ()
13275 ospeed = 20000
13277 return 0;
13279 _ACEOF
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285 esac
13286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13287 $as_echo "$ac_try_echo") >&5
13288 (eval "$ac_link") 2>conftest.er1
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && {
13295 test -z "$ac_c_werror_flag" ||
13296 test ! -s conftest.err
13297 } && test -s conftest$ac_exeext && {
13298 test "$cross_compiling" = yes ||
13299 $as_test_x conftest$ac_exeext
13300 }; then
13301 { $as_echo "$as_me:$LINENO: result: yes" >&5
13302 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_OSPEED 1
13304 _ACEOF
13306 else
13307 $as_echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 { $as_echo "$as_me:$LINENO: result: no" >&5
13311 $as_echo "no" >&6; }
13312 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13313 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13314 cat >conftest.$ac_ext <<_ACEOF
13315 /* confdefs.h. */
13316 _ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13321 #ifdef HAVE_TERMCAP_H
13322 # include <termcap.h>
13323 #endif
13324 extern short ospeed;
13327 main ()
13329 ospeed = 20000
13331 return 0;
13333 _ACEOF
13334 rm -f conftest.$ac_objext conftest$ac_exeext
13335 if { (ac_try="$ac_link"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339 esac
13340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341 $as_echo "$ac_try_echo") >&5
13342 (eval "$ac_link") 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && {
13349 test -z "$ac_c_werror_flag" ||
13350 test ! -s conftest.err
13351 } && test -s conftest$ac_exeext && {
13352 test "$cross_compiling" = yes ||
13353 $as_test_x conftest$ac_exeext
13354 }; then
13355 { $as_echo "$as_me:$LINENO: result: yes" >&5
13356 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13357 #define OSPEED_EXTERN 1
13358 _ACEOF
13360 else
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13364 { $as_echo "$as_me:$LINENO: result: no" >&5
13365 $as_echo "no" >&6; }
13368 rm -rf conftest.dSYM
13369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370 conftest$ac_exeext conftest.$ac_ext
13374 rm -rf conftest.dSYM
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13378 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13379 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13387 #ifdef HAVE_TERMCAP_H
13388 # include <termcap.h>
13389 #endif
13392 main ()
13394 if (UP == 0 && BC == 0) PC = 1
13396 return 0;
13398 _ACEOF
13399 rm -f conftest.$ac_objext conftest$ac_exeext
13400 if { (ac_try="$ac_link"
13401 case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13404 esac
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_link") 2>conftest.er1
13408 ac_status=$?
13409 grep -v '^ *+' conftest.er1 >conftest.err
13410 rm -f conftest.er1
13411 cat conftest.err >&5
13412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest$ac_exeext && {
13417 test "$cross_compiling" = yes ||
13418 $as_test_x conftest$ac_exeext
13419 }; then
13420 { $as_echo "$as_me:$LINENO: result: yes" >&5
13421 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13422 #define HAVE_UP_BC_PC 1
13423 _ACEOF
13425 else
13426 $as_echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 { $as_echo "$as_me:$LINENO: result: no" >&5
13430 $as_echo "no" >&6; }
13431 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13432 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 /* confdefs.h. */
13435 _ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13440 #ifdef HAVE_TERMCAP_H
13441 # include <termcap.h>
13442 #endif
13443 extern char *UP, *BC, PC;
13446 main ()
13448 if (UP == 0 && BC == 0) PC = 1
13450 return 0;
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (ac_try="$ac_link"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458 esac
13459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461 (eval "$ac_link") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext && {
13471 test "$cross_compiling" = yes ||
13472 $as_test_x conftest$ac_exeext
13473 }; then
13474 { $as_echo "$as_me:$LINENO: result: yes" >&5
13475 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13476 #define UP_BC_PC_EXTERN 1
13477 _ACEOF
13479 else
13480 $as_echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 { $as_echo "$as_me:$LINENO: result: no" >&5
13484 $as_echo "no" >&6; }
13487 rm -rf conftest.dSYM
13488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13489 conftest$ac_exeext conftest.$ac_ext
13493 rm -rf conftest.dSYM
13494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13495 conftest$ac_exeext conftest.$ac_ext
13497 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13498 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13499 cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h. */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 #ifdef HAVE_TERMCAP_H
13507 # include <termcap.h>
13508 #endif
13511 main ()
13513 extern int xx(); tputs("test", 1, (outfuntype)xx)
13515 return 0;
13517 _ACEOF
13518 rm -f conftest.$ac_objext
13519 if { (ac_try="$ac_compile"
13520 case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523 esac
13524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13525 $as_echo "$ac_try_echo") >&5
13526 (eval "$ac_compile") 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && {
13533 test -z "$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest.$ac_objext; then
13536 { $as_echo "$as_me:$LINENO: result: yes" >&5
13537 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13538 #define HAVE_OUTFUNTYPE 1
13539 _ACEOF
13541 else
13542 $as_echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 { $as_echo "$as_me:$LINENO: result: no" >&5
13546 $as_echo "no" >&6; }
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13552 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 #include <sys/types.h>
13561 #include <sys/time.h>
13562 #include <sys/select.h>
13564 main ()
13568 return 0;
13570 _ACEOF
13571 rm -f conftest.$ac_objext
13572 if { (ac_try="$ac_compile"
13573 case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576 esac
13577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13578 $as_echo "$ac_try_echo") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13580 ac_status=$?
13581 grep -v '^ *+' conftest.er1 >conftest.err
13582 rm -f conftest.er1
13583 cat conftest.err >&5
13584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 { $as_echo "$as_me:$LINENO: result: yes" >&5
13590 $as_echo "yes" >&6; }
13591 cat >>confdefs.h <<\_ACEOF
13592 #define SYS_SELECT_WITH_SYS_TIME 1
13593 _ACEOF
13595 else
13596 $as_echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 { $as_echo "$as_me:$LINENO: result: no" >&5
13600 $as_echo "no" >&6; }
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13607 $as_echo_n "checking for /dev/ptc... " >&6; }
13608 if test -r /dev/ptc; then
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_DEV_PTC 1
13611 _ACEOF
13613 { $as_echo "$as_me:$LINENO: result: yes" >&5
13614 $as_echo "yes" >&6; }
13615 else
13616 { $as_echo "$as_me:$LINENO: result: no" >&5
13617 $as_echo "no" >&6; }
13620 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13621 $as_echo_n "checking for SVR4 ptys... " >&6; }
13622 if test -c /dev/ptmx ; then
13623 cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h. */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13631 main ()
13633 ptsname(0);grantpt(0);unlockpt(0);
13635 return 0;
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (ac_try="$ac_link"
13640 case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643 esac
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13647 ac_status=$?
13648 grep -v '^ *+' conftest.er1 >conftest.err
13649 rm -f conftest.er1
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13658 }; then
13659 { $as_echo "$as_me:$LINENO: result: yes" >&5
13660 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13661 #define HAVE_SVR4_PTYS 1
13662 _ACEOF
13664 else
13665 $as_echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 { $as_echo "$as_me:$LINENO: result: no" >&5
13669 $as_echo "no" >&6; }
13672 rm -rf conftest.dSYM
13673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13674 conftest$ac_exeext conftest.$ac_ext
13675 else
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13680 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13681 $as_echo_n "checking for ptyranges... " >&6; }
13682 if test -d /dev/ptym ; then
13683 pdir='/dev/ptym'
13684 else
13685 pdir='/dev'
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 #ifdef M_UNIX
13694 yes;
13695 #endif
13697 _ACEOF
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "yes" >/dev/null 2>&1; then
13700 ptys=`echo /dev/ptyp??`
13701 else
13702 ptys=`echo $pdir/pty??`
13704 rm -f conftest*
13706 if test "$ptys" != "$pdir/pty??" ; then
13707 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13708 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13709 cat >>confdefs.h <<_ACEOF
13710 #define PTYRANGE0 "$p0"
13711 _ACEOF
13713 cat >>confdefs.h <<_ACEOF
13714 #define PTYRANGE1 "$p1"
13715 _ACEOF
13717 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13718 $as_echo "$p0 / $p1" >&6; }
13719 else
13720 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13721 $as_echo "don't know" >&6; }
13724 rm -f conftest_grp
13725 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13726 $as_echo_n "checking default tty permissions/group... " >&6; }
13727 if test "${vim_cv_tty_group+set}" = set; then
13728 $as_echo_n "(cached) " >&6
13729 else
13731 if test "$cross_compiling" = yes; then
13733 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13734 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13735 { (exit 1); exit 1; }; }
13737 else
13738 cat >conftest.$ac_ext <<_ACEOF
13740 #include "confdefs.h"
13741 #include <sys/types.h>
13742 #if STDC_HEADERS
13743 # include <stdlib.h>
13744 # include <stddef.h>
13745 #endif
13746 #ifdef HAVE_UNISTD_H
13747 #include <unistd.h>
13748 #endif
13749 #include <sys/stat.h>
13750 #include <stdio.h>
13751 main()
13753 struct stat sb;
13754 char *x,*ttyname();
13755 int om, m;
13756 FILE *fp;
13758 if (!(x = ttyname(0))) exit(1);
13759 if (stat(x, &sb)) exit(1);
13760 om = sb.st_mode;
13761 if (om & 002) exit(0);
13762 m = system("mesg y");
13763 if (m == -1 || m == 127) exit(1);
13764 if (stat(x, &sb)) exit(1);
13765 m = sb.st_mode;
13766 if (chmod(x, om)) exit(1);
13767 if (m & 002) exit(0);
13768 if (sb.st_gid == getgid()) exit(1);
13769 if (!(fp=fopen("conftest_grp", "w")))
13770 exit(1);
13771 fprintf(fp, "%d\n", sb.st_gid);
13772 fclose(fp);
13773 exit(0);
13776 _ACEOF
13777 rm -f conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_link") 2>&5
13786 ac_status=$?
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13789 { (case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792 esac
13793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13794 $as_echo "$ac_try_echo") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13800 if test -f conftest_grp; then
13801 vim_cv_tty_group=`cat conftest_grp`
13802 if test "x$vim_cv_tty_mode" = "x" ; then
13803 vim_cv_tty_mode=0620
13805 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13806 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13807 else
13808 vim_cv_tty_group=world
13809 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13810 $as_echo "ptys are world accessible" >&6; }
13813 else
13814 $as_echo "$as_me: program exited with status $ac_status" >&5
13815 $as_echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 ( exit $ac_status )
13820 vim_cv_tty_group=world
13821 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13822 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13825 rm -rf conftest.dSYM
13826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13832 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13833 $as_echo "$vim_cv_tty_group" >&6; }
13834 rm -f conftest_grp
13836 if test "x$vim_cv_tty_group" != "xworld" ; then
13837 cat >>confdefs.h <<_ACEOF
13838 #define PTYGROUP $vim_cv_tty_group
13839 _ACEOF
13841 if test "x$vim_cv_tty_mode" = "x" ; then
13842 { { $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
13843 $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;}
13844 { (exit 1); exit 1; }; }
13845 else
13846 cat >>confdefs.h <<\_ACEOF
13847 #define PTYMODE 0620
13848 _ACEOF
13854 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13855 $as_echo_n "checking return type of signal handlers... " >&6; }
13856 if test "${ac_cv_type_signal+set}" = set; then
13857 $as_echo_n "(cached) " >&6
13858 else
13859 cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h. */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 #include <sys/types.h>
13866 #include <signal.h>
13869 main ()
13871 return *(signal (0, 0)) (0) == 1;
13873 return 0;
13875 _ACEOF
13876 rm -f conftest.$ac_objext
13877 if { (ac_try="$ac_compile"
13878 case "(($ac_try" in
13879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13880 *) ac_try_echo=$ac_try;;
13881 esac
13882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13883 $as_echo "$ac_try_echo") >&5
13884 (eval "$ac_compile") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest.$ac_objext; then
13894 ac_cv_type_signal=int
13895 else
13896 $as_echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13899 ac_cv_type_signal=void
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13905 $as_echo "$ac_cv_type_signal" >&6; }
13907 cat >>confdefs.h <<_ACEOF
13908 #define RETSIGTYPE $ac_cv_type_signal
13909 _ACEOF
13913 if test $ac_cv_type_signal = void; then
13914 cat >>confdefs.h <<\_ACEOF
13915 #define SIGRETURN return
13916 _ACEOF
13918 else
13919 cat >>confdefs.h <<\_ACEOF
13920 #define SIGRETURN return 0
13921 _ACEOF
13925 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13926 $as_echo_n "checking for struct sigcontext... " >&6; }
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h. */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13934 #include <signal.h>
13935 test_sig()
13937 struct sigcontext *scont;
13938 scont = (struct sigcontext *)0;
13939 return 1;
13942 main ()
13946 return 0;
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954 esac
13955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13956 $as_echo "$ac_try_echo") >&5
13957 (eval "$ac_compile") 2>conftest.er1
13958 ac_status=$?
13959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && {
13964 test -z "$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13966 } && test -s conftest.$ac_objext; then
13967 { $as_echo "$as_me:$LINENO: result: yes" >&5
13968 $as_echo "yes" >&6; }
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_SIGCONTEXT 1
13971 _ACEOF
13973 else
13974 $as_echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 { $as_echo "$as_me:$LINENO: result: no" >&5
13978 $as_echo "no" >&6; }
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13984 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13985 if test "${vim_cv_getcwd_broken+set}" = set; then
13986 $as_echo_n "(cached) " >&6
13987 else
13989 if test "$cross_compiling" = yes; then
13991 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13992 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13993 { (exit 1); exit 1; }; }
13995 else
13996 cat >conftest.$ac_ext <<_ACEOF
13998 #include "confdefs.h"
13999 #ifdef HAVE_UNISTD_H
14000 #include <unistd.h>
14001 #endif
14002 char *dagger[] = { "IFS=pwd", 0 };
14003 main()
14005 char buffer[500];
14006 extern char **environ;
14007 environ = dagger;
14008 return getcwd(buffer, 500) ? 0 : 1;
14011 _ACEOF
14012 rm -f conftest$ac_exeext
14013 if { (ac_try="$ac_link"
14014 case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017 esac
14018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14019 $as_echo "$ac_try_echo") >&5
14020 (eval "$ac_link") 2>&5
14021 ac_status=$?
14022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14024 { (case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027 esac
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_try") 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14035 vim_cv_getcwd_broken=no
14037 else
14038 $as_echo "$as_me: program exited with status $ac_status" >&5
14039 $as_echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ( exit $ac_status )
14044 vim_cv_getcwd_broken=yes
14047 rm -rf conftest.dSYM
14048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14054 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14055 $as_echo "$vim_cv_getcwd_broken" >&6; }
14057 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14058 cat >>confdefs.h <<\_ACEOF
14059 #define BAD_GETCWD 1
14060 _ACEOF
14109 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14110 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14111 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14112 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14113 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14114 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14115 usleep utime utimes
14117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14118 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14119 $as_echo_n "checking for $ac_func... " >&6; }
14120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14121 $as_echo_n "(cached) " >&6
14122 else
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14131 #define $ac_func innocuous_$ac_func
14133 /* System header to define __stub macros and hopefully few prototypes,
14134 which can conflict with char $ac_func (); below.
14135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14136 <limits.h> exists even on freestanding compilers. */
14138 #ifdef __STDC__
14139 # include <limits.h>
14140 #else
14141 # include <assert.h>
14142 #endif
14144 #undef $ac_func
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char $ac_func ();
14153 /* The GNU C library defines this for functions which it implements
14154 to always fail with ENOSYS. Some functions are actually named
14155 something starting with __ and the normal name is an alias. */
14156 #if defined __stub_$ac_func || defined __stub___$ac_func
14157 choke me
14158 #endif
14161 main ()
14163 return $ac_func ();
14165 return 0;
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14175 $as_echo "$ac_try_echo") >&5
14176 (eval "$ac_link") 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && {
14183 test -z "$ac_c_werror_flag" ||
14184 test ! -s conftest.err
14185 } && test -s conftest$ac_exeext && {
14186 test "$cross_compiling" = yes ||
14187 $as_test_x conftest$ac_exeext
14188 }; then
14189 eval "$as_ac_var=yes"
14190 else
14191 $as_echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 eval "$as_ac_var=no"
14197 rm -rf conftest.dSYM
14198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14199 conftest$ac_exeext conftest.$ac_ext
14201 ac_res=`eval 'as_val=${'$as_ac_var'}
14202 $as_echo "$as_val"'`
14203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14204 $as_echo "$ac_res" >&6; }
14205 as_val=`eval 'as_val=${'$as_ac_var'}
14206 $as_echo "$as_val"'`
14207 if test "x$as_val" = x""yes; then
14208 cat >>confdefs.h <<_ACEOF
14209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14210 _ACEOF
14213 done
14215 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14216 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14217 if test "${ac_cv_sys_largefile_source+set}" = set; then
14218 $as_echo_n "(cached) " >&6
14219 else
14220 while :; do
14221 cat >conftest.$ac_ext <<_ACEOF
14222 /* confdefs.h. */
14223 _ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 #include <sys/types.h> /* for off_t */
14228 #include <stdio.h>
14230 main ()
14232 int (*fp) (FILE *, off_t, int) = fseeko;
14233 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14235 return 0;
14237 _ACEOF
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243 esac
14244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14245 $as_echo "$ac_try_echo") >&5
14246 (eval "$ac_link") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext && {
14256 test "$cross_compiling" = yes ||
14257 $as_test_x conftest$ac_exeext
14258 }; then
14259 ac_cv_sys_largefile_source=no; break
14260 else
14261 $as_echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14267 rm -rf conftest.dSYM
14268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14269 conftest$ac_exeext conftest.$ac_ext
14270 cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h. */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #define _LARGEFILE_SOURCE 1
14277 #include <sys/types.h> /* for off_t */
14278 #include <stdio.h>
14280 main ()
14282 int (*fp) (FILE *, off_t, int) = fseeko;
14283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14285 return 0;
14287 _ACEOF
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (ac_try="$ac_link"
14290 case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293 esac
14294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14295 $as_echo "$ac_try_echo") >&5
14296 (eval "$ac_link") 2>conftest.er1
14297 ac_status=$?
14298 grep -v '^ *+' conftest.er1 >conftest.err
14299 rm -f conftest.er1
14300 cat conftest.err >&5
14301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest$ac_exeext && {
14306 test "$cross_compiling" = yes ||
14307 $as_test_x conftest$ac_exeext
14308 }; then
14309 ac_cv_sys_largefile_source=1; break
14310 else
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14317 rm -rf conftest.dSYM
14318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14319 conftest$ac_exeext conftest.$ac_ext
14320 ac_cv_sys_largefile_source=unknown
14321 break
14322 done
14324 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14325 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14326 case $ac_cv_sys_largefile_source in #(
14327 no | unknown) ;;
14329 cat >>confdefs.h <<_ACEOF
14330 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14331 _ACEOF
14333 esac
14334 rm -rf conftest*
14336 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14337 # in glibc 2.1.3, but that breaks too many other things.
14338 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14339 if test $ac_cv_sys_largefile_source != unknown; then
14341 cat >>confdefs.h <<\_ACEOF
14342 #define HAVE_FSEEKO 1
14343 _ACEOF
14348 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14349 $as_echo_n "checking for st_blksize... " >&6; }
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 #include <sys/types.h>
14357 #include <sys/stat.h>
14359 main ()
14361 struct stat st;
14362 int n;
14364 stat("/", &st);
14365 n = (int)st.st_blksize;
14367 return 0;
14369 _ACEOF
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 { $as_echo "$as_me:$LINENO: result: yes" >&5
14389 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_ST_BLKSIZE 1
14391 _ACEOF
14393 else
14394 $as_echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 { $as_echo "$as_me:$LINENO: result: no" >&5
14398 $as_echo "no" >&6; }
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14404 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14405 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14406 $as_echo_n "(cached) " >&6
14407 else
14409 if test "$cross_compiling" = yes; then
14411 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14412 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14413 { (exit 1); exit 1; }; }
14415 else
14416 cat >conftest.$ac_ext <<_ACEOF
14418 #include "confdefs.h"
14419 #if STDC_HEADERS
14420 # include <stdlib.h>
14421 # include <stddef.h>
14422 #endif
14423 #include <sys/types.h>
14424 #include <sys/stat.h>
14425 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14427 _ACEOF
14428 rm -f conftest$ac_exeext
14429 if { (ac_try="$ac_link"
14430 case "(($ac_try" in
14431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14433 esac
14434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14435 $as_echo "$ac_try_echo") >&5
14436 (eval "$ac_link") 2>&5
14437 ac_status=$?
14438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14440 { (case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14443 esac
14444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14445 $as_echo "$ac_try_echo") >&5
14446 (eval "$ac_try") 2>&5
14447 ac_status=$?
14448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14451 vim_cv_stat_ignores_slash=yes
14453 else
14454 $as_echo "$as_me: program exited with status $ac_status" >&5
14455 $as_echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ( exit $ac_status )
14460 vim_cv_stat_ignores_slash=no
14463 rm -rf conftest.dSYM
14464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14470 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14471 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14473 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14474 cat >>confdefs.h <<\_ACEOF
14475 #define STAT_IGNORES_SLASH 1
14476 _ACEOF
14480 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14481 $as_echo_n "checking for iconv_open()... " >&6; }
14482 save_LIBS="$LIBS"
14483 LIBS="$LIBS -liconv"
14484 cat >conftest.$ac_ext <<_ACEOF
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14491 #ifdef HAVE_ICONV_H
14492 # include <iconv.h>
14493 #endif
14496 main ()
14498 iconv_open("fr", "to");
14500 return 0;
14502 _ACEOF
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (ac_try="$ac_link"
14505 case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14508 esac
14509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14510 $as_echo "$ac_try_echo") >&5
14511 (eval "$ac_link") 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } && {
14518 test -z "$ac_c_werror_flag" ||
14519 test ! -s conftest.err
14520 } && test -s conftest$ac_exeext && {
14521 test "$cross_compiling" = yes ||
14522 $as_test_x conftest$ac_exeext
14523 }; then
14524 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14525 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_ICONV 1
14527 _ACEOF
14529 else
14530 $as_echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 LIBS="$save_LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 #ifdef HAVE_ICONV_H
14542 # include <iconv.h>
14543 #endif
14546 main ()
14548 iconv_open("fr", "to");
14550 return 0;
14552 _ACEOF
14553 rm -f conftest.$ac_objext conftest$ac_exeext
14554 if { (ac_try="$ac_link"
14555 case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558 esac
14559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14560 $as_echo "$ac_try_echo") >&5
14561 (eval "$ac_link") 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } && {
14568 test -z "$ac_c_werror_flag" ||
14569 test ! -s conftest.err
14570 } && test -s conftest$ac_exeext && {
14571 test "$cross_compiling" = yes ||
14572 $as_test_x conftest$ac_exeext
14573 }; then
14574 { $as_echo "$as_me:$LINENO: result: yes" >&5
14575 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_ICONV 1
14577 _ACEOF
14579 else
14580 $as_echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 { $as_echo "$as_me:$LINENO: result: no" >&5
14584 $as_echo "no" >&6; }
14587 rm -rf conftest.dSYM
14588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14589 conftest$ac_exeext conftest.$ac_ext
14592 rm -rf conftest.dSYM
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14597 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14598 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h. */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14606 #ifdef HAVE_LANGINFO_H
14607 # include <langinfo.h>
14608 #endif
14611 main ()
14613 char *cs = nl_langinfo(CODESET);
14615 return 0;
14617 _ACEOF
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14623 esac
14624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626 (eval "$ac_link") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest$ac_exeext && {
14636 test "$cross_compiling" = yes ||
14637 $as_test_x conftest$ac_exeext
14638 }; then
14639 { $as_echo "$as_me:$LINENO: result: yes" >&5
14640 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_NL_LANGINFO_CODESET 1
14642 _ACEOF
14644 else
14645 $as_echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 { $as_echo "$as_me:$LINENO: result: no" >&5
14649 $as_echo "no" >&6; }
14652 rm -rf conftest.dSYM
14653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14654 conftest$ac_exeext conftest.$ac_ext
14657 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14658 $as_echo_n "checking for strtod in -lm... " >&6; }
14659 if test "${ac_cv_lib_m_strtod+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14661 else
14662 ac_check_lib_save_LIBS=$LIBS
14663 LIBS="-lm $LIBS"
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply. */
14674 #ifdef __cplusplus
14675 extern "C"
14676 #endif
14677 char strtod ();
14679 main ()
14681 return strtod ();
14683 return 0;
14685 _ACEOF
14686 rm -f conftest.$ac_objext conftest$ac_exeext
14687 if { (ac_try="$ac_link"
14688 case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691 esac
14692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14693 $as_echo "$ac_try_echo") >&5
14694 (eval "$ac_link") 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext && {
14704 test "$cross_compiling" = yes ||
14705 $as_test_x conftest$ac_exeext
14706 }; then
14707 ac_cv_lib_m_strtod=yes
14708 else
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_cv_lib_m_strtod=no
14715 rm -rf conftest.dSYM
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14718 LIBS=$ac_check_lib_save_LIBS
14720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14721 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14722 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_LIBM 1
14725 _ACEOF
14727 LIBS="-lm $LIBS"
14731 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14732 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14740 #ifdef HAVE_MATH_H
14741 # include <math.h>
14742 #endif
14743 #if STDC_HEADERS
14744 # include <stdlib.h>
14745 # include <stddef.h>
14746 #endif
14749 main ()
14751 char *s; double d;
14752 d = strtod("1.1", &s);
14753 d = fabs(1.11);
14754 d = ceil(1.11);
14755 d = floor(1.11);
14756 d = log10(1.11);
14757 d = pow(1.11, 2.22);
14758 d = sqrt(1.11);
14759 d = sin(1.11);
14760 d = cos(1.11);
14761 d = atan(1.11);
14764 return 0;
14766 _ACEOF
14767 rm -f conftest.$ac_objext conftest$ac_exeext
14768 if { (ac_try="$ac_link"
14769 case "(($ac_try" in
14770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14771 *) ac_try_echo=$ac_try;;
14772 esac
14773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14774 $as_echo "$ac_try_echo") >&5
14775 (eval "$ac_link") 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext && {
14785 test "$cross_compiling" = yes ||
14786 $as_test_x conftest$ac_exeext
14787 }; then
14788 { $as_echo "$as_me:$LINENO: result: yes" >&5
14789 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_FLOAT_FUNCS 1
14791 _ACEOF
14793 else
14794 $as_echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 { $as_echo "$as_me:$LINENO: result: no" >&5
14798 $as_echo "no" >&6; }
14801 rm -rf conftest.dSYM
14802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14803 conftest$ac_exeext conftest.$ac_ext
14805 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14806 $as_echo_n "checking --disable-acl argument... " >&6; }
14807 # Check whether --enable-acl was given.
14808 if test "${enable_acl+set}" = set; then
14809 enableval=$enable_acl;
14810 else
14811 enable_acl="yes"
14814 if test "$enable_acl" = "yes"; then
14815 { $as_echo "$as_me:$LINENO: result: no" >&5
14816 $as_echo "no" >&6; }
14817 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14818 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14819 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14820 $as_echo_n "(cached) " >&6
14821 else
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-lposix1e $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14825 /* confdefs.h. */
14826 _ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14834 #ifdef __cplusplus
14835 extern "C"
14836 #endif
14837 char acl_get_file ();
14839 main ()
14841 return acl_get_file ();
14843 return 0;
14845 _ACEOF
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14851 esac
14852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14853 $as_echo "$ac_try_echo") >&5
14854 (eval "$ac_link") 2>conftest.er1
14855 ac_status=$?
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -f conftest.er1
14858 cat conftest.err >&5
14859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && {
14861 test -z "$ac_c_werror_flag" ||
14862 test ! -s conftest.err
14863 } && test -s conftest$ac_exeext && {
14864 test "$cross_compiling" = yes ||
14865 $as_test_x conftest$ac_exeext
14866 }; then
14867 ac_cv_lib_posix1e_acl_get_file=yes
14868 else
14869 $as_echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_cv_lib_posix1e_acl_get_file=no
14875 rm -rf conftest.dSYM
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14881 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14882 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14883 LIBS="$LIBS -lposix1e"
14884 else
14885 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14886 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14887 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14888 $as_echo_n "(cached) " >&6
14889 else
14890 ac_check_lib_save_LIBS=$LIBS
14891 LIBS="-lacl $LIBS"
14892 cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h. */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14902 #ifdef __cplusplus
14903 extern "C"
14904 #endif
14905 char acl_get_file ();
14907 main ()
14909 return acl_get_file ();
14911 return 0;
14913 _ACEOF
14914 rm -f conftest.$ac_objext conftest$ac_exeext
14915 if { (ac_try="$ac_link"
14916 case "(($ac_try" in
14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14918 *) ac_try_echo=$ac_try;;
14919 esac
14920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14921 $as_echo "$ac_try_echo") >&5
14922 (eval "$ac_link") 2>conftest.er1
14923 ac_status=$?
14924 grep -v '^ *+' conftest.er1 >conftest.err
14925 rm -f conftest.er1
14926 cat conftest.err >&5
14927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } && {
14929 test -z "$ac_c_werror_flag" ||
14930 test ! -s conftest.err
14931 } && test -s conftest$ac_exeext && {
14932 test "$cross_compiling" = yes ||
14933 $as_test_x conftest$ac_exeext
14934 }; then
14935 ac_cv_lib_acl_acl_get_file=yes
14936 else
14937 $as_echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_cv_lib_acl_acl_get_file=no
14943 rm -rf conftest.dSYM
14944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14945 conftest$ac_exeext conftest.$ac_ext
14946 LIBS=$ac_check_lib_save_LIBS
14948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14949 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14950 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then
14951 LIBS="$LIBS -lacl"
14952 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14953 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14954 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14955 $as_echo_n "(cached) " >&6
14956 else
14957 ac_check_lib_save_LIBS=$LIBS
14958 LIBS="-lattr $LIBS"
14959 cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h. */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 char fgetxattr ();
14974 main ()
14976 return fgetxattr ();
14978 return 0;
14980 _ACEOF
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (ac_try="$ac_link"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14988 $as_echo "$ac_try_echo") >&5
14989 (eval "$ac_link") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } && {
14996 test -z "$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14998 } && test -s conftest$ac_exeext && {
14999 test "$cross_compiling" = yes ||
15000 $as_test_x conftest$ac_exeext
15001 }; then
15002 ac_cv_lib_attr_fgetxattr=yes
15003 else
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_cv_lib_attr_fgetxattr=no
15010 rm -rf conftest.dSYM
15011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15012 conftest$ac_exeext conftest.$ac_ext
15013 LIBS=$ac_check_lib_save_LIBS
15015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15016 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15017 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15018 LIBS="$LIBS -lattr"
15026 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15027 $as_echo_n "checking for POSIX ACL support... " >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 #include <sys/types.h>
15036 #ifdef HAVE_SYS_ACL_H
15037 # include <sys/acl.h>
15038 #endif
15039 acl_t acl;
15041 main ()
15043 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15044 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15045 acl_free(acl);
15047 return 0;
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15057 $as_echo "$ac_try_echo") >&5
15058 (eval "$ac_link") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext && {
15068 test "$cross_compiling" = yes ||
15069 $as_test_x conftest$ac_exeext
15070 }; then
15071 { $as_echo "$as_me:$LINENO: result: yes" >&5
15072 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15073 #define HAVE_POSIX_ACL 1
15074 _ACEOF
15076 else
15077 $as_echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 { $as_echo "$as_me:$LINENO: result: no" >&5
15081 $as_echo "no" >&6; }
15084 rm -rf conftest.dSYM
15085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15086 conftest$ac_exeext conftest.$ac_ext
15088 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15089 $as_echo_n "checking for Solaris ACL support... " >&6; }
15090 cat >conftest.$ac_ext <<_ACEOF
15091 /* confdefs.h. */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 #ifdef HAVE_SYS_ACL_H
15098 # include <sys/acl.h>
15099 #endif
15101 main ()
15103 acl("foo", GETACLCNT, 0, NULL);
15106 return 0;
15108 _ACEOF
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (ac_try="$ac_link"
15111 case "(($ac_try" in
15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15114 esac
15115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15116 $as_echo "$ac_try_echo") >&5
15117 (eval "$ac_link") 2>conftest.er1
15118 ac_status=$?
15119 grep -v '^ *+' conftest.er1 >conftest.err
15120 rm -f conftest.er1
15121 cat conftest.err >&5
15122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext && {
15127 test "$cross_compiling" = yes ||
15128 $as_test_x conftest$ac_exeext
15129 }; then
15130 { $as_echo "$as_me:$LINENO: result: yes" >&5
15131 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_SOLARIS_ACL 1
15133 _ACEOF
15135 else
15136 $as_echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 { $as_echo "$as_me:$LINENO: result: no" >&5
15140 $as_echo "no" >&6; }
15143 rm -rf conftest.dSYM
15144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15145 conftest$ac_exeext conftest.$ac_ext
15147 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15148 $as_echo_n "checking for AIX ACL support... " >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15150 /* confdefs.h. */
15151 _ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15156 #if STDC_HEADERS
15157 # include <stdlib.h>
15158 # include <stddef.h>
15159 #endif
15160 #ifdef HAVE_SYS_ACL_H
15161 # include <sys/acl.h>
15162 #endif
15163 #ifdef HAVE_SYS_ACCESS_H
15164 # include <sys/access.h>
15165 #endif
15166 #define _ALL_SOURCE
15168 #include <sys/stat.h>
15170 int aclsize;
15171 struct acl *aclent;
15173 main ()
15175 aclsize = sizeof(struct acl);
15176 aclent = (void *)malloc(aclsize);
15177 statacl("foo", STX_NORMAL, aclent, aclsize);
15180 return 0;
15182 _ACEOF
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15187 *) ac_try_echo=$ac_try;;
15188 esac
15189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15190 $as_echo "$ac_try_echo") >&5
15191 (eval "$ac_link") 2>conftest.er1
15192 ac_status=$?
15193 grep -v '^ *+' conftest.er1 >conftest.err
15194 rm -f conftest.er1
15195 cat conftest.err >&5
15196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest$ac_exeext && {
15201 test "$cross_compiling" = yes ||
15202 $as_test_x conftest$ac_exeext
15203 }; then
15204 { $as_echo "$as_me:$LINENO: result: yes" >&5
15205 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15206 #define HAVE_AIX_ACL 1
15207 _ACEOF
15209 else
15210 $as_echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15213 { $as_echo "$as_me:$LINENO: result: no" >&5
15214 $as_echo "no" >&6; }
15217 rm -rf conftest.dSYM
15218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15219 conftest$ac_exeext conftest.$ac_ext
15220 else
15221 { $as_echo "$as_me:$LINENO: result: yes" >&5
15222 $as_echo "yes" >&6; }
15225 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15226 $as_echo_n "checking --disable-gpm argument... " >&6; }
15227 # Check whether --enable-gpm was given.
15228 if test "${enable_gpm+set}" = set; then
15229 enableval=$enable_gpm;
15230 else
15231 enable_gpm="yes"
15235 if test "$enable_gpm" = "yes"; then
15236 { $as_echo "$as_me:$LINENO: result: no" >&5
15237 $as_echo "no" >&6; }
15238 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15239 $as_echo_n "checking for gpm... " >&6; }
15240 if test "${vi_cv_have_gpm+set}" = set; then
15241 $as_echo_n "(cached) " >&6
15242 else
15243 olibs="$LIBS" ; LIBS="-lgpm"
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #include <gpm.h>
15251 #include <linux/keyboard.h>
15253 main ()
15255 Gpm_GetLibVersion(NULL);
15257 return 0;
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (ac_try="$ac_link"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265 esac
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_link") 2>conftest.er1
15269 ac_status=$?
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext && {
15278 test "$cross_compiling" = yes ||
15279 $as_test_x conftest$ac_exeext
15280 }; then
15281 vi_cv_have_gpm=yes
15282 else
15283 $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 vi_cv_have_gpm=no
15289 rm -rf conftest.dSYM
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LIBS="$olibs"
15295 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15296 $as_echo "$vi_cv_have_gpm" >&6; }
15297 if test $vi_cv_have_gpm = yes; then
15298 LIBS="$LIBS -lgpm"
15299 cat >>confdefs.h <<\_ACEOF
15300 #define HAVE_GPM 1
15301 _ACEOF
15304 else
15305 { $as_echo "$as_me:$LINENO: result: yes" >&5
15306 $as_echo "yes" >&6; }
15309 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15310 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15311 # Check whether --enable-sysmouse was given.
15312 if test "${enable_sysmouse+set}" = set; then
15313 enableval=$enable_sysmouse;
15314 else
15315 enable_sysmouse="yes"
15319 if test "$enable_sysmouse" = "yes"; then
15320 { $as_echo "$as_me:$LINENO: result: no" >&5
15321 $as_echo "no" >&6; }
15322 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15323 $as_echo_n "checking for sysmouse... " >&6; }
15324 if test "${vi_cv_have_sysmouse+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15326 else
15327 cat >conftest.$ac_ext <<_ACEOF
15328 /* confdefs.h. */
15329 _ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <sys/consio.h>
15334 #include <signal.h>
15335 #include <sys/fbio.h>
15337 main ()
15339 struct mouse_info mouse;
15340 mouse.operation = MOUSE_MODE;
15341 mouse.operation = MOUSE_SHOW;
15342 mouse.u.mode.mode = 0;
15343 mouse.u.mode.signal = SIGUSR2;
15345 return 0;
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15353 esac
15354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15355 $as_echo "$ac_try_echo") >&5
15356 (eval "$ac_link") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest$ac_exeext && {
15366 test "$cross_compiling" = yes ||
15367 $as_test_x conftest$ac_exeext
15368 }; then
15369 vi_cv_have_sysmouse=yes
15370 else
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 vi_cv_have_sysmouse=no
15377 rm -rf conftest.dSYM
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15382 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15383 $as_echo "$vi_cv_have_sysmouse" >&6; }
15384 if test $vi_cv_have_sysmouse = yes; then
15385 cat >>confdefs.h <<\_ACEOF
15386 #define HAVE_SYSMOUSE 1
15387 _ACEOF
15390 else
15391 { $as_echo "$as_me:$LINENO: result: yes" >&5
15392 $as_echo "yes" >&6; }
15395 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15396 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h. */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 #if HAVE_FCNTL_H
15404 # include <fcntl.h>
15405 #endif
15407 main ()
15409 int flag = FD_CLOEXEC;
15411 return 0;
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (ac_try="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15419 esac
15420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15421 $as_echo "$ac_try_echo") >&5
15422 (eval "$ac_compile") 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } && {
15429 test -z "$ac_c_werror_flag" ||
15430 test ! -s conftest.err
15431 } && test -s conftest.$ac_objext; then
15432 { $as_echo "$as_me:$LINENO: result: yes" >&5
15433 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15434 #define HAVE_FD_CLOEXEC 1
15435 _ACEOF
15437 else
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15442 $as_echo "not usable" >&6; }
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15448 $as_echo_n "checking for rename... " >&6; }
15449 cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h. */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 #include <stdio.h>
15457 main ()
15459 rename("this", "that")
15461 return 0;
15463 _ACEOF
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15469 esac
15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15471 $as_echo "$ac_try_echo") >&5
15472 (eval "$ac_link") 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest$ac_exeext && {
15482 test "$cross_compiling" = yes ||
15483 $as_test_x conftest$ac_exeext
15484 }; then
15485 { $as_echo "$as_me:$LINENO: result: yes" >&5
15486 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_RENAME 1
15488 _ACEOF
15490 else
15491 $as_echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 { $as_echo "$as_me:$LINENO: result: no" >&5
15495 $as_echo "no" >&6; }
15498 rm -rf conftest.dSYM
15499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15500 conftest$ac_exeext conftest.$ac_ext
15502 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15503 $as_echo_n "checking for sysctl... " >&6; }
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <sys/types.h>
15511 #include <sys/sysctl.h>
15513 main ()
15515 int mib[2], r;
15516 size_t len;
15518 mib[0] = CTL_HW;
15519 mib[1] = HW_USERMEM;
15520 len = sizeof(r);
15521 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15524 return 0;
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532 esac
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535 (eval "$ac_compile") 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest.$ac_objext; then
15545 { $as_echo "$as_me:$LINENO: result: yes" >&5
15546 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15547 #define HAVE_SYSCTL 1
15548 _ACEOF
15550 else
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15555 $as_echo "not usable" >&6; }
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15561 $as_echo_n "checking for sysinfo... " >&6; }
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h. */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <sys/types.h>
15569 #include <sys/sysinfo.h>
15571 main ()
15573 struct sysinfo sinfo;
15574 int t;
15576 (void)sysinfo(&sinfo);
15577 t = sinfo.totalram;
15580 return 0;
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588 esac
15589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15590 $as_echo "$ac_try_echo") >&5
15591 (eval "$ac_compile") 2>conftest.er1
15592 ac_status=$?
15593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
15596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest.$ac_objext; then
15601 { $as_echo "$as_me:$LINENO: result: yes" >&5
15602 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15603 #define HAVE_SYSINFO 1
15604 _ACEOF
15606 else
15607 $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15611 $as_echo "not usable" >&6; }
15614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15617 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h. */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 #include <sys/types.h>
15625 #include <sys/sysinfo.h>
15627 main ()
15629 struct sysinfo sinfo;
15630 sinfo.mem_unit = 1;
15633 return 0;
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15641 esac
15642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15643 $as_echo "$ac_try_echo") >&5
15644 (eval "$ac_compile") 2>conftest.er1
15645 ac_status=$?
15646 grep -v '^ *+' conftest.er1 >conftest.err
15647 rm -f conftest.er1
15648 cat conftest.err >&5
15649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && {
15651 test -z "$ac_c_werror_flag" ||
15652 test ! -s conftest.err
15653 } && test -s conftest.$ac_objext; then
15654 { $as_echo "$as_me:$LINENO: result: yes" >&5
15655 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15656 #define HAVE_SYSINFO_MEM_UNIT 1
15657 _ACEOF
15659 else
15660 $as_echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 { $as_echo "$as_me:$LINENO: result: no" >&5
15664 $as_echo "no" >&6; }
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15670 $as_echo_n "checking for sysconf... " >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <unistd.h>
15679 main ()
15681 (void)sysconf(_SC_PAGESIZE);
15682 (void)sysconf(_SC_PHYS_PAGES);
15685 return 0;
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693 esac
15694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15695 $as_echo "$ac_try_echo") >&5
15696 (eval "$ac_compile") 2>conftest.er1
15697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } && {
15703 test -z "$ac_c_werror_flag" ||
15704 test ! -s conftest.err
15705 } && test -s conftest.$ac_objext; then
15706 { $as_echo "$as_me:$LINENO: result: yes" >&5
15707 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15708 #define HAVE_SYSCONF 1
15709 _ACEOF
15711 else
15712 $as_echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15716 $as_echo "not usable" >&6; }
15719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15723 $as_echo_n "checking size of int... " >&6; }
15724 if test "${ac_cv_sizeof_int+set}" = set; then
15725 $as_echo_n "(cached) " >&6
15726 else
15727 if test "$cross_compiling" = yes; then
15728 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15729 $as_echo "$as_me: error: failed to compile test program" >&2;}
15730 { (exit 1); exit 1; }; }
15731 else
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15739 #include <stdio.h>
15740 #if STDC_HEADERS
15741 # include <stdlib.h>
15742 # include <stddef.h>
15743 #endif
15744 main()
15746 FILE *f=fopen("conftestval", "w");
15747 if (!f) exit(1);
15748 fprintf(f, "%d\n", (int)sizeof(int));
15749 exit(0);
15751 _ACEOF
15752 rm -f conftest$ac_exeext
15753 if { (ac_try="$ac_link"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760 (eval "$ac_link") 2>&5
15761 ac_status=$?
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_try") 2>&5
15771 ac_status=$?
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_sizeof_int=`cat conftestval`
15775 else
15776 $as_echo "$as_me: program exited with status $ac_status" >&5
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ( exit $ac_status )
15781 ac_cv_sizeof_int=0
15783 rm -rf conftest.dSYM
15784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15791 $as_echo "$ac_cv_sizeof_int" >&6; }
15792 cat >>confdefs.h <<_ACEOF
15793 #define SIZEOF_INT $ac_cv_sizeof_int
15794 _ACEOF
15798 bcopy_test_prog='
15799 #include "confdefs.h"
15800 #ifdef HAVE_STRING_H
15801 # include <string.h>
15802 #endif
15803 #if STDC_HEADERS
15804 # include <stdlib.h>
15805 # include <stddef.h>
15806 #endif
15807 main() {
15808 char buf[10];
15809 strcpy(buf, "abcdefghi");
15810 mch_memmove(buf, buf + 2, 3);
15811 if (strncmp(buf, "ababcf", 6))
15812 exit(1);
15813 strcpy(buf, "abcdefghi");
15814 mch_memmove(buf + 2, buf, 3);
15815 if (strncmp(buf, "cdedef", 6))
15816 exit(1);
15817 exit(0); /* libc version works properly. */
15820 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15821 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15822 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15823 $as_echo_n "(cached) " >&6
15824 else
15826 if test "$cross_compiling" = yes; then
15828 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15829 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15830 { (exit 1); exit 1; }; }
15832 else
15833 cat >conftest.$ac_ext <<_ACEOF
15834 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15835 _ACEOF
15836 rm -f conftest$ac_exeext
15837 if { (ac_try="$ac_link"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15841 esac
15842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15843 $as_echo "$ac_try_echo") >&5
15844 (eval "$ac_link") 2>&5
15845 ac_status=$?
15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15848 { (case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15851 esac
15852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15853 $as_echo "$ac_try_echo") >&5
15854 (eval "$ac_try") 2>&5
15855 ac_status=$?
15856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15859 vim_cv_memmove_handles_overlap=yes
15861 else
15862 $as_echo "$as_me: program exited with status $ac_status" >&5
15863 $as_echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.$ac_ext >&5
15866 ( exit $ac_status )
15868 vim_cv_memmove_handles_overlap=no
15871 rm -rf conftest.dSYM
15872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15878 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15879 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15881 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15882 cat >>confdefs.h <<\_ACEOF
15883 #define USEMEMMOVE 1
15884 _ACEOF
15886 else
15887 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15888 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15889 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15890 $as_echo_n "(cached) " >&6
15891 else
15893 if test "$cross_compiling" = yes; then
15895 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15896 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15897 { (exit 1); exit 1; }; }
15899 else
15900 cat >conftest.$ac_ext <<_ACEOF
15901 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15902 _ACEOF
15903 rm -f conftest$ac_exeext
15904 if { (ac_try="$ac_link"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908 esac
15909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15910 $as_echo "$ac_try_echo") >&5
15911 (eval "$ac_link") 2>&5
15912 ac_status=$?
15913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15918 esac
15919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15920 $as_echo "$ac_try_echo") >&5
15921 (eval "$ac_try") 2>&5
15922 ac_status=$?
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15926 vim_cv_bcopy_handles_overlap=yes
15928 else
15929 $as_echo "$as_me: program exited with status $ac_status" >&5
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 ( exit $ac_status )
15935 vim_cv_bcopy_handles_overlap=no
15938 rm -rf conftest.dSYM
15939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15945 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15946 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15948 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15949 cat >>confdefs.h <<\_ACEOF
15950 #define USEBCOPY 1
15951 _ACEOF
15953 else
15954 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15955 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15956 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15957 $as_echo_n "(cached) " >&6
15958 else
15960 if test "$cross_compiling" = yes; then
15962 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15963 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15964 { (exit 1); exit 1; }; }
15966 else
15967 cat >conftest.$ac_ext <<_ACEOF
15968 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15969 _ACEOF
15970 rm -f conftest$ac_exeext
15971 if { (ac_try="$ac_link"
15972 case "(($ac_try" in
15973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15975 esac
15976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15977 $as_echo "$ac_try_echo") >&5
15978 (eval "$ac_link") 2>&5
15979 ac_status=$?
15980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15989 ac_status=$?
15990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15993 vim_cv_memcpy_handles_overlap=yes
15995 else
15996 $as_echo "$as_me: program exited with status $ac_status" >&5
15997 $as_echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 ( exit $ac_status )
16002 vim_cv_memcpy_handles_overlap=no
16005 rm -rf conftest.dSYM
16006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16012 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16013 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16015 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16016 cat >>confdefs.h <<\_ACEOF
16017 #define USEMEMCPY 1
16018 _ACEOF
16026 if test "$enable_multibyte" = "yes"; then
16027 cflags_save=$CFLAGS
16028 ldflags_save=$LDFLAGS
16029 if test "x$x_includes" != "xNONE" ; then
16030 CFLAGS="$CFLAGS -I$x_includes"
16031 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
16032 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16033 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 #include <X11/Xlocale.h>
16042 main ()
16046 return 0;
16048 _ACEOF
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16054 esac
16055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 $as_echo "$ac_try_echo") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest.$ac_objext; then
16067 cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h. */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16074 /* Override any GCC internal prototype to avoid an error.
16075 Use char because int might match the return type of a GCC
16076 builtin and then its argument prototype would still apply. */
16077 #ifdef __cplusplus
16078 extern "C"
16079 #endif
16080 char _Xsetlocale ();
16082 main ()
16084 return _Xsetlocale ();
16086 return 0;
16088 _ACEOF
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (ac_try="$ac_link"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094 esac
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_link") 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest$ac_exeext && {
16107 test "$cross_compiling" = yes ||
16108 $as_test_x conftest$ac_exeext
16109 }; then
16110 { $as_echo "$as_me:$LINENO: result: yes" >&5
16111 $as_echo "yes" >&6; }
16112 cat >>confdefs.h <<\_ACEOF
16113 #define X_LOCALE 1
16114 _ACEOF
16116 else
16117 $as_echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16120 { $as_echo "$as_me:$LINENO: result: no" >&5
16121 $as_echo "no" >&6; }
16124 rm -rf conftest.dSYM
16125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16126 conftest$ac_exeext conftest.$ac_ext
16127 else
16128 $as_echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 { $as_echo "$as_me:$LINENO: result: no" >&5
16132 $as_echo "no" >&6; }
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16137 CFLAGS=$cflags_save
16138 LDFLAGS=$ldflags_save
16141 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16142 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16143 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16145 else
16146 ac_check_lib_save_LIBS=$LIBS
16147 LIBS="-lxpg4 $LIBS"
16148 cat >conftest.$ac_ext <<_ACEOF
16149 /* confdefs.h. */
16150 _ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 /* Override any GCC internal prototype to avoid an error.
16156 Use char because int might match the return type of a GCC
16157 builtin and then its argument prototype would still apply. */
16158 #ifdef __cplusplus
16159 extern "C"
16160 #endif
16161 char _xpg4_setrunelocale ();
16163 main ()
16165 return _xpg4_setrunelocale ();
16167 return 0;
16169 _ACEOF
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (ac_try="$ac_link"
16172 case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16175 esac
16176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16177 $as_echo "$ac_try_echo") >&5
16178 (eval "$ac_link") 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest$ac_exeext && {
16188 test "$cross_compiling" = yes ||
16189 $as_test_x conftest$ac_exeext
16190 }; then
16191 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16192 else
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16199 rm -rf conftest.dSYM
16200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16201 conftest$ac_exeext conftest.$ac_ext
16202 LIBS=$ac_check_lib_save_LIBS
16204 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16205 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16206 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16207 LIBS="$LIBS -lxpg4"
16211 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16212 $as_echo_n "checking how to create tags... " >&6; }
16213 test -f tags && mv tags tags.save
16214 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16215 TAGPRG="ctags -I INIT+ --fields=+S"
16216 else
16217 TAGPRG="ctags"
16218 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16219 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16220 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16221 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16222 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16223 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16224 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16226 test -f tags.save && mv tags.save tags
16227 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16228 $as_echo "$TAGPRG" >&6; }
16230 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16231 $as_echo_n "checking how to run man with a section nr... " >&6; }
16232 MANDEF="man"
16233 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16234 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16235 $as_echo "$MANDEF" >&6; }
16236 if test "$MANDEF" = "man -s"; then
16237 cat >>confdefs.h <<\_ACEOF
16238 #define USEMAN_S 1
16239 _ACEOF
16243 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16244 $as_echo_n "checking --disable-nls argument... " >&6; }
16245 # Check whether --enable-nls was given.
16246 if test "${enable_nls+set}" = set; then
16247 enableval=$enable_nls;
16248 else
16249 enable_nls="yes"
16253 if test "$enable_nls" = "yes"; then
16254 { $as_echo "$as_me:$LINENO: result: no" >&5
16255 $as_echo "no" >&6; }
16257 INSTALL_LANGS=install-languages
16259 INSTALL_TOOL_LANGS=install-tool-languages
16262 # Extract the first word of "msgfmt", so it can be a program name with args.
16263 set dummy msgfmt; ac_word=$2
16264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16265 $as_echo_n "checking for $ac_word... " >&6; }
16266 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16267 $as_echo_n "(cached) " >&6
16268 else
16269 if test -n "$MSGFMT"; then
16270 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16271 else
16272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16273 for as_dir in $PATH
16275 IFS=$as_save_IFS
16276 test -z "$as_dir" && as_dir=.
16277 for ac_exec_ext in '' $ac_executable_extensions; do
16278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16279 ac_cv_prog_MSGFMT="msgfmt"
16280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16281 break 2
16283 done
16284 done
16285 IFS=$as_save_IFS
16289 MSGFMT=$ac_cv_prog_MSGFMT
16290 if test -n "$MSGFMT"; then
16291 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16292 $as_echo "$MSGFMT" >&6; }
16293 else
16294 { $as_echo "$as_me:$LINENO: result: no" >&5
16295 $as_echo "no" >&6; }
16299 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16300 $as_echo_n "checking for NLS... " >&6; }
16301 if test -f po/Makefile; then
16302 have_gettext="no"
16303 if test -n "$MSGFMT"; then
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 #include <libintl.h>
16312 main ()
16314 gettext("Test");
16316 return 0;
16318 _ACEOF
16319 rm -f conftest.$ac_objext conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324 esac
16325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326 $as_echo "$ac_try_echo") >&5
16327 (eval "$ac_link") 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest$ac_exeext && {
16337 test "$cross_compiling" = yes ||
16338 $as_test_x conftest$ac_exeext
16339 }; then
16340 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16341 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16342 else
16343 $as_echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.$ac_ext >&5
16346 olibs=$LIBS
16347 LIBS="$LIBS -lintl"
16348 cat >conftest.$ac_ext <<_ACEOF
16349 /* confdefs.h. */
16350 _ACEOF
16351 cat confdefs.h >>conftest.$ac_ext
16352 cat >>conftest.$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 #include <libintl.h>
16356 main ()
16358 gettext("Test");
16360 return 0;
16362 _ACEOF
16363 rm -f conftest.$ac_objext conftest$ac_exeext
16364 if { (ac_try="$ac_link"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16368 esac
16369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16370 $as_echo "$ac_try_echo") >&5
16371 (eval "$ac_link") 2>conftest.er1
16372 ac_status=$?
16373 grep -v '^ *+' conftest.er1 >conftest.err
16374 rm -f conftest.er1
16375 cat conftest.err >&5
16376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext && {
16381 test "$cross_compiling" = yes ||
16382 $as_test_x conftest$ac_exeext
16383 }; then
16384 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16385 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16386 else
16387 $as_echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16391 $as_echo "gettext() doesn't work" >&6; };
16392 LIBS=$olibs
16395 rm -rf conftest.dSYM
16396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16397 conftest$ac_exeext conftest.$ac_ext
16400 rm -rf conftest.dSYM
16401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16403 else
16404 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16405 $as_echo "msgfmt not found - disabled" >&6; };
16407 if test $have_gettext = "yes"; then
16408 cat >>confdefs.h <<\_ACEOF
16409 #define HAVE_GETTEXT 1
16410 _ACEOF
16412 MAKEMO=yes
16415 for ac_func in bind_textdomain_codeset
16417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16419 $as_echo_n "checking for $ac_func... " >&6; }
16420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16421 $as_echo_n "(cached) " >&6
16422 else
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h. */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16431 #define $ac_func innocuous_$ac_func
16433 /* System header to define __stub macros and hopefully few prototypes,
16434 which can conflict with char $ac_func (); below.
16435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436 <limits.h> exists even on freestanding compilers. */
16438 #ifdef __STDC__
16439 # include <limits.h>
16440 #else
16441 # include <assert.h>
16442 #endif
16444 #undef $ac_func
16446 /* Override any GCC internal prototype to avoid an error.
16447 Use char because int might match the return type of a GCC
16448 builtin and then its argument prototype would still apply. */
16449 #ifdef __cplusplus
16450 extern "C"
16451 #endif
16452 char $ac_func ();
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined __stub_$ac_func || defined __stub___$ac_func
16457 choke me
16458 #endif
16461 main ()
16463 return $ac_func ();
16465 return 0;
16467 _ACEOF
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16473 esac
16474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16475 $as_echo "$ac_try_echo") >&5
16476 (eval "$ac_link") 2>conftest.er1
16477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } && {
16483 test -z "$ac_c_werror_flag" ||
16484 test ! -s conftest.err
16485 } && test -s conftest$ac_exeext && {
16486 test "$cross_compiling" = yes ||
16487 $as_test_x conftest$ac_exeext
16488 }; then
16489 eval "$as_ac_var=yes"
16490 else
16491 $as_echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.$ac_ext >&5
16494 eval "$as_ac_var=no"
16497 rm -rf conftest.dSYM
16498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16499 conftest$ac_exeext conftest.$ac_ext
16501 ac_res=`eval 'as_val=${'$as_ac_var'}
16502 $as_echo "$as_val"'`
16503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16504 $as_echo "$ac_res" >&6; }
16505 as_val=`eval 'as_val=${'$as_ac_var'}
16506 $as_echo "$as_val"'`
16507 if test "x$as_val" = x""yes; then
16508 cat >>confdefs.h <<_ACEOF
16509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16510 _ACEOF
16513 done
16515 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16516 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 #include <libintl.h>
16524 extern int _nl_msg_cat_cntr;
16526 main ()
16528 ++_nl_msg_cat_cntr;
16530 return 0;
16532 _ACEOF
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (ac_try="$ac_link"
16535 case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538 esac
16539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541 (eval "$ac_link") 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest$ac_exeext && {
16551 test "$cross_compiling" = yes ||
16552 $as_test_x conftest$ac_exeext
16553 }; then
16554 { $as_echo "$as_me:$LINENO: result: yes" >&5
16555 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16556 #define HAVE_NL_MSG_CAT_CNTR 1
16557 _ACEOF
16559 else
16560 $as_echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 { $as_echo "$as_me:$LINENO: result: no" >&5
16564 $as_echo "no" >&6; }
16567 rm -rf conftest.dSYM
16568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16569 conftest$ac_exeext conftest.$ac_ext
16571 else
16572 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16573 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16575 else
16576 { $as_echo "$as_me:$LINENO: result: yes" >&5
16577 $as_echo "yes" >&6; }
16580 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16581 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16582 $as_echo_n "checking for dlfcn.h... " >&6; }
16583 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16584 $as_echo_n "(cached) " >&6
16586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16587 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16588 else
16589 # Is the header compilable?
16590 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16591 $as_echo_n "checking dlfcn.h usability... " >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 $ac_includes_default
16599 #include <dlfcn.h>
16600 _ACEOF
16601 rm -f conftest.$ac_objext
16602 if { (ac_try="$ac_compile"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606 esac
16607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16608 $as_echo "$ac_try_echo") >&5
16609 (eval "$ac_compile") 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } && {
16616 test -z "$ac_c_werror_flag" ||
16617 test ! -s conftest.err
16618 } && test -s conftest.$ac_objext; then
16619 ac_header_compiler=yes
16620 else
16621 $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 ac_header_compiler=no
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16629 $as_echo "$ac_header_compiler" >&6; }
16631 # Is the header present?
16632 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16633 $as_echo_n "checking dlfcn.h presence... " >&6; }
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 #include <dlfcn.h>
16641 _ACEOF
16642 if { (ac_try="$ac_cpp conftest.$ac_ext"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646 esac
16647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16648 $as_echo "$ac_try_echo") >&5
16649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } >/dev/null && {
16656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 }; then
16659 ac_header_preproc=yes
16660 else
16661 $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_header_preproc=no
16667 rm -f conftest.err conftest.$ac_ext
16668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16669 $as_echo "$ac_header_preproc" >&6; }
16671 # So? What about this header?
16672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16673 yes:no: )
16674 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16675 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16676 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16677 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16678 ac_header_preproc=yes
16680 no:yes:* )
16681 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16682 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16684 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16686 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16688 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16689 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16690 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16691 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16692 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16695 esac
16696 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16697 $as_echo_n "checking for dlfcn.h... " >&6; }
16698 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16699 $as_echo_n "(cached) " >&6
16700 else
16701 ac_cv_header_dlfcn_h=$ac_header_preproc
16703 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16704 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16707 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16708 DLL=dlfcn.h
16709 else
16710 if test "${ac_cv_header_dl_h+set}" = set; then
16711 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16712 $as_echo_n "checking for dl.h... " >&6; }
16713 if test "${ac_cv_header_dl_h+set}" = set; then
16714 $as_echo_n "(cached) " >&6
16716 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16717 $as_echo "$ac_cv_header_dl_h" >&6; }
16718 else
16719 # Is the header compilable?
16720 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16721 $as_echo_n "checking dl.h usability... " >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16729 #include <dl.h>
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736 esac
16737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16738 $as_echo "$ac_try_echo") >&5
16739 (eval "$ac_compile") 2>conftest.er1
16740 ac_status=$?
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
16744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } && {
16746 test -z "$ac_c_werror_flag" ||
16747 test ! -s conftest.err
16748 } && test -s conftest.$ac_objext; then
16749 ac_header_compiler=yes
16750 else
16751 $as_echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16754 ac_header_compiler=no
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16759 $as_echo "$ac_header_compiler" >&6; }
16761 # Is the header present?
16762 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16763 $as_echo_n "checking dl.h presence... " >&6; }
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 #include <dl.h>
16771 _ACEOF
16772 if { (ac_try="$ac_cpp conftest.$ac_ext"
16773 case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776 esac
16777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16778 $as_echo "$ac_try_echo") >&5
16779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } >/dev/null && {
16786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16788 }; then
16789 ac_header_preproc=yes
16790 else
16791 $as_echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_preproc=no
16797 rm -f conftest.err conftest.$ac_ext
16798 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 $as_echo "$ac_header_preproc" >&6; }
16801 # So? What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16803 yes:no: )
16804 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16805 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16807 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16808 ac_header_preproc=yes
16810 no:yes:* )
16811 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16812 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16813 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16814 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16815 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16816 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16817 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16818 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16819 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16820 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16821 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16822 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16825 esac
16826 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16827 $as_echo_n "checking for dl.h... " >&6; }
16828 if test "${ac_cv_header_dl_h+set}" = set; then
16829 $as_echo_n "(cached) " >&6
16830 else
16831 ac_cv_header_dl_h=$ac_header_preproc
16833 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16834 $as_echo "$ac_cv_header_dl_h" >&6; }
16837 if test "x$ac_cv_header_dl_h" = x""yes; then
16838 DLL=dl.h
16845 if test x${DLL} = xdlfcn.h; then
16847 cat >>confdefs.h <<\_ACEOF
16848 #define HAVE_DLFCN_H 1
16849 _ACEOF
16851 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16852 $as_echo_n "checking for dlopen()... " >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16861 main ()
16864 extern void* dlopen();
16865 dlopen();
16868 return 0;
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16876 esac
16877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16878 $as_echo "$ac_try_echo") >&5
16879 (eval "$ac_link") 2>conftest.er1
16880 ac_status=$?
16881 grep -v '^ *+' conftest.er1 >conftest.err
16882 rm -f conftest.er1
16883 cat conftest.err >&5
16884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && {
16886 test -z "$ac_c_werror_flag" ||
16887 test ! -s conftest.err
16888 } && test -s conftest$ac_exeext && {
16889 test "$cross_compiling" = yes ||
16890 $as_test_x conftest$ac_exeext
16891 }; then
16892 { $as_echo "$as_me:$LINENO: result: yes" >&5
16893 $as_echo "yes" >&6; };
16895 cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_DLOPEN 1
16897 _ACEOF
16899 else
16900 $as_echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 { $as_echo "$as_me:$LINENO: result: no" >&5
16904 $as_echo "no" >&6; };
16905 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16906 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16907 olibs=$LIBS
16908 LIBS="$LIBS -ldl"
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16917 main ()
16920 extern void* dlopen();
16921 dlopen();
16924 return 0;
16926 _ACEOF
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932 esac
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_link") 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest$ac_exeext && {
16945 test "$cross_compiling" = yes ||
16946 $as_test_x conftest$ac_exeext
16947 }; then
16948 { $as_echo "$as_me:$LINENO: result: yes" >&5
16949 $as_echo "yes" >&6; };
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_DLOPEN 1
16953 _ACEOF
16955 else
16956 $as_echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 { $as_echo "$as_me:$LINENO: result: no" >&5
16960 $as_echo "no" >&6; };
16961 LIBS=$olibs
16964 rm -rf conftest.dSYM
16965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16966 conftest$ac_exeext conftest.$ac_ext
16969 rm -rf conftest.dSYM
16970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16971 conftest$ac_exeext conftest.$ac_ext
16972 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16973 $as_echo_n "checking for dlsym()... " >&6; }
16974 cat >conftest.$ac_ext <<_ACEOF
16975 /* confdefs.h. */
16976 _ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16982 main ()
16985 extern void* dlsym();
16986 dlsym();
16989 return 0;
16991 _ACEOF
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (ac_try="$ac_link"
16994 case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997 esac
16998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16999 $as_echo "$ac_try_echo") >&5
17000 (eval "$ac_link") 2>conftest.er1
17001 ac_status=$?
17002 grep -v '^ *+' conftest.er1 >conftest.err
17003 rm -f conftest.er1
17004 cat conftest.err >&5
17005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest$ac_exeext && {
17010 test "$cross_compiling" = yes ||
17011 $as_test_x conftest$ac_exeext
17012 }; then
17013 { $as_echo "$as_me:$LINENO: result: yes" >&5
17014 $as_echo "yes" >&6; };
17016 cat >>confdefs.h <<\_ACEOF
17017 #define HAVE_DLSYM 1
17018 _ACEOF
17020 else
17021 $as_echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 { $as_echo "$as_me:$LINENO: result: no" >&5
17025 $as_echo "no" >&6; };
17026 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17027 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17028 olibs=$LIBS
17029 LIBS="$LIBS -ldl"
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h. */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17038 main ()
17041 extern void* dlsym();
17042 dlsym();
17045 return 0;
17047 _ACEOF
17048 rm -f conftest.$ac_objext conftest$ac_exeext
17049 if { (ac_try="$ac_link"
17050 case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053 esac
17054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17055 $as_echo "$ac_try_echo") >&5
17056 (eval "$ac_link") 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && {
17063 test -z "$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17065 } && test -s conftest$ac_exeext && {
17066 test "$cross_compiling" = yes ||
17067 $as_test_x conftest$ac_exeext
17068 }; then
17069 { $as_echo "$as_me:$LINENO: result: yes" >&5
17070 $as_echo "yes" >&6; };
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_DLSYM 1
17074 _ACEOF
17076 else
17077 $as_echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 { $as_echo "$as_me:$LINENO: result: no" >&5
17081 $as_echo "no" >&6; };
17082 LIBS=$olibs
17085 rm -rf conftest.dSYM
17086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087 conftest$ac_exeext conftest.$ac_ext
17090 rm -rf conftest.dSYM
17091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17092 conftest$ac_exeext conftest.$ac_ext
17093 elif test x${DLL} = xdl.h; then
17095 cat >>confdefs.h <<\_ACEOF
17096 #define HAVE_DL_H 1
17097 _ACEOF
17099 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17100 $as_echo_n "checking for shl_load()... " >&6; }
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17109 main ()
17112 extern void* shl_load();
17113 shl_load();
17116 return 0;
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124 esac
17125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17126 $as_echo "$ac_try_echo") >&5
17127 (eval "$ac_link") 2>conftest.er1
17128 ac_status=$?
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
17132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext && {
17137 test "$cross_compiling" = yes ||
17138 $as_test_x conftest$ac_exeext
17139 }; then
17140 { $as_echo "$as_me:$LINENO: result: yes" >&5
17141 $as_echo "yes" >&6; };
17143 cat >>confdefs.h <<\_ACEOF
17144 #define HAVE_SHL_LOAD 1
17145 _ACEOF
17147 else
17148 $as_echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 { $as_echo "$as_me:$LINENO: result: no" >&5
17152 $as_echo "no" >&6; };
17153 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17154 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17155 olibs=$LIBS
17156 LIBS="$LIBS -ldld"
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17165 main ()
17168 extern void* shl_load();
17169 shl_load();
17172 return 0;
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (ac_try="$ac_link"
17177 case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180 esac
17181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17182 $as_echo "$ac_try_echo") >&5
17183 (eval "$ac_link") 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext && {
17193 test "$cross_compiling" = yes ||
17194 $as_test_x conftest$ac_exeext
17195 }; then
17196 { $as_echo "$as_me:$LINENO: result: yes" >&5
17197 $as_echo "yes" >&6; };
17199 cat >>confdefs.h <<\_ACEOF
17200 #define HAVE_SHL_LOAD 1
17201 _ACEOF
17203 else
17204 $as_echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 { $as_echo "$as_me:$LINENO: result: no" >&5
17208 $as_echo "no" >&6; };
17209 LIBS=$olibs
17212 rm -rf conftest.dSYM
17213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17214 conftest$ac_exeext conftest.$ac_ext
17217 rm -rf conftest.dSYM
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17222 for ac_header in setjmp.h
17224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17226 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17227 $as_echo_n "checking for $ac_header... " >&6; }
17228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17229 $as_echo_n "(cached) " >&6
17231 ac_res=`eval 'as_val=${'$as_ac_Header'}
17232 $as_echo "$as_val"'`
17233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17234 $as_echo "$ac_res" >&6; }
17235 else
17236 # Is the header compilable?
17237 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17238 $as_echo_n "checking $ac_header usability... " >&6; }
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h. */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 $ac_includes_default
17246 #include <$ac_header>
17247 _ACEOF
17248 rm -f conftest.$ac_objext
17249 if { (ac_try="$ac_compile"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253 esac
17254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17257 ac_status=$?
17258 grep -v '^ *+' conftest.er1 >conftest.err
17259 rm -f conftest.er1
17260 cat conftest.err >&5
17261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest.$ac_objext; then
17266 ac_header_compiler=yes
17267 else
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_compiler=no
17274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17275 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17276 $as_echo "$ac_header_compiler" >&6; }
17278 # Is the header present?
17279 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17280 $as_echo_n "checking $ac_header presence... " >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 #include <$ac_header>
17288 _ACEOF
17289 if { (ac_try="$ac_cpp conftest.$ac_ext"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293 esac
17294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17295 $as_echo "$ac_try_echo") >&5
17296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev/null && {
17303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17305 }; then
17306 ac_header_preproc=yes
17307 else
17308 $as_echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_header_preproc=no
17314 rm -f conftest.err conftest.$ac_ext
17315 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17316 $as_echo "$ac_header_preproc" >&6; }
17318 # So? What about this header?
17319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17320 yes:no: )
17321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17322 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17324 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17325 ac_header_preproc=yes
17327 no:yes:* )
17328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17329 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17331 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17333 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17335 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17339 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17342 esac
17343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17344 $as_echo_n "checking for $ac_header... " >&6; }
17345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17346 $as_echo_n "(cached) " >&6
17347 else
17348 eval "$as_ac_Header=\$ac_header_preproc"
17350 ac_res=`eval 'as_val=${'$as_ac_Header'}
17351 $as_echo "$as_val"'`
17352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17353 $as_echo "$ac_res" >&6; }
17356 as_val=`eval 'as_val=${'$as_ac_Header'}
17357 $as_echo "$as_val"'`
17358 if test "x$as_val" = x""yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17361 _ACEOF
17365 done
17368 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17369 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17370 LIBS=`echo $LIBS | sed s/-ldl//`
17371 PERL_LIBS="$PERL_LIBS -ldl"
17375 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17376 && test "x$GUITYPE" != "xCARBONGUI"; then
17377 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17378 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17379 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17380 || test "x$features" = "xhuge"; then
17381 LIBS="$LIBS -framework Carbon"
17382 { $as_echo "$as_me:$LINENO: result: yes" >&5
17383 $as_echo "yes" >&6; }
17384 else
17385 { $as_echo "$as_me:$LINENO: result: no" >&5
17386 $as_echo "no" >&6; }
17389 if test "x$MACARCH" = "xboth"; then
17390 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17393 DEPEND_CFLAGS_FILTER=
17394 if test "$GCC" = yes; then
17395 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17396 $as_echo_n "checking for GCC 3 or later... " >&6; }
17397 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17398 if test "$gccmajor" -gt "2"; then
17399 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17400 { $as_echo "$as_me:$LINENO: result: yes" >&5
17401 $as_echo "yes" >&6; }
17402 else
17403 { $as_echo "$as_me:$LINENO: result: no" >&5
17404 $as_echo "no" >&6; }
17406 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17407 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17408 if test "$gccmajor" -gt "3"; then
17409 CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17410 { $as_echo "$as_me:$LINENO: result: yes" >&5
17411 $as_echo "yes" >&6; }
17412 else
17413 { $as_echo "$as_me:$LINENO: result: no" >&5
17414 $as_echo "no" >&6; }
17419 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17421 cat >confcache <<\_ACEOF
17422 # This file is a shell script that caches the results of configure
17423 # tests run on this system so they can be shared between configure
17424 # scripts and configure runs, see configure's option --config-cache.
17425 # It is not useful on other systems. If it contains results you don't
17426 # want to keep, you may remove or edit it.
17428 # config.status only pays attention to the cache file if you give it
17429 # the --recheck option to rerun configure.
17431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17433 # following values.
17435 _ACEOF
17437 # The following way of writing the cache mishandles newlines in values,
17438 # but we know of no workaround that is simple, portable, and efficient.
17439 # So, we kill variables containing newlines.
17440 # Ultrix sh set writes to stderr and can't be redirected directly,
17441 # and sets the high bit in the cache file unless we assign to the vars.
17443 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17444 eval ac_val=\$$ac_var
17445 case $ac_val in #(
17446 *${as_nl}*)
17447 case $ac_var in #(
17448 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17450 esac
17451 case $ac_var in #(
17452 _ | IFS | as_nl) ;; #(
17453 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17454 *) $as_unset $ac_var ;;
17455 esac ;;
17456 esac
17457 done
17459 (set) 2>&1 |
17460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17461 *${as_nl}ac_space=\ *)
17462 # `set' does not quote correctly, so add quotes (double-quote
17463 # substitution turns \\\\ into \\, and sed turns \\ into \).
17464 sed -n \
17465 "s/'/'\\\\''/g;
17466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17467 ;; #(
17469 # `set' quotes correctly as required by POSIX, so do not add quotes.
17470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17472 esac |
17473 sort
17475 sed '
17476 /^ac_cv_env_/b end
17477 t clear
17478 :clear
17479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17480 t end
17481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17482 :end' >>confcache
17483 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17484 if test -w "$cache_file"; then
17485 test "x$cache_file" != "x/dev/null" &&
17486 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17487 $as_echo "$as_me: updating cache $cache_file" >&6;}
17488 cat confcache >$cache_file
17489 else
17490 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17494 rm -f confcache
17496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17497 # Let make expand exec_prefix.
17498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17500 DEFS=-DHAVE_CONFIG_H
17502 ac_libobjs=
17503 ac_ltlibobjs=
17504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17505 # 1. Remove the extension, and $U if already installed.
17506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17509 # will be set to the directory where LIBOBJS objects are built.
17510 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17511 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17512 done
17513 LIBOBJS=$ac_libobjs
17515 LTLIBOBJS=$ac_ltlibobjs
17519 : ${CONFIG_STATUS=./config.status}
17520 ac_write_fail=0
17521 ac_clean_files_save=$ac_clean_files
17522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17523 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17525 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17526 #! $SHELL
17527 # Generated by $as_me.
17528 # Run this file to recreate the current configuration.
17529 # Compiler output produced by configure, useful for debugging
17530 # configure, is in config.log if it exists.
17532 debug=false
17533 ac_cs_recheck=false
17534 ac_cs_silent=false
17535 SHELL=\${CONFIG_SHELL-$SHELL}
17536 _ACEOF
17538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17539 ## --------------------- ##
17540 ## M4sh Initialization. ##
17541 ## --------------------- ##
17543 # Be more Bourne compatible
17544 DUALCASE=1; export DUALCASE # for MKS sh
17545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17546 emulate sh
17547 NULLCMD=:
17548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17549 # is contrary to our usage. Disable this feature.
17550 alias -g '${1+"$@"}'='"$@"'
17551 setopt NO_GLOB_SUBST
17552 else
17553 case `(set -o) 2>/dev/null` in
17554 *posix*) set -o posix ;;
17555 esac
17562 # PATH needs CR
17563 # Avoid depending upon Character Ranges.
17564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17567 as_cr_digits='0123456789'
17568 as_cr_alnum=$as_cr_Letters$as_cr_digits
17570 as_nl='
17572 export as_nl
17573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17574 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17577 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17578 as_echo='printf %s\n'
17579 as_echo_n='printf %s'
17580 else
17581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17582 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17583 as_echo_n='/usr/ucb/echo -n'
17584 else
17585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17586 as_echo_n_body='eval
17587 arg=$1;
17588 case $arg in
17589 *"$as_nl"*)
17590 expr "X$arg" : "X\\(.*\\)$as_nl";
17591 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17592 esac;
17593 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17595 export as_echo_n_body
17596 as_echo_n='sh -c $as_echo_n_body as_echo'
17598 export as_echo_body
17599 as_echo='sh -c $as_echo_body as_echo'
17602 # The user is always right.
17603 if test "${PATH_SEPARATOR+set}" != set; then
17604 PATH_SEPARATOR=:
17605 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17606 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17607 PATH_SEPARATOR=';'
17611 # Support unset when possible.
17612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17613 as_unset=unset
17614 else
17615 as_unset=false
17619 # IFS
17620 # We need space, tab and new line, in precisely that order. Quoting is
17621 # there to prevent editors from complaining about space-tab.
17622 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17623 # splitting by setting IFS to empty value.)
17624 IFS=" "" $as_nl"
17626 # Find who we are. Look in the path if we contain no directory separator.
17627 case $0 in
17628 *[\\/]* ) as_myself=$0 ;;
17629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17630 for as_dir in $PATH
17632 IFS=$as_save_IFS
17633 test -z "$as_dir" && as_dir=.
17634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17635 done
17636 IFS=$as_save_IFS
17639 esac
17640 # We did not find ourselves, most probably we were run as `sh COMMAND'
17641 # in which case we are not to be found in the path.
17642 if test "x$as_myself" = x; then
17643 as_myself=$0
17645 if test ! -f "$as_myself"; then
17646 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17647 { (exit 1); exit 1; }
17650 # Work around bugs in pre-3.0 UWIN ksh.
17651 for as_var in ENV MAIL MAILPATH
17652 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17653 done
17654 PS1='$ '
17655 PS2='> '
17656 PS4='+ '
17658 # NLS nuisances.
17659 LC_ALL=C
17660 export LC_ALL
17661 LANGUAGE=C
17662 export LANGUAGE
17664 # Required to use basename.
17665 if expr a : '\(a\)' >/dev/null 2>&1 &&
17666 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17667 as_expr=expr
17668 else
17669 as_expr=false
17672 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17673 as_basename=basename
17674 else
17675 as_basename=false
17679 # Name of the executable.
17680 as_me=`$as_basename -- "$0" ||
17681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17682 X"$0" : 'X\(//\)$' \| \
17683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17684 $as_echo X/"$0" |
17685 sed '/^.*\/\([^/][^/]*\)\/*$/{
17686 s//\1/
17689 /^X\/\(\/\/\)$/{
17690 s//\1/
17693 /^X\/\(\/\).*/{
17694 s//\1/
17697 s/.*/./; q'`
17699 # CDPATH.
17700 $as_unset CDPATH
17704 as_lineno_1=$LINENO
17705 as_lineno_2=$LINENO
17706 test "x$as_lineno_1" != "x$as_lineno_2" &&
17707 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17710 # uniformly replaced by the line number. The first 'sed' inserts a
17711 # line-number line after each line using $LINENO; the second 'sed'
17712 # does the real work. The second script uses 'N' to pair each
17713 # line-number line with the line containing $LINENO, and appends
17714 # trailing '-' during substitution so that $LINENO is not a special
17715 # case at line end.
17716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17717 # scripts with optimization help from Paolo Bonzini. Blame Lee
17718 # E. McMahon (1931-1989) for sed's syntax. :-)
17719 sed -n '
17721 /[$]LINENO/=
17722 ' <$as_myself |
17723 sed '
17724 s/[$]LINENO.*/&-/
17725 t lineno
17727 :lineno
17729 :loop
17730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17731 t loop
17732 s/-\n.*//
17733 ' >$as_me.lineno &&
17734 chmod +x "$as_me.lineno" ||
17735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17736 { (exit 1); exit 1; }; }
17738 # Don't try to exec as it changes $[0], causing all sort of problems
17739 # (the dirname of $[0] is not the place where we might find the
17740 # original and so on. Autoconf is especially sensitive to this).
17741 . "./$as_me.lineno"
17742 # Exit status is that of the last command.
17743 exit
17747 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17748 as_dirname=dirname
17749 else
17750 as_dirname=false
17753 ECHO_C= ECHO_N= ECHO_T=
17754 case `echo -n x` in
17755 -n*)
17756 case `echo 'x\c'` in
17757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17758 *) ECHO_C='\c';;
17759 esac;;
17761 ECHO_N='-n';;
17762 esac
17763 if expr a : '\(a\)' >/dev/null 2>&1 &&
17764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17765 as_expr=expr
17766 else
17767 as_expr=false
17770 rm -f conf$$ conf$$.exe conf$$.file
17771 if test -d conf$$.dir; then
17772 rm -f conf$$.dir/conf$$.file
17773 else
17774 rm -f conf$$.dir
17775 mkdir conf$$.dir 2>/dev/null
17777 if (echo >conf$$.file) 2>/dev/null; then
17778 if ln -s conf$$.file conf$$ 2>/dev/null; then
17779 as_ln_s='ln -s'
17780 # ... but there are two gotchas:
17781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17783 # In both cases, we have to default to `cp -p'.
17784 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17785 as_ln_s='cp -p'
17786 elif ln conf$$.file conf$$ 2>/dev/null; then
17787 as_ln_s=ln
17788 else
17789 as_ln_s='cp -p'
17791 else
17792 as_ln_s='cp -p'
17794 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17795 rmdir conf$$.dir 2>/dev/null
17797 if mkdir -p . 2>/dev/null; then
17798 as_mkdir_p=:
17799 else
17800 test -d ./-p && rmdir ./-p
17801 as_mkdir_p=false
17804 if test -x / >/dev/null 2>&1; then
17805 as_test_x='test -x'
17806 else
17807 if ls -dL / >/dev/null 2>&1; then
17808 as_ls_L_option=L
17809 else
17810 as_ls_L_option=
17812 as_test_x='
17813 eval sh -c '\''
17814 if test -d "$1"; then
17815 test -d "$1/.";
17816 else
17817 case $1 in
17818 -*)set "./$1";;
17819 esac;
17820 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17821 ???[sx]*):;;*)false;;esac;fi
17822 '\'' sh
17825 as_executable_p=$as_test_x
17827 # Sed expression to map a string onto a valid CPP name.
17828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17830 # Sed expression to map a string onto a valid variable name.
17831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17834 exec 6>&1
17836 # Save the log message, to keep $[0] and so on meaningful, and to
17837 # report actual input values of CONFIG_FILES etc. instead of their
17838 # values after options handling.
17839 ac_log="
17840 This file was extended by $as_me, which was
17841 generated by GNU Autoconf 2.63. Invocation command line was
17843 CONFIG_FILES = $CONFIG_FILES
17844 CONFIG_HEADERS = $CONFIG_HEADERS
17845 CONFIG_LINKS = $CONFIG_LINKS
17846 CONFIG_COMMANDS = $CONFIG_COMMANDS
17847 $ $0 $@
17849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17852 _ACEOF
17854 case $ac_config_files in *"
17855 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17856 esac
17858 case $ac_config_headers in *"
17859 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17860 esac
17863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17864 # Files that config.status was made for.
17865 config_files="$ac_config_files"
17866 config_headers="$ac_config_headers"
17868 _ACEOF
17870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17871 ac_cs_usage="\
17872 \`$as_me' instantiates files from templates according to the
17873 current configuration.
17875 Usage: $0 [OPTION]... [FILE]...
17877 -h, --help print this help, then exit
17878 -V, --version print version number and configuration settings, then exit
17879 -q, --quiet, --silent
17880 do not print progress messages
17881 -d, --debug don't remove temporary files
17882 --recheck update $as_me by reconfiguring in the same conditions
17883 --file=FILE[:TEMPLATE]
17884 instantiate the configuration file FILE
17885 --header=FILE[:TEMPLATE]
17886 instantiate the configuration header FILE
17888 Configuration files:
17889 $config_files
17891 Configuration headers:
17892 $config_headers
17894 Report bugs to <bug-autoconf@gnu.org>."
17896 _ACEOF
17897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17898 ac_cs_version="\\
17899 config.status
17900 configured by $0, generated by GNU Autoconf 2.63,
17901 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17903 Copyright (C) 2008 Free Software Foundation, Inc.
17904 This config.status script is free software; the Free Software Foundation
17905 gives unlimited permission to copy, distribute and modify it."
17907 ac_pwd='$ac_pwd'
17908 srcdir='$srcdir'
17909 AWK='$AWK'
17910 test -n "\$AWK" || AWK=awk
17911 _ACEOF
17913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17914 # The default lists apply if the user does not specify any file.
17915 ac_need_defaults=:
17916 while test $# != 0
17918 case $1 in
17919 --*=*)
17920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17921 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17922 ac_shift=:
17925 ac_option=$1
17926 ac_optarg=$2
17927 ac_shift=shift
17929 esac
17931 case $ac_option in
17932 # Handling of the options.
17933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17934 ac_cs_recheck=: ;;
17935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17936 $as_echo "$ac_cs_version"; exit ;;
17937 --debug | --debu | --deb | --de | --d | -d )
17938 debug=: ;;
17939 --file | --fil | --fi | --f )
17940 $ac_shift
17941 case $ac_optarg in
17942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17943 esac
17944 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17945 ac_need_defaults=false;;
17946 --header | --heade | --head | --hea )
17947 $ac_shift
17948 case $ac_optarg in
17949 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17950 esac
17951 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17952 ac_need_defaults=false;;
17953 --he | --h)
17954 # Conflict between --help and --header
17955 { $as_echo "$as_me: error: ambiguous option: $1
17956 Try \`$0 --help' for more information." >&2
17957 { (exit 1); exit 1; }; };;
17958 --help | --hel | -h )
17959 $as_echo "$ac_cs_usage"; exit ;;
17960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17961 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17962 ac_cs_silent=: ;;
17964 # This is an error.
17965 -*) { $as_echo "$as_me: error: unrecognized option: $1
17966 Try \`$0 --help' for more information." >&2
17967 { (exit 1); exit 1; }; } ;;
17969 *) ac_config_targets="$ac_config_targets $1"
17970 ac_need_defaults=false ;;
17972 esac
17973 shift
17974 done
17976 ac_configure_extra_args=
17978 if $ac_cs_silent; then
17979 exec 6>/dev/null
17980 ac_configure_extra_args="$ac_configure_extra_args --silent"
17983 _ACEOF
17984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17985 if \$ac_cs_recheck; then
17986 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17987 shift
17988 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17989 CONFIG_SHELL='$SHELL'
17990 export CONFIG_SHELL
17991 exec "\$@"
17994 _ACEOF
17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 exec 5>>auto/config.log
17998 echo
17999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18000 ## Running $as_me. ##
18001 _ASBOX
18002 $as_echo "$ac_log"
18003 } >&5
18005 _ACEOF
18006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18007 _ACEOF
18009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18011 # Handling of arguments.
18012 for ac_config_target in $ac_config_targets
18014 case $ac_config_target in
18015 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18016 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18018 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18019 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18020 { (exit 1); exit 1; }; };;
18021 esac
18022 done
18025 # If the user did not use the arguments to specify the items to instantiate,
18026 # then the envvar interface is used. Set only those that are not.
18027 # We use the long form for the default assignment because of an extremely
18028 # bizarre bug on SunOS 4.1.3.
18029 if $ac_need_defaults; then
18030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18034 # Have a temporary directory for convenience. Make it in the build tree
18035 # simply because there is no reason against having it here, and in addition,
18036 # creating and moving files from /tmp can sometimes cause problems.
18037 # Hook for its removal unless debugging.
18038 # Note that there is a small window in which the directory will not be cleaned:
18039 # after its creation but before its name has been assigned to `$tmp'.
18040 $debug ||
18042 tmp=
18043 trap 'exit_status=$?
18044 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18046 trap '{ (exit 1); exit 1; }' 1 2 13 15
18048 # Create a (secure) tmp directory for tmp files.
18051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18052 test -n "$tmp" && test -d "$tmp"
18053 } ||
18055 tmp=./conf$$-$RANDOM
18056 (umask 077 && mkdir "$tmp")
18057 } ||
18059 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18060 { (exit 1); exit 1; }
18063 # Set up the scripts for CONFIG_FILES section.
18064 # No need to generate them if there are no CONFIG_FILES.
18065 # This happens for instance with `./config.status config.h'.
18066 if test -n "$CONFIG_FILES"; then
18069 ac_cr=' '
18070 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18072 ac_cs_awk_cr='\\r'
18073 else
18074 ac_cs_awk_cr=$ac_cr
18077 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18078 _ACEOF
18082 echo "cat >conf$$subs.awk <<_ACEOF" &&
18083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18084 echo "_ACEOF"
18085 } >conf$$subs.sh ||
18086 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18087 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18088 { (exit 1); exit 1; }; }
18089 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18090 ac_delim='%!_!# '
18091 for ac_last_try in false false false false false :; do
18092 . ./conf$$subs.sh ||
18093 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18094 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18095 { (exit 1); exit 1; }; }
18097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18098 if test $ac_delim_n = $ac_delim_num; then
18099 break
18100 elif $ac_last_try; then
18101 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18102 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18103 { (exit 1); exit 1; }; }
18104 else
18105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18107 done
18108 rm -f conf$$subs.sh
18110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18111 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18112 _ACEOF
18113 sed -n '
18115 s/^/S["/; s/!.*/"]=/
18118 s/^[^!]*!//
18119 :repl
18120 t repl
18121 s/'"$ac_delim"'$//
18122 t delim
18125 s/\(.\{148\}\).*/\1/
18126 t more1
18127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18130 b repl
18131 :more1
18132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18135 s/.\{148\}//
18136 t nl
18137 :delim
18139 s/\(.\{148\}\).*/\1/
18140 t more2
18141 s/["\\]/\\&/g; s/^/"/; s/$/"/
18144 :more2
18145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18148 s/.\{148\}//
18149 t delim
18150 ' <conf$$subs.awk | sed '
18151 /^[^""]/{
18153 s/\n//
18155 ' >>$CONFIG_STATUS || ac_write_fail=1
18156 rm -f conf$$subs.awk
18157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18158 _ACAWK
18159 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18160 for (key in S) S_is_set[key] = 1
18161 FS = "\a"
18165 line = $ 0
18166 nfields = split(line, field, "@")
18167 substed = 0
18168 len = length(field[1])
18169 for (i = 2; i < nfields; i++) {
18170 key = field[i]
18171 keylen = length(key)
18172 if (S_is_set[key]) {
18173 value = S[key]
18174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18175 len += length(value) + length(field[++i])
18176 substed = 1
18177 } else
18178 len += 1 + keylen
18181 print line
18184 _ACAWK
18185 _ACEOF
18186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18189 else
18191 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18192 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18193 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18194 { (exit 1); exit 1; }; }
18195 _ACEOF
18197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18199 # trailing colons and then remove the whole line if VPATH becomes empty
18200 # (actually we leave an empty line to preserve line numbers).
18201 if test "x$srcdir" = x.; then
18202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18203 s/:*\$(srcdir):*/:/
18204 s/:*\${srcdir}:*/:/
18205 s/:*@srcdir@:*/:/
18206 s/^\([^=]*=[ ]*\):*/\1/
18207 s/:*$//
18208 s/^[^=]*=[ ]*$//
18212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18213 fi # test -n "$CONFIG_FILES"
18215 # Set up the scripts for CONFIG_HEADERS section.
18216 # No need to generate them if there are no CONFIG_HEADERS.
18217 # This happens for instance with `./config.status Makefile'.
18218 if test -n "$CONFIG_HEADERS"; then
18219 cat >"$tmp/defines.awk" <<\_ACAWK ||
18220 BEGIN {
18221 _ACEOF
18223 # Transform confdefs.h into an awk script `defines.awk', embedded as
18224 # here-document in config.status, that substitutes the proper values into
18225 # config.h.in to produce config.h.
18227 # Create a delimiter string that does not exist in confdefs.h, to ease
18228 # handling of long lines.
18229 ac_delim='%!_!# '
18230 for ac_last_try in false false :; do
18231 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18232 if test -z "$ac_t"; then
18233 break
18234 elif $ac_last_try; then
18235 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18236 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18237 { (exit 1); exit 1; }; }
18238 else
18239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18241 done
18243 # For the awk script, D is an array of macro values keyed by name,
18244 # likewise P contains macro parameters if any. Preserve backslash
18245 # newline sequences.
18247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18248 sed -n '
18249 s/.\{148\}/&'"$ac_delim"'/g
18250 t rset
18251 :rset
18252 s/^[ ]*#[ ]*define[ ][ ]*/ /
18253 t def
18255 :def
18256 s/\\$//
18257 t bsnl
18258 s/["\\]/\\&/g
18259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18260 D["\1"]=" \3"/p
18261 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18263 :bsnl
18264 s/["\\]/\\&/g
18265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18266 D["\1"]=" \3\\\\\\n"\\/p
18267 t cont
18268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18269 t cont
18271 :cont
18273 s/.\{148\}/&'"$ac_delim"'/g
18274 t clear
18275 :clear
18276 s/\\$//
18277 t bsnlc
18278 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18280 :bsnlc
18281 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18282 b cont
18283 ' <confdefs.h | sed '
18284 s/'"$ac_delim"'/"\\\
18285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288 for (key in D) D_is_set[key] = 1
18289 FS = "\a"
18291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18292 line = \$ 0
18293 split(line, arg, " ")
18294 if (arg[1] == "#") {
18295 defundef = arg[2]
18296 mac1 = arg[3]
18297 } else {
18298 defundef = substr(arg[1], 2)
18299 mac1 = arg[2]
18301 split(mac1, mac2, "(") #)
18302 macro = mac2[1]
18303 prefix = substr(line, 1, index(line, defundef) - 1)
18304 if (D_is_set[macro]) {
18305 # Preserve the white space surrounding the "#".
18306 print prefix "define", macro P[macro] D[macro]
18307 next
18308 } else {
18309 # Replace #undef with comments. This is necessary, for example,
18310 # in the case of _POSIX_SOURCE, which is predefined and required
18311 # on some systems where configure will not decide to define it.
18312 if (defundef == "undef") {
18313 print "/*", prefix defundef, macro, "*/"
18314 next
18318 { print }
18319 _ACAWK
18320 _ACEOF
18321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18322 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18323 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18324 { (exit 1); exit 1; }; }
18325 fi # test -n "$CONFIG_HEADERS"
18328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18329 shift
18330 for ac_tag
18332 case $ac_tag in
18333 :[FHLC]) ac_mode=$ac_tag; continue;;
18334 esac
18335 case $ac_mode$ac_tag in
18336 :[FHL]*:*);;
18337 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18338 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18339 { (exit 1); exit 1; }; };;
18340 :[FH]-) ac_tag=-:-;;
18341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18342 esac
18343 ac_save_IFS=$IFS
18344 IFS=:
18345 set x $ac_tag
18346 IFS=$ac_save_IFS
18347 shift
18348 ac_file=$1
18349 shift
18351 case $ac_mode in
18352 :L) ac_source=$1;;
18353 :[FH])
18354 ac_file_inputs=
18355 for ac_f
18357 case $ac_f in
18358 -) ac_f="$tmp/stdin";;
18359 *) # Look for the file first in the build tree, then in the source tree
18360 # (if the path is not absolute). The absolute path cannot be DOS-style,
18361 # because $ac_f cannot contain `:'.
18362 test -f "$ac_f" ||
18363 case $ac_f in
18364 [\\/$]*) false;;
18365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18366 esac ||
18367 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18368 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18369 { (exit 1); exit 1; }; };;
18370 esac
18371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18372 ac_file_inputs="$ac_file_inputs '$ac_f'"
18373 done
18375 # Let's still pretend it is `configure' which instantiates (i.e., don't
18376 # use $as_me), people would be surprised to read:
18377 # /* config.h. Generated by config.status. */
18378 configure_input='Generated from '`
18379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18380 `' by configure.'
18381 if test x"$ac_file" != x-; then
18382 configure_input="$ac_file. $configure_input"
18383 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18384 $as_echo "$as_me: creating $ac_file" >&6;}
18386 # Neutralize special characters interpreted by sed in replacement strings.
18387 case $configure_input in #(
18388 *\&* | *\|* | *\\* )
18389 ac_sed_conf_input=`$as_echo "$configure_input" |
18390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18391 *) ac_sed_conf_input=$configure_input;;
18392 esac
18394 case $ac_tag in
18395 *:-:* | *:-) cat >"$tmp/stdin" \
18396 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18397 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18398 { (exit 1); exit 1; }; } ;;
18399 esac
18401 esac
18403 ac_dir=`$as_dirname -- "$ac_file" ||
18404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18405 X"$ac_file" : 'X\(//\)[^/]' \| \
18406 X"$ac_file" : 'X\(//\)$' \| \
18407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18408 $as_echo X"$ac_file" |
18409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18410 s//\1/
18413 /^X\(\/\/\)[^/].*/{
18414 s//\1/
18417 /^X\(\/\/\)$/{
18418 s//\1/
18421 /^X\(\/\).*/{
18422 s//\1/
18425 s/.*/./; q'`
18426 { as_dir="$ac_dir"
18427 case $as_dir in #(
18428 -*) as_dir=./$as_dir;;
18429 esac
18430 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18431 as_dirs=
18432 while :; do
18433 case $as_dir in #(
18434 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18435 *) as_qdir=$as_dir;;
18436 esac
18437 as_dirs="'$as_qdir' $as_dirs"
18438 as_dir=`$as_dirname -- "$as_dir" ||
18439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18440 X"$as_dir" : 'X\(//\)[^/]' \| \
18441 X"$as_dir" : 'X\(//\)$' \| \
18442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18443 $as_echo X"$as_dir" |
18444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18445 s//\1/
18448 /^X\(\/\/\)[^/].*/{
18449 s//\1/
18452 /^X\(\/\/\)$/{
18453 s//\1/
18456 /^X\(\/\).*/{
18457 s//\1/
18460 s/.*/./; q'`
18461 test -d "$as_dir" && break
18462 done
18463 test -z "$as_dirs" || eval "mkdir $as_dirs"
18464 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18465 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18466 { (exit 1); exit 1; }; }; }
18467 ac_builddir=.
18469 case "$ac_dir" in
18470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18473 # A ".." for each directory in $ac_dir_suffix.
18474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18475 case $ac_top_builddir_sub in
18476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18478 esac ;;
18479 esac
18480 ac_abs_top_builddir=$ac_pwd
18481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18482 # for backward compatibility:
18483 ac_top_builddir=$ac_top_build_prefix
18485 case $srcdir in
18486 .) # We are building in place.
18487 ac_srcdir=.
18488 ac_top_srcdir=$ac_top_builddir_sub
18489 ac_abs_top_srcdir=$ac_pwd ;;
18490 [\\/]* | ?:[\\/]* ) # Absolute name.
18491 ac_srcdir=$srcdir$ac_dir_suffix;
18492 ac_top_srcdir=$srcdir
18493 ac_abs_top_srcdir=$srcdir ;;
18494 *) # Relative name.
18495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18496 ac_top_srcdir=$ac_top_build_prefix$srcdir
18497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18498 esac
18499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18502 case $ac_mode in
18505 # CONFIG_FILE
18508 _ACEOF
18510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18511 # If the template does not know about datarootdir, expand it.
18512 # FIXME: This hack should be removed a few years after 2.60.
18513 ac_datarootdir_hack=; ac_datarootdir_seen=
18515 ac_sed_dataroot='
18516 /datarootdir/ {
18520 /@datadir@/p
18521 /@docdir@/p
18522 /@infodir@/p
18523 /@localedir@/p
18524 /@mandir@/p
18526 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18527 *datarootdir*) ac_datarootdir_seen=yes;;
18528 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18529 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18530 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18531 _ACEOF
18532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18533 ac_datarootdir_hack='
18534 s&@datadir@&$datadir&g
18535 s&@docdir@&$docdir&g
18536 s&@infodir@&$infodir&g
18537 s&@localedir@&$localedir&g
18538 s&@mandir@&$mandir&g
18539 s&\\\${datarootdir}&$datarootdir&g' ;;
18540 esac
18541 _ACEOF
18543 # Neutralize VPATH when `$srcdir' = `.'.
18544 # Shell code in configure.ac might set extrasub.
18545 # FIXME: do we really want to maintain this feature?
18546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18547 ac_sed_extra="$ac_vpsub
18548 $extrasub
18549 _ACEOF
18550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18553 s|@configure_input@|$ac_sed_conf_input|;t t
18554 s&@top_builddir@&$ac_top_builddir_sub&;t t
18555 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18556 s&@srcdir@&$ac_srcdir&;t t
18557 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18558 s&@top_srcdir@&$ac_top_srcdir&;t t
18559 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18560 s&@builddir@&$ac_builddir&;t t
18561 s&@abs_builddir@&$ac_abs_builddir&;t t
18562 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18563 $ac_datarootdir_hack
18565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18566 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18567 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18568 { (exit 1); exit 1; }; }
18570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18571 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18573 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18574 which seems to be undefined. Please make sure it is defined." >&5
18575 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18576 which seems to be undefined. Please make sure it is defined." >&2;}
18578 rm -f "$tmp/stdin"
18579 case $ac_file in
18580 -) cat "$tmp/out" && rm -f "$tmp/out";;
18581 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18582 esac \
18583 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18584 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18585 { (exit 1); exit 1; }; }
18589 # CONFIG_HEADER
18591 if test x"$ac_file" != x-; then
18593 $as_echo "/* $configure_input */" \
18594 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18595 } >"$tmp/config.h" \
18596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18597 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18598 { (exit 1); exit 1; }; }
18599 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18600 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18601 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18602 else
18603 rm -f "$ac_file"
18604 mv "$tmp/config.h" "$ac_file" \
18605 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18606 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18607 { (exit 1); exit 1; }; }
18609 else
18610 $as_echo "/* $configure_input */" \
18611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18612 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18613 $as_echo "$as_me: error: could not create -" >&2;}
18614 { (exit 1); exit 1; }; }
18619 esac
18621 done # for ac_tag
18624 { (exit 0); exit 0; }
18625 _ACEOF
18626 chmod +x $CONFIG_STATUS
18627 ac_clean_files=$ac_clean_files_save
18629 test $ac_write_fail = 0 ||
18630 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18631 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18632 { (exit 1); exit 1; }; }
18635 # configure is writing to config.log, and then calls config.status.
18636 # config.status does its own redirection, appending to config.log.
18637 # Unfortunately, on DOS this fails, as config.log is still kept open
18638 # by configure, so config.status won't be able to write to it; its
18639 # output is simply discarded. So we exec the FD to /dev/null,
18640 # effectively closing config.log, so it can be properly (re)opened and
18641 # appended to by config.status. When coming back to configure, we
18642 # need to make the FD available again.
18643 if test "$no_create" != yes; then
18644 ac_cs_success=:
18645 ac_config_status_args=
18646 test "$silent" = yes &&
18647 ac_config_status_args="$ac_config_status_args --quiet"
18648 exec 5>/dev/null
18649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18650 exec 5>>auto/config.log
18651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18652 # would make configure fail if this is the last instruction.
18653 $ac_cs_success || { (exit 1); exit 1; }
18655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18656 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}