Merged from the latest developing branch.
[MacVim/KaoriYa.git] / src / auto / configure
blob70a06b40b7af81441adef434280cfa26d56d20fa
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
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='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 SET_MAKE
677 CFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CC
681 EXEEXT
682 OBJEXT
684 GREP
685 EGREP
687 STRIP
688 CPP_MM
689 OS_EXTRA_SRC
690 OS_EXTRA_OBJ
691 VIMNAME
692 EXNAME
693 VIEWNAME
694 line_break
695 dovimdiff
696 dogvimdiff
697 compiledby
698 vi_cv_path_mzscheme
699 MZSCHEME_SRC
700 MZSCHEME_OBJ
701 MZSCHEME_PRO
702 MZSCHEME_LIBS
703 MZSCHEME_CFLAGS
704 vi_cv_path_perl
705 vi_cv_perllib
706 shrpenv
707 PERL_SRC
708 PERL_OBJ
709 PERL_PRO
710 PERL_CFLAGS
711 PERL_LIBS
712 vi_cv_path_python
713 PYTHON_CONFDIR
714 PYTHON_LIBS
715 PYTHON_GETPATH_CFLAGS
716 PYTHON_CFLAGS
717 PYTHON_SRC
718 PYTHON_OBJ
719 vi_cv_path_tcl
720 TCL_SRC
721 TCL_OBJ
722 TCL_PRO
723 TCL_CFLAGS
724 TCL_LIBS
725 vi_cv_path_ruby
726 RUBY_SRC
727 RUBY_OBJ
728 RUBY_PRO
729 RUBY_CFLAGS
730 RUBY_LIBS
731 WORKSHOP_SRC
732 WORKSHOP_OBJ
733 NETBEANS_SRC
734 NETBEANS_OBJ
735 SNIFF_SRC
736 SNIFF_OBJ
737 xmkmfpath
738 XMKMF
739 X_CFLAGS
740 X_PRE_LIBS
741 X_LIBS
742 X_EXTRA_LIBS
743 X_LIB
744 GTK_CONFIG
745 GTK12_CONFIG
746 PKG_CONFIG
747 GTK_CFLAGS
748 GTK_LIBS
749 GTK_LIBNAME
750 GNOME_LIBS
751 GNOME_LIBDIR
752 GNOME_INCLUDEDIR
753 GNOME_CONFIG
754 MOTIF_LIBNAME
755 NARROW_PROTO
756 GUI_INC_LOC
757 GUI_LIB_LOC
758 GUITYPE
759 GUI_X_LIBS
760 HANGULIN_SRC
761 HANGULIN_OBJ
762 TAGPRG
763 INSTALL_LANGS
764 INSTALL_TOOL_LANGS
765 MSGFMT
766 MAKEMO
767 DEPEND_CFLAGS_FILTER
768 LIBOBJS
769 LTLIBOBJS'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_darwin
774 with_mac_arch
775 with_local_dir
776 with_vim_name
777 with_ex_name
778 with_view_name
779 with_global_runtime
780 with_modified_by
781 enable_selinux
782 with_features
783 with_compiledby
784 enable_xsmp
785 enable_xsmp_interact
786 enable_mzschemeinterp
787 with_plthome
788 enable_perlinterp
789 enable_pythoninterp
790 with_python_config_dir
791 enable_tclinterp
792 with_tclsh
793 enable_rubyinterp
794 enable_cscope
795 enable_workshop
796 enable_netbeans
797 enable_sniff
798 enable_multibyte
799 enable_hangulinput
800 enable_xim
801 enable_fontset
802 with_x
803 enable_gui
804 enable_gtk_check
805 enable_gtk2_check
806 enable_gnome_check
807 enable_motif_check
808 enable_athena_check
809 enable_nextaw_check
810 enable_carbon_check
811 with_gtk_prefix
812 with_gtk_exec_prefix
813 enable_gtktest
814 with_gnome_includes
815 with_gnome_libs
816 with_gnome
817 with_motif_lib
818 with_tlib
819 enable_acl
820 enable_gpm
821 enable_sysmouse
822 enable_nls
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
833 XMKMF'
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
884 ac_prev=
885 ac_dashdash=
886 for ac_option
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
895 case $ac_option in
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *) ac_optarg=yes ;;
898 esac
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
904 ac_dashdash=yes ;;
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
923 --config-cache | -C)
924 cache_file=config.cache ;;
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943 { (exit 1); exit 1; }; }
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1244 esac
1245 done
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 esac
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1270 case $ac_val in
1271 */ )
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1274 esac
1275 # Be sure to have absolute directory names.
1276 case $ac_val in
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279 esac
1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1336 /^X\(\/\/\)$/{
1337 s//\1/
1340 /^X\(\/\).*/{
1341 s//\1/
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1349 else
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1441 cat <<\_ACEOF
1443 X features:
1444 --x-includes=DIR X include files are in DIR
1445 --x-libraries=DIR X library files are in DIR
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1451 cat <<\_ACEOF
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --disable-darwin Disable Darwin (Mac OS X) support.
1458 --disable-selinux Don't check for SELinux support.
1459 --disable-xsmp Disable XSMP session management
1460 --disable-xsmp-interact Disable XSMP interaction
1461 --enable-mzschemeinterp Include MzScheme interpreter.
1462 --enable-perlinterp Include Perl interpreter.
1463 --enable-pythoninterp Include Python interpreter.
1464 --enable-tclinterp Include Tcl interpreter.
1465 --enable-rubyinterp Include Ruby interpreter.
1466 --enable-cscope Include cscope interface.
1467 --enable-workshop Include Sun Visual Workshop support.
1468 --disable-netbeans Disable NetBeans integration support.
1469 --enable-sniff Include Sniff interface.
1470 --enable-multibyte Include multibyte editing support.
1471 --enable-hangulinput Include Hangul input support.
1472 --enable-xim Include XIM input support.
1473 --enable-fontset Include X fontset output support.
1474 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1475 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1476 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1477 --enable-gnome-check If GTK GUI, check for GNOME default=no
1478 --enable-motif-check If auto-select GUI, check for Motif default=yes
1479 --enable-athena-check If auto-select GUI, check for Athena default=yes
1480 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1481 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1482 --disable-gtktest Do not try to compile and run a test GTK program
1483 --disable-acl Don't check for ACL support.
1484 --disable-gpm Don't use gpm (Linux mouse daemon).
1485 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1486 --disable-nls Don't support NLS (gettext()).
1488 Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-mac-arch=ARCH current, intel, ppc or both
1492 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1493 --without-local-dir do not search /usr/local for local libraries.
1494 --with-vim-name=NAME what to call the Vim executable
1495 --with-ex-name=NAME what to call the Ex executable
1496 --with-view-name=NAME what to call the View executable
1497 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1498 --with-modified-by=NAME name of who modified a release version
1499 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1500 --with-compiledby=NAME name to show in :version message
1501 --with-plthome=PLTHOME Use PLTHOME.
1502 --with-python-config-dir=PATH Python's config directory
1503 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1504 --with-x use the X Window System
1505 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1506 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1507 --with-gnome-includes=DIR Specify location of GNOME headers
1508 --with-gnome-libs=DIR Specify location of GNOME libs
1509 --with-gnome Specify prefix for GNOME files
1510 --with-motif-lib=STRING Library for Motif
1511 --with-tlib=library terminal library to be used
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CPP C preprocessor
1522 XMKMF Path to xmkmf, Makefile generator for X Window System
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1527 _ACEOF
1528 ac_status=$?
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536 continue
1537 ac_builddir=.
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548 esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1555 case $srcdir in
1556 .) # We are building in place.
1557 ac_srcdir=.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1564 *) # Relative name.
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1574 echo &&
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1577 echo &&
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1579 else
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581 fi || ac_status=$?
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1583 done
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588 cat <<\_ACEOF
1589 configure
1590 generated by GNU Autoconf 2.62
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1599 cat >auto/config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by $as_me, which was
1604 generated by GNU Autoconf 2.62. Invocation command line was
1606 $ $0 $@
1608 _ACEOF
1609 exec 5>>auto/config.log
1611 cat <<_ASUNAME
1612 ## --------- ##
1613 ## Platform. ##
1614 ## --------- ##
1616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1633 _ASUNAME
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 $as_echo "PATH: $as_dir"
1641 done
1642 IFS=$as_save_IFS
1644 } >&5
1646 cat >&5 <<_ACEOF
1649 ## ----------- ##
1650 ## Core tests. ##
1651 ## ----------- ##
1653 _ACEOF
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1661 ac_configure_args=
1662 ac_configure_args0=
1663 ac_configure_args1=
1664 ac_must_keep_next=false
1665 for ac_pass in 1 2
1667 for ac_arg
1669 case $ac_arg in
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1673 continue ;;
1674 *\'*)
1675 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676 esac
1677 case $ac_pass in
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1683 else
1684 case $ac_arg in
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691 esac
1693 -* ) ac_must_keep_next=true ;;
1694 esac
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1698 esac
1699 done
1700 done
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1712 echo
1714 cat <<\_ASBOX
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1718 _ASBOX
1719 echo
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723 eval ac_val=\$$ac_var
1724 case $ac_val in #(
1725 *${as_nl}*)
1726 case $ac_var in #(
1727 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729 esac
1730 case $ac_var in #(
1731 _ | IFS | as_nl) ;; #(
1732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1733 *) $as_unset $ac_var ;;
1734 esac ;;
1735 esac
1736 done
1737 (set) 2>&1 |
1738 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1740 sed -n \
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1743 ;; #(
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 esac |
1748 sort
1750 echo
1752 cat <<\_ASBOX
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1756 _ASBOX
1757 echo
1758 for ac_var in $ac_subst_vars
1760 eval ac_val=\$$ac_var
1761 case $ac_val in
1762 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 esac
1764 $as_echo "$ac_var='\''$ac_val'\''"
1765 done | sort
1766 echo
1768 if test -n "$ac_subst_files"; then
1769 cat <<\_ASBOX
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1773 _ASBOX
1774 echo
1775 for ac_var in $ac_subst_files
1777 eval ac_val=\$$ac_var
1778 case $ac_val in
1779 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780 esac
1781 $as_echo "$ac_var='\''$ac_val'\''"
1782 done | sort
1783 echo
1786 if test -s confdefs.h; then
1787 cat <<\_ASBOX
1788 ## ----------- ##
1789 ## confdefs.h. ##
1790 ## ----------- ##
1791 _ASBOX
1792 echo
1793 cat confdefs.h
1794 echo
1796 test "$ac_signal" != 0 &&
1797 $as_echo "$as_me: caught signal $ac_signal"
1798 $as_echo "$as_me: exit $exit_status"
1799 } >&5
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1802 exit $exit_status
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1806 done
1807 ac_signal=0
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 # Predefined preprocessor variables.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1816 _ACEOF
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1821 _ACEOF
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1826 _ACEOF
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1836 _ACEOF
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer an explicitly selected file to automatically selected ones.
1841 ac_site_file1=NONE
1842 ac_site_file2=NONE
1843 if test -n "$CONFIG_SITE"; then
1844 ac_site_file1=$CONFIG_SITE
1845 elif test "x$prefix" != xNONE; then
1846 ac_site_file1=$prefix/share/config.site
1847 ac_site_file2=$prefix/etc/config.site
1848 else
1849 ac_site_file1=$ac_default_prefix/share/config.site
1850 ac_site_file2=$ac_default_prefix/etc/config.site
1852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1854 test "x$ac_site_file" = xNONE && continue
1855 if test -r "$ac_site_file"; then
1856 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1858 sed 's/^/| /' "$ac_site_file" >&5
1859 . "$ac_site_file"
1861 done
1863 if test -r "$cache_file"; then
1864 # Some versions of bash will fail to source /dev/null (special
1865 # files actually), so we avoid doing that.
1866 if test -f "$cache_file"; then
1867 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868 $as_echo "$as_me: loading cache $cache_file" >&6;}
1869 case $cache_file in
1870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871 *) . "./$cache_file";;
1872 esac
1874 else
1875 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876 $as_echo "$as_me: creating cache $cache_file" >&6;}
1877 >$cache_file
1880 # Check that the precious variables saved in the cache have kept the same
1881 # value.
1882 ac_cache_corrupted=false
1883 for ac_var in $ac_precious_vars; do
1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885 eval ac_new_set=\$ac_env_${ac_var}_set
1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887 eval ac_new_val=\$ac_env_${ac_var}_value
1888 case $ac_old_set,$ac_new_set in
1889 set,)
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1891 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1893 ,set)
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1895 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1897 ,);;
1899 if test "x$ac_old_val" != "x$ac_new_val"; then
1900 # differences in whitespace do not lead to failure.
1901 ac_old_val_w=`echo x $ac_old_val`
1902 ac_new_val_w=`echo x $ac_new_val`
1903 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1906 ac_cache_corrupted=:
1907 else
1908 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1909 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1910 eval $ac_var=\$ac_old_val
1912 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1913 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1914 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1915 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1916 fi;;
1917 esac
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1920 case $ac_new_val in
1921 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1923 esac
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927 esac
1929 done
1930 if $ac_cache_corrupted; then
1931 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1954 ac_ext=c
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1964 cat >>confdefs.h <<\_ACEOF
1965 #define UNIX 1
1966 _ACEOF
1968 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1970 set x ${MAKE-make}
1971 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1972 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1973 $as_echo_n "(cached) " >&6
1974 else
1975 cat >conftest.make <<\_ACEOF
1976 SHELL = /bin/sh
1977 all:
1978 @echo '@@@%%%=$(MAKE)=@@@%%%'
1979 _ACEOF
1980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1981 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1982 *@@@%%%=?*=@@@%%%*)
1983 eval ac_cv_prog_make_${ac_make}_set=yes;;
1985 eval ac_cv_prog_make_${ac_make}_set=no;;
1986 esac
1987 rm -f conftest.make
1989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1990 { $as_echo "$as_me:$LINENO: result: yes" >&5
1991 $as_echo "yes" >&6; }
1992 SET_MAKE=
1993 else
1994 { $as_echo "$as_me:$LINENO: result: no" >&5
1995 $as_echo "no" >&6; }
1996 SET_MAKE="MAKE=${MAKE-make}"
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 $as_echo_n "checking for $ac_word... " >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 $as_echo_n "(cached) " >&6
2012 else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2029 IFS=$as_save_IFS
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2036 $as_echo "$CC" >&6; }
2037 else
2038 { $as_echo "$as_me:$LINENO: result: no" >&5
2039 $as_echo "no" >&6; }
2044 if test -z "$ac_cv_prog_CC"; then
2045 ac_ct_CC=$CC
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 $as_echo_n "checking for $ac_word... " >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 $as_echo_n "(cached) " >&6
2052 else
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2055 else
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2
2067 done
2068 done
2069 IFS=$as_save_IFS
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 $as_echo "$ac_ct_CC" >&6; }
2077 else
2078 { $as_echo "$as_me:$LINENO: result: no" >&5
2079 $as_echo "no" >&6; }
2082 if test "x$ac_ct_CC" = x; then
2083 CC=""
2084 else
2085 case $cross_compiling:$ac_tool_warned in
2086 yes:)
2087 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093 ac_tool_warned=yes ;;
2094 esac
2095 CC=$ac_ct_CC
2097 else
2098 CC="$ac_cv_prog_CC"
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}cc; ac_word=$2
2105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}cc"
2121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2124 done
2125 done
2126 IFS=$as_save_IFS
2130 CC=$ac_cv_prog_CC
2131 if test -n "$CC"; then
2132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2133 $as_echo "$CC" >&6; }
2134 else
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2142 if test -z "$CC"; then
2143 # Extract the first word of "cc", so it can be a program name with args.
2144 set dummy cc; ac_word=$2
2145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 $as_echo_n "(cached) " >&6
2149 else
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2152 else
2153 ac_prog_rejected=no
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155 for as_dir in $PATH
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162 ac_prog_rejected=yes
2163 continue
2165 ac_cv_prog_CC="cc"
2166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2169 done
2170 done
2171 IFS=$as_save_IFS
2173 if test $ac_prog_rejected = yes; then
2174 # We found a bogon in the path, so make sure we never use it.
2175 set dummy $ac_cv_prog_CC
2176 shift
2177 if test $# != 0; then
2178 # We chose a different compiler from the bogus one.
2179 # However, it has the same basename, so the bogon will be chosen
2180 # first if we set CC to just the basename; use the full file name.
2181 shift
2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2187 CC=$ac_cv_prog_CC
2188 if test -n "$CC"; then
2189 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190 $as_echo "$CC" >&6; }
2191 else
2192 { $as_echo "$as_me:$LINENO: result: no" >&5
2193 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 for ac_prog in cl.exe
2202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2208 else
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221 break 2
2223 done
2224 done
2225 IFS=$as_save_IFS
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232 $as_echo "$CC" >&6; }
2233 else
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$CC" && break
2240 done
2242 if test -z "$CC"; then
2243 ac_ct_CC=$CC
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2252 else
2253 if test -n "$ac_ct_CC"; then
2254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2255 else
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_ac_ct_CC="$ac_prog"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2267 done
2268 done
2269 IFS=$as_save_IFS
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276 $as_echo "$ac_ct_CC" >&6; }
2277 else
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2283 test -n "$ac_ct_CC" && break
2284 done
2286 if test "x$ac_ct_CC" = x; then
2287 CC=""
2288 else
2289 case $cross_compiling:$ac_tool_warned in
2290 yes:)
2291 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2292 whose name does not start with the host triplet. If you think this
2293 configuration is useful to you, please write to autoconf@gnu.org." >&5
2294 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2295 whose name does not start with the host triplet. If you think this
2296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2297 ac_tool_warned=yes ;;
2298 esac
2299 CC=$ac_ct_CC
2306 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&5
2308 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2312 # Provide some information about the compiler.
2313 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2314 set X $ac_compile
2315 ac_compiler=$2
2316 { (ac_try="$ac_compiler --version >&5"
2317 case "(($ac_try" in
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2320 esac
2321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323 (eval "$ac_compiler --version >&5") 2>&5
2324 ac_status=$?
2325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try="$ac_compiler -v >&5"
2328 case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331 esac
2332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2333 $as_echo "$ac_try_echo") >&5
2334 (eval "$ac_compiler -v >&5") 2>&5
2335 ac_status=$?
2336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338 { (ac_try="$ac_compiler -V >&5"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler -V >&5") 2>&5
2346 ac_status=$?
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2350 cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2358 main ()
2362 return 0;
2364 _ACEOF
2365 ac_clean_files_save=$ac_clean_files
2366 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2369 # of exeext.
2370 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 $as_echo_n "checking for C compiler default output file name... " >&6; }
2372 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2377 ac_rmfiles=
2378 for ac_file in $ac_files
2380 case $ac_file in
2381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2382 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2383 esac
2384 done
2385 rm -f $ac_rmfiles
2387 if { (ac_try="$ac_link_default"
2388 case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_link_default") 2>&5
2395 ac_status=$?
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2399 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2402 # Autoconf.
2403 for ac_file in $ac_files ''
2405 test -f "$ac_file" || continue
2406 case $ac_file in
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2409 [ab].out )
2410 # We found the default executable, but exeext='' is most
2411 # certainly right.
2412 break;;
2413 *.* )
2414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2415 then :; else
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 # We set ac_cv_exeext here because the later test for it is not
2419 # safe: cross compilers may not add the suffix if given an `-o'
2420 # argument, so we may need to know it at that point already.
2421 # Even if this section looks crufty: it has the advantage of
2422 # actually working.
2423 break;;
2425 break;;
2426 esac
2427 done
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2430 else
2431 ac_file=''
2434 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2435 $as_echo "$ac_file" >&6; }
2436 if test -z "$ac_file"; then
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2441 See \`config.log' for more details." >&5
2442 $as_echo "$as_me: error: C compiler cannot create executables
2443 See \`config.log' for more details." >&2;}
2444 { (exit 77); exit 77; }; }
2447 ac_exeext=$ac_cv_exeext
2449 # Check that the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452 $as_echo_n "checking whether the C compiler works... " >&6; }
2453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454 # If not cross compiling, check that we can run a simple program.
2455 if test "$cross_compiling" != yes; then
2456 if { ac_try='./$ac_file'
2457 { (case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2460 esac
2461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2462 $as_echo "$ac_try_echo") >&5
2463 (eval "$ac_try") 2>&5
2464 ac_status=$?
2465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 cross_compiling=no
2468 else
2469 if test "$cross_compiling" = maybe; then
2470 cross_compiling=yes
2471 else
2472 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \`config.log' for more details." >&5
2475 $as_echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details." >&2;}
2478 { (exit 1); exit 1; }; }
2482 { $as_echo "$as_me:$LINENO: result: yes" >&5
2483 $as_echo "yes" >&6; }
2485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2490 $as_echo_n "checking whether we are cross compiling... " >&6; }
2491 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2492 $as_echo "$cross_compiling" >&6; }
2494 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2495 $as_echo_n "checking for suffix of executables... " >&6; }
2496 if { (ac_try="$ac_link"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_link") 2>&5
2504 ac_status=$?
2505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2510 # `rm'.
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 break;;
2517 * ) break;;
2518 esac
2519 done
2520 else
2521 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2522 See \`config.log' for more details." >&5
2523 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524 See \`config.log' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2528 rm -f conftest$ac_cv_exeext
2529 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530 $as_echo "$ac_cv_exeext" >&6; }
2532 rm -f conftest.$ac_ext
2533 EXEEXT=$ac_cv_exeext
2534 ac_exeext=$EXEEXT
2535 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536 $as_echo_n "checking for suffix of object files... " >&6; }
2537 if test "${ac_cv_objext+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2539 else
2540 cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h. */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2548 main ()
2552 return 0;
2554 _ACEOF
2555 rm -f conftest.o conftest.obj
2556 if { (ac_try="$ac_compile"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2562 $as_echo "$ac_try_echo") >&5
2563 (eval "$ac_compile") 2>&5
2564 ac_status=$?
2565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 for ac_file in conftest.o conftest.obj conftest.*; do
2568 test -f "$ac_file" || continue;
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2572 break;;
2573 esac
2574 done
2575 else
2576 $as_echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2579 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&5
2581 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2588 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 $as_echo "$ac_cv_objext" >&6; }
2590 OBJEXT=$ac_cv_objext
2591 ac_objext=$OBJEXT
2592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595 $as_echo_n "(cached) " >&6
2596 else
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2605 main ()
2607 #ifndef __GNUC__
2608 choke me
2609 #endif
2612 return 0;
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2624 ac_status=$?
2625 grep -v '^ *+' conftest.er1 >conftest.err
2626 rm -f conftest.er1
2627 cat conftest.err >&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.$ac_objext; then
2633 ac_compiler_gnu=yes
2634 else
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2638 ac_compiler_gnu=no
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647 if test $ac_compiler_gnu = yes; then
2648 GCC=yes
2649 else
2650 GCC=
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2658 else
2659 ac_save_c_werror_flag=$ac_c_werror_flag
2660 ac_c_werror_flag=yes
2661 ac_cv_prog_cc_g=no
2662 CFLAGS="-g"
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2671 main ()
2675 return 0;
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685 $as_echo "$ac_try_echo") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2687 ac_status=$?
2688 grep -v '^ *+' conftest.er1 >conftest.err
2689 rm -f conftest.er1
2690 cat conftest.err >&5
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2696 ac_cv_prog_cc_g=yes
2697 else
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2701 CFLAGS=""
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2710 main ()
2714 return 0;
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2726 ac_status=$?
2727 grep -v '^ *+' conftest.er1 >conftest.err
2728 rm -f conftest.er1
2729 cat conftest.err >&5
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && {
2732 test -z "$ac_c_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest.$ac_objext; then
2736 else
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2740 ac_c_werror_flag=$ac_save_c_werror_flag
2741 CFLAGS="-g"
2742 cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h. */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2750 main ()
2754 return 0;
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_g=yes
2776 else
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793 $as_echo "$ac_cv_prog_cc_g" >&6; }
2794 if test "$ac_test_CFLAGS" = set; then
2795 CFLAGS=$ac_save_CFLAGS
2796 elif test $ac_cv_prog_cc_g = yes; then
2797 if test "$GCC" = yes; then
2798 CFLAGS="-g -O2"
2799 else
2800 CFLAGS="-g"
2802 else
2803 if test "$GCC" = yes; then
2804 CFLAGS="-O2"
2805 else
2806 CFLAGS=
2809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811 if test "${ac_cv_prog_cc_c89+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2813 else
2814 ac_cv_prog_cc_c89=no
2815 ac_save_CC=$CC
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h. */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2822 #include <stdarg.h>
2823 #include <stdio.h>
2824 #include <sys/types.h>
2825 #include <sys/stat.h>
2826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2827 struct buf { int x; };
2828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829 static char *e (p, i)
2830 char **p;
2831 int i;
2833 return p[i];
2835 static char *f (char * (*g) (char **, int), char **p, ...)
2837 char *s;
2838 va_list v;
2839 va_start (v,p);
2840 s = g (p, va_arg (v,int));
2841 va_end (v);
2842 return s;
2845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2846 function prototypes and stuff, but not '\xHH' hex character constants.
2847 These don't provoke an error unfortunately, instead are silently treated
2848 as 'x'. The following induces an error, until -std is added to get
2849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2850 array size at least. It's necessary to write '\x00'==0 to get something
2851 that's true only with -std. */
2852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855 inside strings and character constants. */
2856 #define FOO(x) 'x'
2857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2859 int test (int i, double x);
2860 struct s1 {int (*f) (int a);};
2861 struct s2 {int (*f) (double a);};
2862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2863 int argc;
2864 char **argv;
2866 main ()
2868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870 return 0;
2872 _ACEOF
2873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2876 CC="$ac_save_CC $ac_arg"
2877 rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2879 case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882 esac
2883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.$ac_objext; then
2895 ac_cv_prog_cc_c89=$ac_arg
2896 else
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2903 rm -f core conftest.err conftest.$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2905 done
2906 rm -f conftest.$ac_ext
2907 CC=$ac_save_CC
2910 # AC_CACHE_VAL
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2915 xno)
2916 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2922 esac
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2939 CPP=
2941 if test -z "$CPP"; then
2942 if test "${ac_cv_prog_CPP+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2944 else
2945 # Double quotes because CPP needs to be expanded
2946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2948 ac_preproc_ok=false
2949 for ac_c_preproc_warn_flag in '' yes
2951 # Use a header file that comes with gcc, so configuring glibc
2952 # with a fresh cross-compiler works.
2953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954 # <limits.h> exists even on freestanding compilers.
2955 # On the NeXT, cc -E runs the code through the compiler's parser,
2956 # not just through cpp. "Syntax error" is here to catch this case.
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #ifdef __STDC__
2964 # include <limits.h>
2965 #else
2966 # include <assert.h>
2967 #endif
2968 Syntax error
2969 _ACEOF
2970 if { (ac_try="$ac_cpp conftest.$ac_ext"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null && {
2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 }; then
2988 else
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2993 continue
2996 rm -f conftest.err conftest.$ac_ext
2998 # OK, works on sane cases. Now check whether nonexistent headers
2999 # can be detected and how.
3000 cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <ac_nonexistent.h>
3007 _ACEOF
3008 if { (ac_try="$ac_cpp conftest.$ac_ext"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev/null && {
3022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3024 }; then
3025 # Broken: success on invalid input.
3026 continue
3027 else
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3031 # Passes both tests.
3032 ac_preproc_ok=:
3033 break
3036 rm -f conftest.err conftest.$ac_ext
3038 done
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.$ac_ext
3041 if $ac_preproc_ok; then
3042 break
3045 done
3046 ac_cv_prog_CPP=$CPP
3049 CPP=$ac_cv_prog_CPP
3050 else
3051 ac_cv_prog_CPP=$CPP
3053 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3054 $as_echo "$CPP" >&6; }
3055 ac_preproc_ok=false
3056 for ac_c_preproc_warn_flag in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075 Syntax error
3076 _ACEOF
3077 if { (ac_try="$ac_cpp conftest.$ac_ext"
3078 case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null && {
3091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 }; then
3095 else
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3100 continue
3103 rm -f conftest.err conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether nonexistent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3114 _ACEOF
3115 if { (ac_try="$ac_cpp conftest.$ac_ext"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3121 $as_echo "$ac_try_echo") >&5
3122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev/null && {
3129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3130 test ! -s conftest.err
3131 }; then
3132 # Broken: success on invalid input.
3133 continue
3134 else
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 # Passes both tests.
3139 ac_preproc_ok=:
3140 break
3143 rm -f conftest.err conftest.$ac_ext
3145 done
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then
3150 else
3151 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3167 if test "${ac_cv_path_GREP+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -z "$GREP"; then
3171 ac_path_GREP_found=false
3172 # Loop through the user's path and test for each of PROGNAME-LIST
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_prog in grep ggrep; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3182 # Check for GNU ac_path_GREP and select it if it is found.
3183 # Check for GNU $ac_path_GREP
3184 case `"$ac_path_GREP" --version 2>&1` in
3185 *GNU*)
3186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3188 ac_count=0
3189 $as_echo_n 0123456789 >"conftest.in"
3190 while :
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 $as_echo 'GREP' >> "conftest.nl"
3196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3198 ac_count=`expr $ac_count + 1`
3199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_GREP="$ac_path_GREP"
3202 ac_path_GREP_max=$ac_count
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3206 done
3207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3208 esac
3210 $ac_path_GREP_found && break 3
3211 done
3212 done
3213 done
3214 IFS=$as_save_IFS
3215 if test -z "$ac_cv_path_GREP"; then
3216 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3217 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3218 { (exit 1); exit 1; }; }
3220 else
3221 ac_cv_path_GREP=$GREP
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3226 $as_echo "$ac_cv_path_GREP" >&6; }
3227 GREP="$ac_cv_path_GREP"
3230 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3231 $as_echo_n "checking for egrep... " >&6; }
3232 if test "${ac_cv_path_EGREP+set}" = set; then
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3236 then ac_cv_path_EGREP="$GREP -E"
3237 else
3238 if test -z "$EGREP"; then
3239 ac_path_EGREP_found=false
3240 # Loop through the user's path and test for each of PROGNAME-LIST
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_prog in egrep; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3250 # Check for GNU ac_path_EGREP and select it if it is found.
3251 # Check for GNU $ac_path_EGREP
3252 case `"$ac_path_EGREP" --version 2>&1` in
3253 *GNU*)
3254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3256 ac_count=0
3257 $as_echo_n 0123456789 >"conftest.in"
3258 while :
3260 cat "conftest.in" "conftest.in" >"conftest.tmp"
3261 mv "conftest.tmp" "conftest.in"
3262 cp "conftest.in" "conftest.nl"
3263 $as_echo 'EGREP' >> "conftest.nl"
3264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3266 ac_count=`expr $ac_count + 1`
3267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268 # Best one so far, save it but keep looking for a better one
3269 ac_cv_path_EGREP="$ac_path_EGREP"
3270 ac_path_EGREP_max=$ac_count
3272 # 10*(2^10) chars as input seems more than enough
3273 test $ac_count -gt 10 && break
3274 done
3275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3276 esac
3278 $ac_path_EGREP_found && break 3
3279 done
3280 done
3281 done
3282 IFS=$as_save_IFS
3283 if test -z "$ac_cv_path_EGREP"; then
3284 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3285 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3286 { (exit 1); exit 1; }; }
3288 else
3289 ac_cv_path_EGREP=$EGREP
3294 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3295 $as_echo "$ac_cv_path_EGREP" >&6; }
3296 EGREP="$ac_cv_path_EGREP"
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3306 _ACEOF
3307 rm -f conftest*
3308 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3309 $as_echo_n "checking for library containing strerror... " >&6; }
3310 if test "${ac_cv_search_strerror+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3312 else
3313 ac_func_search_save_LIBS=$LIBS
3314 cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h. */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 /* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
3324 #ifdef __cplusplus
3325 extern "C"
3326 #endif
3327 char strerror ();
3329 main ()
3331 return strerror ();
3333 return 0;
3335 _ACEOF
3336 for ac_lib in '' cposix; do
3337 if test -z "$ac_lib"; then
3338 ac_res="none required"
3339 else
3340 ac_res=-l$ac_lib
3341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3343 rm -f conftest.$ac_objext conftest$ac_exeext
3344 if { (ac_try="$ac_link"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_link") 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest$ac_exeext && {
3361 test "$cross_compiling" = yes ||
3362 $as_test_x conftest$ac_exeext
3363 }; then
3364 ac_cv_search_strerror=$ac_res
3365 else
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -rf conftest.dSYM
3373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3374 conftest$ac_exeext
3375 if test "${ac_cv_search_strerror+set}" = set; then
3376 break
3378 done
3379 if test "${ac_cv_search_strerror+set}" = set; then
3381 else
3382 ac_cv_search_strerror=no
3384 rm conftest.$ac_ext
3385 LIBS=$ac_func_search_save_LIBS
3387 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3388 $as_echo "$ac_cv_search_strerror" >&6; }
3389 ac_res=$ac_cv_search_strerror
3390 if test "$ac_res" != no; then
3391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3394 for ac_prog in gawk mawk nawk awk
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_AWK+set}" = set; then
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$AWK"; then
3404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_AWK="$ac_prog"
3414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3419 IFS=$as_save_IFS
3423 AWK=$ac_cv_prog_AWK
3424 if test -n "$AWK"; then
3425 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3426 $as_echo "$AWK" >&6; }
3427 else
3428 { $as_echo "$as_me:$LINENO: result: no" >&5
3429 $as_echo "no" >&6; }
3433 test -n "$AWK" && break
3434 done
3436 # Extract the first word of "strip", so it can be a program name with args.
3437 set dummy strip; ac_word=$2
3438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_STRIP+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$STRIP"; then
3444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_STRIP="strip"
3454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3461 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3464 STRIP=$ac_cv_prog_STRIP
3465 if test -n "$STRIP"; then
3466 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3467 $as_echo "$STRIP" >&6; }
3468 else
3469 { $as_echo "$as_me:$LINENO: result: no" >&5
3470 $as_echo "no" >&6; }
3477 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 $as_echo_n "checking for ANSI C header files... " >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 $as_echo_n "(cached) " >&6
3481 else
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #include <stdlib.h>
3489 #include <stdarg.h>
3490 #include <string.h>
3491 #include <float.h>
3494 main ()
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3508 $as_echo "$ac_try_echo") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.$ac_objext; then
3519 ac_cv_header_stdc=yes
3520 else
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ac_cv_header_stdc=no
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 if test $ac_cv_header_stdc = yes; then
3530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531 cat >conftest.$ac_ext <<_ACEOF
3532 /* confdefs.h. */
3533 _ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3537 #include <string.h>
3539 _ACEOF
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "memchr" >/dev/null 2>&1; then
3543 else
3544 ac_cv_header_stdc=no
3546 rm -f conftest*
3550 if test $ac_cv_header_stdc = yes; then
3551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <stdlib.h>
3560 _ACEOF
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 $EGREP "free" >/dev/null 2>&1; then
3564 else
3565 ac_cv_header_stdc=no
3567 rm -f conftest*
3571 if test $ac_cv_header_stdc = yes; then
3572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3573 if test "$cross_compiling" = yes; then
3575 else
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3582 #include <ctype.h>
3583 #include <stdlib.h>
3584 #if ((' ' & 0x0FF) == 0x020)
3585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587 #else
3588 # define ISLOWER(c) \
3589 (('a' <= (c) && (c) <= 'i') \
3590 || ('j' <= (c) && (c) <= 'r') \
3591 || ('s' <= (c) && (c) <= 'z'))
3592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3593 #endif
3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3597 main ()
3599 int i;
3600 for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i))
3602 || toupper (i) != TOUPPER (i))
3603 return 2;
3604 return 0;
3606 _ACEOF
3607 rm -f conftest$ac_exeext
3608 if { (ac_try="$ac_link"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615 (eval "$ac_link") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3619 { (case "(($ac_try" in
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_try") 2>&5
3626 ac_status=$?
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3630 else
3631 $as_echo "$as_me: program exited with status $ac_status" >&5
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 ( exit $ac_status )
3636 ac_cv_header_stdc=no
3638 rm -rf conftest.dSYM
3639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3646 $as_echo "$ac_cv_header_stdc" >&6; }
3647 if test $ac_cv_header_stdc = yes; then
3649 cat >>confdefs.h <<\_ACEOF
3650 #define STDC_HEADERS 1
3651 _ACEOF
3655 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3656 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3657 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3659 else
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <sys/types.h>
3667 #include <sys/wait.h>
3668 #ifndef WEXITSTATUS
3669 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3670 #endif
3671 #ifndef WIFEXITED
3672 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3673 #endif
3676 main ()
3678 int s;
3679 wait (&s);
3680 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3682 return 0;
3684 _ACEOF
3685 rm -f conftest.$ac_objext
3686 if { (ac_try="$ac_compile"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3692 $as_echo "$ac_try_echo") >&5
3693 (eval "$ac_compile") 2>conftest.er1
3694 ac_status=$?
3695 grep -v '^ *+' conftest.er1 >conftest.err
3696 rm -f conftest.er1
3697 cat conftest.err >&5
3698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest.$ac_objext; then
3703 ac_cv_header_sys_wait_h=yes
3704 else
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_header_sys_wait_h=no
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3714 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3715 if test $ac_cv_header_sys_wait_h = yes; then
3717 cat >>confdefs.h <<\_ACEOF
3718 #define HAVE_SYS_WAIT_H 1
3719 _ACEOF
3724 if test -z "$CFLAGS"; then
3725 CFLAGS="-O"
3726 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3728 if test "$GCC" = yes; then
3729 gccversion=`"$CC" -dumpversion`
3730 if test "x$gccversion" = "x"; then
3731 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3733 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3734 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3735 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3736 else
3737 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3738 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3739 CFLAGS="$CFLAGS -fno-strength-reduce"
3744 if test "$cross_compiling" = yes; then
3745 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3746 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3749 test "$GCC" = yes && CPP_MM=M;
3751 if test -f ./toolcheck; then
3752 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3753 $as_echo "$as_me: checking for buggy tools..." >&6;}
3754 sh ./toolcheck 1>&6
3757 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3759 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3760 $as_echo_n "checking for BeOS... " >&6; }
3761 case `uname` in
3762 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3763 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3764 $as_echo "yes" >&6; };;
3765 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3766 $as_echo "no" >&6; };;
3767 esac
3769 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3770 $as_echo_n "checking for QNX... " >&6; }
3771 case `uname` in
3772 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3773 test -z "$with_x" && with_x=no
3774 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3775 $as_echo "yes" >&6; };;
3776 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3777 $as_echo "no" >&6; };;
3778 esac
3780 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3781 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3782 if test "`(uname) 2>/dev/null`" = Darwin; then
3783 { $as_echo "$as_me:$LINENO: result: yes" >&5
3784 $as_echo "yes" >&6; }
3786 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3787 $as_echo_n "checking --disable-darwin argument... " >&6; }
3788 # Check whether --enable-darwin was given.
3789 if test "${enable_darwin+set}" = set; then
3790 enableval=$enable_darwin;
3791 else
3792 enable_darwin="yes"
3795 if test "$enable_darwin" = "yes"; then
3796 { $as_echo "$as_me:$LINENO: result: no" >&5
3797 $as_echo "no" >&6; }
3798 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3799 $as_echo_n "checking if Darwin files are there... " >&6; }
3800 if test -f os_macosx.c; then
3801 { $as_echo "$as_me:$LINENO: result: yes" >&5
3802 $as_echo "yes" >&6; }
3803 else
3804 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3805 $as_echo "no, Darwin support disabled" >&6; }
3806 enable_darwin=no
3808 else
3809 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3810 $as_echo "yes, Darwin support excluded" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3814 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3816 # Check whether --with-mac-arch was given.
3817 if test "${with_mac_arch+set}" = set; then
3818 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3819 $as_echo "$MACARCH" >&6; }
3820 else
3821 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3822 $as_echo "defaulting to $MACARCH" >&6; }
3826 if test "x$MACARCH" = "xboth"; then
3827 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3828 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3829 save_cppflags="$CPPFLAGS"
3830 save_cflags="$CFLAGS"
3831 save_ldflags="$LDFLAGS"
3832 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.$ac_objext conftest$ac_exeext
3849 if { (ac_try="$ac_link"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3855 $as_echo "$ac_try_echo") >&5
3856 (eval "$ac_link") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest$ac_exeext && {
3866 test "$cross_compiling" = yes ||
3867 $as_test_x conftest$ac_exeext
3868 }; then
3869 { $as_echo "$as_me:$LINENO: result: found" >&5
3870 $as_echo "found" >&6; }
3871 else
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 { $as_echo "$as_me:$LINENO: result: not found" >&5
3876 $as_echo "not found" >&6; }
3877 CFLAGS="$save_cflags"
3878 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3879 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3880 CPPFLAGS="$CPPFLAGS -arch i386"
3881 LDFLAGS="$save_ldflags -arch i386"
3882 cat >conftest.$ac_ext <<_ACEOF
3883 /* confdefs.h. */
3884 _ACEOF
3885 cat confdefs.h >>conftest.$ac_ext
3886 cat >>conftest.$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3890 main ()
3894 return 0;
3896 _ACEOF
3897 rm -f conftest.$ac_objext conftest$ac_exeext
3898 if { (ac_try="$ac_link"
3899 case "(($ac_try" in
3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3902 esac
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_link") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest$ac_exeext && {
3915 test "$cross_compiling" = yes ||
3916 $as_test_x conftest$ac_exeext
3917 }; then
3918 { $as_echo "$as_me:$LINENO: result: yes" >&5
3919 $as_echo "yes" >&6; }; MACARCH="intel"
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 { $as_echo "$as_me:$LINENO: result: no" >&5
3925 $as_echo "no" >&6; }
3926 MACARCH="ppc"
3927 CPPFLAGS="$save_cppflags -arch ppc"
3928 LDFLAGS="$save_ldflags -arch ppc"
3931 rm -rf conftest.dSYM
3932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3933 conftest$ac_exeext conftest.$ac_ext
3936 rm -rf conftest.dSYM
3937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938 conftest$ac_exeext conftest.$ac_ext
3939 elif test "x$MACARCH" = "xintel"; then
3940 CPPFLAGS="$CPPFLAGS -arch intel"
3941 LDFLAGS="$LDFLAGS -arch intel"
3942 elif test "x$MACARCH" = "xppc"; then
3943 CPPFLAGS="$CPPFLAGS -arch ppc"
3944 LDFLAGS="$LDFLAGS -arch ppc"
3947 if test "$enable_darwin" = "yes"; then
3948 MACOSX=yes
3949 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3950 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3951 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3952 if test "x$MACARCH" = "xboth"; then
3953 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3954 else
3955 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969 inttypes.h stdint.h unistd.h
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 $as_echo_n "checking for $ac_header... " >&6; }
3974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3975 $as_echo_n "(cached) " >&6
3976 else
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 $ac_includes_default
3985 #include <$ac_header>
3986 _ACEOF
3987 rm -f conftest.$ac_objext
3988 if { (ac_try="$ac_compile"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3994 $as_echo "$ac_try_echo") >&5
3995 (eval "$ac_compile") 2>conftest.er1
3996 ac_status=$?
3997 grep -v '^ *+' conftest.er1 >conftest.err
3998 rm -f conftest.er1
3999 cat conftest.err >&5
4000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && {
4002 test -z "$ac_c_werror_flag" ||
4003 test ! -s conftest.err
4004 } && test -s conftest.$ac_objext; then
4005 eval "$as_ac_Header=yes"
4006 else
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 eval "$as_ac_Header=no"
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_res=`eval 'as_val=${'$as_ac_Header'}
4016 $as_echo "$as_val"'`
4017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4018 $as_echo "$ac_res" >&6; }
4019 if test `eval 'as_val=${'$as_ac_Header'}
4020 $as_echo "$as_val"'` = yes; then
4021 cat >>confdefs.h <<_ACEOF
4022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4023 _ACEOF
4027 done
4030 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4031 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4032 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4033 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4034 $as_echo_n "(cached) " >&6
4036 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4037 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4038 else
4039 # Is the header compilable?
4040 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4041 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4049 #include <Carbon/Carbon.h>
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (ac_try="$ac_compile"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058 $as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 ac_header_compiler=yes
4070 else
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_header_compiler=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4079 $as_echo "$ac_header_compiler" >&6; }
4081 # Is the header present?
4082 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4083 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h. */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <Carbon/Carbon.h>
4091 _ACEOF
4092 if { (ac_try="$ac_cpp conftest.$ac_ext"
4093 case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 }; then
4109 ac_header_preproc=yes
4110 else
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_header_preproc=no
4117 rm -f conftest.err conftest.$ac_ext
4118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119 $as_echo "$ac_header_preproc" >&6; }
4121 # So? What about this header?
4122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4123 yes:no: )
4124 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4125 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4127 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4128 ac_header_preproc=yes
4130 no:yes:* )
4131 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4132 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4139 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4140 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4141 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4142 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4145 esac
4146 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4147 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4148 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4154 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4157 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4158 CARBON=yes
4162 if test "x$CARBON" = "xyes"; then
4163 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
4164 with_x=no
4169 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4170 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4173 else
4174 { $as_echo "$as_me:$LINENO: result: no" >&5
4175 $as_echo "no" >&6; }
4181 if test "$cross_compiling" = no; then
4182 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4183 $as_echo_n "checking --with-local-dir argument... " >&6; }
4184 have_local_include=''
4185 have_local_lib=''
4187 # Check whether --with-local-dir was given.
4188 if test "${with_local_dir+set}" = set; then
4189 withval=$with_local_dir;
4190 local_dir="$withval"
4191 case "$withval" in
4192 */*) ;;
4194 # avoid adding local dir to LDFLAGS and CPPFLAGS
4195 have_local_dir=yes
4196 have_local_lib=yes
4198 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4199 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4200 { (exit 1); exit 1; }; } ;;
4201 esac
4202 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4203 $as_echo "$local_dir" >&6; }
4205 else
4207 local_dir=/usr/local
4208 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4209 $as_echo "Defaulting to $local_dir" >&6; }
4213 if test "$GCC" = yes -a "$local_dir" != no; then
4214 echo 'void f(){}' > conftest.c
4215 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4216 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4217 rm -f conftest.c conftest.o
4219 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4220 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4221 if test "$tt" = "$LDFLAGS"; then
4222 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4225 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4226 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4227 if test "$tt" = "$CPPFLAGS"; then
4228 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4233 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4234 $as_echo_n "checking --with-vim-name argument... " >&6; }
4236 # Check whether --with-vim-name was given.
4237 if test "${with_vim_name+set}" = set; then
4238 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4239 $as_echo "$VIMNAME" >&6; }
4240 else
4241 VIMNAME="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4242 $as_echo "Defaulting to $VIMNAME" >&6; }
4246 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4247 $as_echo_n "checking --with-ex-name argument... " >&6; }
4249 # Check whether --with-ex-name was given.
4250 if test "${with_ex_name+set}" = set; then
4251 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4252 $as_echo "$EXNAME" >&6; }
4253 else
4254 EXNAME="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4255 $as_echo "Defaulting to ex" >&6; }
4259 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4260 $as_echo_n "checking --with-view-name argument... " >&6; }
4262 # Check whether --with-view-name was given.
4263 if test "${with_view_name+set}" = set; then
4264 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4265 $as_echo "$VIEWNAME" >&6; }
4266 else
4267 VIEWNAME="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4268 $as_echo "Defaulting to view" >&6; }
4273 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4274 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4276 # Check whether --with-global-runtime was given.
4277 if test "${with_global_runtime+set}" = set; then
4278 withval=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4279 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4280 #define RUNTIME_GLOBAL "$withval"
4281 _ACEOF
4283 else
4284 { $as_echo "$as_me:$LINENO: result: no" >&5
4285 $as_echo "no" >&6; }
4289 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4290 $as_echo_n "checking --with-modified-by argument... " >&6; }
4292 # Check whether --with-modified-by was given.
4293 if test "${with_modified_by+set}" = set; then
4294 withval=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4295 $as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4296 #define MODIFIED_BY "$withval"
4297 _ACEOF
4299 else
4300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4305 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4306 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4307 cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h. */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4315 main ()
4317 /* TryCompile function for CharSet.
4318 Treat any failure as ASCII for compatibility with existing art.
4319 Use compile-time rather than run-time tests for cross-compiler
4320 tolerance. */
4321 #if '0'!=240
4322 make an error "Character set is not EBCDIC"
4323 #endif
4325 return 0;
4327 _ACEOF
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4330 case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335 $as_echo "$ac_try_echo") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4337 ac_status=$?
4338 grep -v '^ *+' conftest.er1 >conftest.err
4339 rm -f conftest.er1
4340 cat conftest.err >&5
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 # TryCompile action if true
4347 cf_cv_ebcdic=yes
4348 else
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 # TryCompile action if false
4353 cf_cv_ebcdic=no
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 # end of TryCompile ])
4358 # end of CacheVal CvEbcdic
4359 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4360 $as_echo "$cf_cv_ebcdic" >&6; }
4361 case "$cf_cv_ebcdic" in #(vi
4362 yes) cat >>confdefs.h <<\_ACEOF
4363 #define EBCDIC 1
4364 _ACEOF
4366 line_break='"\\n"'
4368 *) line_break='"\\012"';;
4369 esac
4372 if test "$cf_cv_ebcdic" = "yes"; then
4373 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4374 $as_echo_n "checking for OS/390 Unix... " >&6; }
4375 case `uname` in
4376 OS/390) OS390Unix="yes";
4377 if test "$CC" = "cc"; then
4378 ccm="$_CC_CCMODE"
4379 ccn="CC"
4380 else
4381 if test "$CC" = "c89"; then
4382 ccm="$_CC_C89MODE"
4383 ccn="C89"
4384 else
4385 ccm=1
4388 if test "$ccm" != "1"; then
4389 echo ""
4390 echo "------------------------------------------"
4391 echo " On OS/390 Unix, the environment variable"
4392 echo " __CC_${ccn}MODE must be set to \"1\"!"
4393 echo " Do:"
4394 echo " export _CC_${ccn}MODE=1"
4395 echo " and then call configure again."
4396 echo "------------------------------------------"
4397 exit 1
4399 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4400 { $as_echo "$as_me:$LINENO: result: yes" >&5
4401 $as_echo "yes" >&6; }
4403 *) OS390Unix="no";
4404 { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4407 esac
4410 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4411 $as_echo_n "checking --disable-selinux argument... " >&6; }
4412 # Check whether --enable-selinux was given.
4413 if test "${enable_selinux+set}" = set; then
4414 enableval=$enable_selinux;
4415 else
4416 enable_selinux="yes"
4419 if test "$enable_selinux" = "yes"; then
4420 { $as_echo "$as_me:$LINENO: result: no" >&5
4421 $as_echo "no" >&6; }
4422 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4423 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4424 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4426 else
4427 ac_check_lib_save_LIBS=$LIBS
4428 LIBS="-lselinux $LIBS"
4429 cat >conftest.$ac_ext <<_ACEOF
4430 /* confdefs.h. */
4431 _ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4436 /* Override any GCC internal prototype to avoid an error.
4437 Use char because int might match the return type of a GCC
4438 builtin and then its argument prototype would still apply. */
4439 #ifdef __cplusplus
4440 extern "C"
4441 #endif
4442 char is_selinux_enabled ();
4444 main ()
4446 return is_selinux_enabled ();
4448 return 0;
4450 _ACEOF
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (ac_try="$ac_link"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_link") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest$ac_exeext && {
4469 test "$cross_compiling" = yes ||
4470 $as_test_x conftest$ac_exeext
4471 }; then
4472 ac_cv_lib_selinux_is_selinux_enabled=yes
4473 else
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_lib_selinux_is_selinux_enabled=no
4480 rm -rf conftest.dSYM
4481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4482 conftest$ac_exeext conftest.$ac_ext
4483 LIBS=$ac_check_lib_save_LIBS
4485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4486 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4487 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4488 LIBS="$LIBS -lselinux"
4489 cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_SELINUX 1
4491 _ACEOF
4495 else
4496 { $as_echo "$as_me:$LINENO: result: yes" >&5
4497 $as_echo "yes" >&6; }
4501 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4502 $as_echo_n "checking --with-features argument... " >&6; }
4504 # Check whether --with-features was given.
4505 if test "${with_features+set}" = set; then
4506 withval=$with_features; features="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4507 $as_echo "$features" >&6; }
4508 else
4509 features="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4510 $as_echo "Defaulting to normal" >&6; }
4514 dovimdiff=""
4515 dogvimdiff=""
4516 case "$features" in
4517 tiny) cat >>confdefs.h <<\_ACEOF
4518 #define FEAT_TINY 1
4519 _ACEOF
4521 small) cat >>confdefs.h <<\_ACEOF
4522 #define FEAT_SMALL 1
4523 _ACEOF
4525 normal) cat >>confdefs.h <<\_ACEOF
4526 #define FEAT_NORMAL 1
4527 _ACEOF
4528 dovimdiff="installvimdiff";
4529 dogvimdiff="installgvimdiff" ;;
4530 big) cat >>confdefs.h <<\_ACEOF
4531 #define FEAT_BIG 1
4532 _ACEOF
4533 dovimdiff="installvimdiff";
4534 dogvimdiff="installgvimdiff" ;;
4535 huge) cat >>confdefs.h <<\_ACEOF
4536 #define FEAT_HUGE 1
4537 _ACEOF
4538 dovimdiff="installvimdiff";
4539 dogvimdiff="installgvimdiff" ;;
4540 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4541 $as_echo "Sorry, $features is not supported" >&6; } ;;
4542 esac
4547 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4548 $as_echo_n "checking --with-compiledby argument... " >&6; }
4550 # Check whether --with-compiledby was given.
4551 if test "${with_compiledby+set}" = set; then
4552 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4553 $as_echo "$withval" >&6; }
4554 else
4555 compiledby=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4561 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4562 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4563 # Check whether --enable-xsmp was given.
4564 if test "${enable_xsmp+set}" = set; then
4565 enableval=$enable_xsmp;
4566 else
4567 enable_xsmp="yes"
4571 if test "$enable_xsmp" = "yes"; then
4572 { $as_echo "$as_me:$LINENO: result: no" >&5
4573 $as_echo "no" >&6; }
4574 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4575 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4576 # Check whether --enable-xsmp-interact was given.
4577 if test "${enable_xsmp_interact+set}" = set; then
4578 enableval=$enable_xsmp_interact;
4579 else
4580 enable_xsmp_interact="yes"
4583 if test "$enable_xsmp_interact" = "yes"; then
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4586 cat >>confdefs.h <<\_ACEOF
4587 #define USE_XSMP_INTERACT 1
4588 _ACEOF
4590 else
4591 { $as_echo "$as_me:$LINENO: result: yes" >&5
4592 $as_echo "yes" >&6; }
4594 else
4595 { $as_echo "$as_me:$LINENO: result: yes" >&5
4596 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4600 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4601 # Check whether --enable-mzschemeinterp was given.
4602 if test "${enable_mzschemeinterp+set}" = set; then
4603 enableval=$enable_mzschemeinterp;
4604 else
4605 enable_mzschemeinterp="no"
4608 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4609 $as_echo "$enable_mzschemeinterp" >&6; }
4611 if test "$enable_mzschemeinterp" = "yes"; then
4614 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4615 $as_echo_n "checking --with-plthome argument... " >&6; }
4617 # Check whether --with-plthome was given.
4618 if test "${with_plthome+set}" = set; then
4619 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4620 $as_echo "$with_plthome" >&6; }
4621 else
4622 with_plthome="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4623 $as_echo "\"no\"" >&6; }
4627 if test "X$with_plthome" != "X"; then
4628 vi_cv_path_mzscheme_pfx="$with_plthome"
4629 else
4630 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4631 $as_echo_n "checking PLTHOME environment var... " >&6; }
4632 if test "X$PLTHOME" != "X"; then
4633 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4634 $as_echo "\"$PLTHOME\"" >&6; }
4635 vi_cv_path_mzscheme_pfx="$PLTHOME"
4636 else
4637 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4638 $as_echo "\"not set\"" >&6; }
4639 # Extract the first word of "mzscheme", so it can be a program name with args.
4640 set dummy mzscheme; ac_word=$2
4641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4645 else
4646 case $vi_cv_path_mzscheme in
4647 [\\/]* | ?:[\\/]*)
4648 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4667 esac
4669 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4670 if test -n "$vi_cv_path_mzscheme"; then
4671 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4672 $as_echo "$vi_cv_path_mzscheme" >&6; }
4673 else
4674 { $as_echo "$as_me:$LINENO: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test "X$vi_cv_path_mzscheme" != "X"; then
4681 lsout=`ls -l $vi_cv_path_mzscheme`
4682 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4683 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4687 if test "X$vi_cv_path_mzscheme" != "X"; then
4688 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4689 $as_echo_n "checking MzScheme install prefix... " >&6; }
4690 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4691 $as_echo_n "(cached) " >&6
4692 else
4693 vi_cv_path_mzscheme_pfx=`
4694 ${vi_cv_path_mzscheme} -evm \
4695 "(display (simplify-path \
4696 (build-path (call-with-values \
4697 (lambda () (split-path (find-system-path (quote exec-file)))) \
4698 (lambda (base name must-be-dir?) base)) (quote up))))"`
4700 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4701 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4702 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4707 SCHEME_INC=
4708 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4709 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4710 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4711 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4712 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4713 $as_echo "\"yes\"" >&6; }
4714 else
4715 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4716 $as_echo "\"no\"" >&6; }
4717 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4718 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4719 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4720 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4721 $as_echo "\"yes\"" >&6; }
4722 SCHEME_INC=/plt
4723 else
4724 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4725 $as_echo "\"no\"" >&6; }
4726 vi_cv_path_mzscheme_pfx=
4731 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4732 if test "x$MACOSX" = "xyes"; then
4733 MZSCHEME_LIBS="-framework PLT_MzScheme"
4734 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4735 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4736 else
4737 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4738 if test "$GCC" = yes; then
4739 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4740 elif test "`(uname) 2>/dev/null`" = SunOS &&
4741 uname -r | grep '^5' >/dev/null; then
4742 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4745 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4746 SCHEME_COLLECTS=lib/plt/
4748 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4749 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4750 MZSCHEME_SRC="if_mzsch.c"
4751 MZSCHEME_OBJ="objects/if_mzsch.o"
4752 MZSCHEME_PRO="if_mzsch.pro"
4753 cat >>confdefs.h <<\_ACEOF
4754 #define FEAT_MZSCHEME 1
4755 _ACEOF
4766 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4767 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4768 # Check whether --enable-perlinterp was given.
4769 if test "${enable_perlinterp+set}" = set; then
4770 enableval=$enable_perlinterp;
4771 else
4772 enable_perlinterp="no"
4775 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4776 $as_echo "$enable_perlinterp" >&6; }
4777 if test "$enable_perlinterp" = "yes"; then
4779 # Extract the first word of "perl", so it can be a program name with args.
4780 set dummy perl; ac_word=$2
4781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4785 else
4786 case $vi_cv_path_perl in
4787 [\\/]* | ?:[\\/]*)
4788 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4794 IFS=$as_save_IFS
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 break 2
4802 done
4803 done
4804 IFS=$as_save_IFS
4807 esac
4809 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4810 if test -n "$vi_cv_path_perl"; then
4811 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4812 $as_echo "$vi_cv_path_perl" >&6; }
4813 else
4814 { $as_echo "$as_me:$LINENO: result: no" >&5
4815 $as_echo "no" >&6; }
4819 if test "X$vi_cv_path_perl" != "X"; then
4820 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4821 $as_echo_n "checking Perl version... " >&6; }
4822 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4823 eval `$vi_cv_path_perl -V:usethreads`
4824 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4825 badthreads=no
4826 else
4827 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4828 eval `$vi_cv_path_perl -V:use5005threads`
4829 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4830 badthreads=no
4831 else
4832 badthreads=yes
4833 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4834 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4836 else
4837 badthreads=yes
4838 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4839 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4842 if test $badthreads = no; then
4843 { $as_echo "$as_me:$LINENO: result: OK" >&5
4844 $as_echo "OK" >&6; }
4845 eval `$vi_cv_path_perl -V:shrpenv`
4846 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4847 shrpenv=""
4849 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4851 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4852 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4853 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4854 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4855 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4856 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4857 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4859 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4860 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4861 cflags_save=$CFLAGS
4862 libs_save=$LIBS
4863 ldflags_save=$LDFLAGS
4864 CFLAGS="$CFLAGS $perlcppflags"
4865 LIBS="$LIBS $perllibs"
4866 LDFLAGS="$perlldflags $LDFLAGS"
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4875 main ()
4879 return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4887 esac
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_link") 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest$ac_exeext && {
4900 test "$cross_compiling" = yes ||
4901 $as_test_x conftest$ac_exeext
4902 }; then
4903 { $as_echo "$as_me:$LINENO: result: yes" >&5
4904 $as_echo "yes" >&6; }; perl_ok=yes
4905 else
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4910 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4913 rm -rf conftest.dSYM
4914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4915 conftest$ac_exeext conftest.$ac_ext
4916 CFLAGS=$cflags_save
4917 LIBS=$libs_save
4918 LDFLAGS=$ldflags_save
4919 if test $perl_ok = yes; then
4920 if test "X$perlcppflags" != "X"; then
4921 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4923 if test "X$perlldflags" != "X"; then
4924 LDFLAGS="$perlldflags $LDFLAGS"
4926 PERL_LIBS=$perllibs
4927 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4928 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4929 PERL_PRO="if_perl.pro if_perlsfio.pro"
4930 cat >>confdefs.h <<\_ACEOF
4931 #define FEAT_PERL 1
4932 _ACEOF
4936 else
4937 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4938 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4942 if test "x$MACOSX" = "xyes"; then
4943 dir=/System/Library/Perl
4944 darwindir=$dir/darwin
4945 if test -d $darwindir; then
4946 PERL=/usr/bin/perl
4947 else
4948 dir=/System/Library/Perl/5.8.1
4949 darwindir=$dir/darwin-thread-multi-2level
4950 if test -d $darwindir; then
4951 PERL=/usr/bin/perl
4954 if test -n "$PERL"; then
4955 PERL_DIR="$dir"
4956 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4957 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4958 PERL_LIBS="-L$darwindir/CORE -lperl"
4969 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4970 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4971 # Check whether --enable-pythoninterp was given.
4972 if test "${enable_pythoninterp+set}" = set; then
4973 enableval=$enable_pythoninterp;
4974 else
4975 enable_pythoninterp="no"
4978 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4979 $as_echo "$enable_pythoninterp" >&6; }
4980 if test "$enable_pythoninterp" = "yes"; then
4981 # Extract the first word of "python", so it can be a program name with args.
4982 set dummy python; ac_word=$2
4983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $vi_cv_path_python in
4989 [\\/]* | ?:[\\/]*)
4990 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5009 esac
5011 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5012 if test -n "$vi_cv_path_python"; then
5013 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5014 $as_echo "$vi_cv_path_python" >&6; }
5015 else
5016 { $as_echo "$as_me:$LINENO: result: no" >&5
5017 $as_echo "no" >&6; }
5021 if test "X$vi_cv_path_python" != "X"; then
5023 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5024 $as_echo_n "checking Python version... " >&6; }
5025 if test "${vi_cv_var_python_version+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5027 else
5028 vi_cv_var_python_version=`
5029 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5032 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5033 $as_echo "$vi_cv_var_python_version" >&6; }
5035 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5036 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5037 if ${vi_cv_path_python} -c \
5038 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5039 then
5040 { $as_echo "$as_me:$LINENO: result: yep" >&5
5041 $as_echo "yep" >&6; }
5043 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5044 $as_echo_n "checking Python's install prefix... " >&6; }
5045 if test "${vi_cv_path_python_pfx+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5047 else
5048 vi_cv_path_python_pfx=`
5049 ${vi_cv_path_python} -c \
5050 "import sys; print sys.prefix"`
5052 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5053 $as_echo "$vi_cv_path_python_pfx" >&6; }
5055 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5056 $as_echo_n "checking Python's execution prefix... " >&6; }
5057 if test "${vi_cv_path_python_epfx+set}" = set; then
5058 $as_echo_n "(cached) " >&6
5059 else
5060 vi_cv_path_python_epfx=`
5061 ${vi_cv_path_python} -c \
5062 "import sys; print sys.exec_prefix"`
5064 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5065 $as_echo "$vi_cv_path_python_epfx" >&6; }
5068 if test "${vi_cv_path_pythonpath+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5070 else
5071 vi_cv_path_pythonpath=`
5072 unset PYTHONPATH;
5073 ${vi_cv_path_python} -c \
5074 "import sys, string; print string.join(sys.path,':')"`
5080 # Check whether --with-python-config-dir was given.
5081 if test "${with_python_config_dir+set}" = set; then
5082 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5086 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5087 $as_echo_n "checking Python's configuration directory... " >&6; }
5088 if test "${vi_cv_path_python_conf+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5090 else
5092 vi_cv_path_python_conf=
5093 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5094 for subdir in lib share; do
5095 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5096 if test -d "$d" && test -f "$d/config.c"; then
5097 vi_cv_path_python_conf="$d"
5099 done
5100 done
5103 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5104 $as_echo "$vi_cv_path_python_conf" >&6; }
5106 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5108 if test "X$PYTHON_CONFDIR" = "X"; then
5109 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5110 $as_echo "can't find it!" >&6; }
5111 else
5113 if test "${vi_cv_path_python_plibs+set}" = set; then
5114 $as_echo_n "(cached) " >&6
5115 else
5117 pwd=`pwd`
5118 tmp_mkf="$pwd/config-PyMake$$"
5119 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5121 @echo "python_MODLIBS='$(MODLIBS)'"
5122 @echo "python_LIBS='$(LIBS)'"
5123 @echo "python_SYSLIBS='$(SYSLIBS)'"
5124 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5126 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5127 rm -f -- "${tmp_mkf}"
5128 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5129 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5130 vi_cv_path_python_plibs="-framework Python"
5131 else
5132 if test "${vi_cv_var_python_version}" = "1.4"; then
5133 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5134 else
5135 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5137 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5138 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5144 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5145 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5146 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5147 else
5148 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}"
5150 PYTHON_SRC="if_python.c"
5151 if test "x$MACOSX" = "xyes"; then
5152 PYTHON_OBJ="objects/if_python.o"
5153 else
5154 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5156 if test "${vi_cv_var_python_version}" = "1.4"; then
5157 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5159 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5161 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5162 $as_echo_n "checking if -pthread should be used... " >&6; }
5163 threadsafe_flag=
5164 thread_lib=
5165 if test "`(uname) 2>/dev/null`" != Darwin; then
5166 test "$GCC" = yes && threadsafe_flag="-pthread"
5167 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5168 threadsafe_flag="-D_THREAD_SAFE"
5169 thread_lib="-pthread"
5172 libs_save_old=$LIBS
5173 if test -n "$threadsafe_flag"; then
5174 cflags_save=$CFLAGS
5175 CFLAGS="$CFLAGS $threadsafe_flag"
5176 LIBS="$LIBS $thread_lib"
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5185 main ()
5189 return 0;
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (ac_try="$ac_link"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5199 $as_echo "$ac_try_echo") >&5
5200 (eval "$ac_link") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest$ac_exeext && {
5210 test "$cross_compiling" = yes ||
5211 $as_test_x conftest$ac_exeext
5212 }; then
5213 { $as_echo "$as_me:$LINENO: result: yes" >&5
5214 $as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5215 else
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 { $as_echo "$as_me:$LINENO: result: no" >&5
5220 $as_echo "no" >&6; }; LIBS=$libs_save_old
5224 rm -rf conftest.dSYM
5225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5226 conftest$ac_exeext conftest.$ac_ext
5227 CFLAGS=$cflags_save
5228 else
5229 { $as_echo "$as_me:$LINENO: result: no" >&5
5230 $as_echo "no" >&6; }
5233 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5234 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5235 cflags_save=$CFLAGS
5236 libs_save=$LIBS
5237 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5238 LIBS="$LIBS $PYTHON_LIBS"
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5247 main ()
5251 return 0;
5253 _ACEOF
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (ac_try="$ac_link"
5256 case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259 esac
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262 (eval "$ac_link") 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest$ac_exeext && {
5272 test "$cross_compiling" = yes ||
5273 $as_test_x conftest$ac_exeext
5274 }; then
5275 { $as_echo "$as_me:$LINENO: result: yes" >&5
5276 $as_echo "yes" >&6; }; python_ok=yes
5277 else
5278 $as_echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5282 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5285 rm -rf conftest.dSYM
5286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5287 conftest$ac_exeext conftest.$ac_ext
5288 CFLAGS=$cflags_save
5289 LIBS=$libs_save
5290 if test $python_ok = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define FEAT_PYTHON 1
5293 _ACEOF
5295 else
5296 LIBS=$libs_save_old
5297 PYTHON_SRC=
5298 PYTHON_OBJ=
5299 PYTHON_LIBS=
5300 PYTHON_CFLAGS=
5304 else
5305 { $as_echo "$as_me:$LINENO: result: too old" >&5
5306 $as_echo "too old" >&6; }
5317 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5318 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5319 # Check whether --enable-tclinterp was given.
5320 if test "${enable_tclinterp+set}" = set; then
5321 enableval=$enable_tclinterp;
5322 else
5323 enable_tclinterp="no"
5326 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5327 $as_echo "$enable_tclinterp" >&6; }
5329 if test "$enable_tclinterp" = "yes"; then
5331 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5332 $as_echo_n "checking --with-tclsh argument... " >&6; }
5334 # Check whether --with-tclsh was given.
5335 if test "${with_tclsh+set}" = set; then
5336 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5337 $as_echo "$tclsh_name" >&6; }
5338 else
5339 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5340 $as_echo "no" >&6; }
5343 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5344 set dummy $tclsh_name; ac_word=$2
5345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5349 else
5350 case $vi_cv_path_tcl in
5351 [\\/]* | ?:[\\/]*)
5352 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5366 done
5367 done
5368 IFS=$as_save_IFS
5371 esac
5373 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5374 if test -n "$vi_cv_path_tcl"; then
5375 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5376 $as_echo "$vi_cv_path_tcl" >&6; }
5377 else
5378 { $as_echo "$as_me:$LINENO: result: no" >&5
5379 $as_echo "no" >&6; }
5385 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5386 tclsh_name="tclsh8.4"
5387 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5388 set dummy $tclsh_name; ac_word=$2
5389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5392 $as_echo_n "(cached) " >&6
5393 else
5394 case $vi_cv_path_tcl in
5395 [\\/]* | ?:[\\/]*)
5396 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5415 esac
5417 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5418 if test -n "$vi_cv_path_tcl"; then
5419 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5420 $as_echo "$vi_cv_path_tcl" >&6; }
5421 else
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5429 tclsh_name="tclsh8.2"
5430 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5431 set dummy $tclsh_name; ac_word=$2
5432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5436 else
5437 case $vi_cv_path_tcl in
5438 [\\/]* | ?:[\\/]*)
5439 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5458 esac
5460 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5461 if test -n "$vi_cv_path_tcl"; then
5462 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5463 $as_echo "$vi_cv_path_tcl" >&6; }
5464 else
5465 { $as_echo "$as_me:$LINENO: result: no" >&5
5466 $as_echo "no" >&6; }
5471 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5472 tclsh_name="tclsh8.0"
5473 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5474 set dummy $tclsh_name; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 case $vi_cv_path_tcl in
5481 [\\/]* | ?:[\\/]*)
5482 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5501 esac
5503 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5504 if test -n "$vi_cv_path_tcl"; then
5505 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5506 $as_echo "$vi_cv_path_tcl" >&6; }
5507 else
5508 { $as_echo "$as_me:$LINENO: result: no" >&5
5509 $as_echo "no" >&6; }
5514 if test "X$vi_cv_path_tcl" = "X"; then
5515 tclsh_name="tclsh"
5516 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5517 set dummy $tclsh_name; ac_word=$2
5518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5522 else
5523 case $vi_cv_path_tcl in
5524 [\\/]* | ?:[\\/]*)
5525 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5539 done
5540 done
5541 IFS=$as_save_IFS
5544 esac
5546 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5547 if test -n "$vi_cv_path_tcl"; then
5548 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5549 $as_echo "$vi_cv_path_tcl" >&6; }
5550 else
5551 { $as_echo "$as_me:$LINENO: result: no" >&5
5552 $as_echo "no" >&6; }
5557 if test "X$vi_cv_path_tcl" != "X"; then
5558 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5559 $as_echo_n "checking Tcl version... " >&6; }
5560 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5561 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5562 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5563 $as_echo "$tclver - OK" >&6; };
5564 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 -`
5566 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5567 $as_echo_n "checking for location of Tcl include... " >&6; }
5568 if test "x$MACOSX" != "xyes"; then
5569 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5570 else
5571 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5573 TCL_INC=
5574 for try in $tclinc; do
5575 if test -f "$try/tcl.h"; then
5576 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5577 $as_echo "$try/tcl.h" >&6; }
5578 TCL_INC=$try
5579 break
5581 done
5582 if test -z "$TCL_INC"; then
5583 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5584 $as_echo "<not found>" >&6; }
5585 SKIP_TCL=YES
5587 if test -z "$SKIP_TCL"; then
5588 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5589 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5590 if test "x$MACOSX" != "xyes"; then
5591 tclcnf=`echo $tclinc | sed s/include/lib/g`
5592 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5593 else
5594 tclcnf="/System/Library/Frameworks/Tcl.framework"
5596 for try in $tclcnf; do
5597 if test -f $try/tclConfig.sh; then
5598 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5599 $as_echo "$try/tclConfig.sh" >&6; }
5600 . $try/tclConfig.sh
5601 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5602 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'`
5603 break
5605 done
5606 if test -z "$TCL_LIBS"; then
5607 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5608 $as_echo "<not found>" >&6; }
5609 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5610 $as_echo_n "checking for Tcl library by myself... " >&6; }
5611 tcllib=`echo $tclinc | sed s/include/lib/g`
5612 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5613 for ext in .so .a ; do
5614 for ver in "" $tclver ; do
5615 for try in $tcllib ; do
5616 trylib=tcl$ver$ext
5617 if test -f $try/lib$trylib ; then
5618 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5619 $as_echo "$try/lib$trylib" >&6; }
5620 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5621 if test "`(uname) 2>/dev/null`" = SunOS &&
5622 uname -r | grep '^5' >/dev/null; then
5623 TCL_LIBS="$TCL_LIBS -R $try"
5625 break 3
5627 done
5628 done
5629 done
5630 if test -z "$TCL_LIBS"; then
5631 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5632 $as_echo "<not found>" >&6; }
5633 SKIP_TCL=YES
5636 if test -z "$SKIP_TCL"; then
5637 cat >>confdefs.h <<\_ACEOF
5638 #define FEAT_TCL 1
5639 _ACEOF
5641 TCL_SRC=if_tcl.c
5642 TCL_OBJ=objects/if_tcl.o
5643 TCL_PRO=if_tcl.pro
5644 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5647 else
5648 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5649 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5659 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5660 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5661 # Check whether --enable-rubyinterp was given.
5662 if test "${enable_rubyinterp+set}" = set; then
5663 enableval=$enable_rubyinterp;
5664 else
5665 enable_rubyinterp="no"
5668 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5669 $as_echo "$enable_rubyinterp" >&6; }
5670 if test "$enable_rubyinterp" = "yes"; then
5672 # Extract the first word of "ruby", so it can be a program name with args.
5673 set dummy ruby; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5678 else
5679 case $vi_cv_path_ruby in
5680 [\\/]* | ?:[\\/]*)
5681 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5700 esac
5702 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5703 if test -n "$vi_cv_path_ruby"; then
5704 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5705 $as_echo "$vi_cv_path_ruby" >&6; }
5706 else
5707 { $as_echo "$as_me:$LINENO: result: no" >&5
5708 $as_echo "no" >&6; }
5712 if test "X$vi_cv_path_ruby" != "X"; then
5713 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5714 $as_echo_n "checking Ruby version... " >&6; }
5715 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5716 { $as_echo "$as_me:$LINENO: result: OK" >&5
5717 $as_echo "OK" >&6; }
5718 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5719 $as_echo_n "checking Ruby header files... " >&6; }
5720 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5721 if test "X$rubyhdrdir" != "X"; then
5722 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5723 $as_echo "$rubyhdrdir" >&6; }
5724 RUBY_CFLAGS="-I$rubyhdrdir"
5725 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5726 if test "X$rubylibs" != "X"; then
5727 RUBY_LIBS="$rubylibs"
5729 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5730 if test -f "$rubyhdrdir/$librubyarg"; then
5731 librubyarg="$rubyhdrdir/$librubyarg"
5732 else
5733 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5734 if test -f "$rubylibdir/$librubyarg"; then
5735 librubyarg="$rubylibdir/$librubyarg"
5736 elif test "$librubyarg" = "libruby.a"; then
5737 librubyarg="-lruby"
5738 else
5739 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5743 if test "X$librubyarg" != "X"; then
5744 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5746 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5747 if test "X$rubyldflags" != "X"; then
5748 LDFLAGS="$rubyldflags $LDFLAGS"
5750 RUBY_SRC="if_ruby.c"
5751 RUBY_OBJ="objects/if_ruby.o"
5752 RUBY_PRO="if_ruby.pro"
5753 cat >>confdefs.h <<\_ACEOF
5754 #define FEAT_RUBY 1
5755 _ACEOF
5757 else
5758 { $as_echo "$as_me:$LINENO: result: not found" >&5
5759 $as_echo "not found" >&6; }
5761 else
5762 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5763 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5773 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5774 $as_echo_n "checking --enable-cscope argument... " >&6; }
5775 # Check whether --enable-cscope was given.
5776 if test "${enable_cscope+set}" = set; then
5777 enableval=$enable_cscope;
5778 else
5779 enable_cscope="no"
5782 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5783 $as_echo "$enable_cscope" >&6; }
5784 if test "$enable_cscope" = "yes"; then
5785 cat >>confdefs.h <<\_ACEOF
5786 #define FEAT_CSCOPE 1
5787 _ACEOF
5791 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5792 $as_echo_n "checking --enable-workshop argument... " >&6; }
5793 # Check whether --enable-workshop was given.
5794 if test "${enable_workshop+set}" = set; then
5795 enableval=$enable_workshop;
5796 else
5797 enable_workshop="no"
5800 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5801 $as_echo "$enable_workshop" >&6; }
5802 if test "$enable_workshop" = "yes"; then
5803 cat >>confdefs.h <<\_ACEOF
5804 #define FEAT_SUN_WORKSHOP 1
5805 _ACEOF
5807 WORKSHOP_SRC="workshop.c integration.c"
5809 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5811 if test "${enable_gui-xxx}" = xxx; then
5812 enable_gui=motif
5816 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5817 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5818 # Check whether --enable-netbeans was given.
5819 if test "${enable_netbeans+set}" = set; then
5820 enableval=$enable_netbeans;
5821 else
5822 enable_netbeans="yes"
5825 if test "$enable_netbeans" = "yes"; then
5826 { $as_echo "$as_me:$LINENO: result: no" >&5
5827 $as_echo "no" >&6; }
5829 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5830 $as_echo_n "checking for socket in -lsocket... " >&6; }
5831 if test "${ac_cv_lib_socket_socket+set}" = set; then
5832 $as_echo_n "(cached) " >&6
5833 else
5834 ac_check_lib_save_LIBS=$LIBS
5835 LIBS="-lsocket $LIBS"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 /* confdefs.h. */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5843 /* Override any GCC internal prototype to avoid an error.
5844 Use char because int might match the return type of a GCC
5845 builtin and then its argument prototype would still apply. */
5846 #ifdef __cplusplus
5847 extern "C"
5848 #endif
5849 char socket ();
5851 main ()
5853 return socket ();
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (ac_try="$ac_link"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865 $as_echo "$ac_try_echo") >&5
5866 (eval "$ac_link") 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest$ac_exeext && {
5876 test "$cross_compiling" = yes ||
5877 $as_test_x conftest$ac_exeext
5878 }; then
5879 ac_cv_lib_socket_socket=yes
5880 else
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_cv_lib_socket_socket=no
5887 rm -rf conftest.dSYM
5888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5889 conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5893 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5894 if test $ac_cv_lib_socket_socket = yes; then
5895 cat >>confdefs.h <<_ACEOF
5896 #define HAVE_LIBSOCKET 1
5897 _ACEOF
5899 LIBS="-lsocket $LIBS"
5904 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5905 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5906 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5908 else
5909 ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-lnsl $LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5921 #ifdef __cplusplus
5922 extern "C"
5923 #endif
5924 char gethostbyname ();
5926 main ()
5928 return gethostbyname ();
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_link") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest$ac_exeext && {
5951 test "$cross_compiling" = yes ||
5952 $as_test_x conftest$ac_exeext
5953 }; then
5954 ac_cv_lib_nsl_gethostbyname=yes
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_cv_lib_nsl_gethostbyname=no
5962 rm -rf conftest.dSYM
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964 conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5968 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5969 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5970 cat >>confdefs.h <<_ACEOF
5971 #define HAVE_LIBNSL 1
5972 _ACEOF
5974 LIBS="-lnsl $LIBS"
5978 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5979 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5987 #include <stdio.h>
5988 #include <stdlib.h>
5989 #include <stdarg.h>
5990 #include <fcntl.h>
5991 #include <netdb.h>
5992 #include <netinet/in.h>
5993 #include <errno.h>
5994 #include <sys/types.h>
5995 #include <sys/socket.h>
5996 /* Check bitfields */
5997 struct nbbuf {
5998 unsigned int initDone:1;
5999 ushort signmaplen;
6003 main ()
6006 /* Check creating a socket. */
6007 struct sockaddr_in server;
6008 (void)socket(AF_INET, SOCK_STREAM, 0);
6009 (void)htons(100);
6010 (void)gethostbyname("microsoft.com");
6011 if (errno == ECONNREFUSED)
6012 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6015 return 0;
6017 _ACEOF
6018 rm -f conftest.$ac_objext conftest$ac_exeext
6019 if { (ac_try="$ac_link"
6020 case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_link") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } && {
6033 test -z "$ac_c_werror_flag" ||
6034 test ! -s conftest.err
6035 } && test -s conftest$ac_exeext && {
6036 test "$cross_compiling" = yes ||
6037 $as_test_x conftest$ac_exeext
6038 }; then
6039 { $as_echo "$as_me:$LINENO: result: yes" >&5
6040 $as_echo "yes" >&6; }
6041 else
6042 $as_echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 { $as_echo "$as_me:$LINENO: result: no" >&5
6046 $as_echo "no" >&6; }; enable_netbeans="no"
6049 rm -rf conftest.dSYM
6050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6051 conftest$ac_exeext conftest.$ac_ext
6052 else
6053 { $as_echo "$as_me:$LINENO: result: yes" >&5
6054 $as_echo "yes" >&6; }
6056 if test "$enable_netbeans" = "yes"; then
6057 cat >>confdefs.h <<\_ACEOF
6058 #define FEAT_NETBEANS_INTG 1
6059 _ACEOF
6061 NETBEANS_SRC="netbeans.c"
6063 NETBEANS_OBJ="objects/netbeans.o"
6067 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6068 $as_echo_n "checking --enable-sniff argument... " >&6; }
6069 # Check whether --enable-sniff was given.
6070 if test "${enable_sniff+set}" = set; then
6071 enableval=$enable_sniff;
6072 else
6073 enable_sniff="no"
6076 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6077 $as_echo "$enable_sniff" >&6; }
6078 if test "$enable_sniff" = "yes"; then
6079 cat >>confdefs.h <<\_ACEOF
6080 #define FEAT_SNIFF 1
6081 _ACEOF
6083 SNIFF_SRC="if_sniff.c"
6085 SNIFF_OBJ="objects/if_sniff.o"
6089 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6090 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6091 # Check whether --enable-multibyte was given.
6092 if test "${enable_multibyte+set}" = set; then
6093 enableval=$enable_multibyte;
6094 else
6095 enable_multibyte="no"
6098 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6099 $as_echo "$enable_multibyte" >&6; }
6100 if test "$enable_multibyte" = "yes"; then
6101 cat >>confdefs.h <<\_ACEOF
6102 #define FEAT_MBYTE 1
6103 _ACEOF
6107 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6108 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6109 # Check whether --enable-hangulinput was given.
6110 if test "${enable_hangulinput+set}" = set; then
6111 enableval=$enable_hangulinput;
6112 else
6113 enable_hangulinput="no"
6116 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6117 $as_echo "$enable_hangulinput" >&6; }
6119 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6120 $as_echo_n "checking --enable-xim argument... " >&6; }
6121 # Check whether --enable-xim was given.
6122 if test "${enable_xim+set}" = set; then
6123 enableval=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6124 $as_echo "$enable_xim" >&6; }
6125 else
6126 enable_xim="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6127 $as_echo "defaulting to auto" >&6; }
6131 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6132 $as_echo_n "checking --enable-fontset argument... " >&6; }
6133 # Check whether --enable-fontset was given.
6134 if test "${enable_fontset+set}" = set; then
6135 enableval=$enable_fontset;
6136 else
6137 enable_fontset="no"
6140 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6141 $as_echo "$enable_fontset" >&6; }
6143 test -z "$with_x" && with_x=yes
6144 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6145 if test "$with_x" = no; then
6146 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6147 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6148 else
6150 # Extract the first word of "xmkmf", so it can be a program name with args.
6151 set dummy xmkmf; ac_word=$2
6152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6155 $as_echo_n "(cached) " >&6
6156 else
6157 case $xmkmfpath in
6158 [\\/]* | ?:[\\/]*)
6159 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6173 done
6174 done
6175 IFS=$as_save_IFS
6178 esac
6180 xmkmfpath=$ac_cv_path_xmkmfpath
6181 if test -n "$xmkmfpath"; then
6182 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6183 $as_echo "$xmkmfpath" >&6; }
6184 else
6185 { $as_echo "$as_me:$LINENO: result: no" >&5
6186 $as_echo "no" >&6; }
6191 { $as_echo "$as_me:$LINENO: checking for X" >&5
6192 $as_echo_n "checking for X... " >&6; }
6195 # Check whether --with-x was given.
6196 if test "${with_x+set}" = set; then
6197 withval=$with_x;
6200 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6201 if test "x$with_x" = xno; then
6202 # The user explicitly disabled X.
6203 have_x=disabled
6204 else
6205 case $x_includes,$x_libraries in #(
6206 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6207 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6208 { (exit 1); exit 1; }; };; #(
6209 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6211 else
6212 # One or both of the vars are not set, and there is no cached value.
6213 ac_x_includes=no ac_x_libraries=no
6214 rm -f -r conftest.dir
6215 if mkdir conftest.dir; then
6216 cd conftest.dir
6217 cat >Imakefile <<'_ACEOF'
6218 incroot:
6219 @echo incroot='${INCROOT}'
6220 usrlibdir:
6221 @echo usrlibdir='${USRLIBDIR}'
6222 libdir:
6223 @echo libdir='${LIBDIR}'
6224 _ACEOF
6225 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6227 for ac_var in incroot usrlibdir libdir; do
6228 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6229 done
6230 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6231 for ac_extension in a so sl dylib la dll; do
6232 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6233 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6234 ac_im_usrlibdir=$ac_im_libdir; break
6236 done
6237 # Screen out bogus values from the imake configuration. They are
6238 # bogus both because they are the default anyway, and because
6239 # using them would break gcc on systems where it needs fixed includes.
6240 case $ac_im_incroot in
6241 /usr/include) ac_x_includes= ;;
6242 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6243 esac
6244 case $ac_im_usrlibdir in
6245 /usr/lib | /lib) ;;
6246 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6247 esac
6249 cd ..
6250 rm -f -r conftest.dir
6253 # Standard set of common directories for X headers.
6254 # Check X11 before X11Rn because it is often a symlink to the current release.
6255 ac_x_header_dirs='
6256 /usr/X11/include
6257 /usr/X11R6/include
6258 /usr/X11R5/include
6259 /usr/X11R4/include
6261 /usr/include/X11
6262 /usr/include/X11R6
6263 /usr/include/X11R5
6264 /usr/include/X11R4
6266 /usr/local/X11/include
6267 /usr/local/X11R6/include
6268 /usr/local/X11R5/include
6269 /usr/local/X11R4/include
6271 /usr/local/include/X11
6272 /usr/local/include/X11R6
6273 /usr/local/include/X11R5
6274 /usr/local/include/X11R4
6276 /usr/X386/include
6277 /usr/x386/include
6278 /usr/XFree86/include/X11
6280 /usr/include
6281 /usr/local/include
6282 /usr/unsupported/include
6283 /usr/athena/include
6284 /usr/local/x11r5/include
6285 /usr/lpp/Xamples/include
6287 /usr/openwin/include
6288 /usr/openwin/share/include'
6290 if test "$ac_x_includes" = no; then
6291 # Guess where to find include files, by looking for Xlib.h.
6292 # First, try using that file with no special directory specified.
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <X11/Xlib.h>
6300 _ACEOF
6301 if { (ac_try="$ac_cpp conftest.$ac_ext"
6302 case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305 esac
6306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6307 $as_echo "$ac_try_echo") >&5
6308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null && {
6315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6316 test ! -s conftest.err
6317 }; then
6318 # We can compile using X headers with no special include directory.
6319 ac_x_includes=
6320 else
6321 $as_echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 for ac_dir in $ac_x_header_dirs; do
6325 if test -r "$ac_dir/X11/Xlib.h"; then
6326 ac_x_includes=$ac_dir
6327 break
6329 done
6332 rm -f conftest.err conftest.$ac_ext
6333 fi # $ac_x_includes = no
6335 if test "$ac_x_libraries" = no; then
6336 # Check for the libraries.
6337 # See if we find them without any special options.
6338 # Don't add to $LIBS permanently.
6339 ac_save_LIBS=$LIBS
6340 LIBS="-lX11 $LIBS"
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 #include <X11/Xlib.h>
6349 main ()
6351 XrmInitialize ()
6353 return 0;
6355 _ACEOF
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (ac_try="$ac_link"
6358 case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361 esac
6362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6363 $as_echo "$ac_try_echo") >&5
6364 (eval "$ac_link") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest$ac_exeext && {
6374 test "$cross_compiling" = yes ||
6375 $as_test_x conftest$ac_exeext
6376 }; then
6377 LIBS=$ac_save_LIBS
6378 # We can link X programs with no special library path.
6379 ac_x_libraries=
6380 else
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 LIBS=$ac_save_LIBS
6385 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6387 # Don't even attempt the hair of trying to link an X program!
6388 for ac_extension in a so sl dylib la dll; do
6389 if test -r "$ac_dir/libX11.$ac_extension"; then
6390 ac_x_libraries=$ac_dir
6391 break 2
6393 done
6394 done
6397 rm -rf conftest.dSYM
6398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6399 conftest$ac_exeext conftest.$ac_ext
6400 fi # $ac_x_libraries = no
6402 case $ac_x_includes,$ac_x_libraries in #(
6403 no,* | *,no | *\'*)
6404 # Didn't find X, or a directory has "'" in its name.
6405 ac_cv_have_x="have_x=no";; #(
6407 # Record where we found X for the cache.
6408 ac_cv_have_x="have_x=yes\
6409 ac_x_includes='$ac_x_includes'\
6410 ac_x_libraries='$ac_x_libraries'"
6411 esac
6413 ;; #(
6414 *) have_x=yes;;
6415 esac
6416 eval "$ac_cv_have_x"
6417 fi # $with_x != no
6419 if test "$have_x" != yes; then
6420 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6421 $as_echo "$have_x" >&6; }
6422 no_x=yes
6423 else
6424 # If each of the values was on the command line, it overrides each guess.
6425 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6426 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6427 # Update the cache value to reflect the command line values.
6428 ac_cv_have_x="have_x=yes\
6429 ac_x_includes='$x_includes'\
6430 ac_x_libraries='$x_libraries'"
6431 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6432 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6435 if test "$no_x" = yes; then
6436 # Not all programs may use this symbol, but it does not hurt to define it.
6438 cat >>confdefs.h <<\_ACEOF
6439 #define X_DISPLAY_MISSING 1
6440 _ACEOF
6442 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6443 else
6444 if test -n "$x_includes"; then
6445 X_CFLAGS="$X_CFLAGS -I$x_includes"
6448 # It would also be nice to do this for all -L options, not just this one.
6449 if test -n "$x_libraries"; then
6450 X_LIBS="$X_LIBS -L$x_libraries"
6451 # For Solaris; some versions of Sun CC require a space after -R and
6452 # others require no space. Words are not sufficient . . . .
6453 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6454 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6455 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6456 ac_xsave_c_werror_flag=$ac_c_werror_flag
6457 ac_c_werror_flag=yes
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6466 main ()
6470 return 0;
6472 _ACEOF
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (ac_try="$ac_link"
6475 case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6478 esac
6479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6480 $as_echo "$ac_try_echo") >&5
6481 (eval "$ac_link") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest$ac_exeext && {
6491 test "$cross_compiling" = yes ||
6492 $as_test_x conftest$ac_exeext
6493 }; then
6494 { $as_echo "$as_me:$LINENO: result: no" >&5
6495 $as_echo "no" >&6; }
6496 X_LIBS="$X_LIBS -R$x_libraries"
6497 else
6498 $as_echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 LIBS="$ac_xsave_LIBS -R $x_libraries"
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6510 main ()
6514 return 0;
6516 _ACEOF
6517 rm -f conftest.$ac_objext conftest$ac_exeext
6518 if { (ac_try="$ac_link"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6524 $as_echo "$ac_try_echo") >&5
6525 (eval "$ac_link") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest$ac_exeext && {
6535 test "$cross_compiling" = yes ||
6536 $as_test_x conftest$ac_exeext
6537 }; then
6538 { $as_echo "$as_me:$LINENO: result: yes" >&5
6539 $as_echo "yes" >&6; }
6540 X_LIBS="$X_LIBS -R $x_libraries"
6541 else
6542 $as_echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6546 $as_echo "neither works" >&6; }
6549 rm -rf conftest.dSYM
6550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6551 conftest$ac_exeext conftest.$ac_ext
6554 rm -rf conftest.dSYM
6555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6556 conftest$ac_exeext conftest.$ac_ext
6557 ac_c_werror_flag=$ac_xsave_c_werror_flag
6558 LIBS=$ac_xsave_LIBS
6561 # Check for system-dependent libraries X programs must link with.
6562 # Do this before checking for the system-independent R6 libraries
6563 # (-lICE), since we may need -lsocket or whatever for X linking.
6565 if test "$ISC" = yes; then
6566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6567 else
6568 # Martyn Johnson says this is needed for Ultrix, if the X
6569 # libraries were built with DECnet support. And Karl Berry says
6570 # the Alpha needs dnet_stub (dnet does not exist).
6571 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6572 cat >conftest.$ac_ext <<_ACEOF
6573 /* confdefs.h. */
6574 _ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 /* Override any GCC internal prototype to avoid an error.
6580 Use char because int might match the return type of a GCC
6581 builtin and then its argument prototype would still apply. */
6582 #ifdef __cplusplus
6583 extern "C"
6584 #endif
6585 char XOpenDisplay ();
6587 main ()
6589 return XOpenDisplay ();
6591 return 0;
6593 _ACEOF
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (ac_try="$ac_link"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6601 $as_echo "$ac_try_echo") >&5
6602 (eval "$ac_link") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest$ac_exeext && {
6612 test "$cross_compiling" = yes ||
6613 $as_test_x conftest$ac_exeext
6614 }; then
6616 else
6617 $as_echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6621 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6622 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6623 $as_echo_n "(cached) " >&6
6624 else
6625 ac_check_lib_save_LIBS=$LIBS
6626 LIBS="-ldnet $LIBS"
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h. */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6634 /* Override any GCC internal prototype to avoid an error.
6635 Use char because int might match the return type of a GCC
6636 builtin and then its argument prototype would still apply. */
6637 #ifdef __cplusplus
6638 extern "C"
6639 #endif
6640 char dnet_ntoa ();
6642 main ()
6644 return dnet_ntoa ();
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (ac_try="$ac_link"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6656 $as_echo "$ac_try_echo") >&5
6657 (eval "$ac_link") 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest$ac_exeext && {
6667 test "$cross_compiling" = yes ||
6668 $as_test_x conftest$ac_exeext
6669 }; then
6670 ac_cv_lib_dnet_dnet_ntoa=yes
6671 else
6672 $as_echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_cv_lib_dnet_dnet_ntoa=no
6678 rm -rf conftest.dSYM
6679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6680 conftest$ac_exeext conftest.$ac_ext
6681 LIBS=$ac_check_lib_save_LIBS
6683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6684 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6685 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6686 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6689 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6690 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6691 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6692 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6693 $as_echo_n "(cached) " >&6
6694 else
6695 ac_check_lib_save_LIBS=$LIBS
6696 LIBS="-ldnet_stub $LIBS"
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6704 /* Override any GCC internal prototype to avoid an error.
6705 Use char because int might match the return type of a GCC
6706 builtin and then its argument prototype would still apply. */
6707 #ifdef __cplusplus
6708 extern "C"
6709 #endif
6710 char dnet_ntoa ();
6712 main ()
6714 return dnet_ntoa ();
6716 return 0;
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (ac_try="$ac_link"
6721 case "(($ac_try" in
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727 (eval "$ac_link") 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest$ac_exeext && {
6737 test "$cross_compiling" = yes ||
6738 $as_test_x conftest$ac_exeext
6739 }; then
6740 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6741 else
6742 $as_echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_lib_dnet_stub_dnet_ntoa=no
6748 rm -rf conftest.dSYM
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6754 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6762 rm -rf conftest.dSYM
6763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LIBS="$ac_xsave_LIBS"
6767 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6768 # to get the SysV transport functions.
6769 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6770 # needs -lnsl.
6771 # The nsl library prevents programs from opening the X display
6772 # on Irix 5.2, according to T.E. Dickey.
6773 # The functions gethostbyname, getservbyname, and inet_addr are
6774 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6775 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6776 $as_echo_n "checking for gethostbyname... " >&6; }
6777 if test "${ac_cv_func_gethostbyname+set}" = set; then
6778 $as_echo_n "(cached) " >&6
6779 else
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6788 #define gethostbyname innocuous_gethostbyname
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char gethostbyname (); below.
6792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6793 <limits.h> exists even on freestanding compilers. */
6795 #ifdef __STDC__
6796 # include <limits.h>
6797 #else
6798 # include <assert.h>
6799 #endif
6801 #undef gethostbyname
6803 /* Override any GCC internal prototype to avoid an error.
6804 Use char because int might match the return type of a GCC
6805 builtin and then its argument prototype would still apply. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 char gethostbyname ();
6810 /* The GNU C library defines this for functions which it implements
6811 to always fail with ENOSYS. Some functions are actually named
6812 something starting with __ and the normal name is an alias. */
6813 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6814 choke me
6815 #endif
6818 main ()
6820 return gethostbyname ();
6822 return 0;
6824 _ACEOF
6825 rm -f conftest.$ac_objext conftest$ac_exeext
6826 if { (ac_try="$ac_link"
6827 case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830 esac
6831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832 $as_echo "$ac_try_echo") >&5
6833 (eval "$ac_link") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest$ac_exeext && {
6843 test "$cross_compiling" = yes ||
6844 $as_test_x conftest$ac_exeext
6845 }; then
6846 ac_cv_func_gethostbyname=yes
6847 else
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_cv_func_gethostbyname=no
6854 rm -rf conftest.dSYM
6855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6856 conftest$ac_exeext conftest.$ac_ext
6858 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6859 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6861 if test $ac_cv_func_gethostbyname = no; then
6862 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6863 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6864 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6865 $as_echo_n "(cached) " >&6
6866 else
6867 ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-lnsl $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6876 /* Override any GCC internal prototype to avoid an error.
6877 Use char because int might match the return type of a GCC
6878 builtin and then its argument prototype would still apply. */
6879 #ifdef __cplusplus
6880 extern "C"
6881 #endif
6882 char gethostbyname ();
6884 main ()
6886 return gethostbyname ();
6888 return 0;
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898 $as_echo "$ac_try_echo") >&5
6899 (eval "$ac_link") 2>conftest.er1
6900 ac_status=$?
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
6904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } && {
6906 test -z "$ac_c_werror_flag" ||
6907 test ! -s conftest.err
6908 } && test -s conftest$ac_exeext && {
6909 test "$cross_compiling" = yes ||
6910 $as_test_x conftest$ac_exeext
6911 }; then
6912 ac_cv_lib_nsl_gethostbyname=yes
6913 else
6914 $as_echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 ac_cv_lib_nsl_gethostbyname=no
6920 rm -rf conftest.dSYM
6921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6922 conftest$ac_exeext conftest.$ac_ext
6923 LIBS=$ac_check_lib_save_LIBS
6925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6926 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6927 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6931 if test $ac_cv_lib_nsl_gethostbyname = no; then
6932 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6933 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6934 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6935 $as_echo_n "(cached) " >&6
6936 else
6937 ac_check_lib_save_LIBS=$LIBS
6938 LIBS="-lbsd $LIBS"
6939 cat >conftest.$ac_ext <<_ACEOF
6940 /* confdefs.h. */
6941 _ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 char gethostbyname ();
6954 main ()
6956 return gethostbyname ();
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_link") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest$ac_exeext && {
6979 test "$cross_compiling" = yes ||
6980 $as_test_x conftest$ac_exeext
6981 }; then
6982 ac_cv_lib_bsd_gethostbyname=yes
6983 else
6984 $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_cv_lib_bsd_gethostbyname=no
6990 rm -rf conftest.dSYM
6991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992 conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6996 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6997 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7004 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7005 # socket/setsockopt and other routines are undefined under SCO ODT
7006 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7007 # on later versions), says Simon Leinen: it contains gethostby*
7008 # variants that don't use the name server (or something). -lsocket
7009 # must be given before -lnsl if both are needed. We assume that
7010 # if connect needs -lnsl, so does gethostbyname.
7011 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7012 $as_echo_n "checking for connect... " >&6; }
7013 if test "${ac_cv_func_connect+set}" = set; then
7014 $as_echo_n "(cached) " >&6
7015 else
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7024 #define connect innocuous_connect
7026 /* System header to define __stub macros and hopefully few prototypes,
7027 which can conflict with char connect (); below.
7028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7029 <limits.h> exists even on freestanding compilers. */
7031 #ifdef __STDC__
7032 # include <limits.h>
7033 #else
7034 # include <assert.h>
7035 #endif
7037 #undef connect
7039 /* Override any GCC internal prototype to avoid an error.
7040 Use char because int might match the return type of a GCC
7041 builtin and then its argument prototype would still apply. */
7042 #ifdef __cplusplus
7043 extern "C"
7044 #endif
7045 char connect ();
7046 /* The GNU C library defines this for functions which it implements
7047 to always fail with ENOSYS. Some functions are actually named
7048 something starting with __ and the normal name is an alias. */
7049 #if defined __stub_connect || defined __stub___connect
7050 choke me
7051 #endif
7054 main ()
7056 return connect ();
7058 return 0;
7060 _ACEOF
7061 rm -f conftest.$ac_objext conftest$ac_exeext
7062 if { (ac_try="$ac_link"
7063 case "(($ac_try" in
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7066 esac
7067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7068 $as_echo "$ac_try_echo") >&5
7069 (eval "$ac_link") 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && {
7076 test -z "$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7078 } && test -s conftest$ac_exeext && {
7079 test "$cross_compiling" = yes ||
7080 $as_test_x conftest$ac_exeext
7081 }; then
7082 ac_cv_func_connect=yes
7083 else
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7087 ac_cv_func_connect=no
7090 rm -rf conftest.dSYM
7091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7092 conftest$ac_exeext conftest.$ac_ext
7094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7095 $as_echo "$ac_cv_func_connect" >&6; }
7097 if test $ac_cv_func_connect = no; then
7098 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7099 $as_echo_n "checking for connect in -lsocket... " >&6; }
7100 if test "${ac_cv_lib_socket_connect+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 ac_check_lib_save_LIBS=$LIBS
7104 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7112 /* Override any GCC internal prototype to avoid an error.
7113 Use char because int might match the return type of a GCC
7114 builtin and then its argument prototype would still apply. */
7115 #ifdef __cplusplus
7116 extern "C"
7117 #endif
7118 char connect ();
7120 main ()
7122 return connect ();
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (ac_try="$ac_link"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_link") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest$ac_exeext && {
7145 test "$cross_compiling" = yes ||
7146 $as_test_x conftest$ac_exeext
7147 }; then
7148 ac_cv_lib_socket_connect=yes
7149 else
7150 $as_echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 ac_cv_lib_socket_connect=no
7156 rm -rf conftest.dSYM
7157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7158 conftest$ac_exeext conftest.$ac_ext
7159 LIBS=$ac_check_lib_save_LIBS
7161 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7162 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7163 if test $ac_cv_lib_socket_connect = yes; then
7164 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7169 # Guillermo Gomez says -lposix is necessary on A/UX.
7170 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7171 $as_echo_n "checking for remove... " >&6; }
7172 if test "${ac_cv_func_remove+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7183 #define remove innocuous_remove
7185 /* System header to define __stub macros and hopefully few prototypes,
7186 which can conflict with char remove (); below.
7187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 <limits.h> exists even on freestanding compilers. */
7190 #ifdef __STDC__
7191 # include <limits.h>
7192 #else
7193 # include <assert.h>
7194 #endif
7196 #undef remove
7198 /* Override any GCC internal prototype to avoid an error.
7199 Use char because int might match the return type of a GCC
7200 builtin and then its argument prototype would still apply. */
7201 #ifdef __cplusplus
7202 extern "C"
7203 #endif
7204 char remove ();
7205 /* The GNU C library defines this for functions which it implements
7206 to always fail with ENOSYS. Some functions are actually named
7207 something starting with __ and the normal name is an alias. */
7208 #if defined __stub_remove || defined __stub___remove
7209 choke me
7210 #endif
7213 main ()
7215 return remove ();
7217 return 0;
7219 _ACEOF
7220 rm -f conftest.$ac_objext conftest$ac_exeext
7221 if { (ac_try="$ac_link"
7222 case "(($ac_try" in
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7225 esac
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_link") 2>conftest.er1
7229 ac_status=$?
7230 grep -v '^ *+' conftest.er1 >conftest.err
7231 rm -f conftest.er1
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest$ac_exeext && {
7238 test "$cross_compiling" = yes ||
7239 $as_test_x conftest$ac_exeext
7240 }; then
7241 ac_cv_func_remove=yes
7242 else
7243 $as_echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7246 ac_cv_func_remove=no
7249 rm -rf conftest.dSYM
7250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7251 conftest$ac_exeext conftest.$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7254 $as_echo "$ac_cv_func_remove" >&6; }
7256 if test $ac_cv_func_remove = no; then
7257 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7258 $as_echo_n "checking for remove in -lposix... " >&6; }
7259 if test "${ac_cv_lib_posix_remove+set}" = set; then
7260 $as_echo_n "(cached) " >&6
7261 else
7262 ac_check_lib_save_LIBS=$LIBS
7263 LIBS="-lposix $LIBS"
7264 cat >conftest.$ac_ext <<_ACEOF
7265 /* confdefs.h. */
7266 _ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 char remove ();
7279 main ()
7281 return remove ();
7283 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_link") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext && {
7304 test "$cross_compiling" = yes ||
7305 $as_test_x conftest$ac_exeext
7306 }; then
7307 ac_cv_lib_posix_remove=yes
7308 else
7309 $as_echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 ac_cv_lib_posix_remove=no
7315 rm -rf conftest.dSYM
7316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317 conftest$ac_exeext conftest.$ac_ext
7318 LIBS=$ac_check_lib_save_LIBS
7320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7321 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7322 if test $ac_cv_lib_posix_remove = yes; then
7323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7328 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7329 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7330 $as_echo_n "checking for shmat... " >&6; }
7331 if test "${ac_cv_func_shmat+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h. */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7342 #define shmat innocuous_shmat
7344 /* System header to define __stub macros and hopefully few prototypes,
7345 which can conflict with char shmat (); below.
7346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7347 <limits.h> exists even on freestanding compilers. */
7349 #ifdef __STDC__
7350 # include <limits.h>
7351 #else
7352 # include <assert.h>
7353 #endif
7355 #undef shmat
7357 /* Override any GCC internal prototype to avoid an error.
7358 Use char because int might match the return type of a GCC
7359 builtin and then its argument prototype would still apply. */
7360 #ifdef __cplusplus
7361 extern "C"
7362 #endif
7363 char shmat ();
7364 /* The GNU C library defines this for functions which it implements
7365 to always fail with ENOSYS. Some functions are actually named
7366 something starting with __ and the normal name is an alias. */
7367 #if defined __stub_shmat || defined __stub___shmat
7368 choke me
7369 #endif
7372 main ()
7374 return shmat ();
7376 return 0;
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (ac_try="$ac_link"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7386 $as_echo "$ac_try_echo") >&5
7387 (eval "$ac_link") 2>conftest.er1
7388 ac_status=$?
7389 grep -v '^ *+' conftest.er1 >conftest.err
7390 rm -f conftest.er1
7391 cat conftest.err >&5
7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } && {
7394 test -z "$ac_c_werror_flag" ||
7395 test ! -s conftest.err
7396 } && test -s conftest$ac_exeext && {
7397 test "$cross_compiling" = yes ||
7398 $as_test_x conftest$ac_exeext
7399 }; then
7400 ac_cv_func_shmat=yes
7401 else
7402 $as_echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_cv_func_shmat=no
7408 rm -rf conftest.dSYM
7409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7410 conftest$ac_exeext conftest.$ac_ext
7412 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7413 $as_echo "$ac_cv_func_shmat" >&6; }
7415 if test $ac_cv_func_shmat = no; then
7416 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7417 $as_echo_n "checking for shmat in -lipc... " >&6; }
7418 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7419 $as_echo_n "(cached) " >&6
7420 else
7421 ac_check_lib_save_LIBS=$LIBS
7422 LIBS="-lipc $LIBS"
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7433 #ifdef __cplusplus
7434 extern "C"
7435 #endif
7436 char shmat ();
7438 main ()
7440 return shmat ();
7442 return 0;
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7447 case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450 esac
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453 (eval "$ac_link") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } && {
7460 test -z "$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 } && test -s conftest$ac_exeext && {
7463 test "$cross_compiling" = yes ||
7464 $as_test_x conftest$ac_exeext
7465 }; then
7466 ac_cv_lib_ipc_shmat=yes
7467 else
7468 $as_echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7471 ac_cv_lib_ipc_shmat=no
7474 rm -rf conftest.dSYM
7475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7476 conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7480 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7481 if test $ac_cv_lib_ipc_shmat = yes; then
7482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7488 # Check for libraries that X11R6 Xt/Xaw programs need.
7489 ac_save_LDFLAGS=$LDFLAGS
7490 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7492 # check for ICE first), but we must link in the order -lSM -lICE or
7493 # we get undefined symbols. So assume we have SM if we have ICE.
7494 # These have to be linked with before -lX11, unlike the other
7495 # libraries we check for below, so use a different variable.
7496 # John Interrante, Karl Berry
7497 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7498 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7499 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7500 $as_echo_n "(cached) " >&6
7501 else
7502 ac_check_lib_save_LIBS=$LIBS
7503 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7511 /* Override any GCC internal prototype to avoid an error.
7512 Use char because int might match the return type of a GCC
7513 builtin and then its argument prototype would still apply. */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 char IceConnectionNumber ();
7519 main ()
7521 return IceConnectionNumber ();
7523 return 0;
7525 _ACEOF
7526 rm -f conftest.$ac_objext conftest$ac_exeext
7527 if { (ac_try="$ac_link"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_link") 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest$ac_exeext && {
7544 test "$cross_compiling" = yes ||
7545 $as_test_x conftest$ac_exeext
7546 }; then
7547 ac_cv_lib_ICE_IceConnectionNumber=yes
7548 else
7549 $as_echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 ac_cv_lib_ICE_IceConnectionNumber=no
7555 rm -rf conftest.dSYM
7556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7561 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7562 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7563 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7566 LDFLAGS=$ac_save_LDFLAGS
7571 if test "$OS390Unix" = "yes"; then
7572 CFLAGS="$CFLAGS -W c,dll"
7573 LDFLAGS="$LDFLAGS -W l,dll"
7574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7578 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7579 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7580 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7581 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7582 X_LIBS="$X_LIBS -L$x_libraries"
7583 if test "`(uname) 2>/dev/null`" = SunOS &&
7584 uname -r | grep '^5' >/dev/null; then
7585 X_LIBS="$X_LIBS -R $x_libraries"
7589 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7590 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7591 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7592 $as_echo "Corrected X includes to $x_includes" >&6; }
7593 X_CFLAGS="$X_CFLAGS -I$x_includes"
7596 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7597 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7598 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7601 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7602 $as_echo_n "checking if X11 header files can be found... " >&6; }
7603 cflags_save=$CFLAGS
7604 CFLAGS="$CFLAGS $X_CFLAGS"
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <X11/Xlib.h>
7612 #include <X11/Intrinsic.h>
7614 main ()
7618 return 0;
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7623 case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626 esac
7627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628 $as_echo "$ac_try_echo") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 { $as_echo "$as_me:$LINENO: result: yes" >&5
7640 $as_echo "yes" >&6; }
7641 else
7642 $as_echo "$as_me: failed program was:" >&5
7643 sed 's/^/| /' conftest.$ac_ext >&5
7645 { $as_echo "$as_me:$LINENO: result: no" >&5
7646 $as_echo "no" >&6; }; no_x=yes
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 CFLAGS=$cflags_save
7652 if test "${no_x-no}" = yes; then
7653 with_x=no
7654 else
7655 cat >>confdefs.h <<\_ACEOF
7656 #define HAVE_X11 1
7657 _ACEOF
7659 X_LIB="-lXt -lX11";
7662 ac_save_LDFLAGS="$LDFLAGS"
7663 LDFLAGS="-L$x_libraries $LDFLAGS"
7665 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7666 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7667 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7668 $as_echo_n "(cached) " >&6
7669 else
7670 ac_check_lib_save_LIBS=$LIBS
7671 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682 #ifdef __cplusplus
7683 extern "C"
7684 #endif
7685 char _XdmcpAuthDoIt ();
7687 main ()
7689 return _XdmcpAuthDoIt ();
7691 return 0;
7693 _ACEOF
7694 rm -f conftest.$ac_objext conftest$ac_exeext
7695 if { (ac_try="$ac_link"
7696 case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699 esac
7700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701 $as_echo "$ac_try_echo") >&5
7702 (eval "$ac_link") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest$ac_exeext && {
7712 test "$cross_compiling" = yes ||
7713 $as_test_x conftest$ac_exeext
7714 }; then
7715 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7716 else
7717 $as_echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7723 rm -rf conftest.dSYM
7724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7728 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7729 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7730 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7735 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7736 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7737 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7738 $as_echo_n "(cached) " >&6
7739 else
7740 ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h. */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7752 #ifdef __cplusplus
7753 extern "C"
7754 #endif
7755 char IceOpenConnection ();
7757 main ()
7759 return IceOpenConnection ();
7761 return 0;
7763 _ACEOF
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (ac_try="$ac_link"
7766 case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7771 $as_echo "$ac_try_echo") >&5
7772 (eval "$ac_link") 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest$ac_exeext && {
7782 test "$cross_compiling" = yes ||
7783 $as_test_x conftest$ac_exeext
7784 }; then
7785 ac_cv_lib_ICE_IceOpenConnection=yes
7786 else
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_lib_ICE_IceOpenConnection=no
7793 rm -rf conftest.dSYM
7794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795 conftest$ac_exeext conftest.$ac_ext
7796 LIBS=$ac_check_lib_save_LIBS
7798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7799 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7800 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7805 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7806 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7807 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7808 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7809 $as_echo_n "(cached) " >&6
7810 else
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 char XpmCreatePixmapFromData ();
7828 main ()
7830 return XpmCreatePixmapFromData ();
7832 return 0;
7834 _ACEOF
7835 rm -f conftest.$ac_objext conftest$ac_exeext
7836 if { (ac_try="$ac_link"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7842 $as_echo "$ac_try_echo") >&5
7843 (eval "$ac_link") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest$ac_exeext && {
7853 test "$cross_compiling" = yes ||
7854 $as_test_x conftest$ac_exeext
7855 }; then
7856 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7857 else
7858 $as_echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7864 rm -rf conftest.dSYM
7865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7866 conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7870 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7871 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7872 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7876 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7877 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7878 cflags_save=$CFLAGS
7879 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h. */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 #include <X11/Xlib.h>
7888 main ()
7892 return 0;
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 { $as_echo "$as_me:$LINENO: result: no" >&5
7914 $as_echo "no" >&6; }
7915 else
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 CFLAGS="$CFLAGS -Wno-implicit-int"
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <X11/Xlib.h>
7928 main ()
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 { $as_echo "$as_me:$LINENO: result: yes" >&5
7954 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7955 else
7956 $as_echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7960 $as_echo "test failed" >&6; }
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 CFLAGS=$cflags_save
7971 LDFLAGS="$ac_save_LDFLAGS"
7976 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7978 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7979 $as_echo_n "checking --enable-gui argument... " >&6; }
7980 # Check whether --enable-gui was given.
7981 if test "${enable_gui+set}" = set; then
7982 enableval=$enable_gui;
7983 else
7984 enable_gui="auto"
7988 enable_gui_canon=`echo "_$enable_gui" | \
7989 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7991 SKIP_GTK=YES
7992 SKIP_GTK2=YES
7993 SKIP_GNOME=YES
7994 SKIP_MOTIF=YES
7995 SKIP_ATHENA=YES
7996 SKIP_NEXTAW=YES
7997 SKIP_PHOTON=YES
7998 SKIP_CARBON=YES
7999 GUITYPE=NONE
8001 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8002 SKIP_PHOTON=
8003 case "$enable_gui_canon" in
8004 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8005 $as_echo "no GUI support" >&6; }
8006 SKIP_PHOTON=YES ;;
8007 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8008 $as_echo "yes - automatic GUI support" >&6; } ;;
8009 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8010 $as_echo "auto - automatic GUI support" >&6; } ;;
8011 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8012 $as_echo "Photon GUI support" >&6; } ;;
8013 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8014 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8015 SKIP_PHOTON=YES ;;
8016 esac
8018 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8019 SKIP_CARBON=
8020 case "$enable_gui_canon" in
8021 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8022 $as_echo "no GUI support" >&6; }
8023 SKIP_CARBON=YES ;;
8024 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8025 $as_echo "yes - automatic GUI support" >&6; } ;;
8026 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8027 $as_echo "auto - automatic GUI support" >&6; } ;;
8028 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8029 $as_echo "Carbon GUI support" >&6; } ;;
8030 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8031 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8032 SKIP_CARBON=YES ;;
8033 esac
8035 else
8037 case "$enable_gui_canon" in
8038 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8039 $as_echo "no GUI support" >&6; } ;;
8040 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8041 $as_echo "yes/auto - automatic GUI support" >&6; }
8042 SKIP_GTK=
8043 SKIP_GTK2=
8044 SKIP_GNOME=
8045 SKIP_MOTIF=
8046 SKIP_ATHENA=
8047 SKIP_NEXTAW=
8048 SKIP_CARBON=;;
8049 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8050 $as_echo "GTK+ 1.x GUI support" >&6; }
8051 SKIP_GTK=;;
8052 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8053 $as_echo "GTK+ 2.x GUI support" >&6; }
8054 SKIP_GTK=
8055 SKIP_GTK2=;;
8056 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8057 $as_echo "GNOME 1.x GUI support" >&6; }
8058 SKIP_GNOME=
8059 SKIP_GTK=;;
8060 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8061 $as_echo "GNOME 2.x GUI support" >&6; }
8062 SKIP_GNOME=
8063 SKIP_GTK=
8064 SKIP_GTK2=;;
8065 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8066 $as_echo "Motif GUI support" >&6; }
8067 SKIP_MOTIF=;;
8068 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8069 $as_echo "Athena GUI support" >&6; }
8070 SKIP_ATHENA=;;
8071 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8072 $as_echo "neXtaw GUI support" >&6; }
8073 SKIP_NEXTAW=;;
8074 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8075 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8076 esac
8080 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8081 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8082 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8083 # Check whether --enable-gtk-check was given.
8084 if test "${enable_gtk_check+set}" = set; then
8085 enableval=$enable_gtk_check;
8086 else
8087 enable_gtk_check="yes"
8090 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8091 $as_echo "$enable_gtk_check" >&6; }
8092 if test "x$enable_gtk_check" = "xno"; then
8093 SKIP_GTK=YES
8094 SKIP_GNOME=YES
8098 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8099 -a "$enable_gui_canon" != "gnome2"; then
8100 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8101 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8102 # Check whether --enable-gtk2-check was given.
8103 if test "${enable_gtk2_check+set}" = set; then
8104 enableval=$enable_gtk2_check;
8105 else
8106 enable_gtk2_check="yes"
8109 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8110 $as_echo "$enable_gtk2_check" >&6; }
8111 if test "x$enable_gtk2_check" = "xno"; then
8112 SKIP_GTK2=YES
8116 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8117 -a "$enable_gui_canon" != "gnome2"; then
8118 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8119 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8120 # Check whether --enable-gnome-check was given.
8121 if test "${enable_gnome_check+set}" = set; then
8122 enableval=$enable_gnome_check;
8123 else
8124 enable_gnome_check="no"
8127 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8128 $as_echo "$enable_gnome_check" >&6; }
8129 if test "x$enable_gnome_check" = "xno"; then
8130 SKIP_GNOME=YES
8134 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8135 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8136 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8137 # Check whether --enable-motif-check was given.
8138 if test "${enable_motif_check+set}" = set; then
8139 enableval=$enable_motif_check;
8140 else
8141 enable_motif_check="yes"
8144 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8145 $as_echo "$enable_motif_check" >&6; }
8146 if test "x$enable_motif_check" = "xno"; then
8147 SKIP_MOTIF=YES
8151 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8152 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8153 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8154 # Check whether --enable-athena-check was given.
8155 if test "${enable_athena_check+set}" = set; then
8156 enableval=$enable_athena_check;
8157 else
8158 enable_athena_check="yes"
8161 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8162 $as_echo "$enable_athena_check" >&6; }
8163 if test "x$enable_athena_check" = "xno"; then
8164 SKIP_ATHENA=YES
8168 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8169 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8170 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8171 # Check whether --enable-nextaw-check was given.
8172 if test "${enable_nextaw_check+set}" = set; then
8173 enableval=$enable_nextaw_check;
8174 else
8175 enable_nextaw_check="yes"
8178 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8179 $as_echo "$enable_nextaw_check" >&6; };
8180 if test "x$enable_nextaw_check" = "xno"; then
8181 SKIP_NEXTAW=YES
8185 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8186 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8187 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8188 # Check whether --enable-carbon-check was given.
8189 if test "${enable_carbon_check+set}" = set; then
8190 enableval=$enable_carbon_check;
8191 else
8192 enable_carbon_check="yes"
8195 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8196 $as_echo "$enable_carbon_check" >&6; };
8197 if test "x$enable_carbon_check" = "xno"; then
8198 SKIP_CARBON=YES
8203 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8204 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8205 $as_echo_n "checking for Carbon GUI... " >&6; }
8206 { $as_echo "$as_me:$LINENO: result: yes" >&5
8207 $as_echo "yes" >&6; };
8208 GUITYPE=CARBONGUI
8209 if test "$VIMNAME" = "vim"; then
8210 VIMNAME=Vim
8213 if test x$prefix = xNONE; then
8214 prefix=/Applications
8217 datadir='${prefix}/Vim.app/Contents/Resources'
8219 SKIP_GTK=YES;
8220 SKIP_GTK2=YES;
8221 SKIP_GNOME=YES;
8222 SKIP_MOTIF=YES;
8223 SKIP_ATHENA=YES;
8224 SKIP_NEXTAW=YES;
8225 SKIP_PHOTON=YES;
8226 SKIP_CARBON=YES
8237 if test -z "$SKIP_GTK"; then
8239 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8240 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8242 # Check whether --with-gtk-prefix was given.
8243 if test "${with_gtk_prefix+set}" = set; then
8244 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8245 $as_echo "$gtk_config_prefix" >&6; }
8246 else
8247 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8248 $as_echo "no" >&6; }
8252 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8253 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8255 # Check whether --with-gtk-exec-prefix was given.
8256 if test "${with_gtk_exec_prefix+set}" = set; then
8257 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8258 $as_echo "$gtk_config_prefix" >&6; }
8259 else
8260 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8261 $as_echo "no" >&6; }
8265 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8266 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8267 # Check whether --enable-gtktest was given.
8268 if test "${enable_gtktest+set}" = set; then
8269 enableval=$enable_gtktest;
8270 else
8271 enable_gtktest=yes
8274 if test "x$enable_gtktest" = "xyes" ; then
8275 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8276 $as_echo "gtk test enabled" >&6; }
8277 else
8278 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8279 $as_echo "gtk test disabled" >&6; }
8282 if test "x$gtk_config_prefix" != "x" ; then
8283 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8284 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8286 if test "x$gtk_config_exec_prefix" != "x" ; then
8287 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8288 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8290 if test "X$GTK_CONFIG" = "X"; then
8291 # Extract the first word of "gtk-config", so it can be a program name with args.
8292 set dummy gtk-config; ac_word=$2
8293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8296 $as_echo_n "(cached) " >&6
8297 else
8298 case $GTK_CONFIG in
8299 [\\/]* | ?:[\\/]*)
8300 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8306 IFS=$as_save_IFS
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8310 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8312 break 2
8314 done
8315 done
8316 IFS=$as_save_IFS
8318 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8320 esac
8322 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8323 if test -n "$GTK_CONFIG"; then
8324 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8325 $as_echo "$GTK_CONFIG" >&6; }
8326 else
8327 { $as_echo "$as_me:$LINENO: result: no" >&5
8328 $as_echo "no" >&6; }
8332 if test "X$GTK_CONFIG" = "Xno"; then
8333 # Extract the first word of "gtk12-config", so it can be a program name with args.
8334 set dummy gtk12-config; ac_word=$2
8335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $GTK12_CONFIG in
8341 [\\/]* | ?:[\\/]*)
8342 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8360 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8362 esac
8364 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8365 if test -n "$GTK12_CONFIG"; then
8366 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8367 $as_echo "$GTK12_CONFIG" >&6; }
8368 else
8369 { $as_echo "$as_me:$LINENO: result: no" >&5
8370 $as_echo "no" >&6; }
8374 GTK_CONFIG="$GTK12_CONFIG"
8376 else
8377 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8378 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8380 if test "X$PKG_CONFIG" = "X"; then
8381 # Extract the first word of "pkg-config", so it can be a program name with args.
8382 set dummy pkg-config; ac_word=$2
8383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8384 $as_echo_n "checking for $ac_word... " >&6; }
8385 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8387 else
8388 case $PKG_CONFIG in
8389 [\\/]* | ?:[\\/]*)
8390 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8408 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8410 esac
8412 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8413 if test -n "$PKG_CONFIG"; then
8414 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8415 $as_echo "$PKG_CONFIG" >&6; }
8416 else
8417 { $as_echo "$as_me:$LINENO: result: no" >&5
8418 $as_echo "no" >&6; }
8424 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8425 if test "X$SKIP_GTK2" != "XYES"; then
8427 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8429 min_gtk_version=2.2.0
8430 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8431 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8432 no_gtk=""
8433 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8434 && $PKG_CONFIG --exists gtk+-2.0; then
8436 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8437 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8438 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8439 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8440 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8441 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8442 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8443 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8444 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8446 elif test "X$GTK_CONFIG" != "Xno"; then
8448 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8449 GTK_LIBDIR=
8450 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8451 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8452 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8453 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8454 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8455 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8456 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8458 else
8459 no_gtk=yes
8462 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8464 ac_save_CFLAGS="$CFLAGS"
8465 ac_save_LIBS="$LIBS"
8466 CFLAGS="$CFLAGS $GTK_CFLAGS"
8467 LIBS="$LIBS $GTK_LIBS"
8469 rm -f conf.gtktest
8470 if test "$cross_compiling" = yes; then
8471 echo $ac_n "cross compiling; assumed OK... $ac_c"
8472 else
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h. */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8480 #include <gtk/gtk.h>
8481 #include <stdio.h>
8482 #if STDC_HEADERS
8483 # include <stdlib.h>
8484 # include <stddef.h>
8485 #endif
8488 main ()
8490 int major, minor, micro;
8491 char *tmp_version;
8493 system ("touch conf.gtktest");
8495 /* HP/UX 9 (%@#!) writes to sscanf strings */
8496 tmp_version = g_strdup("$min_gtk_version");
8497 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8498 printf("%s, bad version string\n", "$min_gtk_version");
8499 exit(1);
8502 if ((gtk_major_version > major) ||
8503 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8504 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8505 (gtk_micro_version >= micro)))
8507 return 0;
8509 return 1;
8512 _ACEOF
8513 rm -f conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8520 $as_echo "$ac_try_echo") >&5
8521 (eval "$ac_link") 2>&5
8522 ac_status=$?
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528 esac
8529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8530 $as_echo "$ac_try_echo") >&5
8531 (eval "$ac_try") 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8536 else
8537 $as_echo "$as_me: program exited with status $ac_status" >&5
8538 $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8541 ( exit $ac_status )
8542 no_gtk=yes
8544 rm -rf conftest.dSYM
8545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8549 CFLAGS="$ac_save_CFLAGS"
8550 LIBS="$ac_save_LIBS"
8553 if test "x$no_gtk" = x ; then
8554 if test "x$enable_gtktest" = "xyes"; then
8555 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8556 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8557 else
8558 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8559 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8561 GUI_LIB_LOC="$GTK_LIBDIR"
8562 GTK_LIBNAME="$GTK_LIBS"
8563 GUI_INC_LOC="$GTK_CFLAGS"
8564 else
8566 { $as_echo "$as_me:$LINENO: result: no" >&5
8567 $as_echo "no" >&6; }
8568 GTK_CFLAGS=""
8569 GTK_LIBS=""
8574 else
8575 GTK_CFLAGS=""
8576 GTK_LIBS=""
8581 rm -f conf.gtktest
8583 if test "x$GTK_CFLAGS" != "x"; then
8584 SKIP_ATHENA=YES
8585 SKIP_NEXTAW=YES
8586 SKIP_MOTIF=YES
8587 GUITYPE=GTK
8592 if test "x$GUITYPE" != "xGTK"; then
8593 SKIP_GTK2=YES
8595 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8597 min_gtk_version=1.1.16
8598 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8599 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8600 no_gtk=""
8601 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8602 && $PKG_CONFIG --exists gtk+-2.0; then
8604 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8605 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8606 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8607 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8608 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8609 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8610 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8611 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8612 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8614 elif test "X$GTK_CONFIG" != "Xno"; then
8616 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8617 GTK_LIBDIR=
8618 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8619 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8620 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8621 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8622 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8623 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8624 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8626 else
8627 no_gtk=yes
8630 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8632 ac_save_CFLAGS="$CFLAGS"
8633 ac_save_LIBS="$LIBS"
8634 CFLAGS="$CFLAGS $GTK_CFLAGS"
8635 LIBS="$LIBS $GTK_LIBS"
8637 rm -f conf.gtktest
8638 if test "$cross_compiling" = yes; then
8639 echo $ac_n "cross compiling; assumed OK... $ac_c"
8640 else
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 #include <gtk/gtk.h>
8649 #include <stdio.h>
8650 #if STDC_HEADERS
8651 # include <stdlib.h>
8652 # include <stddef.h>
8653 #endif
8656 main ()
8658 int major, minor, micro;
8659 char *tmp_version;
8661 system ("touch conf.gtktest");
8663 /* HP/UX 9 (%@#!) writes to sscanf strings */
8664 tmp_version = g_strdup("$min_gtk_version");
8665 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8666 printf("%s, bad version string\n", "$min_gtk_version");
8667 exit(1);
8670 if ((gtk_major_version > major) ||
8671 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8672 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8673 (gtk_micro_version >= micro)))
8675 return 0;
8677 return 1;
8680 _ACEOF
8681 rm -f conftest$ac_exeext
8682 if { (ac_try="$ac_link"
8683 case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8686 esac
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_link") 2>&5
8690 ac_status=$?
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8693 { (case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8698 $as_echo "$ac_try_echo") >&5
8699 (eval "$ac_try") 2>&5
8700 ac_status=$?
8701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; }; then
8704 else
8705 $as_echo "$as_me: program exited with status $ac_status" >&5
8706 $as_echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8709 ( exit $ac_status )
8710 no_gtk=yes
8712 rm -rf conftest.dSYM
8713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8717 CFLAGS="$ac_save_CFLAGS"
8718 LIBS="$ac_save_LIBS"
8721 if test "x$no_gtk" = x ; then
8722 if test "x$enable_gtktest" = "xyes"; then
8723 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8724 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8725 else
8726 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8727 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8729 GTK_LIBNAME="$GTK_LIBS"
8730 GUI_INC_LOC="$GTK_CFLAGS"
8731 else
8733 { $as_echo "$as_me:$LINENO: result: no" >&5
8734 $as_echo "no" >&6; }
8735 GTK_CFLAGS=""
8736 GTK_LIBS=""
8741 else
8742 GTK_CFLAGS=""
8743 GTK_LIBS=""
8748 rm -f conf.gtktest
8750 if test "x$GTK_CFLAGS" != "x"; then
8751 SKIP_ATHENA=YES
8752 SKIP_NEXTAW=YES
8753 SKIP_MOTIF=YES
8754 GUITYPE=GTK
8759 if test "x$GUITYPE" = "xGTK"; then
8760 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8761 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8762 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8763 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8764 else
8766 if test "0$gtk_major_version" -ge 2; then
8767 cat >>confdefs.h <<\_ACEOF
8768 #define HAVE_GTK2 1
8769 _ACEOF
8771 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8772 || test "0$gtk_minor_version" -ge 2 \
8773 || test "0$gtk_major_version" -gt 2; then
8774 cat >>confdefs.h <<\_ACEOF
8775 #define HAVE_GTK_MULTIHEAD 1
8776 _ACEOF
8780 if test -z "$SKIP_GNOME"; then
8788 # Check whether --with-gnome-includes was given.
8789 if test "${with_gnome_includes+set}" = set; then
8790 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8796 # Check whether --with-gnome-libs was given.
8797 if test "${with_gnome_libs+set}" = set; then
8798 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8804 # Check whether --with-gnome was given.
8805 if test "${with_gnome+set}" = set; then
8806 withval=$with_gnome; if test x$withval = xyes; then
8807 want_gnome=yes
8808 have_gnome=yes
8809 else
8810 if test "x$withval" = xno; then
8811 want_gnome=no
8812 else
8813 want_gnome=yes
8814 LDFLAGS="$LDFLAGS -L$withval/lib"
8815 CFLAGS="$CFLAGS -I$withval/include"
8816 gnome_prefix=$withval/lib
8819 else
8820 want_gnome=yes
8824 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8826 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8827 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8828 if $PKG_CONFIG --exists libgnomeui-2.0; then
8829 { $as_echo "$as_me:$LINENO: result: yes" >&5
8830 $as_echo "yes" >&6; }
8831 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8832 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8833 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8835 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8836 $as_echo_n "checking for FreeBSD... " >&6; }
8837 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8838 { $as_echo "$as_me:$LINENO: result: yes" >&5
8839 $as_echo "yes" >&6; }
8840 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8841 GNOME_LIBS="$GNOME_LIBS -pthread"
8842 else
8843 { $as_echo "$as_me:$LINENO: result: no" >&5
8844 $as_echo "no" >&6; }
8846 have_gnome=yes
8847 else
8848 { $as_echo "$as_me:$LINENO: result: not found" >&5
8849 $as_echo "not found" >&6; }
8850 if test "x" = xfail; then
8851 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8852 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8853 { (exit 1); exit 1; }; }
8857 elif test "x$want_gnome" = xyes; then
8859 # Extract the first word of "gnome-config", so it can be a program name with args.
8860 set dummy gnome-config; ac_word=$2
8861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8864 $as_echo_n "(cached) " >&6
8865 else
8866 case $GNOME_CONFIG in
8867 [\\/]* | ?:[\\/]*)
8868 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8882 done
8883 done
8884 IFS=$as_save_IFS
8886 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8888 esac
8890 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8891 if test -n "$GNOME_CONFIG"; then
8892 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8893 $as_echo "$GNOME_CONFIG" >&6; }
8894 else
8895 { $as_echo "$as_me:$LINENO: result: no" >&5
8896 $as_echo "no" >&6; }
8900 if test "$GNOME_CONFIG" = "no"; then
8901 no_gnome_config="yes"
8902 else
8903 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8904 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8905 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8906 { $as_echo "$as_me:$LINENO: result: yes" >&5
8907 $as_echo "yes" >&6; }
8908 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8909 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8910 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8911 have_gnome=yes
8912 else
8913 { $as_echo "$as_me:$LINENO: result: no" >&5
8914 $as_echo "no" >&6; }
8915 no_gnome_config="yes"
8919 if test x$exec_prefix = xNONE; then
8920 if test x$prefix = xNONE; then
8921 gnome_prefix=$ac_default_prefix/lib
8922 else
8923 gnome_prefix=$prefix/lib
8925 else
8926 gnome_prefix=`eval echo \`echo $libdir\``
8929 if test "$no_gnome_config" = "yes"; then
8930 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8931 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8932 if test -f $gnome_prefix/gnomeConf.sh; then
8933 { $as_echo "$as_me:$LINENO: result: found" >&5
8934 $as_echo "found" >&6; }
8935 echo "loading gnome configuration from" \
8936 "$gnome_prefix/gnomeConf.sh"
8937 . $gnome_prefix/gnomeConf.sh
8938 have_gnome=yes
8939 else
8940 { $as_echo "$as_me:$LINENO: result: not found" >&5
8941 $as_echo "not found" >&6; }
8942 if test x = xfail; then
8943 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8944 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8945 { (exit 1); exit 1; }; }
8952 if test x$have_gnome = xyes ; then
8953 cat >>confdefs.h <<\_ACEOF
8954 #define FEAT_GUI_GNOME 1
8955 _ACEOF
8957 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8958 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8968 if test -z "$SKIP_MOTIF"; then
8969 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"
8970 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8972 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8973 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
8974 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8975 GUI_INC_LOC=
8976 for try in $gui_includes; do
8977 if test -f "$try/Xm/Xm.h"; then
8978 GUI_INC_LOC=$try
8980 done
8981 if test -n "$GUI_INC_LOC"; then
8982 if test "$GUI_INC_LOC" = /usr/include; then
8983 GUI_INC_LOC=
8984 { $as_echo "$as_me:$LINENO: result: in default path" >&5
8985 $as_echo "in default path" >&6; }
8986 else
8987 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8988 $as_echo "$GUI_INC_LOC" >&6; }
8990 else
8991 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8992 $as_echo "<not found>" >&6; }
8993 SKIP_MOTIF=YES
8998 if test -z "$SKIP_MOTIF"; then
8999 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9000 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9002 # Check whether --with-motif-lib was given.
9003 if test "${with_motif_lib+set}" = set; then
9004 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9008 if test -n "$MOTIF_LIBNAME"; then
9009 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9010 $as_echo "$MOTIF_LIBNAME" >&6; }
9011 GUI_LIB_LOC=
9012 else
9013 { $as_echo "$as_me:$LINENO: result: no" >&5
9014 $as_echo "no" >&6; }
9016 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9018 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9019 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9020 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"
9021 GUI_LIB_LOC=
9022 for try in $gui_libs; do
9023 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9024 if test -f "$libtry"; then
9025 GUI_LIB_LOC=$try
9027 done
9028 done
9029 if test -n "$GUI_LIB_LOC"; then
9030 if test "$GUI_LIB_LOC" = /usr/lib; then
9031 GUI_LIB_LOC=
9032 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9033 $as_echo "in default path" >&6; }
9034 else
9035 if test -n "$GUI_LIB_LOC"; then
9036 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9037 $as_echo "$GUI_LIB_LOC" >&6; }
9038 if test "`(uname) 2>/dev/null`" = SunOS &&
9039 uname -r | grep '^5' >/dev/null; then
9040 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9044 MOTIF_LIBNAME=-lXm
9045 else
9046 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9047 $as_echo "<not found>" >&6; }
9048 SKIP_MOTIF=YES
9053 if test -z "$SKIP_MOTIF"; then
9054 SKIP_ATHENA=YES
9055 SKIP_NEXTAW=YES
9056 GUITYPE=MOTIF
9061 GUI_X_LIBS=
9063 if test -z "$SKIP_ATHENA"; then
9064 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9065 $as_echo_n "checking if Athena header files can be found... " >&6; }
9066 cflags_save=$CFLAGS
9067 CFLAGS="$CFLAGS $X_CFLAGS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 #include <X11/Intrinsic.h>
9076 #include <X11/Xaw/Paned.h>
9078 main ()
9082 return 0;
9084 _ACEOF
9085 rm -f conftest.$ac_objext
9086 if { (ac_try="$ac_compile"
9087 case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090 esac
9091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9092 $as_echo "$ac_try_echo") >&5
9093 (eval "$ac_compile") 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && {
9100 test -z "$ac_c_werror_flag" ||
9101 test ! -s conftest.err
9102 } && test -s conftest.$ac_objext; then
9103 { $as_echo "$as_me:$LINENO: result: yes" >&5
9104 $as_echo "yes" >&6; }
9105 else
9106 $as_echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9109 { $as_echo "$as_me:$LINENO: result: no" >&5
9110 $as_echo "no" >&6; }; SKIP_ATHENA=YES
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 CFLAGS=$cflags_save
9117 if test -z "$SKIP_ATHENA"; then
9118 GUITYPE=ATHENA
9121 if test -z "$SKIP_NEXTAW"; then
9122 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9123 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9124 cflags_save=$CFLAGS
9125 CFLAGS="$CFLAGS $X_CFLAGS"
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9133 #include <X11/Intrinsic.h>
9134 #include <X11/neXtaw/Paned.h>
9136 main ()
9140 return 0;
9142 _ACEOF
9143 rm -f conftest.$ac_objext
9144 if { (ac_try="$ac_compile"
9145 case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148 esac
9149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9150 $as_echo "$ac_try_echo") >&5
9151 (eval "$ac_compile") 2>conftest.er1
9152 ac_status=$?
9153 grep -v '^ *+' conftest.er1 >conftest.err
9154 rm -f conftest.er1
9155 cat conftest.err >&5
9156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
9161 { $as_echo "$as_me:$LINENO: result: yes" >&5
9162 $as_echo "yes" >&6; }
9163 else
9164 $as_echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 { $as_echo "$as_me:$LINENO: result: no" >&5
9168 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 CFLAGS=$cflags_save
9175 if test -z "$SKIP_NEXTAW"; then
9176 GUITYPE=NEXTAW
9179 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9180 if test -n "$GUI_INC_LOC"; then
9181 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9183 if test -n "$GUI_LIB_LOC"; then
9184 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9187 ldflags_save=$LDFLAGS
9188 LDFLAGS="$X_LIBS $LDFLAGS"
9189 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9190 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9191 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9192 $as_echo_n "(cached) " >&6
9193 else
9194 ac_check_lib_save_LIBS=$LIBS
9195 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9196 cat >conftest.$ac_ext <<_ACEOF
9197 /* confdefs.h. */
9198 _ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char XShapeQueryExtension ();
9211 main ()
9213 return XShapeQueryExtension ();
9215 return 0;
9217 _ACEOF
9218 rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9220 case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223 esac
9224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9225 $as_echo "$ac_try_echo") >&5
9226 (eval "$ac_link") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext && {
9236 test "$cross_compiling" = yes ||
9237 $as_test_x conftest$ac_exeext
9238 }; then
9239 ac_cv_lib_Xext_XShapeQueryExtension=yes
9240 else
9241 $as_echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9244 ac_cv_lib_Xext_XShapeQueryExtension=no
9247 rm -rf conftest.dSYM
9248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9249 conftest$ac_exeext conftest.$ac_ext
9250 LIBS=$ac_check_lib_save_LIBS
9252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9253 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9254 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9255 GUI_X_LIBS="-lXext"
9258 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9259 $as_echo_n "checking for wslen in -lw... " >&6; }
9260 if test "${ac_cv_lib_w_wslen+set}" = set; then
9261 $as_echo_n "(cached) " >&6
9262 else
9263 ac_check_lib_save_LIBS=$LIBS
9264 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9265 cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h. */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char wslen ();
9280 main ()
9282 return wslen ();
9284 return 0;
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
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_link") 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_exeext && {
9305 test "$cross_compiling" = yes ||
9306 $as_test_x conftest$ac_exeext
9307 }; then
9308 ac_cv_lib_w_wslen=yes
9309 else
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9313 ac_cv_lib_w_wslen=no
9316 rm -rf conftest.dSYM
9317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9318 conftest$ac_exeext conftest.$ac_ext
9319 LIBS=$ac_check_lib_save_LIBS
9321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9322 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9323 if test $ac_cv_lib_w_wslen = yes; then
9324 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9327 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9328 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9329 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9330 $as_echo_n "(cached) " >&6
9331 else
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9334 cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h. */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9341 /* Override any GCC internal prototype to avoid an error.
9342 Use char because int might match the return type of a GCC
9343 builtin and then its argument prototype would still apply. */
9344 #ifdef __cplusplus
9345 extern "C"
9346 #endif
9347 char dlsym ();
9349 main ()
9351 return dlsym ();
9353 return 0;
9355 _ACEOF
9356 rm -f conftest.$ac_objext conftest$ac_exeext
9357 if { (ac_try="$ac_link"
9358 case "(($ac_try" in
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9361 esac
9362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9363 $as_echo "$ac_try_echo") >&5
9364 (eval "$ac_link") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest$ac_exeext && {
9374 test "$cross_compiling" = yes ||
9375 $as_test_x conftest$ac_exeext
9376 }; then
9377 ac_cv_lib_dl_dlsym=yes
9378 else
9379 $as_echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_cv_lib_dl_dlsym=no
9385 rm -rf conftest.dSYM
9386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9391 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9392 if test $ac_cv_lib_dl_dlsym = yes; then
9393 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9396 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9397 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9398 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9400 else
9401 ac_check_lib_save_LIBS=$LIBS
9402 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9403 cat >conftest.$ac_ext <<_ACEOF
9404 /* confdefs.h. */
9405 _ACEOF
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char XmuCreateStippledPixmap ();
9418 main ()
9420 return XmuCreateStippledPixmap ();
9422 return 0;
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (ac_try="$ac_link"
9427 case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430 esac
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_link") 2>conftest.er1
9434 ac_status=$?
9435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest$ac_exeext && {
9443 test "$cross_compiling" = yes ||
9444 $as_test_x conftest$ac_exeext
9445 }; then
9446 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9447 else
9448 $as_echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9454 rm -rf conftest.dSYM
9455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9456 conftest$ac_exeext conftest.$ac_ext
9457 LIBS=$ac_check_lib_save_LIBS
9459 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9460 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9461 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9462 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9465 if test -z "$SKIP_MOTIF"; then
9466 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9467 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9468 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9469 $as_echo_n "(cached) " >&6
9470 else
9471 ac_check_lib_save_LIBS=$LIBS
9472 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char XpEndJob ();
9488 main ()
9490 return XpEndJob ();
9492 return 0;
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500 esac
9501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest$ac_exeext
9515 }; then
9516 ac_cv_lib_Xp_XpEndJob=yes
9517 else
9518 $as_echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_lib_Xp_XpEndJob=no
9524 rm -rf conftest.dSYM
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9530 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9531 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9532 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9536 LDFLAGS=$ldflags_save
9538 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9539 $as_echo_n "checking for extra X11 defines... " >&6; }
9540 NARROW_PROTO=
9541 rm -fr conftestdir
9542 if mkdir conftestdir; then
9543 cd conftestdir
9544 cat > Imakefile <<'EOF'
9545 acfindx:
9546 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9548 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9549 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9551 cd ..
9552 rm -fr conftestdir
9554 if test -z "$NARROW_PROTO"; then
9555 { $as_echo "$as_me:$LINENO: result: no" >&5
9556 $as_echo "no" >&6; }
9557 else
9558 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9559 $as_echo "$NARROW_PROTO" >&6; }
9564 if test "$enable_xsmp" = "yes"; then
9565 cppflags_save=$CPPFLAGS
9566 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9568 for ac_header in X11/SM/SMlib.h
9570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9573 $as_echo_n "checking for $ac_header... " >&6; }
9574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9575 $as_echo_n "(cached) " >&6
9577 ac_res=`eval 'as_val=${'$as_ac_Header'}
9578 $as_echo "$as_val"'`
9579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9580 $as_echo "$ac_res" >&6; }
9581 else
9582 # Is the header compilable?
9583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9584 $as_echo_n "checking $ac_header usability... " >&6; }
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h. */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 $ac_includes_default
9592 #include <$ac_header>
9593 _ACEOF
9594 rm -f conftest.$ac_objext
9595 if { (ac_try="$ac_compile"
9596 case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599 esac
9600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9601 $as_echo "$ac_try_echo") >&5
9602 (eval "$ac_compile") 2>conftest.er1
9603 ac_status=$?
9604 grep -v '^ *+' conftest.er1 >conftest.err
9605 rm -f conftest.er1
9606 cat conftest.err >&5
9607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest.$ac_objext; then
9612 ac_header_compiler=yes
9613 else
9614 $as_echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_header_compiler=no
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9622 $as_echo "$ac_header_compiler" >&6; }
9624 # Is the header present?
9625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9626 $as_echo_n "checking $ac_header presence... " >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9628 /* confdefs.h. */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 #include <$ac_header>
9634 _ACEOF
9635 if { (ac_try="$ac_cpp conftest.$ac_ext"
9636 case "(($ac_try" in
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9639 esac
9640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9641 $as_echo "$ac_try_echo") >&5
9642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9643 ac_status=$?
9644 grep -v '^ *+' conftest.er1 >conftest.err
9645 rm -f conftest.er1
9646 cat conftest.err >&5
9647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } >/dev/null && {
9649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 }; then
9652 ac_header_preproc=yes
9653 else
9654 $as_echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9657 ac_header_preproc=no
9660 rm -f conftest.err conftest.$ac_ext
9661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9662 $as_echo "$ac_header_preproc" >&6; }
9664 # So? What about this header?
9665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9666 yes:no: )
9667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9671 ac_header_preproc=yes
9673 no:yes:* )
9674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688 esac
9689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 $as_echo_n "checking for $ac_header... " >&6; }
9691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9692 $as_echo_n "(cached) " >&6
9693 else
9694 eval "$as_ac_Header=\$ac_header_preproc"
9696 ac_res=`eval 'as_val=${'$as_ac_Header'}
9697 $as_echo "$as_val"'`
9698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9699 $as_echo "$ac_res" >&6; }
9702 if test `eval 'as_val=${'$as_ac_Header'}
9703 $as_echo "$as_val"'` = yes; then
9704 cat >>confdefs.h <<_ACEOF
9705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9706 _ACEOF
9710 done
9712 CPPFLAGS=$cppflags_save
9716 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9717 cppflags_save=$CPPFLAGS
9718 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9721 for ac_header in X11/xpm.h X11/Sunkeysym.h
9723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9726 $as_echo_n "checking for $ac_header... " >&6; }
9727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9728 $as_echo_n "(cached) " >&6
9730 ac_res=`eval 'as_val=${'$as_ac_Header'}
9731 $as_echo "$as_val"'`
9732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9733 $as_echo "$ac_res" >&6; }
9734 else
9735 # Is the header compilable?
9736 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9737 $as_echo_n "checking $ac_header usability... " >&6; }
9738 cat >conftest.$ac_ext <<_ACEOF
9739 /* confdefs.h. */
9740 _ACEOF
9741 cat confdefs.h >>conftest.$ac_ext
9742 cat >>conftest.$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 $ac_includes_default
9745 #include <$ac_header>
9746 _ACEOF
9747 rm -f conftest.$ac_objext
9748 if { (ac_try="$ac_compile"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9766 else
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_compiler=no
9773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775 $as_echo "$ac_header_compiler" >&6; }
9777 # Is the header present?
9778 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9779 $as_echo_n "checking $ac_header presence... " >&6; }
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 #include <$ac_header>
9787 _ACEOF
9788 if { (ac_try="$ac_cpp conftest.$ac_ext"
9789 case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792 esac
9793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null && {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 }; then
9805 ac_header_preproc=yes
9806 else
9807 $as_echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 ac_header_preproc=no
9813 rm -f conftest.err conftest.$ac_ext
9814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815 $as_echo "$ac_header_preproc" >&6; }
9817 # So? What about this header?
9818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 yes:no: )
9820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9821 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
9826 no:yes:* )
9827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9828 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9830 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9832 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9841 esac
9842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 $as_echo_n "checking for $ac_header... " >&6; }
9844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9845 $as_echo_n "(cached) " >&6
9846 else
9847 eval "$as_ac_Header=\$ac_header_preproc"
9849 ac_res=`eval 'as_val=${'$as_ac_Header'}
9850 $as_echo "$as_val"'`
9851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9852 $as_echo "$ac_res" >&6; }
9855 if test `eval 'as_val=${'$as_ac_Header'}
9856 $as_echo "$as_val"'` = yes; then
9857 cat >>confdefs.h <<_ACEOF
9858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9859 _ACEOF
9863 done
9866 if test ! "$enable_xim" = "no"; then
9867 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9868 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h. */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <X11/Xlib.h>
9876 _ACEOF
9877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878 $EGREP "XIMText" >/dev/null 2>&1; then
9879 { $as_echo "$as_me:$LINENO: result: yes" >&5
9880 $as_echo "yes" >&6; }
9881 else
9882 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9883 $as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
9885 rm -f conftest*
9888 CPPFLAGS=$cppflags_save
9890 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9891 -a "x$GUITYPE" != "xNONE" ; then
9892 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9893 $as_echo "X GUI selected; xim has been enabled" >&6; }
9894 enable_xim="yes"
9898 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9899 cppflags_save=$CPPFLAGS
9900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9901 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9902 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9910 #include <X11/Intrinsic.h>
9911 #include <X11/Xmu/Editres.h>
9913 main ()
9915 int i; i = 0;
9917 return 0;
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924 *) ac_try_echo=$ac_try;;
9925 esac
9926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9927 $as_echo "$ac_try_echo") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9929 ac_status=$?
9930 grep -v '^ *+' conftest.er1 >conftest.err
9931 rm -f conftest.er1
9932 cat conftest.err >&5
9933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 { $as_echo "$as_me:$LINENO: result: yes" >&5
9939 $as_echo "yes" >&6; }
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_X11_XMU_EDITRES_H 1
9942 _ACEOF
9944 else
9945 $as_echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 { $as_echo "$as_me:$LINENO: result: no" >&5
9949 $as_echo "no" >&6; }
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 CPPFLAGS=$cppflags_save
9956 if test -z "$SKIP_MOTIF"; then
9957 cppflags_save=$CPPFLAGS
9958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9966 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9967 Xm/UnhighlightT.h Xm/Notebook.h
9969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9972 $as_echo_n "checking for $ac_header... " >&6; }
9973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9974 $as_echo_n "(cached) " >&6
9976 ac_res=`eval 'as_val=${'$as_ac_Header'}
9977 $as_echo "$as_val"'`
9978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9979 $as_echo "$ac_res" >&6; }
9980 else
9981 # Is the header compilable?
9982 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983 $as_echo_n "checking $ac_header usability... " >&6; }
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 #include <$ac_header>
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9995 case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9998 esac
9999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000 $as_echo "$ac_try_echo") >&5
10001 (eval "$ac_compile") 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest.$ac_objext; then
10011 ac_header_compiler=yes
10012 else
10013 $as_echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 ac_header_compiler=no
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021 $as_echo "$ac_header_compiler" >&6; }
10023 # Is the header present?
10024 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025 $as_echo_n "checking $ac_header presence... " >&6; }
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #include <$ac_header>
10033 _ACEOF
10034 if { (ac_try="$ac_cpp conftest.$ac_ext"
10035 case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038 esac
10039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10040 $as_echo "$ac_try_echo") >&5
10041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } >/dev/null && {
10048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 }; then
10051 ac_header_preproc=yes
10052 else
10053 $as_echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_header_preproc=no
10059 rm -f conftest.err conftest.$ac_ext
10060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10061 $as_echo "$ac_header_preproc" >&6; }
10063 # So? What about this header?
10064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10065 yes:no: )
10066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10067 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10070 ac_header_preproc=yes
10072 no:yes:* )
10073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10074 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10076 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10078 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10080 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10084 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10087 esac
10088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 $as_echo_n "checking for $ac_header... " >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091 $as_echo_n "(cached) " >&6
10092 else
10093 eval "$as_ac_Header=\$ac_header_preproc"
10095 ac_res=`eval 'as_val=${'$as_ac_Header'}
10096 $as_echo "$as_val"'`
10097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10098 $as_echo "$ac_res" >&6; }
10101 if test `eval 'as_val=${'$as_ac_Header'}
10102 $as_echo "$as_val"'` = yes; then
10103 cat >>confdefs.h <<_ACEOF
10104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10105 _ACEOF
10109 done
10112 if test $ac_cv_header_Xm_XpmP_h = yes; then
10113 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10114 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 #include <Xm/XpmP.h>
10123 main ()
10125 XpmAttributes_21 attr;
10127 return 0;
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.$ac_objext; then
10148 { $as_echo "$as_me:$LINENO: result: yes" >&5
10149 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10150 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10151 _ACEOF
10153 else
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 { $as_echo "$as_me:$LINENO: result: no" >&5
10158 $as_echo "no" >&6; }; cat >>confdefs.h <<\_ACEOF
10159 #define XPMATTRIBUTES_TYPE XpmAttributes
10160 _ACEOF
10165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10166 else
10167 cat >>confdefs.h <<\_ACEOF
10168 #define XPMATTRIBUTES_TYPE XpmAttributes
10169 _ACEOF
10172 CPPFLAGS=$cppflags_save
10175 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10176 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10177 $as_echo "no GUI selected; xim has been disabled" >&6; }
10178 enable_xim="no"
10180 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10181 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10182 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10183 enable_fontset="no"
10185 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10186 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10187 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10188 enable_fontset="no"
10191 if test -z "$SKIP_PHOTON"; then
10192 GUITYPE=PHOTONGUI
10200 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10201 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10202 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10203 { (exit 1); exit 1; }; }
10206 if test "$enable_xim" = "yes"; then
10207 cat >>confdefs.h <<\_ACEOF
10208 #define FEAT_XIM 1
10209 _ACEOF
10212 if test "$enable_fontset" = "yes"; then
10213 cat >>confdefs.h <<\_ACEOF
10214 #define FEAT_XFONTSET 1
10215 _ACEOF
10222 if test "$enable_hangulinput" = "yes"; then
10223 if test "x$GUITYPE" = "xNONE"; then
10224 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10225 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10226 enable_hangulinput=no
10227 else
10228 cat >>confdefs.h <<\_ACEOF
10229 #define FEAT_HANGULIN 1
10230 _ACEOF
10232 HANGULIN_SRC=hangulin.c
10234 HANGULIN_OBJ=objects/hangulin.o
10240 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10241 $as_echo_n "checking whether toupper is broken... " >&6; }
10242 if test "${vim_cv_toupper_broken+set}" = set; then
10243 $as_echo_n "(cached) " >&6
10244 else
10246 if test "$cross_compiling" = yes; then
10248 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10249 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10250 { (exit 1); exit 1; }; }
10252 else
10253 cat >conftest.$ac_ext <<_ACEOF
10255 #include "confdefs.h"
10256 #include <ctype.h>
10257 #if STDC_HEADERS
10258 # include <stdlib.h>
10259 # include <stddef.h>
10260 #endif
10261 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10263 _ACEOF
10264 rm -f conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10269 esac
10270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10271 $as_echo "$ac_try_echo") >&5
10272 (eval "$ac_link") 2>&5
10273 ac_status=$?
10274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10276 { (case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281 $as_echo "$ac_try_echo") >&5
10282 (eval "$ac_try") 2>&5
10283 ac_status=$?
10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10287 vim_cv_toupper_broken=yes
10289 else
10290 $as_echo "$as_me: program exited with status $ac_status" >&5
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ( exit $ac_status )
10296 vim_cv_toupper_broken=no
10299 rm -rf conftest.dSYM
10300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10305 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10306 $as_echo "$vim_cv_toupper_broken" >&6; }
10308 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10309 cat >>confdefs.h <<\_ACEOF
10310 #define BROKEN_TOUPPER 1
10311 _ACEOF
10315 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10316 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 #include <stdio.h>
10325 main ()
10327 printf("(" __DATE__ " " __TIME__ ")");
10329 return 0;
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10339 $as_echo "$ac_try_echo") >&5
10340 (eval "$ac_compile") 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest.$ac_objext; then
10350 { $as_echo "$as_me:$LINENO: result: yes" >&5
10351 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_DATE_TIME 1
10353 _ACEOF
10355 else
10356 $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 { $as_echo "$as_me:$LINENO: result: no" >&5
10360 $as_echo "no" >&6; }
10363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10366 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <stdio.h>
10375 main ()
10377 int x __attribute__((unused));
10379 return 0;
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (ac_try="$ac_compile"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387 esac
10388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10389 $as_echo "$ac_try_echo") >&5
10390 (eval "$ac_compile") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest.$ac_objext; then
10400 { $as_echo "$as_me:$LINENO: result: yes" >&5
10401 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_ATTRIBUTE_UNUSED 1
10403 _ACEOF
10405 else
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 { $as_echo "$as_me:$LINENO: result: no" >&5
10410 $as_echo "no" >&6; }
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415 if test "${ac_cv_header_elf_h+set}" = set; then
10416 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10417 $as_echo_n "checking for elf.h... " >&6; }
10418 if test "${ac_cv_header_elf_h+set}" = set; then
10419 $as_echo_n "(cached) " >&6
10421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10422 $as_echo "$ac_cv_header_elf_h" >&6; }
10423 else
10424 # Is the header compilable?
10425 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10426 $as_echo_n "checking elf.h usability... " >&6; }
10427 cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h. */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 $ac_includes_default
10434 #include <elf.h>
10435 _ACEOF
10436 rm -f conftest.$ac_objext
10437 if { (ac_try="$ac_compile"
10438 case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10441 esac
10442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10443 $as_echo "$ac_try_echo") >&5
10444 (eval "$ac_compile") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest.$ac_objext; then
10454 ac_header_compiler=yes
10455 else
10456 $as_echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 ac_header_compiler=no
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 $as_echo "$ac_header_compiler" >&6; }
10466 # Is the header present?
10467 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10468 $as_echo_n "checking elf.h presence... " >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10470 /* confdefs.h. */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 #include <elf.h>
10476 _ACEOF
10477 if { (ac_try="$ac_cpp conftest.$ac_ext"
10478 case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10481 esac
10482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10483 $as_echo "$ac_try_echo") >&5
10484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null && {
10491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 }; then
10494 ac_header_preproc=yes
10495 else
10496 $as_echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_header_preproc=no
10502 rm -f conftest.err conftest.$ac_ext
10503 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10504 $as_echo "$ac_header_preproc" >&6; }
10506 # So? What about this header?
10507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10508 yes:no: )
10509 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10510 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10511 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10512 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10513 ac_header_preproc=yes
10515 no:yes:* )
10516 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10517 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10518 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10519 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10520 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10521 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10522 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10523 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10524 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10525 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10526 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10527 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10530 esac
10531 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10532 $as_echo_n "checking for elf.h... " >&6; }
10533 if test "${ac_cv_header_elf_h+set}" = set; then
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_cv_header_elf_h=$ac_header_preproc
10538 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10539 $as_echo "$ac_cv_header_elf_h" >&6; }
10542 if test $ac_cv_header_elf_h = yes; then
10543 HAS_ELF=1
10547 if test "$HAS_ELF" = 1; then
10549 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10550 $as_echo_n "checking for main in -lelf... " >&6; }
10551 if test "${ac_cv_lib_elf_main+set}" = set; then
10552 $as_echo_n "(cached) " >&6
10553 else
10554 ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lelf $LIBS"
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10565 main ()
10567 return main ();
10569 return 0;
10571 _ACEOF
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (ac_try="$ac_link"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10579 $as_echo "$ac_try_echo") >&5
10580 (eval "$ac_link") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext && {
10590 test "$cross_compiling" = yes ||
10591 $as_test_x conftest$ac_exeext
10592 }; then
10593 ac_cv_lib_elf_main=yes
10594 else
10595 $as_echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_cv_lib_elf_main=no
10601 rm -rf conftest.dSYM
10602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10603 conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10607 $as_echo "$ac_cv_lib_elf_main" >&6; }
10608 if test $ac_cv_lib_elf_main = yes; then
10609 cat >>confdefs.h <<_ACEOF
10610 #define HAVE_LIBELF 1
10611 _ACEOF
10613 LIBS="-lelf $LIBS"
10624 ac_header_dirent=no
10625 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10626 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10627 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10628 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 $as_echo_n "(cached) " >&6
10631 else
10632 cat >conftest.$ac_ext <<_ACEOF
10633 /* confdefs.h. */
10634 _ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <sys/types.h>
10639 #include <$ac_hdr>
10642 main ()
10644 if ((DIR *) 0)
10645 return 0;
10647 return 0;
10649 _ACEOF
10650 rm -f conftest.$ac_objext
10651 if { (ac_try="$ac_compile"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10655 esac
10656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10657 $as_echo "$ac_try_echo") >&5
10658 (eval "$ac_compile") 2>conftest.er1
10659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest.$ac_objext; then
10668 eval "$as_ac_Header=yes"
10669 else
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 eval "$as_ac_Header=no"
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678 ac_res=`eval 'as_val=${'$as_ac_Header'}
10679 $as_echo "$as_val"'`
10680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10681 $as_echo "$ac_res" >&6; }
10682 if test `eval 'as_val=${'$as_ac_Header'}
10683 $as_echo "$as_val"'` = yes; then
10684 cat >>confdefs.h <<_ACEOF
10685 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10686 _ACEOF
10688 ac_header_dirent=$ac_hdr; break
10691 done
10692 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10693 if test $ac_header_dirent = dirent.h; then
10694 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10695 $as_echo_n "checking for library containing opendir... " >&6; }
10696 if test "${ac_cv_search_opendir+set}" = set; then
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_func_search_save_LIBS=$LIBS
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710 #ifdef __cplusplus
10711 extern "C"
10712 #endif
10713 char opendir ();
10715 main ()
10717 return opendir ();
10719 return 0;
10721 _ACEOF
10722 for ac_lib in '' dir; do
10723 if test -z "$ac_lib"; then
10724 ac_res="none required"
10725 else
10726 ac_res=-l$ac_lib
10727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (ac_try="$ac_link"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736 $as_echo "$ac_try_echo") >&5
10737 (eval "$ac_link") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext && {
10747 test "$cross_compiling" = yes ||
10748 $as_test_x conftest$ac_exeext
10749 }; then
10750 ac_cv_search_opendir=$ac_res
10751 else
10752 $as_echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10758 rm -rf conftest.dSYM
10759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10760 conftest$ac_exeext
10761 if test "${ac_cv_search_opendir+set}" = set; then
10762 break
10764 done
10765 if test "${ac_cv_search_opendir+set}" = set; then
10767 else
10768 ac_cv_search_opendir=no
10770 rm conftest.$ac_ext
10771 LIBS=$ac_func_search_save_LIBS
10773 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10774 $as_echo "$ac_cv_search_opendir" >&6; }
10775 ac_res=$ac_cv_search_opendir
10776 if test "$ac_res" != no; then
10777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10781 else
10782 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10783 $as_echo_n "checking for library containing opendir... " >&6; }
10784 if test "${ac_cv_search_opendir+set}" = set; then
10785 $as_echo_n "(cached) " >&6
10786 else
10787 ac_func_search_save_LIBS=$LIBS
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char opendir ();
10803 main ()
10805 return opendir ();
10807 return 0;
10809 _ACEOF
10810 for ac_lib in '' x; do
10811 if test -z "$ac_lib"; then
10812 ac_res="none required"
10813 else
10814 ac_res=-l$ac_lib
10815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10817 rm -f conftest.$ac_objext conftest$ac_exeext
10818 if { (ac_try="$ac_link"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822 esac
10823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10824 $as_echo "$ac_try_echo") >&5
10825 (eval "$ac_link") 2>conftest.er1
10826 ac_status=$?
10827 grep -v '^ *+' conftest.er1 >conftest.err
10828 rm -f conftest.er1
10829 cat conftest.err >&5
10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest$ac_exeext && {
10835 test "$cross_compiling" = yes ||
10836 $as_test_x conftest$ac_exeext
10837 }; then
10838 ac_cv_search_opendir=$ac_res
10839 else
10840 $as_echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10846 rm -rf conftest.dSYM
10847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10848 conftest$ac_exeext
10849 if test "${ac_cv_search_opendir+set}" = set; then
10850 break
10852 done
10853 if test "${ac_cv_search_opendir+set}" = set; then
10855 else
10856 ac_cv_search_opendir=no
10858 rm conftest.$ac_ext
10859 LIBS=$ac_func_search_save_LIBS
10861 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10862 $as_echo "$ac_cv_search_opendir" >&6; }
10863 ac_res=$ac_cv_search_opendir
10864 if test "$ac_res" != no; then
10865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10872 if test $ac_cv_header_sys_wait_h = no; then
10873 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10874 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h. */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <sys/wait.h>
10883 main ()
10885 union wait xx, yy; xx = yy
10887 return 0;
10889 _ACEOF
10890 rm -f conftest.$ac_objext
10891 if { (ac_try="$ac_compile"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898 (eval "$ac_compile") 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } && {
10905 test -z "$ac_c_werror_flag" ||
10906 test ! -s conftest.err
10907 } && test -s conftest.$ac_objext; then
10908 { $as_echo "$as_me:$LINENO: result: yes" >&5
10909 $as_echo "yes" >&6; }
10910 cat >>confdefs.h <<\_ACEOF
10911 #define HAVE_SYS_WAIT_H 1
10912 _ACEOF
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_UNION_WAIT 1
10916 _ACEOF
10918 else
10919 $as_echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 { $as_echo "$as_me:$LINENO: result: no" >&5
10923 $as_echo "no" >&6; }
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10971 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10972 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10973 sys/resource.h sys/systeminfo.h locale.h \
10974 sys/stream.h termios.h libc.h sys/statfs.h \
10975 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10976 libgen.h util/debug.h util/msg18n.h frame.h \
10977 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
10979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10982 $as_echo_n "checking for $ac_header... " >&6; }
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984 $as_echo_n "(cached) " >&6
10986 ac_res=`eval 'as_val=${'$as_ac_Header'}
10987 $as_echo "$as_val"'`
10988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10989 $as_echo "$ac_res" >&6; }
10990 else
10991 # Is the header compilable?
10992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10993 $as_echo_n "checking $ac_header usability... " >&6; }
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. */
11000 $ac_includes_default
11001 #include <$ac_header>
11002 _ACEOF
11003 rm -f conftest.$ac_objext
11004 if { (ac_try="$ac_compile"
11005 case "(($ac_try" in
11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11008 esac
11009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11010 $as_echo "$ac_try_echo") >&5
11011 (eval "$ac_compile") 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && {
11018 test -z "$ac_c_werror_flag" ||
11019 test ! -s conftest.err
11020 } && test -s conftest.$ac_objext; then
11021 ac_header_compiler=yes
11022 else
11023 $as_echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_header_compiler=no
11029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11031 $as_echo "$ac_header_compiler" >&6; }
11033 # Is the header present?
11034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11035 $as_echo_n "checking $ac_header presence... " >&6; }
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h. */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 #include <$ac_header>
11043 _ACEOF
11044 if { (ac_try="$ac_cpp conftest.$ac_ext"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11050 $as_echo "$ac_try_echo") >&5
11051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null && {
11058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 }; then
11061 ac_header_preproc=yes
11062 else
11063 $as_echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_header_preproc=no
11069 rm -f conftest.err conftest.$ac_ext
11070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11071 $as_echo "$ac_header_preproc" >&6; }
11073 # So? What about this header?
11074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11075 yes:no: )
11076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11080 ac_header_preproc=yes
11082 no:yes:* )
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11097 esac
11098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 $as_echo_n "checking for $ac_header... " >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 $as_echo_n "(cached) " >&6
11102 else
11103 eval "$as_ac_Header=\$ac_header_preproc"
11105 ac_res=`eval 'as_val=${'$as_ac_Header'}
11106 $as_echo "$as_val"'`
11107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11108 $as_echo "$ac_res" >&6; }
11111 if test `eval 'as_val=${'$as_ac_Header'}
11112 $as_echo "$as_val"'` = yes; then
11113 cat >>confdefs.h <<_ACEOF
11114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11115 _ACEOF
11119 done
11123 for ac_header in sys/ptem.h
11125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11127 $as_echo_n "checking for $ac_header... " >&6; }
11128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11129 $as_echo_n "(cached) " >&6
11130 else
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 #if defined HAVE_SYS_STREAM_H
11138 # include <sys/stream.h>
11139 #endif
11141 #include <$ac_header>
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (ac_try="$ac_compile"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148 esac
11149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11150 $as_echo "$ac_try_echo") >&5
11151 (eval "$ac_compile") 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } && {
11158 test -z "$ac_c_werror_flag" ||
11159 test ! -s conftest.err
11160 } && test -s conftest.$ac_objext; then
11161 eval "$as_ac_Header=yes"
11162 else
11163 $as_echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 eval "$as_ac_Header=no"
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 ac_res=`eval 'as_val=${'$as_ac_Header'}
11172 $as_echo "$as_val"'`
11173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11174 $as_echo "$ac_res" >&6; }
11175 if test `eval 'as_val=${'$as_ac_Header'}
11176 $as_echo "$as_val"'` = yes; then
11177 cat >>confdefs.h <<_ACEOF
11178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11179 _ACEOF
11183 done
11187 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11188 $as_echo_n "checking for pthread_np.h... " >&6; }
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h. */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11196 #include <pthread.h>
11197 #include <pthread_np.h>
11199 main ()
11201 int i; i = 0;
11203 return 0;
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (ac_try="$ac_compile"
11208 case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211 esac
11212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11213 $as_echo "$ac_try_echo") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } && {
11221 test -z "$ac_c_werror_flag" ||
11222 test ! -s conftest.err
11223 } && test -s conftest.$ac_objext; then
11224 { $as_echo "$as_me:$LINENO: result: yes" >&5
11225 $as_echo "yes" >&6; }
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_PTHREAD_NP_H 1
11228 _ACEOF
11230 else
11231 $as_echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 { $as_echo "$as_me:$LINENO: result: no" >&5
11235 $as_echo "no" >&6; }
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 for ac_header in strings.h
11243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11246 $as_echo_n "checking for $ac_header... " >&6; }
11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11248 $as_echo_n "(cached) " >&6
11250 ac_res=`eval 'as_val=${'$as_ac_Header'}
11251 $as_echo "$as_val"'`
11252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11253 $as_echo "$ac_res" >&6; }
11254 else
11255 # Is the header compilable?
11256 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11257 $as_echo_n "checking $ac_header usability... " >&6; }
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h. */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11265 #include <$ac_header>
11266 _ACEOF
11267 rm -f conftest.$ac_objext
11268 if { (ac_try="$ac_compile"
11269 case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272 esac
11273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11274 $as_echo "$ac_try_echo") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest.$ac_objext; then
11285 ac_header_compiler=yes
11286 else
11287 $as_echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.$ac_ext >&5
11290 ac_header_compiler=no
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295 $as_echo "$ac_header_compiler" >&6; }
11297 # Is the header present?
11298 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299 $as_echo_n "checking $ac_header presence... " >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11306 #include <$ac_header>
11307 _ACEOF
11308 if { (ac_try="$ac_cpp conftest.$ac_ext"
11309 case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312 esac
11313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11314 $as_echo "$ac_try_echo") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null && {
11322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11323 test ! -s conftest.err
11324 }; then
11325 ac_header_preproc=yes
11326 else
11327 $as_echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11330 ac_header_preproc=no
11333 rm -f conftest.err conftest.$ac_ext
11334 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335 $as_echo "$ac_header_preproc" >&6; }
11337 # So? What about this header?
11338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339 yes:no: )
11340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11341 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11344 ac_header_preproc=yes
11346 no:yes:* )
11347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11348 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11350 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11352 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11354 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11358 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11361 esac
11362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11363 $as_echo_n "checking for $ac_header... " >&6; }
11364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11365 $as_echo_n "(cached) " >&6
11366 else
11367 eval "$as_ac_Header=\$ac_header_preproc"
11369 ac_res=`eval 'as_val=${'$as_ac_Header'}
11370 $as_echo "$as_val"'`
11371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11372 $as_echo "$ac_res" >&6; }
11375 if test `eval 'as_val=${'$as_ac_Header'}
11376 $as_echo "$as_val"'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379 _ACEOF
11383 done
11385 if test "x$MACOSX" = "xyes"; then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define NO_STRINGS_WITH_STRING_H 1
11388 _ACEOF
11390 else
11392 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11393 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11394 cppflags_save=$CPPFLAGS
11395 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11403 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11404 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11405 /* but don't do it on AIX 5.1 (Uribarri) */
11406 #endif
11407 #ifdef HAVE_XM_XM_H
11408 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11409 #endif
11410 #ifdef HAVE_STRING_H
11411 # include <string.h>
11412 #endif
11413 #if defined(HAVE_STRINGS_H)
11414 # include <strings.h>
11415 #endif
11418 main ()
11420 int i; i = 0;
11422 return 0;
11424 _ACEOF
11425 rm -f conftest.$ac_objext
11426 if { (ac_try="$ac_compile"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430 esac
11431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11432 $as_echo "$ac_try_echo") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_c_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest.$ac_objext; then
11443 { $as_echo "$as_me:$LINENO: result: yes" >&5
11444 $as_echo "yes" >&6; }
11445 else
11446 $as_echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 cat >>confdefs.h <<\_ACEOF
11450 #define NO_STRINGS_WITH_STRING_H 1
11451 _ACEOF
11453 { $as_echo "$as_me:$LINENO: result: no" >&5
11454 $as_echo "no" >&6; }
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458 CPPFLAGS=$cppflags_save
11461 if test $ac_cv_c_compiler_gnu = yes; then
11462 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11463 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11464 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11465 $as_echo_n "(cached) " >&6
11466 else
11467 ac_pattern="Autoconf.*'x'"
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h. */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 #include <sgtty.h>
11475 Autoconf TIOCGETP
11476 _ACEOF
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11479 ac_cv_prog_gcc_traditional=yes
11480 else
11481 ac_cv_prog_gcc_traditional=no
11483 rm -f conftest*
11486 if test $ac_cv_prog_gcc_traditional = no; then
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 #include <termio.h>
11494 Autoconf TCGETA
11495 _ACEOF
11496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11497 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11498 ac_cv_prog_gcc_traditional=yes
11500 rm -f conftest*
11504 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11505 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11506 if test $ac_cv_prog_gcc_traditional = yes; then
11507 CC="$CC -traditional"
11511 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11512 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11513 if test "${ac_cv_c_const+set}" = set; then
11514 $as_echo_n "(cached) " >&6
11515 else
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11524 main ()
11526 /* FIXME: Include the comments suggested by Paul. */
11527 #ifndef __cplusplus
11528 /* Ultrix mips cc rejects this. */
11529 typedef int charset[2];
11530 const charset cs;
11531 /* SunOS 4.1.1 cc rejects this. */
11532 char const *const *pcpcc;
11533 char **ppc;
11534 /* NEC SVR4.0.2 mips cc rejects this. */
11535 struct point {int x, y;};
11536 static struct point const zero = {0,0};
11537 /* AIX XL C 1.02.0.0 rejects this.
11538 It does not let you subtract one const X* pointer from another in
11539 an arm of an if-expression whose if-part is not a constant
11540 expression */
11541 const char *g = "string";
11542 pcpcc = &g + (g ? g-g : 0);
11543 /* HPUX 7.0 cc rejects these. */
11544 ++pcpcc;
11545 ppc = (char**) pcpcc;
11546 pcpcc = (char const *const *) ppc;
11547 { /* SCO 3.2v4 cc rejects this. */
11548 char *t;
11549 char const *s = 0 ? (char *) 0 : (char const *) 0;
11551 *t++ = 0;
11552 if (s) return 0;
11554 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11555 int x[] = {25, 17};
11556 const int *foo = &x[0];
11557 ++foo;
11559 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11560 typedef const int *iptr;
11561 iptr p = 0;
11562 ++p;
11564 { /* AIX XL C 1.02.0.0 rejects this saying
11565 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11566 struct s { int j; const int *ap[3]; };
11567 struct s *b; b->j = 5;
11569 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11570 const int foo = 10;
11571 if (!foo) return 0;
11573 return !cs[0] && !zero.x;
11574 #endif
11577 return 0;
11579 _ACEOF
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11585 esac
11586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11587 $as_echo "$ac_try_echo") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.$ac_objext; then
11598 ac_cv_c_const=yes
11599 else
11600 $as_echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_c_const=no
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11609 $as_echo "$ac_cv_c_const" >&6; }
11610 if test $ac_cv_c_const = no; then
11612 cat >>confdefs.h <<\_ACEOF
11613 #define const /**/
11614 _ACEOF
11618 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11619 $as_echo_n "checking for working volatile... " >&6; }
11620 if test "${ac_cv_c_volatile+set}" = set; then
11621 $as_echo_n "(cached) " >&6
11622 else
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11631 main ()
11634 volatile int x;
11635 int * volatile y = (int *) 0;
11636 return !x && !y;
11638 return 0;
11640 _ACEOF
11641 rm -f conftest.$ac_objext
11642 if { (ac_try="$ac_compile"
11643 case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646 esac
11647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11648 $as_echo "$ac_try_echo") >&5
11649 (eval "$ac_compile") 2>conftest.er1
11650 ac_status=$?
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
11654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } && {
11656 test -z "$ac_c_werror_flag" ||
11657 test ! -s conftest.err
11658 } && test -s conftest.$ac_objext; then
11659 ac_cv_c_volatile=yes
11660 else
11661 $as_echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_cv_c_volatile=no
11667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11670 $as_echo "$ac_cv_c_volatile" >&6; }
11671 if test $ac_cv_c_volatile = no; then
11673 cat >>confdefs.h <<\_ACEOF
11674 #define volatile /**/
11675 _ACEOF
11679 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11680 $as_echo_n "checking for mode_t... " >&6; }
11681 if test "${ac_cv_type_mode_t+set}" = set; then
11682 $as_echo_n "(cached) " >&6
11683 else
11684 ac_cv_type_mode_t=no
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691 $ac_includes_default
11693 main ()
11695 if (sizeof (mode_t))
11696 return 0;
11698 return 0;
11700 _ACEOF
11701 rm -f conftest.$ac_objext
11702 if { (ac_try="$ac_compile"
11703 case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11706 esac
11707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708 $as_echo "$ac_try_echo") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 $ac_includes_default
11727 main ()
11729 if (sizeof ((mode_t)))
11730 return 0;
11732 return 0;
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (ac_try="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740 esac
11741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742 $as_echo "$ac_try_echo") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.$ac_objext; then
11754 else
11755 $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11758 ac_cv_type_mode_t=yes
11761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 else
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11772 $as_echo "$ac_cv_type_mode_t" >&6; }
11773 if test $ac_cv_type_mode_t = yes; then
11775 else
11777 cat >>confdefs.h <<_ACEOF
11778 #define mode_t int
11779 _ACEOF
11783 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11784 $as_echo_n "checking for off_t... " >&6; }
11785 if test "${ac_cv_type_off_t+set}" = set; then
11786 $as_echo_n "(cached) " >&6
11787 else
11788 ac_cv_type_off_t=no
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. */
11795 $ac_includes_default
11797 main ()
11799 if (sizeof (off_t))
11800 return 0;
11802 return 0;
11804 _ACEOF
11805 rm -f conftest.$ac_objext
11806 if { (ac_try="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810 esac
11811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11812 $as_echo "$ac_try_echo") >&5
11813 (eval "$ac_compile") 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } && {
11820 test -z "$ac_c_werror_flag" ||
11821 test ! -s conftest.err
11822 } && test -s conftest.$ac_objext; then
11823 cat >conftest.$ac_ext <<_ACEOF
11824 /* confdefs.h. */
11825 _ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 $ac_includes_default
11831 main ()
11833 if (sizeof ((off_t)))
11834 return 0;
11836 return 0;
11838 _ACEOF
11839 rm -f conftest.$ac_objext
11840 if { (ac_try="$ac_compile"
11841 case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844 esac
11845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11846 $as_echo "$ac_try_echo") >&5
11847 (eval "$ac_compile") 2>conftest.er1
11848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11858 else
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_cv_type_off_t=yes
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 else
11867 $as_echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11876 $as_echo "$ac_cv_type_off_t" >&6; }
11877 if test $ac_cv_type_off_t = yes; then
11879 else
11881 cat >>confdefs.h <<_ACEOF
11882 #define off_t long int
11883 _ACEOF
11887 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11888 $as_echo_n "checking for pid_t... " >&6; }
11889 if test "${ac_cv_type_pid_t+set}" = set; then
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_cv_type_pid_t=no
11893 cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h. */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 $ac_includes_default
11901 main ()
11903 if (sizeof (pid_t))
11904 return 0;
11906 return 0;
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (ac_try="$ac_compile"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914 esac
11915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916 $as_echo "$ac_try_echo") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11918 ac_status=$?
11919 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1
11921 cat conftest.err >&5
11922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 cat >conftest.$ac_ext <<_ACEOF
11928 /* confdefs.h. */
11929 _ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11935 main ()
11937 if (sizeof ((pid_t)))
11938 return 0;
11940 return 0;
11942 _ACEOF
11943 rm -f conftest.$ac_objext
11944 if { (ac_try="$ac_compile"
11945 case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948 esac
11949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11950 $as_echo "$ac_try_echo") >&5
11951 (eval "$ac_compile") 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest.$ac_objext; then
11962 else
11963 $as_echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_cv_type_pid_t=yes
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 else
11971 $as_echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11980 $as_echo "$ac_cv_type_pid_t" >&6; }
11981 if test $ac_cv_type_pid_t = yes; then
11983 else
11985 cat >>confdefs.h <<_ACEOF
11986 #define pid_t int
11987 _ACEOF
11991 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11992 $as_echo_n "checking for size_t... " >&6; }
11993 if test "${ac_cv_type_size_t+set}" = set; then
11994 $as_echo_n "(cached) " >&6
11995 else
11996 ac_cv_type_size_t=no
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12005 main ()
12007 if (sizeof (size_t))
12008 return 0;
12010 return 0;
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020 $as_echo "$ac_try_echo") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } && {
12028 test -z "$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 } && test -s conftest.$ac_objext; then
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 $ac_includes_default
12039 main ()
12041 if (sizeof ((size_t)))
12042 return 0;
12044 return 0;
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (ac_try="$ac_compile"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12052 esac
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_compile") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest.$ac_objext; then
12066 else
12067 $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ac_cv_type_size_t=yes
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 else
12075 $as_echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12084 $as_echo "$ac_cv_type_size_t" >&6; }
12085 if test $ac_cv_type_size_t = yes; then
12087 else
12089 cat >>confdefs.h <<_ACEOF
12090 #define size_t unsigned int
12091 _ACEOF
12095 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12096 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12097 if test "${ac_cv_type_uid_t+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12099 else
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h. */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12106 #include <sys/types.h>
12108 _ACEOF
12109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12110 $EGREP "uid_t" >/dev/null 2>&1; then
12111 ac_cv_type_uid_t=yes
12112 else
12113 ac_cv_type_uid_t=no
12115 rm -f conftest*
12118 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12119 $as_echo "$ac_cv_type_uid_t" >&6; }
12120 if test $ac_cv_type_uid_t = no; then
12122 cat >>confdefs.h <<\_ACEOF
12123 #define uid_t int
12124 _ACEOF
12127 cat >>confdefs.h <<\_ACEOF
12128 #define gid_t int
12129 _ACEOF
12133 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12134 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12135 if test "${ac_cv_header_time+set}" = set; then
12136 $as_echo_n "(cached) " >&6
12137 else
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <sys/types.h>
12145 #include <sys/time.h>
12146 #include <time.h>
12149 main ()
12151 if ((struct tm *) 0)
12152 return 0;
12154 return 0;
12156 _ACEOF
12157 rm -f conftest.$ac_objext
12158 if { (ac_try="$ac_compile"
12159 case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162 esac
12163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164 $as_echo "$ac_try_echo") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest.$ac_objext; then
12175 ac_cv_header_time=yes
12176 else
12177 $as_echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_cv_header_time=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12186 $as_echo "$ac_cv_header_time" >&6; }
12187 if test $ac_cv_header_time = yes; then
12189 cat >>confdefs.h <<\_ACEOF
12190 #define TIME_WITH_SYS_TIME 1
12191 _ACEOF
12195 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12196 $as_echo_n "checking for ino_t... " >&6; }
12197 if test "${ac_cv_type_ino_t+set}" = set; then
12198 $as_echo_n "(cached) " >&6
12199 else
12200 ac_cv_type_ino_t=no
12201 cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h. */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h. */
12207 $ac_includes_default
12209 main ()
12211 if (sizeof (ino_t))
12212 return 0;
12214 return 0;
12216 _ACEOF
12217 rm -f conftest.$ac_objext
12218 if { (ac_try="$ac_compile"
12219 case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222 esac
12223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12224 $as_echo "$ac_try_echo") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && {
12232 test -z "$ac_c_werror_flag" ||
12233 test ! -s conftest.err
12234 } && test -s conftest.$ac_objext; then
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 $ac_includes_default
12243 main ()
12245 if (sizeof ((ino_t)))
12246 return 0;
12248 return 0;
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (ac_try="$ac_compile"
12253 case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256 esac
12257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12258 $as_echo "$ac_try_echo") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12270 else
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_type_ino_t=yes
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 else
12279 $as_echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12288 $as_echo "$ac_cv_type_ino_t" >&6; }
12289 if test $ac_cv_type_ino_t = yes; then
12291 else
12293 cat >>confdefs.h <<_ACEOF
12294 #define ino_t long
12295 _ACEOF
12299 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12300 $as_echo_n "checking for dev_t... " >&6; }
12301 if test "${ac_cv_type_dev_t+set}" = set; then
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_cv_type_dev_t=no
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h. */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 $ac_includes_default
12313 main ()
12315 if (sizeof (dev_t))
12316 return 0;
12318 return 0;
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 if { (ac_try="$ac_compile"
12323 case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326 esac
12327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12328 $as_echo "$ac_try_echo") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 $ac_includes_default
12347 main ()
12349 if (sizeof ((dev_t)))
12350 return 0;
12352 return 0;
12354 _ACEOF
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360 esac
12361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12362 $as_echo "$ac_try_echo") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } && {
12370 test -z "$ac_c_werror_flag" ||
12371 test ! -s conftest.err
12372 } && test -s conftest.$ac_objext; then
12374 else
12375 $as_echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_type_dev_t=yes
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 else
12383 $as_echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12392 $as_echo "$ac_cv_type_dev_t" >&6; }
12393 if test $ac_cv_type_dev_t = yes; then
12395 else
12397 cat >>confdefs.h <<_ACEOF
12398 #define dev_t unsigned
12399 _ACEOF
12404 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12405 $as_echo_n "checking for rlim_t... " >&6; }
12406 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12407 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12408 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12409 else
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h. */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12417 #include <sys/types.h>
12418 #if STDC_HEADERS
12419 # include <stdlib.h>
12420 # include <stddef.h>
12421 #endif
12422 #ifdef HAVE_SYS_RESOURCE_H
12423 # include <sys/resource.h>
12424 #endif
12426 _ACEOF
12427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12428 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12429 ac_cv_type_rlim_t=yes
12430 else
12431 ac_cv_type_rlim_t=no
12433 rm -f conftest*
12435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12436 $as_echo "$ac_cv_type_rlim_t" >&6; }
12438 if test $ac_cv_type_rlim_t = no; then
12439 cat >> confdefs.h <<\EOF
12440 #define rlim_t unsigned long
12444 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12445 $as_echo_n "checking for stack_t... " >&6; }
12446 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12447 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12448 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12449 else
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 #include <sys/types.h>
12458 #if STDC_HEADERS
12459 # include <stdlib.h>
12460 # include <stddef.h>
12461 #endif
12462 #include <signal.h>
12464 _ACEOF
12465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12466 $EGREP "stack_t" >/dev/null 2>&1; then
12467 ac_cv_type_stack_t=yes
12468 else
12469 ac_cv_type_stack_t=no
12471 rm -f conftest*
12473 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12474 $as_echo "$ac_cv_type_stack_t" >&6; }
12476 if test $ac_cv_type_stack_t = no; then
12477 cat >> confdefs.h <<\EOF
12478 #define stack_t struct sigaltstack
12482 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12483 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h. */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 #include <sys/types.h>
12492 #if STDC_HEADERS
12493 # include <stdlib.h>
12494 # include <stddef.h>
12495 #endif
12496 #include <signal.h>
12497 #include "confdefs.h"
12500 main ()
12502 stack_t sigstk; sigstk.ss_base = 0;
12504 return 0;
12506 _ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512 esac
12513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12514 $as_echo "$ac_try_echo") >&5
12515 (eval "$ac_compile") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.$ac_objext; then
12525 { $as_echo "$as_me:$LINENO: result: yes" >&5
12526 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12527 #define HAVE_SS_BASE 1
12528 _ACEOF
12530 else
12531 $as_echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 { $as_echo "$as_me:$LINENO: result: no" >&5
12535 $as_echo "no" >&6; }
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 olibs="$LIBS"
12541 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12542 $as_echo_n "checking --with-tlib argument... " >&6; }
12544 # Check whether --with-tlib was given.
12545 if test "${with_tlib+set}" = set; then
12546 withval=$with_tlib;
12549 if test -n "$with_tlib"; then
12550 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12551 $as_echo "$with_tlib" >&6; }
12552 LIBS="$LIBS -l$with_tlib"
12553 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12554 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12555 cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12563 main ()
12567 return 0;
12569 _ACEOF
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (ac_try="$ac_link"
12572 case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575 esac
12576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12577 $as_echo "$ac_try_echo") >&5
12578 (eval "$ac_link") 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest$ac_exeext && {
12588 test "$cross_compiling" = yes ||
12589 $as_test_x conftest$ac_exeext
12590 }; then
12591 { $as_echo "$as_me:$LINENO: result: OK" >&5
12592 $as_echo "OK" >&6; }
12593 else
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12597 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12598 $as_echo "$as_me: error: FAILED" >&2;}
12599 { (exit 1); exit 1; }; }
12602 rm -rf conftest.dSYM
12603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12604 conftest$ac_exeext conftest.$ac_ext
12605 olibs="$LIBS"
12606 else
12607 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12608 $as_echo "empty: automatic terminal library selection" >&6; }
12609 case "`uname -s 2>/dev/null`" in
12610 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12611 *) tlibs="ncurses termlib termcap curses";;
12612 esac
12613 for libname in $tlibs; do
12615 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12616 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12617 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12618 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12619 $as_echo_n "(cached) " >&6
12620 else
12621 ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-l${libname} $LIBS"
12623 cat >conftest.$ac_ext <<_ACEOF
12624 /* confdefs.h. */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 char tgetent ();
12638 main ()
12640 return tgetent ();
12642 return 0;
12644 _ACEOF
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652 $as_echo "$ac_try_echo") >&5
12653 (eval "$ac_link") 2>conftest.er1
12654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
12658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest$ac_exeext && {
12663 test "$cross_compiling" = yes ||
12664 $as_test_x conftest$ac_exeext
12665 }; then
12666 eval "$as_ac_Lib=yes"
12667 else
12668 $as_echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 eval "$as_ac_Lib=no"
12674 rm -rf conftest.dSYM
12675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12676 conftest$ac_exeext conftest.$ac_ext
12677 LIBS=$ac_check_lib_save_LIBS
12679 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12680 $as_echo "$as_val"'`
12681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12682 $as_echo "$ac_res" >&6; }
12683 if test `eval 'as_val=${'$as_ac_Lib'}
12684 $as_echo "$as_val"'` = yes; then
12685 cat >>confdefs.h <<_ACEOF
12686 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12687 _ACEOF
12689 LIBS="-l${libname} $LIBS"
12693 if test "x$olibs" != "x$LIBS"; then
12694 if test "$cross_compiling" = yes; then
12695 res="FAIL"
12696 else
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h. */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 #ifdef HAVE_TERMCAP_H
12705 # include <termcap.h>
12706 #endif
12707 #if STDC_HEADERS
12708 # include <stdlib.h>
12709 # include <stddef.h>
12710 #endif
12711 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12712 _ACEOF
12713 rm -f conftest$ac_exeext
12714 if { (ac_try="$ac_link"
12715 case "(($ac_try" in
12716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717 *) ac_try_echo=$ac_try;;
12718 esac
12719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12720 $as_echo "$ac_try_echo") >&5
12721 (eval "$ac_link") 2>&5
12722 ac_status=$?
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12730 $as_echo "$ac_try_echo") >&5
12731 (eval "$ac_try") 2>&5
12732 ac_status=$?
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
12735 res="OK"
12736 else
12737 $as_echo "$as_me: program exited with status $ac_status" >&5
12738 $as_echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12741 ( exit $ac_status )
12742 res="FAIL"
12744 rm -rf conftest.dSYM
12745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12749 if test "$res" = "OK"; then
12750 break
12752 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12753 $as_echo "$libname library is not usable" >&6; }
12754 LIBS="$olibs"
12756 done
12757 if test "x$olibs" = "x$LIBS"; then
12758 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12759 $as_echo "no terminal library found" >&6; }
12763 if test "x$olibs" = "x$LIBS"; then
12764 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12765 $as_echo_n "checking for tgetent()... " >&6; }
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h. */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h. */
12774 main ()
12776 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12778 return 0;
12780 _ACEOF
12781 rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (ac_try="$ac_link"
12783 case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786 esac
12787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12788 $as_echo "$ac_try_echo") >&5
12789 (eval "$ac_link") 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && {
12796 test -z "$ac_c_werror_flag" ||
12797 test ! -s conftest.err
12798 } && test -s conftest$ac_exeext && {
12799 test "$cross_compiling" = yes ||
12800 $as_test_x conftest$ac_exeext
12801 }; then
12802 { $as_echo "$as_me:$LINENO: result: yes" >&5
12803 $as_echo "yes" >&6; }
12804 else
12805 $as_echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12808 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12809 You need to install a terminal library; for example ncurses.
12810 Or specify the name of the library with --with-tlib." >&5
12811 $as_echo "$as_me: error: NOT FOUND!
12812 You need to install a terminal library; for example ncurses.
12813 Or specify the name of the library with --with-tlib." >&2;}
12814 { (exit 1); exit 1; }; }
12817 rm -rf conftest.dSYM
12818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12819 conftest$ac_exeext conftest.$ac_ext
12822 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12823 $as_echo_n "checking whether we talk terminfo... " >&6; }
12824 if test "${vim_cv_terminfo+set}" = set; then
12825 $as_echo_n "(cached) " >&6
12826 else
12828 if test "$cross_compiling" = yes; then
12830 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12831 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12832 { (exit 1); exit 1; }; }
12834 else
12835 cat >conftest.$ac_ext <<_ACEOF
12837 #include "confdefs.h"
12838 #ifdef HAVE_TERMCAP_H
12839 # include <termcap.h>
12840 #endif
12841 #ifdef HAVE_STRING_H
12842 # include <string.h>
12843 #endif
12844 #if STDC_HEADERS
12845 # include <stdlib.h>
12846 # include <stddef.h>
12847 #endif
12848 main()
12849 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12851 _ACEOF
12852 rm -f conftest$ac_exeext
12853 if { (ac_try="$ac_link"
12854 case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857 esac
12858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12859 $as_echo "$ac_try_echo") >&5
12860 (eval "$ac_link") 2>&5
12861 ac_status=$?
12862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12869 $as_echo "$ac_try_echo") >&5
12870 (eval "$ac_try") 2>&5
12871 ac_status=$?
12872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12875 vim_cv_terminfo=no
12877 else
12878 $as_echo "$as_me: program exited with status $ac_status" >&5
12879 $as_echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12882 ( exit $ac_status )
12884 vim_cv_terminfo=yes
12887 rm -rf conftest.dSYM
12888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12894 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12895 $as_echo "$vim_cv_terminfo" >&6; }
12897 if test "x$vim_cv_terminfo" = "xyes" ; then
12898 cat >>confdefs.h <<\_ACEOF
12899 #define TERMINFO 1
12900 _ACEOF
12904 if test "x$olibs" != "x$LIBS"; then
12905 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12906 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12907 if test "${vim_cv_tgent+set}" = set; then
12908 $as_echo_n "(cached) " >&6
12909 else
12911 if test "$cross_compiling" = yes; then
12913 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12914 $as_echo "$as_me: error: failed to compile test program." >&2;}
12915 { (exit 1); exit 1; }; }
12917 else
12918 cat >conftest.$ac_ext <<_ACEOF
12920 #include "confdefs.h"
12921 #ifdef HAVE_TERMCAP_H
12922 # include <termcap.h>
12923 #endif
12924 #if STDC_HEADERS
12925 # include <stdlib.h>
12926 # include <stddef.h>
12927 #endif
12928 main()
12929 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12931 _ACEOF
12932 rm -f conftest$ac_exeext
12933 if { (ac_try="$ac_link"
12934 case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947 esac
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_try") 2>&5
12951 ac_status=$?
12952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12955 vim_cv_tgent=zero
12957 else
12958 $as_echo "$as_me: program exited with status $ac_status" >&5
12959 $as_echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12962 ( exit $ac_status )
12964 vim_cv_tgent=non-zero
12967 rm -rf conftest.dSYM
12968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12974 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12975 $as_echo "$vim_cv_tgent" >&6; }
12977 if test "x$vim_cv_tgent" = "xzero" ; then
12978 cat >>confdefs.h <<\_ACEOF
12979 #define TGETENT_ZERO_ERR 0
12980 _ACEOF
12985 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12986 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12987 cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h. */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 #ifdef HAVE_TERMCAP_H
12995 # include <termcap.h>
12996 #endif
12999 main ()
13001 ospeed = 20000
13003 return 0;
13005 _ACEOF
13006 rm -f conftest.$ac_objext conftest$ac_exeext
13007 if { (ac_try="$ac_link"
13008 case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011 esac
13012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13013 $as_echo "$ac_try_echo") >&5
13014 (eval "$ac_link") 2>conftest.er1
13015 ac_status=$?
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } && {
13021 test -z "$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13023 } && test -s conftest$ac_exeext && {
13024 test "$cross_compiling" = yes ||
13025 $as_test_x conftest$ac_exeext
13026 }; then
13027 { $as_echo "$as_me:$LINENO: result: yes" >&5
13028 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13029 #define HAVE_OSPEED 1
13030 _ACEOF
13032 else
13033 $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 { $as_echo "$as_me:$LINENO: result: no" >&5
13037 $as_echo "no" >&6; }
13038 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13039 $as_echo_n "checking whether ospeed can be extern... " >&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. */
13047 #ifdef HAVE_TERMCAP_H
13048 # include <termcap.h>
13049 #endif
13050 extern short ospeed;
13053 main ()
13055 ospeed = 20000
13057 return 0;
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (ac_try="$ac_link"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068 (eval "$ac_link") 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } && {
13075 test -z "$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 } && test -s conftest$ac_exeext && {
13078 test "$cross_compiling" = yes ||
13079 $as_test_x conftest$ac_exeext
13080 }; then
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13083 #define OSPEED_EXTERN 1
13084 _ACEOF
13086 else
13087 $as_echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13090 { $as_echo "$as_me:$LINENO: result: no" >&5
13091 $as_echo "no" >&6; }
13094 rm -rf conftest.dSYM
13095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13096 conftest$ac_exeext conftest.$ac_ext
13100 rm -rf conftest.dSYM
13101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13102 conftest$ac_exeext conftest.$ac_ext
13104 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13105 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13106 cat >conftest.$ac_ext <<_ACEOF
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13113 #ifdef HAVE_TERMCAP_H
13114 # include <termcap.h>
13115 #endif
13118 main ()
13120 if (UP == 0 && BC == 0) PC = 1
13122 return 0;
13124 _ACEOF
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13130 esac
13131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_link") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest$ac_exeext
13145 }; then
13146 { $as_echo "$as_me:$LINENO: result: yes" >&5
13147 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13148 #define HAVE_UP_BC_PC 1
13149 _ACEOF
13151 else
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 { $as_echo "$as_me:$LINENO: result: no" >&5
13156 $as_echo "no" >&6; }
13157 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13158 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13159 cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h. */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13166 #ifdef HAVE_TERMCAP_H
13167 # include <termcap.h>
13168 #endif
13169 extern char *UP, *BC, PC;
13172 main ()
13174 if (UP == 0 && BC == 0) PC = 1
13176 return 0;
13178 _ACEOF
13179 rm -f conftest.$ac_objext conftest$ac_exeext
13180 if { (ac_try="$ac_link"
13181 case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184 esac
13185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13186 $as_echo "$ac_try_echo") >&5
13187 (eval "$ac_link") 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } && {
13194 test -z "$ac_c_werror_flag" ||
13195 test ! -s conftest.err
13196 } && test -s conftest$ac_exeext && {
13197 test "$cross_compiling" = yes ||
13198 $as_test_x conftest$ac_exeext
13199 }; then
13200 { $as_echo "$as_me:$LINENO: result: yes" >&5
13201 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13202 #define UP_BC_PC_EXTERN 1
13203 _ACEOF
13205 else
13206 $as_echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13209 { $as_echo "$as_me:$LINENO: result: no" >&5
13210 $as_echo "no" >&6; }
13213 rm -rf conftest.dSYM
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215 conftest$ac_exeext conftest.$ac_ext
13219 rm -rf conftest.dSYM
13220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13221 conftest$ac_exeext conftest.$ac_ext
13223 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13224 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 #ifdef HAVE_TERMCAP_H
13233 # include <termcap.h>
13234 #endif
13237 main ()
13239 extern int xx(); tputs("test", 1, (outfuntype)xx)
13241 return 0;
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13251 $as_echo "$ac_try_echo") >&5
13252 (eval "$ac_compile") 2>conftest.er1
13253 ac_status=$?
13254 grep -v '^ *+' conftest.er1 >conftest.err
13255 rm -f conftest.er1
13256 cat conftest.err >&5
13257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest.$ac_objext; then
13262 { $as_echo "$as_me:$LINENO: result: yes" >&5
13263 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_OUTFUNTYPE 1
13265 _ACEOF
13267 else
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 { $as_echo "$as_me:$LINENO: result: no" >&5
13272 $as_echo "no" >&6; }
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13278 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13279 cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h. */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13286 #include <sys/types.h>
13287 #include <sys/time.h>
13288 #include <sys/select.h>
13290 main ()
13294 return 0;
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (ac_try="$ac_compile"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13302 esac
13303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13304 $as_echo "$ac_try_echo") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 { $as_echo "$as_me:$LINENO: result: yes" >&5
13316 $as_echo "yes" >&6; }
13317 cat >>confdefs.h <<\_ACEOF
13318 #define SYS_SELECT_WITH_SYS_TIME 1
13319 _ACEOF
13321 else
13322 $as_echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 { $as_echo "$as_me:$LINENO: result: no" >&5
13326 $as_echo "no" >&6; }
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13333 $as_echo_n "checking for /dev/ptc... " >&6; }
13334 if test -r /dev/ptc; then
13335 cat >>confdefs.h <<\_ACEOF
13336 #define HAVE_DEV_PTC 1
13337 _ACEOF
13339 { $as_echo "$as_me:$LINENO: result: yes" >&5
13340 $as_echo "yes" >&6; }
13341 else
13342 { $as_echo "$as_me:$LINENO: result: no" >&5
13343 $as_echo "no" >&6; }
13346 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13347 $as_echo_n "checking for SVR4 ptys... " >&6; }
13348 if test -c /dev/ptmx ; then
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h. */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13357 main ()
13359 ptsname(0);grantpt(0);unlockpt(0);
13361 return 0;
13363 _ACEOF
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (ac_try="$ac_link"
13366 case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13369 esac
13370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13371 $as_echo "$ac_try_echo") >&5
13372 (eval "$ac_link") 2>conftest.er1
13373 ac_status=$?
13374 grep -v '^ *+' conftest.er1 >conftest.err
13375 rm -f conftest.er1
13376 cat conftest.err >&5
13377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && {
13379 test -z "$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 } && test -s conftest$ac_exeext && {
13382 test "$cross_compiling" = yes ||
13383 $as_test_x conftest$ac_exeext
13384 }; then
13385 { $as_echo "$as_me:$LINENO: result: yes" >&5
13386 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13387 #define HAVE_SVR4_PTYS 1
13388 _ACEOF
13390 else
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 { $as_echo "$as_me:$LINENO: result: no" >&5
13395 $as_echo "no" >&6; }
13398 rm -rf conftest.dSYM
13399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13400 conftest$ac_exeext conftest.$ac_ext
13401 else
13402 { $as_echo "$as_me:$LINENO: result: no" >&5
13403 $as_echo "no" >&6; }
13406 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13407 $as_echo_n "checking for ptyranges... " >&6; }
13408 if test -d /dev/ptym ; then
13409 pdir='/dev/ptym'
13410 else
13411 pdir='/dev'
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #ifdef M_UNIX
13420 yes;
13421 #endif
13423 _ACEOF
13424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13425 $EGREP "yes" >/dev/null 2>&1; then
13426 ptys=`echo /dev/ptyp??`
13427 else
13428 ptys=`echo $pdir/pty??`
13430 rm -f conftest*
13432 if test "$ptys" != "$pdir/pty??" ; then
13433 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13434 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13435 cat >>confdefs.h <<_ACEOF
13436 #define PTYRANGE0 "$p0"
13437 _ACEOF
13439 cat >>confdefs.h <<_ACEOF
13440 #define PTYRANGE1 "$p1"
13441 _ACEOF
13443 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13444 $as_echo "$p0 / $p1" >&6; }
13445 else
13446 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13447 $as_echo "don't know" >&6; }
13450 rm -f conftest_grp
13451 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13452 $as_echo_n "checking default tty permissions/group... " >&6; }
13453 if test "${vim_cv_tty_group+set}" = set; then
13454 $as_echo_n "(cached) " >&6
13455 else
13457 if test "$cross_compiling" = yes; then
13459 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13460 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13461 { (exit 1); exit 1; }; }
13463 else
13464 cat >conftest.$ac_ext <<_ACEOF
13466 #include "confdefs.h"
13467 #include <sys/types.h>
13468 #if STDC_HEADERS
13469 # include <stdlib.h>
13470 # include <stddef.h>
13471 #endif
13472 #ifdef HAVE_UNISTD_H
13473 #include <unistd.h>
13474 #endif
13475 #include <sys/stat.h>
13476 #include <stdio.h>
13477 main()
13479 struct stat sb;
13480 char *x,*ttyname();
13481 int om, m;
13482 FILE *fp;
13484 if (!(x = ttyname(0))) exit(1);
13485 if (stat(x, &sb)) exit(1);
13486 om = sb.st_mode;
13487 if (om & 002) exit(0);
13488 m = system("mesg y");
13489 if (m == -1 || m == 127) exit(1);
13490 if (stat(x, &sb)) exit(1);
13491 m = sb.st_mode;
13492 if (chmod(x, om)) exit(1);
13493 if (m & 002) exit(0);
13494 if (sb.st_gid == getgid()) exit(1);
13495 if (!(fp=fopen("conftest_grp", "w")))
13496 exit(1);
13497 fprintf(fp, "%d\n", sb.st_gid);
13498 fclose(fp);
13499 exit(0);
13502 _ACEOF
13503 rm -f conftest$ac_exeext
13504 if { (ac_try="$ac_link"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_link") 2>&5
13512 ac_status=$?
13513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13515 { (case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518 esac
13519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13520 $as_echo "$ac_try_echo") >&5
13521 (eval "$ac_try") 2>&5
13522 ac_status=$?
13523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; }; then
13526 if test -f conftest_grp; then
13527 vim_cv_tty_group=`cat conftest_grp`
13528 if test "x$vim_cv_tty_mode" = "x" ; then
13529 vim_cv_tty_mode=0620
13531 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13532 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13533 else
13534 vim_cv_tty_group=world
13535 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13536 $as_echo "ptys are world accessable" >&6; }
13539 else
13540 $as_echo "$as_me: program exited with status $ac_status" >&5
13541 $as_echo "$as_me: failed program was:" >&5
13542 sed 's/^/| /' conftest.$ac_ext >&5
13544 ( exit $ac_status )
13546 vim_cv_tty_group=world
13547 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13548 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13551 rm -rf conftest.dSYM
13552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13558 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13559 $as_echo "$vim_cv_tty_group" >&6; }
13560 rm -f conftest_grp
13562 if test "x$vim_cv_tty_group" != "xworld" ; then
13563 cat >>confdefs.h <<_ACEOF
13564 #define PTYGROUP $vim_cv_tty_group
13565 _ACEOF
13567 if test "x$vim_cv_tty_mode" = "x" ; then
13568 { { $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
13569 $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;}
13570 { (exit 1); exit 1; }; }
13571 else
13572 cat >>confdefs.h <<\_ACEOF
13573 #define PTYMODE 0620
13574 _ACEOF
13580 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13581 $as_echo_n "checking return type of signal handlers... " >&6; }
13582 if test "${ac_cv_type_signal+set}" = set; then
13583 $as_echo_n "(cached) " >&6
13584 else
13585 cat >conftest.$ac_ext <<_ACEOF
13586 /* confdefs.h. */
13587 _ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13591 #include <sys/types.h>
13592 #include <signal.h>
13595 main ()
13597 return *(signal (0, 0)) (0) == 1;
13599 return 0;
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607 esac
13608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13609 $as_echo "$ac_try_echo") >&5
13610 (eval "$ac_compile") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest.$ac_objext; then
13620 ac_cv_type_signal=int
13621 else
13622 $as_echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 ac_cv_type_signal=void
13628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13631 $as_echo "$ac_cv_type_signal" >&6; }
13633 cat >>confdefs.h <<_ACEOF
13634 #define RETSIGTYPE $ac_cv_type_signal
13635 _ACEOF
13639 if test $ac_cv_type_signal = void; then
13640 cat >>confdefs.h <<\_ACEOF
13641 #define SIGRETURN return
13642 _ACEOF
13644 else
13645 cat >>confdefs.h <<\_ACEOF
13646 #define SIGRETURN return 0
13647 _ACEOF
13651 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13652 $as_echo_n "checking for struct sigcontext... " >&6; }
13653 cat >conftest.$ac_ext <<_ACEOF
13654 /* confdefs.h. */
13655 _ACEOF
13656 cat confdefs.h >>conftest.$ac_ext
13657 cat >>conftest.$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13660 #include <signal.h>
13661 test_sig()
13663 struct sigcontext *scont;
13664 scont = (struct sigcontext *)0;
13665 return 1;
13668 main ()
13672 return 0;
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680 esac
13681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13682 $as_echo "$ac_try_echo") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13684 ac_status=$?
13685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
13688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.$ac_objext; then
13693 { $as_echo "$as_me:$LINENO: result: yes" >&5
13694 $as_echo "yes" >&6; }
13695 cat >>confdefs.h <<\_ACEOF
13696 #define HAVE_SIGCONTEXT 1
13697 _ACEOF
13699 else
13700 $as_echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 { $as_echo "$as_me:$LINENO: result: no" >&5
13704 $as_echo "no" >&6; }
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13710 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13711 if test "${vim_cv_getcwd_broken+set}" = set; then
13712 $as_echo_n "(cached) " >&6
13713 else
13715 if test "$cross_compiling" = yes; then
13717 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13718 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13719 { (exit 1); exit 1; }; }
13721 else
13722 cat >conftest.$ac_ext <<_ACEOF
13724 #include "confdefs.h"
13725 #ifdef HAVE_UNISTD_H
13726 #include <unistd.h>
13727 #endif
13728 char *dagger[] = { "IFS=pwd", 0 };
13729 main()
13731 char buffer[500];
13732 extern char **environ;
13733 environ = dagger;
13734 return getcwd(buffer, 500) ? 0 : 1;
13737 _ACEOF
13738 rm -f conftest$ac_exeext
13739 if { (ac_try="$ac_link"
13740 case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743 esac
13744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13745 $as_echo "$ac_try_echo") >&5
13746 (eval "$ac_link") 2>&5
13747 ac_status=$?
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753 esac
13754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13755 $as_echo "$ac_try_echo") >&5
13756 (eval "$ac_try") 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; }; then
13761 vim_cv_getcwd_broken=no
13763 else
13764 $as_echo "$as_me: program exited with status $ac_status" >&5
13765 $as_echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13768 ( exit $ac_status )
13770 vim_cv_getcwd_broken=yes
13773 rm -rf conftest.dSYM
13774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13780 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13781 $as_echo "$vim_cv_getcwd_broken" >&6; }
13783 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13784 cat >>confdefs.h <<\_ACEOF
13785 #define BAD_GETCWD 1
13786 _ACEOF
13836 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13837 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13838 memset nanosleep opendir putenv qsort readlink select setenv \
13839 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13840 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13841 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13842 usleep utime utimes
13844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13845 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13846 $as_echo_n "checking for $ac_func... " >&6; }
13847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13848 $as_echo_n "(cached) " >&6
13849 else
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h. */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13858 #define $ac_func innocuous_$ac_func
13860 /* System header to define __stub macros and hopefully few prototypes,
13861 which can conflict with char $ac_func (); below.
13862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13863 <limits.h> exists even on freestanding compilers. */
13865 #ifdef __STDC__
13866 # include <limits.h>
13867 #else
13868 # include <assert.h>
13869 #endif
13871 #undef $ac_func
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13876 #ifdef __cplusplus
13877 extern "C"
13878 #endif
13879 char $ac_func ();
13880 /* The GNU C library defines this for functions which it implements
13881 to always fail with ENOSYS. Some functions are actually named
13882 something starting with __ and the normal name is an alias. */
13883 #if defined __stub_$ac_func || defined __stub___$ac_func
13884 choke me
13885 #endif
13888 main ()
13890 return $ac_func ();
13892 return 0;
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13902 $as_echo "$ac_try_echo") >&5
13903 (eval "$ac_link") 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext && {
13913 test "$cross_compiling" = yes ||
13914 $as_test_x conftest$ac_exeext
13915 }; then
13916 eval "$as_ac_var=yes"
13917 else
13918 $as_echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 eval "$as_ac_var=no"
13924 rm -rf conftest.dSYM
13925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13926 conftest$ac_exeext conftest.$ac_ext
13928 ac_res=`eval 'as_val=${'$as_ac_var'}
13929 $as_echo "$as_val"'`
13930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13931 $as_echo "$ac_res" >&6; }
13932 if test `eval 'as_val=${'$as_ac_var'}
13933 $as_echo "$as_val"'` = yes; then
13934 cat >>confdefs.h <<_ACEOF
13935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13936 _ACEOF
13939 done
13942 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13943 $as_echo_n "checking for st_blksize... " >&6; }
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h. */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <sys/types.h>
13951 #include <sys/stat.h>
13953 main ()
13955 struct stat st;
13956 int n;
13958 stat("/", &st);
13959 n = (int)st.st_blksize;
13961 return 0;
13963 _ACEOF
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969 esac
13970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13971 $as_echo "$ac_try_echo") >&5
13972 (eval "$ac_compile") 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest.$ac_objext; then
13982 { $as_echo "$as_me:$LINENO: result: yes" >&5
13983 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13984 #define HAVE_ST_BLKSIZE 1
13985 _ACEOF
13987 else
13988 $as_echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 { $as_echo "$as_me:$LINENO: result: no" >&5
13992 $as_echo "no" >&6; }
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13998 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13999 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14000 $as_echo_n "(cached) " >&6
14001 else
14003 if test "$cross_compiling" = yes; then
14005 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14006 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14007 { (exit 1); exit 1; }; }
14009 else
14010 cat >conftest.$ac_ext <<_ACEOF
14012 #include "confdefs.h"
14013 #if STDC_HEADERS
14014 # include <stdlib.h>
14015 # include <stddef.h>
14016 #endif
14017 #include <sys/types.h>
14018 #include <sys/stat.h>
14019 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14021 _ACEOF
14022 rm -f conftest$ac_exeext
14023 if { (ac_try="$ac_link"
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_link") 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14034 { (case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14037 esac
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040 (eval "$ac_try") 2>&5
14041 ac_status=$?
14042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); }; }; then
14045 vim_cv_stat_ignores_slash=yes
14047 else
14048 $as_echo "$as_me: program exited with status $ac_status" >&5
14049 $as_echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 ( exit $ac_status )
14054 vim_cv_stat_ignores_slash=no
14057 rm -rf conftest.dSYM
14058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14064 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14065 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14067 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14068 cat >>confdefs.h <<\_ACEOF
14069 #define STAT_IGNORES_SLASH 1
14070 _ACEOF
14074 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14075 $as_echo_n "checking for iconv_open()... " >&6; }
14076 save_LIBS="$LIBS"
14077 LIBS="$LIBS -liconv"
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 #ifdef HAVE_ICONV_H
14086 # include <iconv.h>
14087 #endif
14090 main ()
14092 iconv_open("fr", "to");
14094 return 0;
14096 _ACEOF
14097 rm -f conftest.$ac_objext conftest$ac_exeext
14098 if { (ac_try="$ac_link"
14099 case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14102 esac
14103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14104 $as_echo "$ac_try_echo") >&5
14105 (eval "$ac_link") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest$ac_exeext && {
14115 test "$cross_compiling" = yes ||
14116 $as_test_x conftest$ac_exeext
14117 }; then
14118 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14119 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_ICONV 1
14121 _ACEOF
14123 else
14124 $as_echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 LIBS="$save_LIBS"
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h. */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14135 #ifdef HAVE_ICONV_H
14136 # include <iconv.h>
14137 #endif
14140 main ()
14142 iconv_open("fr", "to");
14144 return 0;
14146 _ACEOF
14147 rm -f conftest.$ac_objext conftest$ac_exeext
14148 if { (ac_try="$ac_link"
14149 case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152 esac
14153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14154 $as_echo "$ac_try_echo") >&5
14155 (eval "$ac_link") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest$ac_exeext && {
14165 test "$cross_compiling" = yes ||
14166 $as_test_x conftest$ac_exeext
14167 }; then
14168 { $as_echo "$as_me:$LINENO: result: yes" >&5
14169 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_ICONV 1
14171 _ACEOF
14173 else
14174 $as_echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 { $as_echo "$as_me:$LINENO: result: no" >&5
14178 $as_echo "no" >&6; }
14181 rm -rf conftest.dSYM
14182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14183 conftest$ac_exeext conftest.$ac_ext
14186 rm -rf conftest.dSYM
14187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14188 conftest$ac_exeext conftest.$ac_ext
14191 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14192 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h. */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h. */
14200 #ifdef HAVE_LANGINFO_H
14201 # include <langinfo.h>
14202 #endif
14205 main ()
14207 char *cs = nl_langinfo(CODESET);
14209 return 0;
14211 _ACEOF
14212 rm -f conftest.$ac_objext conftest$ac_exeext
14213 if { (ac_try="$ac_link"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217 esac
14218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14219 $as_echo "$ac_try_echo") >&5
14220 (eval "$ac_link") 2>conftest.er1
14221 ac_status=$?
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -f conftest.er1
14224 cat conftest.err >&5
14225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } && {
14227 test -z "$ac_c_werror_flag" ||
14228 test ! -s conftest.err
14229 } && test -s conftest$ac_exeext && {
14230 test "$cross_compiling" = yes ||
14231 $as_test_x conftest$ac_exeext
14232 }; then
14233 { $as_echo "$as_me:$LINENO: result: yes" >&5
14234 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_NL_LANGINFO_CODESET 1
14236 _ACEOF
14238 else
14239 $as_echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 { $as_echo "$as_me:$LINENO: result: no" >&5
14243 $as_echo "no" >&6; }
14246 rm -rf conftest.dSYM
14247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14248 conftest$ac_exeext conftest.$ac_ext
14251 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14252 $as_echo_n "checking for strtod in -lm... " >&6; }
14253 if test "${ac_cv_lib_m_strtod+set}" = set; then
14254 $as_echo_n "(cached) " >&6
14255 else
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lm $LIBS"
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14268 #ifdef __cplusplus
14269 extern "C"
14270 #endif
14271 char strtod ();
14273 main ()
14275 return strtod ();
14277 return 0;
14279 _ACEOF
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285 esac
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_link") 2>conftest.er1
14289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest$ac_exeext && {
14298 test "$cross_compiling" = yes ||
14299 $as_test_x conftest$ac_exeext
14300 }; then
14301 ac_cv_lib_m_strtod=yes
14302 else
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_lib_m_strtod=no
14309 rm -rf conftest.dSYM
14310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14311 conftest$ac_exeext conftest.$ac_ext
14312 LIBS=$ac_check_lib_save_LIBS
14314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14315 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14316 if test $ac_cv_lib_m_strtod = yes; then
14317 cat >>confdefs.h <<_ACEOF
14318 #define HAVE_LIBM 1
14319 _ACEOF
14321 LIBS="-lm $LIBS"
14325 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14326 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h. */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14334 #ifdef HAVE_MATH_H
14335 # include <math.h>
14336 #endif
14337 #if STDC_HEADERS
14338 # include <stdlib.h>
14339 # include <stddef.h>
14340 #endif
14343 main ()
14345 char *s; double d;
14346 d = strtod("1.1", &s);
14347 d = fabs(1.11);
14348 d = ceil(1.11);
14349 d = floor(1.11);
14350 d = log10(1.11);
14351 d = pow(1.11, 2.22);
14352 d = sqrt(1.11);
14353 d = sin(1.11);
14354 d = cos(1.11);
14355 d = atan(1.11);
14358 return 0;
14360 _ACEOF
14361 rm -f conftest.$ac_objext conftest$ac_exeext
14362 if { (ac_try="$ac_link"
14363 case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366 esac
14367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14368 $as_echo "$ac_try_echo") >&5
14369 (eval "$ac_link") 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } && {
14376 test -z "$ac_c_werror_flag" ||
14377 test ! -s conftest.err
14378 } && test -s conftest$ac_exeext && {
14379 test "$cross_compiling" = yes ||
14380 $as_test_x conftest$ac_exeext
14381 }; then
14382 { $as_echo "$as_me:$LINENO: result: yes" >&5
14383 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_FLOAT_FUNCS 1
14385 _ACEOF
14387 else
14388 $as_echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 { $as_echo "$as_me:$LINENO: result: no" >&5
14392 $as_echo "no" >&6; }
14395 rm -rf conftest.dSYM
14396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext conftest.$ac_ext
14399 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14400 $as_echo_n "checking --disable-acl argument... " >&6; }
14401 # Check whether --enable-acl was given.
14402 if test "${enable_acl+set}" = set; then
14403 enableval=$enable_acl;
14404 else
14405 enable_acl="yes"
14408 if test "$enable_acl" = "yes"; then
14409 { $as_echo "$as_me:$LINENO: result: no" >&5
14410 $as_echo "no" >&6; }
14411 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14412 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14413 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14414 $as_echo_n "(cached) " >&6
14415 else
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lposix1e $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 char acl_get_file ();
14433 main ()
14435 return acl_get_file ();
14437 return 0;
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445 esac
14446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14447 $as_echo "$ac_try_echo") >&5
14448 (eval "$ac_link") 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && {
14455 test -z "$ac_c_werror_flag" ||
14456 test ! -s conftest.err
14457 } && test -s conftest$ac_exeext && {
14458 test "$cross_compiling" = yes ||
14459 $as_test_x conftest$ac_exeext
14460 }; then
14461 ac_cv_lib_posix1e_acl_get_file=yes
14462 else
14463 $as_echo "$as_me: failed program was:" >&5
14464 sed 's/^/| /' conftest.$ac_ext >&5
14466 ac_cv_lib_posix1e_acl_get_file=no
14469 rm -rf conftest.dSYM
14470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14475 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14476 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14477 LIBS="$LIBS -lposix1e"
14478 else
14479 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14480 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14481 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14482 $as_echo_n "(cached) " >&6
14483 else
14484 ac_check_lib_save_LIBS=$LIBS
14485 LIBS="-lacl $LIBS"
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14493 /* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14496 #ifdef __cplusplus
14497 extern "C"
14498 #endif
14499 char acl_get_file ();
14501 main ()
14503 return acl_get_file ();
14505 return 0;
14507 _ACEOF
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516 (eval "$ac_link") 2>conftest.er1
14517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && {
14523 test -z "$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14525 } && test -s conftest$ac_exeext && {
14526 test "$cross_compiling" = yes ||
14527 $as_test_x conftest$ac_exeext
14528 }; then
14529 ac_cv_lib_acl_acl_get_file=yes
14530 else
14531 $as_echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ac_cv_lib_acl_acl_get_file=no
14537 rm -rf conftest.dSYM
14538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14539 conftest$ac_exeext conftest.$ac_ext
14540 LIBS=$ac_check_lib_save_LIBS
14542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14543 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14544 if test $ac_cv_lib_acl_acl_get_file = yes; then
14545 LIBS="$LIBS -lacl"
14546 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14547 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14548 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14549 $as_echo_n "(cached) " >&6
14550 else
14551 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lattr $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h. */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char fgetxattr ();
14568 main ()
14570 return fgetxattr ();
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583 (eval "$ac_link") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext && {
14593 test "$cross_compiling" = yes ||
14594 $as_test_x conftest$ac_exeext
14595 }; then
14596 ac_cv_lib_attr_fgetxattr=yes
14597 else
14598 $as_echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14601 ac_cv_lib_attr_fgetxattr=no
14604 rm -rf conftest.dSYM
14605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14606 conftest$ac_exeext conftest.$ac_ext
14607 LIBS=$ac_check_lib_save_LIBS
14609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14610 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14611 if test $ac_cv_lib_attr_fgetxattr = yes; then
14612 LIBS="$LIBS -lattr"
14620 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14621 $as_echo_n "checking for POSIX ACL support... " >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14629 #include <sys/types.h>
14630 #ifdef HAVE_SYS_ACL_H
14631 # include <sys/acl.h>
14632 #endif
14633 acl_t acl;
14635 main ()
14637 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14638 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14639 acl_free(acl);
14641 return 0;
14643 _ACEOF
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (ac_try="$ac_link"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649 esac
14650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14651 $as_echo "$ac_try_echo") >&5
14652 (eval "$ac_link") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest$ac_exeext && {
14662 test "$cross_compiling" = yes ||
14663 $as_test_x conftest$ac_exeext
14664 }; then
14665 { $as_echo "$as_me:$LINENO: result: yes" >&5
14666 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_POSIX_ACL 1
14668 _ACEOF
14670 else
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 { $as_echo "$as_me:$LINENO: result: no" >&5
14675 $as_echo "no" >&6; }
14678 rm -rf conftest.dSYM
14679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14680 conftest$ac_exeext conftest.$ac_ext
14682 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14683 $as_echo_n "checking for Solaris ACL support... " >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14691 #ifdef HAVE_SYS_ACL_H
14692 # include <sys/acl.h>
14693 #endif
14695 main ()
14697 acl("foo", GETACLCNT, 0, NULL);
14700 return 0;
14702 _ACEOF
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708 esac
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711 (eval "$ac_link") 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest$ac_exeext && {
14721 test "$cross_compiling" = yes ||
14722 $as_test_x conftest$ac_exeext
14723 }; then
14724 { $as_echo "$as_me:$LINENO: result: yes" >&5
14725 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14726 #define HAVE_SOLARIS_ACL 1
14727 _ACEOF
14729 else
14730 $as_echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 { $as_echo "$as_me:$LINENO: result: no" >&5
14734 $as_echo "no" >&6; }
14737 rm -rf conftest.dSYM
14738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14739 conftest$ac_exeext conftest.$ac_ext
14741 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14742 $as_echo_n "checking for AIX ACL support... " >&6; }
14743 cat >conftest.$ac_ext <<_ACEOF
14744 /* confdefs.h. */
14745 _ACEOF
14746 cat confdefs.h >>conftest.$ac_ext
14747 cat >>conftest.$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14750 #if STDC_HEADERS
14751 # include <stdlib.h>
14752 # include <stddef.h>
14753 #endif
14754 #ifdef HAVE_SYS_ACL_H
14755 # include <sys/acl.h>
14756 #endif
14757 #ifdef HAVE_SYS_ACCESS_H
14758 # include <sys/access.h>
14759 #endif
14760 #define _ALL_SOURCE
14762 #include <sys/stat.h>
14764 int aclsize;
14765 struct acl *aclent;
14767 main ()
14769 aclsize = sizeof(struct acl);
14770 aclent = (void *)malloc(aclsize);
14771 statacl("foo", STX_NORMAL, aclent, aclsize);
14774 return 0;
14776 _ACEOF
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (ac_try="$ac_link"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782 esac
14783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14784 $as_echo "$ac_try_echo") >&5
14785 (eval "$ac_link") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest$ac_exeext && {
14795 test "$cross_compiling" = yes ||
14796 $as_test_x conftest$ac_exeext
14797 }; then
14798 { $as_echo "$as_me:$LINENO: result: yes" >&5
14799 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_AIX_ACL 1
14801 _ACEOF
14803 else
14804 $as_echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14807 { $as_echo "$as_me:$LINENO: result: no" >&5
14808 $as_echo "no" >&6; }
14811 rm -rf conftest.dSYM
14812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14813 conftest$ac_exeext conftest.$ac_ext
14814 else
14815 { $as_echo "$as_me:$LINENO: result: yes" >&5
14816 $as_echo "yes" >&6; }
14819 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14820 $as_echo_n "checking --disable-gpm argument... " >&6; }
14821 # Check whether --enable-gpm was given.
14822 if test "${enable_gpm+set}" = set; then
14823 enableval=$enable_gpm;
14824 else
14825 enable_gpm="yes"
14829 if test "$enable_gpm" = "yes"; then
14830 { $as_echo "$as_me:$LINENO: result: no" >&5
14831 $as_echo "no" >&6; }
14832 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14833 $as_echo_n "checking for gpm... " >&6; }
14834 if test "${vi_cv_have_gpm+set}" = set; then
14835 $as_echo_n "(cached) " >&6
14836 else
14837 olibs="$LIBS" ; LIBS="-lgpm"
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #include <gpm.h>
14845 #include <linux/keyboard.h>
14847 main ()
14849 Gpm_GetLibVersion(NULL);
14851 return 0;
14853 _ACEOF
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859 esac
14860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14861 $as_echo "$ac_try_echo") >&5
14862 (eval "$ac_link") 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } && {
14869 test -z "$ac_c_werror_flag" ||
14870 test ! -s conftest.err
14871 } && test -s conftest$ac_exeext && {
14872 test "$cross_compiling" = yes ||
14873 $as_test_x conftest$ac_exeext
14874 }; then
14875 vi_cv_have_gpm=yes
14876 else
14877 $as_echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.$ac_ext >&5
14880 vi_cv_have_gpm=no
14883 rm -rf conftest.dSYM
14884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14885 conftest$ac_exeext conftest.$ac_ext
14886 LIBS="$olibs"
14889 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14890 $as_echo "$vi_cv_have_gpm" >&6; }
14891 if test $vi_cv_have_gpm = yes; then
14892 LIBS="$LIBS -lgpm"
14893 cat >>confdefs.h <<\_ACEOF
14894 #define HAVE_GPM 1
14895 _ACEOF
14898 else
14899 { $as_echo "$as_me:$LINENO: result: yes" >&5
14900 $as_echo "yes" >&6; }
14903 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14904 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
14905 # Check whether --enable-sysmouse was given.
14906 if test "${enable_sysmouse+set}" = set; then
14907 enableval=$enable_sysmouse;
14908 else
14909 enable_sysmouse="yes"
14913 if test "$enable_sysmouse" = "yes"; then
14914 { $as_echo "$as_me:$LINENO: result: no" >&5
14915 $as_echo "no" >&6; }
14916 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14917 $as_echo_n "checking for sysmouse... " >&6; }
14918 if test "${vi_cv_have_sysmouse+set}" = set; then
14919 $as_echo_n "(cached) " >&6
14920 else
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h. */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 #include <sys/consio.h>
14928 #include <signal.h>
14929 #include <sys/fbio.h>
14931 main ()
14933 struct mouse_info mouse;
14934 mouse.operation = MOUSE_MODE;
14935 mouse.operation = MOUSE_SHOW;
14936 mouse.u.mode.mode = 0;
14937 mouse.u.mode.signal = SIGUSR2;
14939 return 0;
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14949 $as_echo "$ac_try_echo") >&5
14950 (eval "$ac_link") 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext && {
14960 test "$cross_compiling" = yes ||
14961 $as_test_x conftest$ac_exeext
14962 }; then
14963 vi_cv_have_sysmouse=yes
14964 else
14965 $as_echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 vi_cv_have_sysmouse=no
14971 rm -rf conftest.dSYM
14972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14973 conftest$ac_exeext conftest.$ac_ext
14976 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14977 $as_echo "$vi_cv_have_sysmouse" >&6; }
14978 if test $vi_cv_have_sysmouse = yes; then
14979 cat >>confdefs.h <<\_ACEOF
14980 #define HAVE_SYSMOUSE 1
14981 _ACEOF
14984 else
14985 { $as_echo "$as_me:$LINENO: result: yes" >&5
14986 $as_echo "yes" >&6; }
14989 { $as_echo "$as_me:$LINENO: checking for rename" >&5
14990 $as_echo_n "checking for rename... " >&6; }
14991 cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h. */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14997 #include <stdio.h>
14999 main ()
15001 rename("this", "that")
15003 return 0;
15005 _ACEOF
15006 rm -f conftest.$ac_objext conftest$ac_exeext
15007 if { (ac_try="$ac_link"
15008 case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011 esac
15012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15013 $as_echo "$ac_try_echo") >&5
15014 (eval "$ac_link") 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest$ac_exeext && {
15024 test "$cross_compiling" = yes ||
15025 $as_test_x conftest$ac_exeext
15026 }; then
15027 { $as_echo "$as_me:$LINENO: result: yes" >&5
15028 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_RENAME 1
15030 _ACEOF
15032 else
15033 $as_echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 { $as_echo "$as_me:$LINENO: result: no" >&5
15037 $as_echo "no" >&6; }
15040 rm -rf conftest.dSYM
15041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15042 conftest$ac_exeext conftest.$ac_ext
15044 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15045 $as_echo_n "checking for sysctl... " >&6; }
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 #include <sys/types.h>
15053 #include <sys/sysctl.h>
15055 main ()
15057 int mib[2], r;
15058 size_t len;
15060 mib[0] = CTL_HW;
15061 mib[1] = HW_USERMEM;
15062 len = sizeof(r);
15063 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15066 return 0;
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15074 esac
15075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15076 $as_echo "$ac_try_echo") >&5
15077 (eval "$ac_compile") 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } && {
15084 test -z "$ac_c_werror_flag" ||
15085 test ! -s conftest.err
15086 } && test -s conftest.$ac_objext; then
15087 { $as_echo "$as_me:$LINENO: result: yes" >&5
15088 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_SYSCTL 1
15090 _ACEOF
15092 else
15093 $as_echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15097 $as_echo "not usable" >&6; }
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15103 $as_echo_n "checking for sysinfo... " >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <sys/types.h>
15111 #include <sys/sysinfo.h>
15113 main ()
15115 struct sysinfo sinfo;
15116 int t;
15118 (void)sysinfo(&sinfo);
15119 t = sinfo.totalram;
15122 return 0;
15124 _ACEOF
15125 rm -f conftest.$ac_objext
15126 if { (ac_try="$ac_compile"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15130 esac
15131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15132 $as_echo "$ac_try_echo") >&5
15133 (eval "$ac_compile") 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_c_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest.$ac_objext; then
15143 { $as_echo "$as_me:$LINENO: result: yes" >&5
15144 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15145 #define HAVE_SYSINFO 1
15146 _ACEOF
15148 else
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15152 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15153 $as_echo "not usable" >&6; }
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15159 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 #include <sys/types.h>
15167 #include <sys/sysinfo.h>
15169 main ()
15171 struct sysinfo sinfo;
15172 sinfo.mem_unit = 1;
15175 return 0;
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (ac_try="$ac_compile"
15180 case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15183 esac
15184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15185 $as_echo "$ac_try_echo") >&5
15186 (eval "$ac_compile") 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest.$ac_objext; then
15196 { $as_echo "$as_me:$LINENO: result: yes" >&5
15197 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15198 #define HAVE_SYSINFO_MEM_UNIT 1
15199 _ACEOF
15201 else
15202 $as_echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15205 { $as_echo "$as_me:$LINENO: result: no" >&5
15206 $as_echo "no" >&6; }
15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15212 $as_echo_n "checking for sysconf... " >&6; }
15213 cat >conftest.$ac_ext <<_ACEOF
15214 /* confdefs.h. */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <unistd.h>
15221 main ()
15223 (void)sysconf(_SC_PAGESIZE);
15224 (void)sysconf(_SC_PHYS_PAGES);
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext
15231 if { (ac_try="$ac_compile"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235 esac
15236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15237 $as_echo "$ac_try_echo") >&5
15238 (eval "$ac_compile") 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest.$ac_objext; then
15248 { $as_echo "$as_me:$LINENO: result: yes" >&5
15249 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15250 #define HAVE_SYSCONF 1
15251 _ACEOF
15253 else
15254 $as_echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15258 $as_echo "not usable" >&6; }
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15264 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15265 $as_echo_n "checking size of int... " >&6; }
15266 if test "${ac_cv_sizeof_int+set}" = set; then
15267 $as_echo_n "(cached) " >&6
15268 else
15269 if test "$cross_compiling" = yes; then
15270 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15271 $as_echo "$as_me: error: failed to compile test program" >&2;}
15272 { (exit 1); exit 1; }; }
15273 else
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15281 #include <stdio.h>
15282 #if STDC_HEADERS
15283 # include <stdlib.h>
15284 # include <stddef.h>
15285 #endif
15286 main()
15288 FILE *f=fopen("conftestval", "w");
15289 if (!f) exit(1);
15290 fprintf(f, "%d\n", (int)sizeof(int));
15291 exit(0);
15293 _ACEOF
15294 rm -f conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15299 esac
15300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15301 $as_echo "$ac_try_echo") >&5
15302 (eval "$ac_link") 2>&5
15303 ac_status=$?
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15306 { (case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312 (eval "$ac_try") 2>&5
15313 ac_status=$?
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_cv_sizeof_int=`cat conftestval`
15317 else
15318 $as_echo "$as_me: program exited with status $ac_status" >&5
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ( exit $ac_status )
15323 ac_cv_sizeof_int=0
15325 rm -rf conftest.dSYM
15326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15332 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15333 $as_echo "$ac_cv_sizeof_int" >&6; }
15334 cat >>confdefs.h <<_ACEOF
15335 #define SIZEOF_INT $ac_cv_sizeof_int
15336 _ACEOF
15341 bcopy_test_prog='
15342 #include "confdefs.h"
15343 #ifdef HAVE_STRING_H
15344 # include <string.h>
15345 #endif
15346 #if STDC_HEADERS
15347 # include <stdlib.h>
15348 # include <stddef.h>
15349 #endif
15350 main() {
15351 char buf[10];
15352 strcpy(buf, "abcdefghi");
15353 mch_memmove(buf, buf + 2, 3);
15354 if (strncmp(buf, "ababcf", 6))
15355 exit(1);
15356 strcpy(buf, "abcdefghi");
15357 mch_memmove(buf + 2, buf, 3);
15358 if (strncmp(buf, "cdedef", 6))
15359 exit(1);
15360 exit(0); /* libc version works properly. */
15363 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15364 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15365 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15366 $as_echo_n "(cached) " >&6
15367 else
15369 if test "$cross_compiling" = yes; then
15371 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15372 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15373 { (exit 1); exit 1; }; }
15375 else
15376 cat >conftest.$ac_ext <<_ACEOF
15377 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15378 _ACEOF
15379 rm -f conftest$ac_exeext
15380 if { (ac_try="$ac_link"
15381 case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15384 esac
15385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15386 $as_echo "$ac_try_echo") >&5
15387 (eval "$ac_link") 2>&5
15388 ac_status=$?
15389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_try") 2>&5
15398 ac_status=$?
15399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15402 vim_cv_memmove_handles_overlap=yes
15404 else
15405 $as_echo "$as_me: program exited with status $ac_status" >&5
15406 $as_echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ( exit $ac_status )
15411 vim_cv_memmove_handles_overlap=no
15414 rm -rf conftest.dSYM
15415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15421 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15422 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15424 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15425 cat >>confdefs.h <<\_ACEOF
15426 #define USEMEMMOVE 1
15427 _ACEOF
15429 else
15430 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15431 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15432 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15433 $as_echo_n "(cached) " >&6
15434 else
15436 if test "$cross_compiling" = yes; then
15438 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15439 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15440 { (exit 1); exit 1; }; }
15442 else
15443 cat >conftest.$ac_ext <<_ACEOF
15444 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15445 _ACEOF
15446 rm -f conftest$ac_exeext
15447 if { (ac_try="$ac_link"
15448 case "(($ac_try" in
15449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15450 *) ac_try_echo=$ac_try;;
15451 esac
15452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15453 $as_echo "$ac_try_echo") >&5
15454 (eval "$ac_link") 2>&5
15455 ac_status=$?
15456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461 esac
15462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15463 $as_echo "$ac_try_echo") >&5
15464 (eval "$ac_try") 2>&5
15465 ac_status=$?
15466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }; then
15469 vim_cv_bcopy_handles_overlap=yes
15471 else
15472 $as_echo "$as_me: program exited with status $ac_status" >&5
15473 $as_echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 ( exit $ac_status )
15478 vim_cv_bcopy_handles_overlap=no
15481 rm -rf conftest.dSYM
15482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15488 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15489 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15491 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15492 cat >>confdefs.h <<\_ACEOF
15493 #define USEBCOPY 1
15494 _ACEOF
15496 else
15497 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15498 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15499 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15500 $as_echo_n "(cached) " >&6
15501 else
15503 if test "$cross_compiling" = yes; then
15505 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15506 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15507 { (exit 1); exit 1; }; }
15509 else
15510 cat >conftest.$ac_ext <<_ACEOF
15511 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15512 _ACEOF
15513 rm -f conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15520 $as_echo "$ac_try_echo") >&5
15521 (eval "$ac_link") 2>&5
15522 ac_status=$?
15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15525 { (case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528 esac
15529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15530 $as_echo "$ac_try_echo") >&5
15531 (eval "$ac_try") 2>&5
15532 ac_status=$?
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15536 vim_cv_memcpy_handles_overlap=yes
15538 else
15539 $as_echo "$as_me: program exited with status $ac_status" >&5
15540 $as_echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ( exit $ac_status )
15545 vim_cv_memcpy_handles_overlap=no
15548 rm -rf conftest.dSYM
15549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15555 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15556 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15558 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15559 cat >>confdefs.h <<\_ACEOF
15560 #define USEMEMCPY 1
15561 _ACEOF
15569 if test "$enable_multibyte" = "yes"; then
15570 cflags_save=$CFLAGS
15571 ldflags_save=$LDFLAGS
15572 if test "x$x_includes" != "xNONE" ; then
15573 CFLAGS="$CFLAGS -I$x_includes"
15574 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15575 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15576 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15577 cat >conftest.$ac_ext <<_ACEOF
15578 /* confdefs.h. */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <X11/Xlocale.h>
15585 main ()
15589 return 0;
15591 _ACEOF
15592 rm -f conftest.$ac_objext
15593 if { (ac_try="$ac_compile"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597 esac
15598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15599 $as_echo "$ac_try_echo") >&5
15600 (eval "$ac_compile") 2>conftest.er1
15601 ac_status=$?
15602 grep -v '^ *+' conftest.er1 >conftest.err
15603 rm -f conftest.er1
15604 cat conftest.err >&5
15605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } && {
15607 test -z "$ac_c_werror_flag" ||
15608 test ! -s conftest.err
15609 } && test -s conftest.$ac_objext; then
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15620 #ifdef __cplusplus
15621 extern "C"
15622 #endif
15623 char _Xsetlocale ();
15625 main ()
15627 return _Xsetlocale ();
15629 return 0;
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637 esac
15638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>conftest.er1
15641 ac_status=$?
15642 grep -v '^ *+' conftest.er1 >conftest.err
15643 rm -f conftest.er1
15644 cat conftest.err >&5
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } && {
15647 test -z "$ac_c_werror_flag" ||
15648 test ! -s conftest.err
15649 } && test -s conftest$ac_exeext && {
15650 test "$cross_compiling" = yes ||
15651 $as_test_x conftest$ac_exeext
15652 }; then
15653 { $as_echo "$as_me:$LINENO: result: yes" >&5
15654 $as_echo "yes" >&6; }
15655 cat >>confdefs.h <<\_ACEOF
15656 #define X_LOCALE 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 -rf conftest.dSYM
15668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15669 conftest$ac_exeext conftest.$ac_ext
15670 else
15671 $as_echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 { $as_echo "$as_me:$LINENO: result: no" >&5
15675 $as_echo "no" >&6; }
15678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 CFLAGS=$cflags_save
15681 LDFLAGS=$ldflags_save
15684 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15685 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15686 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15687 $as_echo_n "(cached) " >&6
15688 else
15689 ac_check_lib_save_LIBS=$LIBS
15690 LIBS="-lxpg4 $LIBS"
15691 cat >conftest.$ac_ext <<_ACEOF
15692 /* confdefs.h. */
15693 _ACEOF
15694 cat confdefs.h >>conftest.$ac_ext
15695 cat >>conftest.$ac_ext <<_ACEOF
15696 /* end confdefs.h. */
15698 /* Override any GCC internal prototype to avoid an error.
15699 Use char because int might match the return type of a GCC
15700 builtin and then its argument prototype would still apply. */
15701 #ifdef __cplusplus
15702 extern "C"
15703 #endif
15704 char _xpg4_setrunelocale ();
15706 main ()
15708 return _xpg4_setrunelocale ();
15710 return 0;
15712 _ACEOF
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (ac_try="$ac_link"
15715 case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718 esac
15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15720 $as_echo "$ac_try_echo") >&5
15721 (eval "$ac_link") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
15730 } && test -s conftest$ac_exeext && {
15731 test "$cross_compiling" = yes ||
15732 $as_test_x conftest$ac_exeext
15733 }; then
15734 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15735 else
15736 $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15742 rm -rf conftest.dSYM
15743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15744 conftest$ac_exeext conftest.$ac_ext
15745 LIBS=$ac_check_lib_save_LIBS
15747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15748 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15749 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15750 LIBS="$LIBS -lxpg4"
15754 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15755 $as_echo_n "checking how to create tags... " >&6; }
15756 test -f tags && mv tags tags.save
15757 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15758 TAGPRG="ctags -I INIT+ --fields=+S"
15759 else
15760 TAGPRG="ctags"
15761 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15762 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15763 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15764 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15765 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15766 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15767 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15769 test -f tags.save && mv tags.save tags
15770 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15771 $as_echo "$TAGPRG" >&6; }
15773 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15774 $as_echo_n "checking how to run man with a section nr... " >&6; }
15775 MANDEF="man"
15776 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15777 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15778 $as_echo "$MANDEF" >&6; }
15779 if test "$MANDEF" = "man -s"; then
15780 cat >>confdefs.h <<\_ACEOF
15781 #define USEMAN_S 1
15782 _ACEOF
15786 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15787 $as_echo_n "checking --disable-nls argument... " >&6; }
15788 # Check whether --enable-nls was given.
15789 if test "${enable_nls+set}" = set; then
15790 enableval=$enable_nls;
15791 else
15792 enable_nls="yes"
15796 if test "$enable_nls" = "yes"; then
15797 { $as_echo "$as_me:$LINENO: result: no" >&5
15798 $as_echo "no" >&6; }
15800 INSTALL_LANGS=install-languages
15802 INSTALL_TOOL_LANGS=install-tool-languages
15805 # Extract the first word of "msgfmt", so it can be a program name with args.
15806 set dummy msgfmt; ac_word=$2
15807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15808 $as_echo_n "checking for $ac_word... " >&6; }
15809 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15810 $as_echo_n "(cached) " >&6
15811 else
15812 if test -n "$MSGFMT"; then
15813 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15814 else
15815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15816 for as_dir in $PATH
15818 IFS=$as_save_IFS
15819 test -z "$as_dir" && as_dir=.
15820 for ac_exec_ext in '' $ac_executable_extensions; do
15821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15822 ac_cv_prog_MSGFMT="msgfmt"
15823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15824 break 2
15826 done
15827 done
15828 IFS=$as_save_IFS
15832 MSGFMT=$ac_cv_prog_MSGFMT
15833 if test -n "$MSGFMT"; then
15834 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15835 $as_echo "$MSGFMT" >&6; }
15836 else
15837 { $as_echo "$as_me:$LINENO: result: no" >&5
15838 $as_echo "no" >&6; }
15842 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15843 $as_echo_n "checking for NLS... " >&6; }
15844 if test -f po/Makefile; then
15845 have_gettext="no"
15846 if test -n "$MSGFMT"; then
15847 cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h. */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <libintl.h>
15855 main ()
15857 gettext("Test");
15859 return 0;
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867 esac
15868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15869 $as_echo "$ac_try_echo") >&5
15870 (eval "$ac_link") 2>conftest.er1
15871 ac_status=$?
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
15875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_c_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest$ac_exeext && {
15880 test "$cross_compiling" = yes ||
15881 $as_test_x conftest$ac_exeext
15882 }; then
15883 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15884 $as_echo "gettext() works" >&6; }; have_gettext="yes"
15885 else
15886 $as_echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 olibs=$LIBS
15890 LIBS="$LIBS -lintl"
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h. */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 #include <libintl.h>
15899 main ()
15901 gettext("Test");
15903 return 0;
15905 _ACEOF
15906 rm -f conftest.$ac_objext conftest$ac_exeext
15907 if { (ac_try="$ac_link"
15908 case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911 esac
15912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15913 $as_echo "$ac_try_echo") >&5
15914 (eval "$ac_link") 2>conftest.er1
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } && {
15921 test -z "$ac_c_werror_flag" ||
15922 test ! -s conftest.err
15923 } && test -s conftest$ac_exeext && {
15924 test "$cross_compiling" = yes ||
15925 $as_test_x conftest$ac_exeext
15926 }; then
15927 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15928 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15929 else
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15934 $as_echo "gettext() doesn't work" >&6; };
15935 LIBS=$olibs
15938 rm -rf conftest.dSYM
15939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15940 conftest$ac_exeext conftest.$ac_ext
15943 rm -rf conftest.dSYM
15944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15945 conftest$ac_exeext conftest.$ac_ext
15946 else
15947 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15948 $as_echo "msgfmt not found - disabled" >&6; };
15950 if test $have_gettext = "yes"; then
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_GETTEXT 1
15953 _ACEOF
15955 MAKEMO=yes
15958 for ac_func in bind_textdomain_codeset
15960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15961 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15962 $as_echo_n "checking for $ac_func... " >&6; }
15963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15964 $as_echo_n "(cached) " >&6
15965 else
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h. */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15974 #define $ac_func innocuous_$ac_func
15976 /* System header to define __stub macros and hopefully few prototypes,
15977 which can conflict with char $ac_func (); below.
15978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979 <limits.h> exists even on freestanding compilers. */
15981 #ifdef __STDC__
15982 # include <limits.h>
15983 #else
15984 # include <assert.h>
15985 #endif
15987 #undef $ac_func
15989 /* Override any GCC internal prototype to avoid an error.
15990 Use char because int might match the return type of a GCC
15991 builtin and then its argument prototype would still apply. */
15992 #ifdef __cplusplus
15993 extern "C"
15994 #endif
15995 char $ac_func ();
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined __stub_$ac_func || defined __stub___$ac_func
16000 choke me
16001 #endif
16004 main ()
16006 return $ac_func ();
16008 return 0;
16010 _ACEOF
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016 esac
16017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019 (eval "$ac_link") 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } && {
16026 test -z "$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 } && test -s conftest$ac_exeext && {
16029 test "$cross_compiling" = yes ||
16030 $as_test_x conftest$ac_exeext
16031 }; then
16032 eval "$as_ac_var=yes"
16033 else
16034 $as_echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 eval "$as_ac_var=no"
16040 rm -rf conftest.dSYM
16041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16042 conftest$ac_exeext conftest.$ac_ext
16044 ac_res=`eval 'as_val=${'$as_ac_var'}
16045 $as_echo "$as_val"'`
16046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16047 $as_echo "$ac_res" >&6; }
16048 if test `eval 'as_val=${'$as_ac_var'}
16049 $as_echo "$as_val"'` = yes; then
16050 cat >>confdefs.h <<_ACEOF
16051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16052 _ACEOF
16055 done
16057 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16058 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16059 cat >conftest.$ac_ext <<_ACEOF
16060 /* confdefs.h. */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <libintl.h>
16066 extern int _nl_msg_cat_cntr;
16068 main ()
16070 ++_nl_msg_cat_cntr;
16072 return 0;
16074 _ACEOF
16075 rm -f conftest.$ac_objext conftest$ac_exeext
16076 if { (ac_try="$ac_link"
16077 case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16080 esac
16081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16082 $as_echo "$ac_try_echo") >&5
16083 (eval "$ac_link") 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && {
16090 test -z "$ac_c_werror_flag" ||
16091 test ! -s conftest.err
16092 } && test -s conftest$ac_exeext && {
16093 test "$cross_compiling" = yes ||
16094 $as_test_x conftest$ac_exeext
16095 }; then
16096 { $as_echo "$as_me:$LINENO: result: yes" >&5
16097 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_NL_MSG_CAT_CNTR 1
16099 _ACEOF
16101 else
16102 $as_echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16105 { $as_echo "$as_me:$LINENO: result: no" >&5
16106 $as_echo "no" >&6; }
16109 rm -rf conftest.dSYM
16110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16111 conftest$ac_exeext conftest.$ac_ext
16113 else
16114 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16115 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16117 else
16118 { $as_echo "$as_me:$LINENO: result: yes" >&5
16119 $as_echo "yes" >&6; }
16122 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16123 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16124 $as_echo_n "checking for dlfcn.h... " >&6; }
16125 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16126 $as_echo_n "(cached) " >&6
16128 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16129 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16130 else
16131 # Is the header compilable?
16132 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16133 $as_echo_n "checking dlfcn.h usability... " >&6; }
16134 cat >conftest.$ac_ext <<_ACEOF
16135 /* confdefs.h. */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h. */
16140 $ac_includes_default
16141 #include <dlfcn.h>
16142 _ACEOF
16143 rm -f conftest.$ac_objext
16144 if { (ac_try="$ac_compile"
16145 case "(($ac_try" in
16146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147 *) ac_try_echo=$ac_try;;
16148 esac
16149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16150 $as_echo "$ac_try_echo") >&5
16151 (eval "$ac_compile") 2>conftest.er1
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } && {
16158 test -z "$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16160 } && test -s conftest.$ac_objext; then
16161 ac_header_compiler=yes
16162 else
16163 $as_echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_header_compiler=no
16169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16170 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16171 $as_echo "$ac_header_compiler" >&6; }
16173 # Is the header present?
16174 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16175 $as_echo_n "checking dlfcn.h presence... " >&6; }
16176 cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h. */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 #include <dlfcn.h>
16183 _ACEOF
16184 if { (ac_try="$ac_cpp conftest.$ac_ext"
16185 case "(($ac_try" in
16186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187 *) ac_try_echo=$ac_try;;
16188 esac
16189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16190 $as_echo "$ac_try_echo") >&5
16191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16192 ac_status=$?
16193 grep -v '^ *+' conftest.er1 >conftest.err
16194 rm -f conftest.er1
16195 cat conftest.err >&5
16196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } >/dev/null && {
16198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16199 test ! -s conftest.err
16200 }; then
16201 ac_header_preproc=yes
16202 else
16203 $as_echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16206 ac_header_preproc=no
16209 rm -f conftest.err conftest.$ac_ext
16210 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16211 $as_echo "$ac_header_preproc" >&6; }
16213 # So? What about this header?
16214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16215 yes:no: )
16216 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16217 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16218 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16219 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16220 ac_header_preproc=yes
16222 no:yes:* )
16223 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16224 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16225 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16226 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16227 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16228 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16229 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16230 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16231 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16232 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16233 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16234 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16237 esac
16238 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16239 $as_echo_n "checking for dlfcn.h... " >&6; }
16240 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16241 $as_echo_n "(cached) " >&6
16242 else
16243 ac_cv_header_dlfcn_h=$ac_header_preproc
16245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16246 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16249 if test $ac_cv_header_dlfcn_h = yes; then
16250 DLL=dlfcn.h
16251 else
16252 if test "${ac_cv_header_dl_h+set}" = set; then
16253 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16254 $as_echo_n "checking for dl.h... " >&6; }
16255 if test "${ac_cv_header_dl_h+set}" = set; then
16256 $as_echo_n "(cached) " >&6
16258 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16259 $as_echo "$ac_cv_header_dl_h" >&6; }
16260 else
16261 # Is the header compilable?
16262 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16263 $as_echo_n "checking dl.h usability... " >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h. */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 $ac_includes_default
16271 #include <dl.h>
16272 _ACEOF
16273 rm -f conftest.$ac_objext
16274 if { (ac_try="$ac_compile"
16275 case "(($ac_try" in
16276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277 *) ac_try_echo=$ac_try;;
16278 esac
16279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16280 $as_echo "$ac_try_echo") >&5
16281 (eval "$ac_compile") 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest.$ac_objext; then
16291 ac_header_compiler=yes
16292 else
16293 $as_echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_header_compiler=no
16299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16300 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16301 $as_echo "$ac_header_compiler" >&6; }
16303 # Is the header present?
16304 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16305 $as_echo_n "checking dl.h presence... " >&6; }
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 #include <dl.h>
16313 _ACEOF
16314 if { (ac_try="$ac_cpp conftest.$ac_ext"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16320 $as_echo "$ac_try_echo") >&5
16321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16322 ac_status=$?
16323 grep -v '^ *+' conftest.er1 >conftest.err
16324 rm -f conftest.er1
16325 cat conftest.err >&5
16326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } >/dev/null && {
16328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16329 test ! -s conftest.err
16330 }; then
16331 ac_header_preproc=yes
16332 else
16333 $as_echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16336 ac_header_preproc=no
16339 rm -f conftest.err conftest.$ac_ext
16340 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16341 $as_echo "$ac_header_preproc" >&6; }
16343 # So? What about this header?
16344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16345 yes:no: )
16346 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16347 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16348 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16349 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16350 ac_header_preproc=yes
16352 no:yes:* )
16353 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16354 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16355 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16356 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16357 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16358 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16359 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16360 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16361 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16362 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16363 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16364 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16367 esac
16368 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16369 $as_echo_n "checking for dl.h... " >&6; }
16370 if test "${ac_cv_header_dl_h+set}" = set; then
16371 $as_echo_n "(cached) " >&6
16372 else
16373 ac_cv_header_dl_h=$ac_header_preproc
16375 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16376 $as_echo "$ac_cv_header_dl_h" >&6; }
16379 if test $ac_cv_header_dl_h = yes; then
16380 DLL=dl.h
16387 if test x${DLL} = xdlfcn.h; then
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_DLFCN_H 1
16391 _ACEOF
16393 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16394 $as_echo_n "checking for dlopen()... " >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16403 main ()
16406 extern void* dlopen();
16407 dlopen();
16410 return 0;
16412 _ACEOF
16413 rm -f conftest.$ac_objext conftest$ac_exeext
16414 if { (ac_try="$ac_link"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418 esac
16419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16420 $as_echo "$ac_try_echo") >&5
16421 (eval "$ac_link") 2>conftest.er1
16422 ac_status=$?
16423 grep -v '^ *+' conftest.er1 >conftest.err
16424 rm -f conftest.er1
16425 cat conftest.err >&5
16426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } && {
16428 test -z "$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16430 } && test -s conftest$ac_exeext && {
16431 test "$cross_compiling" = yes ||
16432 $as_test_x conftest$ac_exeext
16433 }; then
16434 { $as_echo "$as_me:$LINENO: result: yes" >&5
16435 $as_echo "yes" >&6; };
16437 cat >>confdefs.h <<\_ACEOF
16438 #define HAVE_DLOPEN 1
16439 _ACEOF
16441 else
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 { $as_echo "$as_me:$LINENO: result: no" >&5
16446 $as_echo "no" >&6; };
16447 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16448 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16449 olibs=$LIBS
16450 LIBS="$LIBS -ldl"
16451 cat >conftest.$ac_ext <<_ACEOF
16452 /* confdefs.h. */
16453 _ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16459 main ()
16462 extern void* dlopen();
16463 dlopen();
16466 return 0;
16468 _ACEOF
16469 rm -f conftest.$ac_objext conftest$ac_exeext
16470 if { (ac_try="$ac_link"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474 esac
16475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16476 $as_echo "$ac_try_echo") >&5
16477 (eval "$ac_link") 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } && {
16484 test -z "$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16486 } && test -s conftest$ac_exeext && {
16487 test "$cross_compiling" = yes ||
16488 $as_test_x conftest$ac_exeext
16489 }; then
16490 { $as_echo "$as_me:$LINENO: result: yes" >&5
16491 $as_echo "yes" >&6; };
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_DLOPEN 1
16495 _ACEOF
16497 else
16498 $as_echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 { $as_echo "$as_me:$LINENO: result: no" >&5
16502 $as_echo "no" >&6; };
16503 LIBS=$olibs
16506 rm -rf conftest.dSYM
16507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16508 conftest$ac_exeext conftest.$ac_ext
16511 rm -rf conftest.dSYM
16512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16513 conftest$ac_exeext conftest.$ac_ext
16514 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16515 $as_echo_n "checking for dlsym()... " >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h. */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16524 main ()
16527 extern void* dlsym();
16528 dlsym();
16531 return 0;
16533 _ACEOF
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (ac_try="$ac_link"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539 esac
16540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16541 $as_echo "$ac_try_echo") >&5
16542 (eval "$ac_link") 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest$ac_exeext && {
16552 test "$cross_compiling" = yes ||
16553 $as_test_x conftest$ac_exeext
16554 }; then
16555 { $as_echo "$as_me:$LINENO: result: yes" >&5
16556 $as_echo "yes" >&6; };
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_DLSYM 1
16560 _ACEOF
16562 else
16563 $as_echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 { $as_echo "$as_me:$LINENO: result: no" >&5
16567 $as_echo "no" >&6; };
16568 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16569 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16570 olibs=$LIBS
16571 LIBS="$LIBS -ldl"
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h. */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16580 main ()
16583 extern void* dlsym();
16584 dlsym();
16587 return 0;
16589 _ACEOF
16590 rm -f conftest.$ac_objext conftest$ac_exeext
16591 if { (ac_try="$ac_link"
16592 case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16595 esac
16596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16597 $as_echo "$ac_try_echo") >&5
16598 (eval "$ac_link") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest$ac_exeext && {
16608 test "$cross_compiling" = yes ||
16609 $as_test_x conftest$ac_exeext
16610 }; then
16611 { $as_echo "$as_me:$LINENO: result: yes" >&5
16612 $as_echo "yes" >&6; };
16614 cat >>confdefs.h <<\_ACEOF
16615 #define HAVE_DLSYM 1
16616 _ACEOF
16618 else
16619 $as_echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 { $as_echo "$as_me:$LINENO: result: no" >&5
16623 $as_echo "no" >&6; };
16624 LIBS=$olibs
16627 rm -rf conftest.dSYM
16628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16629 conftest$ac_exeext conftest.$ac_ext
16632 rm -rf conftest.dSYM
16633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16634 conftest$ac_exeext conftest.$ac_ext
16635 elif test x${DLL} = xdl.h; then
16637 cat >>confdefs.h <<\_ACEOF
16638 #define HAVE_DL_H 1
16639 _ACEOF
16641 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16642 $as_echo_n "checking for shl_load()... " >&6; }
16643 cat >conftest.$ac_ext <<_ACEOF
16644 /* confdefs.h. */
16645 _ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16651 main ()
16654 extern void* shl_load();
16655 shl_load();
16658 return 0;
16660 _ACEOF
16661 rm -f conftest.$ac_objext conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666 esac
16667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16668 $as_echo "$ac_try_echo") >&5
16669 (eval "$ac_link") 2>conftest.er1
16670 ac_status=$?
16671 grep -v '^ *+' conftest.er1 >conftest.err
16672 rm -f conftest.er1
16673 cat conftest.err >&5
16674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && {
16676 test -z "$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 } && test -s conftest$ac_exeext && {
16679 test "$cross_compiling" = yes ||
16680 $as_test_x conftest$ac_exeext
16681 }; then
16682 { $as_echo "$as_me:$LINENO: result: yes" >&5
16683 $as_echo "yes" >&6; };
16685 cat >>confdefs.h <<\_ACEOF
16686 #define HAVE_SHL_LOAD 1
16687 _ACEOF
16689 else
16690 $as_echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 { $as_echo "$as_me:$LINENO: result: no" >&5
16694 $as_echo "no" >&6; };
16695 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16696 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16697 olibs=$LIBS
16698 LIBS="$LIBS -ldld"
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16707 main ()
16710 extern void* shl_load();
16711 shl_load();
16714 return 0;
16716 _ACEOF
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (ac_try="$ac_link"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722 esac
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_link") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest$ac_exeext && {
16735 test "$cross_compiling" = yes ||
16736 $as_test_x conftest$ac_exeext
16737 }; then
16738 { $as_echo "$as_me:$LINENO: result: yes" >&5
16739 $as_echo "yes" >&6; };
16741 cat >>confdefs.h <<\_ACEOF
16742 #define HAVE_SHL_LOAD 1
16743 _ACEOF
16745 else
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 { $as_echo "$as_me:$LINENO: result: no" >&5
16750 $as_echo "no" >&6; };
16751 LIBS=$olibs
16754 rm -rf conftest.dSYM
16755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16756 conftest$ac_exeext conftest.$ac_ext
16759 rm -rf conftest.dSYM
16760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761 conftest$ac_exeext conftest.$ac_ext
16764 for ac_header in setjmp.h
16766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16769 $as_echo_n "checking for $ac_header... " >&6; }
16770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16771 $as_echo_n "(cached) " >&6
16773 ac_res=`eval 'as_val=${'$as_ac_Header'}
16774 $as_echo "$as_val"'`
16775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16776 $as_echo "$ac_res" >&6; }
16777 else
16778 # Is the header compilable?
16779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16780 $as_echo_n "checking $ac_header usability... " >&6; }
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 $ac_includes_default
16788 #include <$ac_header>
16789 _ACEOF
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794 *) ac_try_echo=$ac_try;;
16795 esac
16796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16797 $as_echo "$ac_try_echo") >&5
16798 (eval "$ac_compile") 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest.$ac_objext; then
16808 ac_header_compiler=yes
16809 else
16810 $as_echo "$as_me: failed program was:" >&5
16811 sed 's/^/| /' conftest.$ac_ext >&5
16813 ac_header_compiler=no
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16818 $as_echo "$ac_header_compiler" >&6; }
16820 # Is the header present?
16821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16822 $as_echo_n "checking $ac_header presence... " >&6; }
16823 cat >conftest.$ac_ext <<_ACEOF
16824 /* confdefs.h. */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 #include <$ac_header>
16830 _ACEOF
16831 if { (ac_try="$ac_cpp conftest.$ac_ext"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835 esac
16836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16837 $as_echo "$ac_try_echo") >&5
16838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } >/dev/null && {
16845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 }; then
16848 ac_header_preproc=yes
16849 else
16850 $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_header_preproc=no
16856 rm -f conftest.err conftest.$ac_ext
16857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16858 $as_echo "$ac_header_preproc" >&6; }
16860 # So? What about this header?
16861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16862 yes:no: )
16863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16867 ac_header_preproc=yes
16869 no:yes:* )
16870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16873 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16877 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16884 esac
16885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16886 $as_echo_n "checking for $ac_header... " >&6; }
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888 $as_echo_n "(cached) " >&6
16889 else
16890 eval "$as_ac_Header=\$ac_header_preproc"
16892 ac_res=`eval 'as_val=${'$as_ac_Header'}
16893 $as_echo "$as_val"'`
16894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16895 $as_echo "$ac_res" >&6; }
16898 if test `eval 'as_val=${'$as_ac_Header'}
16899 $as_echo "$as_val"'` = yes; then
16900 cat >>confdefs.h <<_ACEOF
16901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16902 _ACEOF
16906 done
16909 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16910 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16911 LIBS=`echo $LIBS | sed s/-ldl//`
16912 PERL_LIBS="$PERL_LIBS -ldl"
16916 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16917 && test "x$GUITYPE" != "xCARBONGUI"; then
16918 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16919 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
16920 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16921 || test "x$features" = "xhuge"; then
16922 LIBS="$LIBS -framework Carbon"
16923 { $as_echo "$as_me:$LINENO: result: yes" >&5
16924 $as_echo "yes" >&6; }
16925 else
16926 { $as_echo "$as_me:$LINENO: result: no" >&5
16927 $as_echo "no" >&6; }
16930 if test "x$MACARCH" = "xboth"; then
16931 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16934 DEPEND_CFLAGS_FILTER=
16935 if test "$GCC" = yes; then
16936 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16937 $as_echo_n "checking for GCC 3 or later... " >&6; }
16938 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16939 if test "$gccmajor" -gt "2"; then
16940 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16941 { $as_echo "$as_me:$LINENO: result: yes" >&5
16942 $as_echo "yes" >&6; }
16943 else
16944 { $as_echo "$as_me:$LINENO: result: no" >&5
16945 $as_echo "no" >&6; }
16947 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16948 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
16949 if test "$gccmajor" -gt "3"; then
16950 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
16951 { $as_echo "$as_me:$LINENO: result: yes" >&5
16952 $as_echo "yes" >&6; }
16953 else
16954 { $as_echo "$as_me:$LINENO: result: no" >&5
16955 $as_echo "no" >&6; }
16960 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16962 cat >confcache <<\_ACEOF
16963 # This file is a shell script that caches the results of configure
16964 # tests run on this system so they can be shared between configure
16965 # scripts and configure runs, see configure's option --config-cache.
16966 # It is not useful on other systems. If it contains results you don't
16967 # want to keep, you may remove or edit it.
16969 # config.status only pays attention to the cache file if you give it
16970 # the --recheck option to rerun configure.
16972 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16973 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16974 # following values.
16976 _ACEOF
16978 # The following way of writing the cache mishandles newlines in values,
16979 # but we know of no workaround that is simple, portable, and efficient.
16980 # So, we kill variables containing newlines.
16981 # Ultrix sh set writes to stderr and can't be redirected directly,
16982 # and sets the high bit in the cache file unless we assign to the vars.
16984 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16985 eval ac_val=\$$ac_var
16986 case $ac_val in #(
16987 *${as_nl}*)
16988 case $ac_var in #(
16989 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16990 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16991 esac
16992 case $ac_var in #(
16993 _ | IFS | as_nl) ;; #(
16994 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16995 *) $as_unset $ac_var ;;
16996 esac ;;
16997 esac
16998 done
17000 (set) 2>&1 |
17001 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17002 *${as_nl}ac_space=\ *)
17003 # `set' does not quote correctly, so add quotes (double-quote
17004 # substitution turns \\\\ into \\, and sed turns \\ into \).
17005 sed -n \
17006 "s/'/'\\\\''/g;
17007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17008 ;; #(
17010 # `set' quotes correctly as required by POSIX, so do not add quotes.
17011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17013 esac |
17014 sort
17016 sed '
17017 /^ac_cv_env_/b end
17018 t clear
17019 :clear
17020 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17021 t end
17022 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17023 :end' >>confcache
17024 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17025 if test -w "$cache_file"; then
17026 test "x$cache_file" != "x/dev/null" &&
17027 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17028 $as_echo "$as_me: updating cache $cache_file" >&6;}
17029 cat confcache >$cache_file
17030 else
17031 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17032 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17035 rm -f confcache
17037 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17038 # Let make expand exec_prefix.
17039 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17041 DEFS=-DHAVE_CONFIG_H
17043 ac_libobjs=
17044 ac_ltlibobjs=
17045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17046 # 1. Remove the extension, and $U if already installed.
17047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17048 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17050 # will be set to the directory where LIBOBJS objects are built.
17051 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17052 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17053 done
17054 LIBOBJS=$ac_libobjs
17056 LTLIBOBJS=$ac_ltlibobjs
17060 : ${CONFIG_STATUS=./config.status}
17061 ac_write_fail=0
17062 ac_clean_files_save=$ac_clean_files
17063 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17064 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17065 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17066 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17067 #! $SHELL
17068 # Generated by $as_me.
17069 # Run this file to recreate the current configuration.
17070 # Compiler output produced by configure, useful for debugging
17071 # configure, is in config.log if it exists.
17073 debug=false
17074 ac_cs_recheck=false
17075 ac_cs_silent=false
17076 SHELL=\${CONFIG_SHELL-$SHELL}
17077 _ACEOF
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 ## --------------------- ##
17081 ## M4sh Initialization. ##
17082 ## --------------------- ##
17084 # Be more Bourne compatible
17085 DUALCASE=1; export DUALCASE # for MKS sh
17086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17087 emulate sh
17088 NULLCMD=:
17089 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17090 # is contrary to our usage. Disable this feature.
17091 alias -g '${1+"$@"}'='"$@"'
17092 setopt NO_GLOB_SUBST
17093 else
17094 case `(set -o) 2>/dev/null` in
17095 *posix*) set -o posix ;;
17096 esac
17103 # PATH needs CR
17104 # Avoid depending upon Character Ranges.
17105 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17108 as_cr_digits='0123456789'
17109 as_cr_alnum=$as_cr_Letters$as_cr_digits
17111 as_nl='
17113 export as_nl
17114 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17115 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17117 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17118 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17119 as_echo='printf %s\n'
17120 as_echo_n='printf %s'
17121 else
17122 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17123 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17124 as_echo_n='/usr/ucb/echo -n'
17125 else
17126 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17127 as_echo_n_body='eval
17128 arg=$1;
17129 case $arg in
17130 *"$as_nl"*)
17131 expr "X$arg" : "X\\(.*\\)$as_nl";
17132 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17133 esac;
17134 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17136 export as_echo_n_body
17137 as_echo_n='sh -c $as_echo_n_body as_echo'
17139 export as_echo_body
17140 as_echo='sh -c $as_echo_body as_echo'
17143 # The user is always right.
17144 if test "${PATH_SEPARATOR+set}" != set; then
17145 PATH_SEPARATOR=:
17146 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17147 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17148 PATH_SEPARATOR=';'
17152 # Support unset when possible.
17153 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17154 as_unset=unset
17155 else
17156 as_unset=false
17160 # IFS
17161 # We need space, tab and new line, in precisely that order. Quoting is
17162 # there to prevent editors from complaining about space-tab.
17163 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17164 # splitting by setting IFS to empty value.)
17165 IFS=" "" $as_nl"
17167 # Find who we are. Look in the path if we contain no directory separator.
17168 case $0 in
17169 *[\\/]* ) as_myself=$0 ;;
17170 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $PATH
17173 IFS=$as_save_IFS
17174 test -z "$as_dir" && as_dir=.
17175 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17176 done
17177 IFS=$as_save_IFS
17180 esac
17181 # We did not find ourselves, most probably we were run as `sh COMMAND'
17182 # in which case we are not to be found in the path.
17183 if test "x$as_myself" = x; then
17184 as_myself=$0
17186 if test ! -f "$as_myself"; then
17187 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17188 { (exit 1); exit 1; }
17191 # Work around bugs in pre-3.0 UWIN ksh.
17192 for as_var in ENV MAIL MAILPATH
17193 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17194 done
17195 PS1='$ '
17196 PS2='> '
17197 PS4='+ '
17199 # NLS nuisances.
17200 LC_ALL=C
17201 export LC_ALL
17202 LANGUAGE=C
17203 export LANGUAGE
17205 # Required to use basename.
17206 if expr a : '\(a\)' >/dev/null 2>&1 &&
17207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17208 as_expr=expr
17209 else
17210 as_expr=false
17213 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17214 as_basename=basename
17215 else
17216 as_basename=false
17220 # Name of the executable.
17221 as_me=`$as_basename -- "$0" ||
17222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17223 X"$0" : 'X\(//\)$' \| \
17224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17225 $as_echo X/"$0" |
17226 sed '/^.*\/\([^/][^/]*\)\/*$/{
17227 s//\1/
17230 /^X\/\(\/\/\)$/{
17231 s//\1/
17234 /^X\/\(\/\).*/{
17235 s//\1/
17238 s/.*/./; q'`
17240 # CDPATH.
17241 $as_unset CDPATH
17245 as_lineno_1=$LINENO
17246 as_lineno_2=$LINENO
17247 test "x$as_lineno_1" != "x$as_lineno_2" &&
17248 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17250 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17251 # uniformly replaced by the line number. The first 'sed' inserts a
17252 # line-number line after each line using $LINENO; the second 'sed'
17253 # does the real work. The second script uses 'N' to pair each
17254 # line-number line with the line containing $LINENO, and appends
17255 # trailing '-' during substitution so that $LINENO is not a special
17256 # case at line end.
17257 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17258 # scripts with optimization help from Paolo Bonzini. Blame Lee
17259 # E. McMahon (1931-1989) for sed's syntax. :-)
17260 sed -n '
17262 /[$]LINENO/=
17263 ' <$as_myself |
17264 sed '
17265 s/[$]LINENO.*/&-/
17266 t lineno
17268 :lineno
17270 :loop
17271 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17272 t loop
17273 s/-\n.*//
17274 ' >$as_me.lineno &&
17275 chmod +x "$as_me.lineno" ||
17276 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17277 { (exit 1); exit 1; }; }
17279 # Don't try to exec as it changes $[0], causing all sort of problems
17280 # (the dirname of $[0] is not the place where we might find the
17281 # original and so on. Autoconf is especially sensitive to this).
17282 . "./$as_me.lineno"
17283 # Exit status is that of the last command.
17284 exit
17288 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17289 as_dirname=dirname
17290 else
17291 as_dirname=false
17294 ECHO_C= ECHO_N= ECHO_T=
17295 case `echo -n x` in
17296 -n*)
17297 case `echo 'x\c'` in
17298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17299 *) ECHO_C='\c';;
17300 esac;;
17302 ECHO_N='-n';;
17303 esac
17304 if expr a : '\(a\)' >/dev/null 2>&1 &&
17305 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17306 as_expr=expr
17307 else
17308 as_expr=false
17311 rm -f conf$$ conf$$.exe conf$$.file
17312 if test -d conf$$.dir; then
17313 rm -f conf$$.dir/conf$$.file
17314 else
17315 rm -f conf$$.dir
17316 mkdir conf$$.dir 2>/dev/null
17318 if (echo >conf$$.file) 2>/dev/null; then
17319 if ln -s conf$$.file conf$$ 2>/dev/null; then
17320 as_ln_s='ln -s'
17321 # ... but there are two gotchas:
17322 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17323 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17324 # In both cases, we have to default to `cp -p'.
17325 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17326 as_ln_s='cp -p'
17327 elif ln conf$$.file conf$$ 2>/dev/null; then
17328 as_ln_s=ln
17329 else
17330 as_ln_s='cp -p'
17332 else
17333 as_ln_s='cp -p'
17335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17336 rmdir conf$$.dir 2>/dev/null
17338 if mkdir -p . 2>/dev/null; then
17339 as_mkdir_p=:
17340 else
17341 test -d ./-p && rmdir ./-p
17342 as_mkdir_p=false
17345 if test -x / >/dev/null 2>&1; then
17346 as_test_x='test -x'
17347 else
17348 if ls -dL / >/dev/null 2>&1; then
17349 as_ls_L_option=L
17350 else
17351 as_ls_L_option=
17353 as_test_x='
17354 eval sh -c '\''
17355 if test -d "$1"; then
17356 test -d "$1/.";
17357 else
17358 case $1 in
17359 -*)set "./$1";;
17360 esac;
17361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17362 ???[sx]*):;;*)false;;esac;fi
17363 '\'' sh
17366 as_executable_p=$as_test_x
17368 # Sed expression to map a string onto a valid CPP name.
17369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17371 # Sed expression to map a string onto a valid variable name.
17372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17375 exec 6>&1
17377 # Save the log message, to keep $[0] and so on meaningful, and to
17378 # report actual input values of CONFIG_FILES etc. instead of their
17379 # values after options handling.
17380 ac_log="
17381 This file was extended by $as_me, which was
17382 generated by GNU Autoconf 2.62. Invocation command line was
17384 CONFIG_FILES = $CONFIG_FILES
17385 CONFIG_HEADERS = $CONFIG_HEADERS
17386 CONFIG_LINKS = $CONFIG_LINKS
17387 CONFIG_COMMANDS = $CONFIG_COMMANDS
17388 $ $0 $@
17390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17393 _ACEOF
17395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17396 # Files that config.status was made for.
17397 config_files="$ac_config_files"
17398 config_headers="$ac_config_headers"
17400 _ACEOF
17402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17403 ac_cs_usage="\
17404 \`$as_me' instantiates files from templates according to the
17405 current configuration.
17407 Usage: $0 [OPTIONS] [FILE]...
17409 -h, --help print this help, then exit
17410 -V, --version print version number and configuration settings, then exit
17411 -q, --quiet do not print progress messages
17412 -d, --debug don't remove temporary files
17413 --recheck update $as_me by reconfiguring in the same conditions
17414 --file=FILE[:TEMPLATE]
17415 instantiate the configuration file FILE
17416 --header=FILE[:TEMPLATE]
17417 instantiate the configuration header FILE
17419 Configuration files:
17420 $config_files
17422 Configuration headers:
17423 $config_headers
17425 Report bugs to <bug-autoconf@gnu.org>."
17427 _ACEOF
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429 ac_cs_version="\\
17430 config.status
17431 configured by $0, generated by GNU Autoconf 2.62,
17432 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17434 Copyright (C) 2008 Free Software Foundation, Inc.
17435 This config.status script is free software; the Free Software Foundation
17436 gives unlimited permission to copy, distribute and modify it."
17438 ac_pwd='$ac_pwd'
17439 srcdir='$srcdir'
17440 AWK='$AWK'
17441 test -n "\$AWK" || AWK=awk
17442 _ACEOF
17444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17445 # The default lists apply if the user does not specify any file.
17446 ac_need_defaults=:
17447 while test $# != 0
17449 case $1 in
17450 --*=*)
17451 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17452 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17453 ac_shift=:
17456 ac_option=$1
17457 ac_optarg=$2
17458 ac_shift=shift
17460 esac
17462 case $ac_option in
17463 # Handling of the options.
17464 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17465 ac_cs_recheck=: ;;
17466 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17467 $as_echo "$ac_cs_version"; exit ;;
17468 --debug | --debu | --deb | --de | --d | -d )
17469 debug=: ;;
17470 --file | --fil | --fi | --f )
17471 $ac_shift
17472 case $ac_optarg in
17473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17474 esac
17475 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17476 ac_need_defaults=false;;
17477 --header | --heade | --head | --hea )
17478 $ac_shift
17479 case $ac_optarg in
17480 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17481 esac
17482 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17483 ac_need_defaults=false;;
17484 --he | --h)
17485 # Conflict between --help and --header
17486 { $as_echo "$as_me: error: ambiguous option: $1
17487 Try \`$0 --help' for more information." >&2
17488 { (exit 1); exit 1; }; };;
17489 --help | --hel | -h )
17490 $as_echo "$ac_cs_usage"; exit ;;
17491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17493 ac_cs_silent=: ;;
17495 # This is an error.
17496 -*) { $as_echo "$as_me: error: unrecognized option: $1
17497 Try \`$0 --help' for more information." >&2
17498 { (exit 1); exit 1; }; } ;;
17500 *) ac_config_targets="$ac_config_targets $1"
17501 ac_need_defaults=false ;;
17503 esac
17504 shift
17505 done
17507 ac_configure_extra_args=
17509 if $ac_cs_silent; then
17510 exec 6>/dev/null
17511 ac_configure_extra_args="$ac_configure_extra_args --silent"
17514 _ACEOF
17515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17516 if \$ac_cs_recheck; then
17517 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17518 shift
17519 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17520 CONFIG_SHELL='$SHELL'
17521 export CONFIG_SHELL
17522 exec "\$@"
17525 _ACEOF
17526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17527 exec 5>>auto/config.log
17529 echo
17530 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17531 ## Running $as_me. ##
17532 _ASBOX
17533 $as_echo "$ac_log"
17534 } >&5
17536 _ACEOF
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 _ACEOF
17540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17542 # Handling of arguments.
17543 for ac_config_target in $ac_config_targets
17545 case $ac_config_target in
17546 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17547 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17549 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17550 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17551 { (exit 1); exit 1; }; };;
17552 esac
17553 done
17556 # If the user did not use the arguments to specify the items to instantiate,
17557 # then the envvar interface is used. Set only those that are not.
17558 # We use the long form for the default assignment because of an extremely
17559 # bizarre bug on SunOS 4.1.3.
17560 if $ac_need_defaults; then
17561 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17562 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17565 # Have a temporary directory for convenience. Make it in the build tree
17566 # simply because there is no reason against having it here, and in addition,
17567 # creating and moving files from /tmp can sometimes cause problems.
17568 # Hook for its removal unless debugging.
17569 # Note that there is a small window in which the directory will not be cleaned:
17570 # after its creation but before its name has been assigned to `$tmp'.
17571 $debug ||
17573 tmp=
17574 trap 'exit_status=$?
17575 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17577 trap '{ (exit 1); exit 1; }' 1 2 13 15
17579 # Create a (secure) tmp directory for tmp files.
17582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17583 test -n "$tmp" && test -d "$tmp"
17584 } ||
17586 tmp=./conf$$-$RANDOM
17587 (umask 077 && mkdir "$tmp")
17588 } ||
17590 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17591 { (exit 1); exit 1; }
17594 # Set up the scripts for CONFIG_FILES section.
17595 # No need to generate them if there are no CONFIG_FILES.
17596 # This happens for instance with `./config.status config.h'.
17597 if test -n "$CONFIG_FILES"; then
17600 ac_cr=' '
17601 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17602 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17603 ac_cs_awk_cr='\\r'
17604 else
17605 ac_cs_awk_cr=$ac_cr
17608 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17609 _ACEOF
17613 echo "cat >conf$$subs.awk <<_ACEOF" &&
17614 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17615 echo "_ACEOF"
17616 } >conf$$subs.sh ||
17617 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17618 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17619 { (exit 1); exit 1; }; }
17620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17621 ac_delim='%!_!# '
17622 for ac_last_try in false false false false false :; do
17623 . ./conf$$subs.sh ||
17624 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17625 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17626 { (exit 1); exit 1; }; }
17628 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17629 break
17630 elif $ac_last_try; then
17631 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17632 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17633 { (exit 1); exit 1; }; }
17634 else
17635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17637 done
17638 rm -f conf$$subs.sh
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17642 _ACEOF
17643 sed -n '
17645 s/^/S["/; s/!.*/"]=/
17648 s/^[^!]*!//
17649 :repl
17650 t repl
17651 s/'"$ac_delim"'$//
17652 t delim
17655 s/\(.\{148\}\).*/\1/
17656 t more1
17657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17660 b repl
17661 :more1
17662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17665 s/.\{148\}//
17666 t nl
17667 :delim
17669 s/\(.\{148\}\).*/\1/
17670 t more2
17671 s/["\\]/\\&/g; s/^/"/; s/$/"/
17674 :more2
17675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17678 s/.\{148\}//
17679 t delim
17680 ' <conf$$subs.awk | sed '
17681 /^[^""]/{
17683 s/\n//
17685 ' >>$CONFIG_STATUS || ac_write_fail=1
17686 rm -f conf$$subs.awk
17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17688 _ACAWK
17689 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17690 for (key in S) S_is_set[key] = 1
17691 FS = "\a"
17695 line = $ 0
17696 nfields = split(line, field, "@")
17697 substed = 0
17698 len = length(field[1])
17699 for (i = 2; i < nfields; i++) {
17700 key = field[i]
17701 keylen = length(key)
17702 if (S_is_set[key]) {
17703 value = S[key]
17704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17705 len += length(value) + length(field[++i])
17706 substed = 1
17707 } else
17708 len += 1 + keylen
17711 print line
17714 _ACAWK
17715 _ACEOF
17716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17719 else
17721 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17722 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17723 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17724 { (exit 1); exit 1; }; }
17725 _ACEOF
17727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17729 # trailing colons and then remove the whole line if VPATH becomes empty
17730 # (actually we leave an empty line to preserve line numbers).
17731 if test "x$srcdir" = x.; then
17732 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17733 s/:*\$(srcdir):*/:/
17734 s/:*\${srcdir}:*/:/
17735 s/:*@srcdir@:*/:/
17736 s/^\([^=]*=[ ]*\):*/\1/
17737 s/:*$//
17738 s/^[^=]*=[ ]*$//
17742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743 fi # test -n "$CONFIG_FILES"
17745 # Set up the scripts for CONFIG_HEADERS section.
17746 # No need to generate them if there are no CONFIG_HEADERS.
17747 # This happens for instance with `./config.status Makefile'.
17748 if test -n "$CONFIG_HEADERS"; then
17749 cat >"$tmp/defines.awk" <<\_ACAWK ||
17750 BEGIN {
17751 _ACEOF
17753 # Transform confdefs.h into an awk script `defines.awk', embedded as
17754 # here-document in config.status, that substitutes the proper values into
17755 # config.h.in to produce config.h.
17757 # Create a delimiter string that does not exist in confdefs.h, to ease
17758 # handling of long lines.
17759 ac_delim='%!_!# '
17760 for ac_last_try in false false :; do
17761 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17762 if test -z "$ac_t"; then
17763 break
17764 elif $ac_last_try; then
17765 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
17766 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
17767 { (exit 1); exit 1; }; }
17768 else
17769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17771 done
17773 # For the awk script, D is an array of macro values keyed by name,
17774 # likewise P contains macro parameters if any. Preserve backslash
17775 # newline sequences.
17777 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17778 sed -n '
17779 s/.\{148\}/&'"$ac_delim"'/g
17780 t rset
17781 :rset
17782 s/^[ ]*#[ ]*define[ ][ ]*/ /
17783 t def
17785 :def
17786 s/\\$//
17787 t bsnl
17788 s/["\\]/\\&/g
17789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17790 D["\1"]=" \3"/p
17791 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17793 :bsnl
17794 s/["\\]/\\&/g
17795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17796 D["\1"]=" \3\\\\\\n"\\/p
17797 t cont
17798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17799 t cont
17801 :cont
17803 s/.\{148\}/&'"$ac_delim"'/g
17804 t clear
17805 :clear
17806 s/\\$//
17807 t bsnlc
17808 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17810 :bsnlc
17811 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17812 b cont
17813 ' <confdefs.h | sed '
17814 s/'"$ac_delim"'/"\\\
17815 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17818 for (key in D) D_is_set[key] = 1
17819 FS = "\a"
17821 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17822 line = \$ 0
17823 split(line, arg, " ")
17824 if (arg[1] == "#") {
17825 defundef = arg[2]
17826 mac1 = arg[3]
17827 } else {
17828 defundef = substr(arg[1], 2)
17829 mac1 = arg[2]
17831 split(mac1, mac2, "(") #)
17832 macro = mac2[1]
17833 if (D_is_set[macro]) {
17834 # Preserve the white space surrounding the "#".
17835 prefix = substr(line, 1, index(line, defundef) - 1)
17836 print prefix "define", macro P[macro] D[macro]
17837 next
17838 } else {
17839 # Replace #undef with comments. This is necessary, for example,
17840 # in the case of _POSIX_SOURCE, which is predefined and required
17841 # on some systems where configure will not decide to define it.
17842 if (defundef == "undef") {
17843 print "/*", line, "*/"
17844 next
17848 { print }
17849 _ACAWK
17850 _ACEOF
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17853 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17854 { (exit 1); exit 1; }; }
17855 fi # test -n "$CONFIG_HEADERS"
17858 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17859 shift
17860 for ac_tag
17862 case $ac_tag in
17863 :[FHLC]) ac_mode=$ac_tag; continue;;
17864 esac
17865 case $ac_mode$ac_tag in
17866 :[FHL]*:*);;
17867 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17868 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17869 { (exit 1); exit 1; }; };;
17870 :[FH]-) ac_tag=-:-;;
17871 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17872 esac
17873 ac_save_IFS=$IFS
17874 IFS=:
17875 set x $ac_tag
17876 IFS=$ac_save_IFS
17877 shift
17878 ac_file=$1
17879 shift
17881 case $ac_mode in
17882 :L) ac_source=$1;;
17883 :[FH])
17884 ac_file_inputs=
17885 for ac_f
17887 case $ac_f in
17888 -) ac_f="$tmp/stdin";;
17889 *) # Look for the file first in the build tree, then in the source tree
17890 # (if the path is not absolute). The absolute path cannot be DOS-style,
17891 # because $ac_f cannot contain `:'.
17892 test -f "$ac_f" ||
17893 case $ac_f in
17894 [\\/$]*) false;;
17895 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17896 esac ||
17897 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17898 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17899 { (exit 1); exit 1; }; };;
17900 esac
17901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17902 ac_file_inputs="$ac_file_inputs '$ac_f'"
17903 done
17905 # Let's still pretend it is `configure' which instantiates (i.e., don't
17906 # use $as_me), people would be surprised to read:
17907 # /* config.h. Generated by config.status. */
17908 configure_input='Generated from '`
17909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17910 `' by configure.'
17911 if test x"$ac_file" != x-; then
17912 configure_input="$ac_file. $configure_input"
17913 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17914 $as_echo "$as_me: creating $ac_file" >&6;}
17916 # Neutralize special characters interpreted by sed in replacement strings.
17917 case $configure_input in #(
17918 *\&* | *\|* | *\\* )
17919 ac_sed_conf_input=`$as_echo "$configure_input" |
17920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17921 *) ac_sed_conf_input=$configure_input;;
17922 esac
17924 case $ac_tag in
17925 *:-:* | *:-) cat >"$tmp/stdin" \
17926 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17927 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17928 { (exit 1); exit 1; }; } ;;
17929 esac
17931 esac
17933 ac_dir=`$as_dirname -- "$ac_file" ||
17934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17935 X"$ac_file" : 'X\(//\)[^/]' \| \
17936 X"$ac_file" : 'X\(//\)$' \| \
17937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17938 $as_echo X"$ac_file" |
17939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17940 s//\1/
17943 /^X\(\/\/\)[^/].*/{
17944 s//\1/
17947 /^X\(\/\/\)$/{
17948 s//\1/
17951 /^X\(\/\).*/{
17952 s//\1/
17955 s/.*/./; q'`
17956 { as_dir="$ac_dir"
17957 case $as_dir in #(
17958 -*) as_dir=./$as_dir;;
17959 esac
17960 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17961 as_dirs=
17962 while :; do
17963 case $as_dir in #(
17964 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17965 *) as_qdir=$as_dir;;
17966 esac
17967 as_dirs="'$as_qdir' $as_dirs"
17968 as_dir=`$as_dirname -- "$as_dir" ||
17969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17970 X"$as_dir" : 'X\(//\)[^/]' \| \
17971 X"$as_dir" : 'X\(//\)$' \| \
17972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17973 $as_echo X"$as_dir" |
17974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17975 s//\1/
17978 /^X\(\/\/\)[^/].*/{
17979 s//\1/
17982 /^X\(\/\/\)$/{
17983 s//\1/
17986 /^X\(\/\).*/{
17987 s//\1/
17990 s/.*/./; q'`
17991 test -d "$as_dir" && break
17992 done
17993 test -z "$as_dirs" || eval "mkdir $as_dirs"
17994 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17995 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17996 { (exit 1); exit 1; }; }; }
17997 ac_builddir=.
17999 case "$ac_dir" in
18000 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18002 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18003 # A ".." for each directory in $ac_dir_suffix.
18004 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18005 case $ac_top_builddir_sub in
18006 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18007 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18008 esac ;;
18009 esac
18010 ac_abs_top_builddir=$ac_pwd
18011 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18012 # for backward compatibility:
18013 ac_top_builddir=$ac_top_build_prefix
18015 case $srcdir in
18016 .) # We are building in place.
18017 ac_srcdir=.
18018 ac_top_srcdir=$ac_top_builddir_sub
18019 ac_abs_top_srcdir=$ac_pwd ;;
18020 [\\/]* | ?:[\\/]* ) # Absolute name.
18021 ac_srcdir=$srcdir$ac_dir_suffix;
18022 ac_top_srcdir=$srcdir
18023 ac_abs_top_srcdir=$srcdir ;;
18024 *) # Relative name.
18025 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18026 ac_top_srcdir=$ac_top_build_prefix$srcdir
18027 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18028 esac
18029 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18032 case $ac_mode in
18035 # CONFIG_FILE
18038 _ACEOF
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18041 # If the template does not know about datarootdir, expand it.
18042 # FIXME: This hack should be removed a few years after 2.60.
18043 ac_datarootdir_hack=; ac_datarootdir_seen=
18045 ac_sed_dataroot='
18046 /datarootdir/ {
18050 /@datadir@/p
18051 /@docdir@/p
18052 /@infodir@/p
18053 /@localedir@/p
18054 /@mandir@/p
18056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18057 *datarootdir*) ac_datarootdir_seen=yes;;
18058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18059 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18060 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18061 _ACEOF
18062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18063 ac_datarootdir_hack='
18064 s&@datadir@&$datadir&g
18065 s&@docdir@&$docdir&g
18066 s&@infodir@&$infodir&g
18067 s&@localedir@&$localedir&g
18068 s&@mandir@&$mandir&g
18069 s&\\\${datarootdir}&$datarootdir&g' ;;
18070 esac
18071 _ACEOF
18073 # Neutralize VPATH when `$srcdir' = `.'.
18074 # Shell code in configure.ac might set extrasub.
18075 # FIXME: do we really want to maintain this feature?
18076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18077 ac_sed_extra="$ac_vpsub
18078 $extrasub
18079 _ACEOF
18080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18083 s|@configure_input@|$ac_sed_conf_input|;t t
18084 s&@top_builddir@&$ac_top_builddir_sub&;t t
18085 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18086 s&@srcdir@&$ac_srcdir&;t t
18087 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18088 s&@top_srcdir@&$ac_top_srcdir&;t t
18089 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18090 s&@builddir@&$ac_builddir&;t t
18091 s&@abs_builddir@&$ac_abs_builddir&;t t
18092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18093 $ac_datarootdir_hack
18095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18096 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18097 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18098 { (exit 1); exit 1; }; }
18100 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18101 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18102 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18103 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18104 which seems to be undefined. Please make sure it is defined." >&5
18105 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18106 which seems to be undefined. Please make sure it is defined." >&2;}
18108 rm -f "$tmp/stdin"
18109 case $ac_file in
18110 -) cat "$tmp/out" && rm -f "$tmp/out";;
18111 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18112 esac \
18113 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18114 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18115 { (exit 1); exit 1; }; }
18119 # CONFIG_HEADER
18121 if test x"$ac_file" != x-; then
18123 $as_echo "/* $configure_input */" \
18124 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18125 } >"$tmp/config.h" \
18126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18128 { (exit 1); exit 1; }; }
18129 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18130 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18131 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18132 else
18133 rm -f "$ac_file"
18134 mv "$tmp/config.h" "$ac_file" \
18135 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18136 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18137 { (exit 1); exit 1; }; }
18139 else
18140 $as_echo "/* $configure_input */" \
18141 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18142 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18143 $as_echo "$as_me: error: could not create -" >&2;}
18144 { (exit 1); exit 1; }; }
18149 esac
18151 done # for ac_tag
18154 { (exit 0); exit 0; }
18155 _ACEOF
18156 chmod +x $CONFIG_STATUS
18157 ac_clean_files=$ac_clean_files_save
18159 test $ac_write_fail = 0 ||
18160 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18161 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18162 { (exit 1); exit 1; }; }
18165 # configure is writing to config.log, and then calls config.status.
18166 # config.status does its own redirection, appending to config.log.
18167 # Unfortunately, on DOS this fails, as config.log is still kept open
18168 # by configure, so config.status won't be able to write to it; its
18169 # output is simply discarded. So we exec the FD to /dev/null,
18170 # effectively closing config.log, so it can be properly (re)opened and
18171 # appended to by config.status. When coming back to configure, we
18172 # need to make the FD available again.
18173 if test "$no_create" != yes; then
18174 ac_cs_success=:
18175 ac_config_status_args=
18176 test "$silent" = yes &&
18177 ac_config_status_args="$ac_config_status_args --quiet"
18178 exec 5>/dev/null
18179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18180 exec 5>>auto/config.log
18181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18182 # would make configure fail if this is the last instruction.
18183 $ac_cs_success || { (exit 1); exit 1; }
18185 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18186 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18187 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}