Don't include Carbon.h in os_mac.h
[MacVim.git] / src / configure
blob2f7d32a797d597426f4e241e804ffa8db831333a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 SET_MAKE
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
662 GREP
663 EGREP
665 STRIP
666 CPP_MM
667 OS_EXTRA_SRC
668 OS_EXTRA_OBJ
669 VIMNAME
670 EXNAME
671 VIEWNAME
672 line_break
673 dovimdiff
674 dogvimdiff
675 compiledby
676 vi_cv_path_mzscheme
677 MZSCHEME_SRC
678 MZSCHEME_OBJ
679 MZSCHEME_PRO
680 MZSCHEME_LIBS
681 MZSCHEME_CFLAGS
682 MZSCHEME_EXTRA
683 MZSCHEME_MZC
684 vi_cv_path_perl
685 vi_cv_perllib
686 shrpenv
687 PERL_SRC
688 PERL_OBJ
689 PERL_PRO
690 PERL_CFLAGS
691 PERL_LIBS
692 vi_cv_path_python
693 PYTHON_CONFDIR
694 PYTHON_LIBS
695 PYTHON_GETPATH_CFLAGS
696 PYTHON_CFLAGS
697 PYTHON_SRC
698 PYTHON_OBJ
699 vi_cv_path_tcl
700 TCL_SRC
701 TCL_OBJ
702 TCL_PRO
703 TCL_CFLAGS
704 TCL_LIBS
705 vi_cv_path_ruby
706 RUBY_SRC
707 RUBY_OBJ
708 RUBY_PRO
709 RUBY_CFLAGS
710 RUBY_LIBS
711 WORKSHOP_SRC
712 WORKSHOP_OBJ
713 NETBEANS_SRC
714 NETBEANS_OBJ
715 SNIFF_SRC
716 SNIFF_OBJ
717 xmkmfpath
718 XMKMF
719 X_CFLAGS
720 X_PRE_LIBS
721 X_LIBS
722 X_EXTRA_LIBS
723 X_LIB
724 GTK_CONFIG
725 GTK12_CONFIG
726 PKG_CONFIG
727 GTK_CFLAGS
728 GTK_LIBS
729 GTK_LIBNAME
730 GNOME_LIBS
731 GNOME_LIBDIR
732 GNOME_INCLUDEDIR
733 GNOME_CONFIG
734 MOTIF_LIBNAME
735 NARROW_PROTO
736 GUI_INC_LOC
737 GUI_LIB_LOC
738 GUITYPE
739 GUI_X_LIBS
740 HANGULIN_SRC
741 HANGULIN_OBJ
742 TAGPRG
743 INSTALL_LANGS
744 INSTALL_TOOL_LANGS
745 MSGFMT
746 MAKEMO
747 XCODEFLAGS
748 DEPEND_CFLAGS_FILTER
749 LIBOBJS
750 LTLIBOBJS'
751 ac_subst_files=''
752 ac_precious_vars='build_alias
753 host_alias
754 target_alias
756 CFLAGS
757 LDFLAGS
758 LIBS
759 CPPFLAGS
761 XMKMF'
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
810 ac_prev=
811 ac_dashdash=
812 for ac_option
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
821 case $ac_option in
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *) ac_optarg=yes ;;
824 esac
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
830 ac_dashdash=yes ;;
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
849 --config-cache | -C)
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
874 ac_prev=docdir ;;
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 docdir=$ac_optarg ;;
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 ac_prev=dvidir ;;
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 dvidir=$ac_optarg ;;
883 -enable-* | --enable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=\$ac_optarg ;;
892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
894 | --exec | --exe | --ex)
895 ac_prev=exec_prefix ;;
896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
898 | --exec=* | --exe=* | --ex=*)
899 exec_prefix=$ac_optarg ;;
901 -gas | --gas | --ga | --g)
902 # Obsolete; use --with-gas.
903 with_gas=yes ;;
905 -help | --help | --hel | --he | -h)
906 ac_init_help=long ;;
907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
908 ac_init_help=recursive ;;
909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
910 ac_init_help=short ;;
912 -host | --host | --hos | --ho)
913 ac_prev=host_alias ;;
914 -host=* | --host=* | --hos=* | --ho=*)
915 host_alias=$ac_optarg ;;
917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 ac_prev=htmldir ;;
919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 | --ht=*)
921 htmldir=$ac_optarg ;;
923 -includedir | --includedir | --includedi | --included | --include \
924 | --includ | --inclu | --incl | --inc)
925 ac_prev=includedir ;;
926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
927 | --includ=* | --inclu=* | --incl=* | --inc=*)
928 includedir=$ac_optarg ;;
930 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 ac_prev=infodir ;;
932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
933 infodir=$ac_optarg ;;
935 -libdir | --libdir | --libdi | --libd)
936 ac_prev=libdir ;;
937 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 libdir=$ac_optarg ;;
940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
941 | --libexe | --libex | --libe)
942 ac_prev=libexecdir ;;
943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
944 | --libexe=* | --libex=* | --libe=*)
945 libexecdir=$ac_optarg ;;
947 -localedir | --localedir | --localedi | --localed | --locale)
948 ac_prev=localedir ;;
949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
950 localedir=$ac_optarg ;;
952 -localstatedir | --localstatedir | --localstatedi | --localstated \
953 | --localstate | --localstat | --localsta | --localst | --locals)
954 ac_prev=localstatedir ;;
955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
957 localstatedir=$ac_optarg ;;
959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 ac_prev=mandir ;;
961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
962 mandir=$ac_optarg ;;
964 -nfp | --nfp | --nf)
965 # Obsolete; use --without-fp.
966 with_fp=no ;;
968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
969 | --no-cr | --no-c | -n)
970 no_create=yes ;;
972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 no_recursion=yes ;;
976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
978 | --oldin | --oldi | --old | --ol | --o)
979 ac_prev=oldincludedir ;;
980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
983 oldincludedir=$ac_optarg ;;
985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 ac_prev=prefix ;;
987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 prefix=$ac_optarg ;;
990 -program-prefix | --program-prefix | --program-prefi | --program-pref \
991 | --program-pre | --program-pr | --program-p)
992 ac_prev=program_prefix ;;
993 -program-prefix=* | --program-prefix=* | --program-prefi=* \
994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
995 program_prefix=$ac_optarg ;;
997 -program-suffix | --program-suffix | --program-suffi | --program-suff \
998 | --program-suf | --program-su | --program-s)
999 ac_prev=program_suffix ;;
1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1002 program_suffix=$ac_optarg ;;
1004 -program-transform-name | --program-transform-name \
1005 | --program-transform-nam | --program-transform-na \
1006 | --program-transform-n | --program-transform- \
1007 | --program-transform | --program-transfor \
1008 | --program-transfo | --program-transf \
1009 | --program-trans | --program-tran \
1010 | --progr-tra | --program-tr | --program-t)
1011 ac_prev=program_transform_name ;;
1012 -program-transform-name=* | --program-transform-name=* \
1013 | --program-transform-nam=* | --program-transform-na=* \
1014 | --program-transform-n=* | --program-transform-=* \
1015 | --program-transform=* | --program-transfor=* \
1016 | --program-transfo=* | --program-transf=* \
1017 | --program-trans=* | --program-tran=* \
1018 | --progr-tra=* | --program-tr=* | --program-t=*)
1019 program_transform_name=$ac_optarg ;;
1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 ac_prev=pdfdir ;;
1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1024 pdfdir=$ac_optarg ;;
1026 -psdir | --psdir | --psdi | --psd | --ps)
1027 ac_prev=psdir ;;
1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 psdir=$ac_optarg ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 silent=yes ;;
1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 ac_prev=sbindir ;;
1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 | --sbi=* | --sb=*)
1039 sbindir=$ac_optarg ;;
1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1043 | --sharedst | --shareds | --shared | --share | --shar \
1044 | --sha | --sh)
1045 ac_prev=sharedstatedir ;;
1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 | --sha=* | --sh=*)
1050 sharedstatedir=$ac_optarg ;;
1052 -site | --site | --sit)
1053 ac_prev=site ;;
1054 -site=* | --site=* | --sit=*)
1055 site=$ac_optarg ;;
1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 ac_prev=srcdir ;;
1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1060 srcdir=$ac_optarg ;;
1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1063 | --syscon | --sysco | --sysc | --sys | --sy)
1064 ac_prev=sysconfdir ;;
1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1067 sysconfdir=$ac_optarg ;;
1069 -target | --target | --targe | --targ | --tar | --ta | --t)
1070 ac_prev=target_alias ;;
1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1072 target_alias=$ac_optarg ;;
1074 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 verbose=yes ;;
1077 -version | --version | --versio | --versi | --vers | -V)
1078 ac_init_version=: ;;
1080 -with-* | --with-*)
1081 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=\$ac_optarg ;;
1089 -without-* | --without-*)
1090 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1093 { echo "$as_me: error: invalid package name: $ac_package" >&2
1094 { (exit 1); exit 1; }; }
1095 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1096 eval with_$ac_package=no ;;
1098 --x)
1099 # Obsolete; use --with-x.
1100 with_x=yes ;;
1102 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1103 | --x-incl | --x-inc | --x-in | --x-i)
1104 ac_prev=x_includes ;;
1105 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1106 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1107 x_includes=$ac_optarg ;;
1109 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1110 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1111 ac_prev=x_libraries ;;
1112 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1113 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1114 x_libraries=$ac_optarg ;;
1116 -*) { echo "$as_me: error: unrecognized option: $ac_option
1117 Try \`$0 --help' for more information." >&2
1118 { (exit 1); exit 1; }; }
1121 *=*)
1122 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1125 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1126 { (exit 1); exit 1; }; }
1127 eval $ac_envvar=\$ac_optarg
1128 export $ac_envvar ;;
1131 # FIXME: should be removed in autoconf 3.0.
1132 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1133 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1134 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1135 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1138 esac
1139 done
1141 if test -n "$ac_prev"; then
1142 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1143 { echo "$as_me: error: missing argument to $ac_option" >&2
1144 { (exit 1); exit 1; }; }
1147 # Be sure to have absolute directory names.
1148 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
1153 eval ac_val=\$$ac_var
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159 { (exit 1); exit 1; }; }
1160 done
1162 # There might be people who depend on the old broken behavior: `$host'
1163 # used to hold the argument of --host etc.
1164 # FIXME: To remove some day.
1165 build=$build_alias
1166 host=$host_alias
1167 target=$target_alias
1169 # FIXME: To remove some day.
1170 if test "x$host_alias" != x; then
1171 if test "x$build_alias" = x; then
1172 cross_compiling=maybe
1173 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1174 If a cross compiler is detected then cross compile mode will be used." >&2
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 { echo "$as_me: error: Working directory cannot be determined" >&2
1190 { (exit 1); exit 1; }; }
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 { echo "$as_me: error: pwd does not report name of working directory" >&2
1193 { (exit 1); exit 1; }; }
1196 # Find the source files, if location was not specified.
1197 if test -z "$srcdir"; then
1198 ac_srcdir_defaulted=yes
1199 # Try the directory containing this script, then the parent directory.
1200 ac_confdir=`$as_dirname -- "$0" ||
1201 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1202 X"$0" : 'X\(//\)[^/]' \| \
1203 X"$0" : 'X\(//\)$' \| \
1204 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1205 echo X"$0" |
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 s//\1/
1210 /^X\(\/\/\)[^/].*/{
1211 s//\1/
1214 /^X\(\/\/\)$/{
1215 s//\1/
1218 /^X\(\/\).*/{
1219 s//\1/
1222 s/.*/./; q'`
1223 srcdir=$ac_confdir
1224 if test ! -r "$srcdir/$ac_unique_file"; then
1225 srcdir=..
1227 else
1228 ac_srcdir_defaulted=no
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1231 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1232 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1233 { (exit 1); exit 1; }; }
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1238 { (exit 1); exit 1; }; }
1239 pwd)`
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
1242 srcdir=.
1244 # Remove unnecessary trailing slashes from srcdir.
1245 # Double slashes in file names in object file debugging info
1246 # mess up M-x gdb in Emacs.
1247 case $srcdir in
1248 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 esac
1250 for ac_var in $ac_precious_vars; do
1251 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1252 eval ac_env_${ac_var}_value=\$${ac_var}
1253 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1255 done
1258 # Report the --help message.
1260 if test "$ac_init_help" = "long"; then
1261 # Omit some internal or obsolete options to make the list less imposing.
1262 # This message is too long to be a string in the A/UX 3.1 sh.
1263 cat <<_ACEOF
1264 \`configure' configures this package to adapt to many kinds of systems.
1266 Usage: $0 [OPTION]... [VAR=VALUE]...
1268 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1269 VAR=VALUE. See below for descriptions of some of the useful variables.
1271 Defaults for the options are specified in brackets.
1273 Configuration:
1274 -h, --help display this help and exit
1275 --help=short display options specific to this package
1276 --help=recursive display the short help of all the included packages
1277 -V, --version display version information and exit
1278 -q, --quiet, --silent do not print \`checking...' messages
1279 --cache-file=FILE cache test results in FILE [disabled]
1280 -C, --config-cache alias for \`--cache-file=config.cache'
1281 -n, --no-create do not create output files
1282 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284 Installation directories:
1285 --prefix=PREFIX install architecture-independent files in PREFIX
1286 [$ac_default_prefix]
1287 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1288 [PREFIX]
1290 By default, \`make install' will install all the files in
1291 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1292 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1293 for instance \`--prefix=\$HOME'.
1295 For better control, use the options below.
1297 Fine tuning of the installation directories:
1298 --bindir=DIR user executables [EPREFIX/bin]
1299 --sbindir=DIR system admin executables [EPREFIX/sbin]
1300 --libexecdir=DIR program executables [EPREFIX/libexec]
1301 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1302 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1303 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1317 _ACEOF
1319 cat <<\_ACEOF
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324 _ACEOF
1327 if test -n "$ac_init_help"; then
1329 cat <<\_ACEOF
1331 Optional Features:
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --disable-darwin Disable Darwin (Mac OS X) support.
1335 --disable-selinux Don't check for SELinux support.
1336 --disable-xsmp Disable XSMP session management
1337 --disable-xsmp-interact Disable XSMP interaction
1338 --enable-mzschemeinterp Include MzScheme interpreter.
1339 --enable-perlinterp Include Perl interpreter.
1340 --enable-pythoninterp Include Python interpreter.
1341 --enable-tclinterp Include Tcl interpreter.
1342 --enable-rubyinterp Include Ruby interpreter.
1343 --enable-cscope Include cscope interface.
1344 --enable-workshop Include Sun Visual Workshop support.
1345 --disable-netbeans Disable NetBeans integration support.
1346 --enable-sniff Include Sniff interface.
1347 --enable-multibyte Include multibyte editing support.
1348 --enable-hangulinput Include Hangul input support.
1349 --enable-xim Include XIM input support.
1350 --enable-fontset Include X fontset output support.
1351 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon/macvim
1352 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1353 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1354 --enable-gnome-check If GTK GUI, check for GNOME default=no
1355 --enable-motif-check If auto-select GUI, check for Motif default=yes
1356 --enable-athena-check If auto-select GUI, check for Athena default=yes
1357 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1358 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1359 --enable-macvim-check If auto-select GUI, check for MacVim default=yes
1360 --disable-gtktest Do not try to compile and run a test GTK program
1361 --disable-acl Don't check for ACL support.
1362 --disable-gpm Don't use gpm (Linux mouse daemon).
1363 --disable-sysmouse Don't use sysmouse (mouse in *BSD console).
1364 --disable-nls Don't support NLS (gettext()).
1366 Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-macsdk=SDK SDK version (10.4, 10.5, 10.6, ...)
1370 --with-macarchs=ARCHS space separated list of archs (i386 x86_64 ppc ...)
1371 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1372 --without-local-dir do not search /usr/local for local libraries.
1373 --with-vim-name=NAME what to call the Vim executable
1374 --with-ex-name=NAME what to call the Ex executable
1375 --with-view-name=NAME what to call the View executable
1376 --with-global-runtime=DIR global runtime directory in 'runtimepath'
1377 --with-modified-by=NAME name of who modified a release version
1378 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1379 --with-compiledby=NAME name to show in :version message
1380 --with-plthome=PLTHOME Use PLTHOME.
1381 --with-python-config-dir=PATH Python's config directory
1382 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1383 --with-x use the X Window System
1384 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1385 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1386 --with-gnome-includes=DIR Specify location of GNOME headers
1387 --with-gnome-libs=DIR Specify location of GNOME libs
1388 --with-gnome Specify prefix for GNOME files
1389 --with-motif-lib=STRING Library for Motif
1390 --with-tlib=library terminal library to be used
1391 --with-xcodecfg=CFG Debug, Release (default: Release)
1393 Some influential environment variables:
1394 CC C compiler command
1395 CFLAGS C compiler flags
1396 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1397 nonstandard directory <lib dir>
1398 LIBS libraries to pass to the linker, e.g. -l<library>
1399 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1400 you have headers in a nonstandard directory <include dir>
1401 CPP C preprocessor
1402 XMKMF Path to xmkmf, Makefile generator for X Window System
1404 Use these variables to override the choices made by `configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1407 _ACEOF
1408 ac_status=$?
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" || continue
1415 ac_builddir=.
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1433 case $srcdir in
1434 .) # We are building in place.
1435 ac_srcdir=.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1457 else
1458 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1461 done
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466 cat <<\_ACEOF
1467 configure
1468 generated by GNU Autoconf 2.61
1470 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1471 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475 exit
1477 cat >config.log <<_ACEOF
1478 This file contains any messages produced by compilers while
1479 running configure, to aid debugging if configure makes a mistake.
1481 It was created by $as_me, which was
1482 generated by GNU Autoconf 2.61. Invocation command line was
1484 $ $0 $@
1486 _ACEOF
1487 exec 5>>config.log
1489 cat <<_ASUNAME
1490 ## --------- ##
1491 ## Platform. ##
1492 ## --------- ##
1494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1503 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1504 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1506 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1507 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1508 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1509 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1511 _ASUNAME
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 echo "PATH: $as_dir"
1519 done
1520 IFS=$as_save_IFS
1522 } >&5
1524 cat >&5 <<_ACEOF
1527 ## ----------- ##
1528 ## Core tests. ##
1529 ## ----------- ##
1531 _ACEOF
1534 # Keep a trace of the command line.
1535 # Strip out --no-create and --no-recursion so they do not pile up.
1536 # Strip out --silent because we don't want to record it for future runs.
1537 # Also quote any args containing shell meta-characters.
1538 # Make two passes to allow for proper duplicate-argument suppression.
1539 ac_configure_args=
1540 ac_configure_args0=
1541 ac_configure_args1=
1542 ac_must_keep_next=false
1543 for ac_pass in 1 2
1545 for ac_arg
1547 case $ac_arg in
1548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550 | -silent | --silent | --silen | --sile | --sil)
1551 continue ;;
1552 *\'*)
1553 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1554 esac
1555 case $ac_pass in
1556 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1558 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559 if test $ac_must_keep_next = true; then
1560 ac_must_keep_next=false # Got value, back to normal.
1561 else
1562 case $ac_arg in
1563 *=* | --config-cache | -C | -disable-* | --disable-* \
1564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566 | -with-* | --with-* | -without-* | --without-* | --x)
1567 case "$ac_configure_args0 " in
1568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569 esac
1571 -* ) ac_must_keep_next=true ;;
1572 esac
1574 ac_configure_args="$ac_configure_args '$ac_arg'"
1576 esac
1577 done
1578 done
1579 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1582 # When interrupted or exit'd, cleanup temporary files, and complete
1583 # config.log. We remove comments because anyway the quotes in there
1584 # would cause problems or look ugly.
1585 # WARNING: Use '\'' to represent an apostrophe within the trap.
1586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1587 trap 'exit_status=$?
1588 # Save into config.log some information that might help in debugging.
1590 echo
1592 cat <<\_ASBOX
1593 ## ---------------- ##
1594 ## Cache variables. ##
1595 ## ---------------- ##
1596 _ASBOX
1597 echo
1598 # The following way of writing the cache mishandles newlines in values,
1600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601 eval ac_val=\$$ac_var
1602 case $ac_val in #(
1603 *${as_nl}*)
1604 case $ac_var in #(
1605 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1606 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607 esac
1608 case $ac_var in #(
1609 _ | IFS | as_nl) ;; #(
1610 *) $as_unset $ac_var ;;
1611 esac ;;
1612 esac
1613 done
1614 (set) 2>&1 |
1615 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1616 *${as_nl}ac_space=\ *)
1617 sed -n \
1618 "s/'\''/'\''\\\\'\'''\''/g;
1619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620 ;; #(
1622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1624 esac |
1625 sort
1627 echo
1629 cat <<\_ASBOX
1630 ## ----------------- ##
1631 ## Output variables. ##
1632 ## ----------------- ##
1633 _ASBOX
1634 echo
1635 for ac_var in $ac_subst_vars
1637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
1642 done | sort
1643 echo
1645 if test -n "$ac_subst_files"; then
1646 cat <<\_ASBOX
1647 ## ------------------- ##
1648 ## File substitutions. ##
1649 ## ------------------- ##
1650 _ASBOX
1651 echo
1652 for ac_var in $ac_subst_files
1654 eval ac_val=\$$ac_var
1655 case $ac_val in
1656 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657 esac
1658 echo "$ac_var='\''$ac_val'\''"
1659 done | sort
1660 echo
1663 if test -s confdefs.h; then
1664 cat <<\_ASBOX
1665 ## ----------- ##
1666 ## confdefs.h. ##
1667 ## ----------- ##
1668 _ASBOX
1669 echo
1670 cat confdefs.h
1671 echo
1673 test "$ac_signal" != 0 &&
1674 echo "$as_me: caught signal $ac_signal"
1675 echo "$as_me: exit $exit_status"
1676 } >&5
1677 rm -f core *.core core.conftest.* &&
1678 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679 exit $exit_status
1681 for ac_signal in 1 2 13 15; do
1682 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1683 done
1684 ac_signal=0
1686 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1687 rm -f -r conftest* confdefs.h
1689 # Predefined preprocessor variables.
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_NAME "$PACKAGE_NAME"
1693 _ACEOF
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1698 _ACEOF
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1703 _ACEOF
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_STRING "$PACKAGE_STRING"
1708 _ACEOF
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1713 _ACEOF
1716 # Let the site file select an alternate cache file if it wants to.
1717 # Prefer explicitly selected file to automatically selected ones.
1718 if test -n "$CONFIG_SITE"; then
1719 set x "$CONFIG_SITE"
1720 elif test "x$prefix" != xNONE; then
1721 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1722 else
1723 set x "$ac_default_prefix/share/config.site" \
1724 "$ac_default_prefix/etc/config.site"
1726 shift
1727 for ac_site_file
1729 if test -r "$ac_site_file"; then
1730 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1731 echo "$as_me: loading site script $ac_site_file" >&6;}
1732 sed 's/^/| /' "$ac_site_file" >&5
1733 . "$ac_site_file"
1735 done
1737 if test -r "$cache_file"; then
1738 # Some versions of bash will fail to source /dev/null (special
1739 # files actually), so we avoid doing that.
1740 if test -f "$cache_file"; then
1741 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1742 echo "$as_me: loading cache $cache_file" >&6;}
1743 case $cache_file in
1744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745 *) . "./$cache_file";;
1746 esac
1748 else
1749 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750 echo "$as_me: creating cache $cache_file" >&6;}
1751 >$cache_file
1754 # Check that the precious variables saved in the cache have kept the same
1755 # value.
1756 ac_cache_corrupted=false
1757 for ac_var in $ac_precious_vars; do
1758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1759 eval ac_new_set=\$ac_env_${ac_var}_set
1760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1761 eval ac_new_val=\$ac_env_${ac_var}_value
1762 case $ac_old_set,$ac_new_set in
1763 set,)
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1765 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1767 ,set)
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,);;
1773 if test "x$ac_old_val" != "x$ac_new_val"; then
1774 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1775 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1776 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1777 echo "$as_me: former value: $ac_old_val" >&2;}
1778 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1779 echo "$as_me: current value: $ac_new_val" >&2;}
1780 ac_cache_corrupted=:
1781 fi;;
1782 esac
1783 # Pass precious variables to config.status.
1784 if test "$ac_new_set" = set; then
1785 case $ac_new_val in
1786 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1787 *) ac_arg=$ac_var=$ac_new_val ;;
1788 esac
1789 case " $ac_configure_args " in
1790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1791 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1792 esac
1794 done
1795 if $ac_cache_corrupted; then
1796 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1797 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1798 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1799 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1800 { (exit 1); exit 1; }; }
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1829 cat >>confdefs.h <<\_ACEOF
1830 #define UNIX 1
1831 _ACEOF
1833 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1834 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1835 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1836 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 cat >conftest.make <<\_ACEOF
1840 SHELL = /bin/sh
1841 all:
1842 @echo '@@@%%%=$(MAKE)=@@@%%%'
1843 _ACEOF
1844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1845 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1846 *@@@%%%=?*=@@@%%%*)
1847 eval ac_cv_prog_make_${ac_make}_set=yes;;
1849 eval ac_cv_prog_make_${ac_make}_set=no;;
1850 esac
1851 rm -f conftest.make
1853 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1854 { echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6; }
1856 SET_MAKE=
1857 else
1858 { echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6; }
1860 SET_MAKE="MAKE=${MAKE-make}"
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869 if test -n "$ac_tool_prefix"; then
1870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1891 done
1892 done
1893 IFS=$as_save_IFS
1897 CC=$ac_cv_prog_CC
1898 if test -n "$CC"; then
1899 { echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6; }
1901 else
1902 { echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6; }
1908 if test -z "$ac_cv_prog_CC"; then
1909 ac_ct_CC=$CC
1910 # Extract the first word of "gcc", so it can be a program name with args.
1911 set dummy gcc; ac_word=$2
1912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1923 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_prog_ac_ct_CC="gcc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929 break 2
1931 done
1932 done
1933 IFS=$as_save_IFS
1937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938 if test -n "$ac_ct_CC"; then
1939 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940 echo "${ECHO_T}$ac_ct_CC" >&6; }
1941 else
1942 { echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6; }
1946 if test "x$ac_ct_CC" = x; then
1947 CC=""
1948 else
1949 case $cross_compiling:$ac_tool_warned in
1950 yes:)
1951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet. If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&5
1954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1955 whose name does not start with the host triplet. If you think this
1956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1957 ac_tool_warned=yes ;;
1958 esac
1959 CC=$ac_ct_CC
1961 else
1962 CC="$ac_cv_prog_CC"
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="${ac_tool_prefix}cc"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 break 2
1988 done
1989 done
1990 IFS=$as_save_IFS
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996 { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1998 else
1999 { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2006 if test -z "$CC"; then
2007 # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2021 IFS=$as_save_IFS
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026 ac_prog_rejected=yes
2027 continue
2029 ac_cv_prog_CC="cc"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2033 done
2034 done
2035 IFS=$as_save_IFS
2037 if test $ac_prog_rejected = yes; then
2038 # We found a bogon in the path, so make sure we never use it.
2039 set dummy $ac_cv_prog_CC
2040 shift
2041 if test $# != 0; then
2042 # We chose a different compiler from the bogus one.
2043 # However, it has the same basename, so the bogon will be chosen
2044 # first if we set CC to just the basename; use the full file name.
2045 shift
2046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2051 CC=$ac_cv_prog_CC
2052 if test -n "$CC"; then
2053 { echo "$as_me:$LINENO: result: $CC" >&5
2054 echo "${ECHO_T}$CC" >&6; }
2055 else
2056 { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2062 if test -z "$CC"; then
2063 if test -n "$ac_tool_prefix"; then
2064 for ac_prog in cl.exe
2066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2089 IFS=$as_save_IFS
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 { echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6; }
2097 else
2098 { echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6; }
2103 test -n "$CC" && break
2104 done
2106 if test -z "$CC"; then
2107 ac_ct_CC=$CC
2108 for ac_prog in cl.exe
2110 # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_ac_ct_CC="$ac_prog"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2131 done
2132 done
2133 IFS=$as_save_IFS
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 echo "${ECHO_T}$ac_ct_CC" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2147 test -n "$ac_ct_CC" && break
2148 done
2150 if test "x$ac_ct_CC" = x; then
2151 CC=""
2152 else
2153 case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2156 whose name does not start with the host triplet. If you think this
2157 configuration is useful to you, please write to autoconf@gnu.org." >&5
2158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2159 whose name does not start with the host triplet. If you think this
2160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2161 ac_tool_warned=yes ;;
2162 esac
2163 CC=$ac_ct_CC
2170 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&5
2172 echo "$as_me: error: no acceptable C compiler found in \$PATH
2173 See \`config.log' for more details." >&2;}
2174 { (exit 1); exit 1; }; }
2176 # Provide some information about the compiler.
2177 echo "$as_me:$LINENO: checking for C compiler version" >&5
2178 ac_compiler=`set X $ac_compile; echo $2`
2179 { (ac_try="$ac_compiler --version >&5"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2185 (eval "$ac_compiler --version >&5") 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2195 (eval "$ac_compiler -v >&5") 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (ac_try="$ac_compiler -V >&5"
2200 case "(($ac_try" in
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2203 esac
2204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2205 (eval "$ac_compiler -V >&5") 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h. */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
2218 main ()
2222 return 0;
2224 _ACEOF
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2229 # of exeext.
2230 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2234 # List of possible output files, starting from the most likely.
2235 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2236 # only as a last resort. b.out is created by i960 compilers.
2237 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2239 # The IRIX 6 linker writes into existing files which may not be
2240 # executable, retaining their permissions. Remove them first so a
2241 # subsequent execution test works.
2242 ac_rmfiles=
2243 for ac_file in $ac_files
2245 case $ac_file in
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2248 esac
2249 done
2250 rm -f $ac_rmfiles
2252 if { (ac_try="$ac_link_default"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_link_default") 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; then
2262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2263 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2264 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2265 # so that the user can short-circuit this test for compilers unknown to
2266 # Autoconf.
2267 for ac_file in $ac_files ''
2269 test -f "$ac_file" || continue
2270 case $ac_file in
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2273 [ab].out )
2274 # We found the default executable, but exeext='' is most
2275 # certainly right.
2276 break;;
2277 *.* )
2278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2279 then :; else
2280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282 # We set ac_cv_exeext here because the later test for it is not
2283 # safe: cross compilers may not add the suffix if given an `-o'
2284 # argument, so we may need to know it at that point already.
2285 # Even if this section looks crufty: it has the advantage of
2286 # actually working.
2287 break;;
2289 break;;
2290 esac
2291 done
2292 test "$ac_cv_exeext" = no && ac_cv_exeext=
2294 else
2295 ac_file=''
2298 { echo "$as_me:$LINENO: result: $ac_file" >&5
2299 echo "${ECHO_T}$ac_file" >&6; }
2300 if test -z "$ac_file"; then
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308 { (exit 77); exit 77; }; }
2311 ac_exeext=$ac_cv_exeext
2313 # Check that the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320 if { ac_try='./$ac_file'
2321 { (case "(($ac_try" in
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_try") 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 cross_compiling=no
2331 else
2332 if test "$cross_compiling" = maybe; then
2333 cross_compiling=yes
2334 else
2335 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2345 { echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6; }
2348 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2349 ac_clean_files=$ac_clean_files_save
2350 # Check that the compiler produces executables we can run. If not, either
2351 # the compiler is broken, or we cross compile.
2352 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2353 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2354 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2355 echo "${ECHO_T}$cross_compiling" >&6; }
2357 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2358 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2359 if { (ac_try="$ac_link"
2360 case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_link") 2>&5
2366 ac_status=$?
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; then
2369 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2370 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2371 # work properly (i.e., refer to `conftest.exe'), while it won't with
2372 # `rm'.
2373 for ac_file in conftest.exe conftest conftest.*; do
2374 test -f "$ac_file" || continue
2375 case $ac_file in
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 break;;
2379 * ) break;;
2380 esac
2381 done
2382 else
2383 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2384 See \`config.log' for more details." >&5
2385 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&2;}
2387 { (exit 1); exit 1; }; }
2390 rm -f conftest$ac_cv_exeext
2391 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2392 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2394 rm -f conftest.$ac_ext
2395 EXEEXT=$ac_cv_exeext
2396 ac_exeext=$EXEEXT
2397 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2398 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2399 if test "${ac_cv_objext+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 cat >conftest.$ac_ext <<_ACEOF
2403 /* confdefs.h. */
2404 _ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2410 main ()
2414 return 0;
2416 _ACEOF
2417 rm -f conftest.o conftest.obj
2418 if { (ac_try="$ac_compile"
2419 case "(($ac_try" in
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); }; then
2428 for ac_file in conftest.o conftest.obj conftest.*; do
2429 test -f "$ac_file" || continue;
2430 case $ac_file in
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2433 break;;
2434 esac
2435 done
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2440 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2441 See \`config.log' for more details." >&5
2442 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2443 See \`config.log' for more details." >&2;}
2444 { (exit 1); exit 1; }; }
2447 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2449 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2450 echo "${ECHO_T}$ac_cv_objext" >&6; }
2451 OBJEXT=$ac_cv_objext
2452 ac_objext=$OBJEXT
2453 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2455 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2466 main ()
2468 #ifndef __GNUC__
2469 choke me
2470 #endif
2473 return 0;
2475 _ACEOF
2476 rm -f conftest.$ac_objext
2477 if { (ac_try="$ac_compile"
2478 case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_compile") 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } && {
2490 test -z "$ac_c_werror_flag" ||
2491 test ! -s conftest.err
2492 } && test -s conftest.$ac_objext; then
2493 ac_compiler_gnu=yes
2494 else
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 ac_compiler_gnu=no
2501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2505 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2506 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2507 GCC=`test $ac_compiler_gnu = yes && echo yes`
2508 ac_test_CFLAGS=${CFLAGS+set}
2509 ac_save_CFLAGS=$CFLAGS
2510 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2511 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_cc_g+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 ac_save_c_werror_flag=$ac_c_werror_flag
2516 ac_c_werror_flag=yes
2517 ac_cv_prog_cc_g=no
2518 CFLAGS="-g"
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2527 main ()
2531 return 0;
2533 _ACEOF
2534 rm -f conftest.$ac_objext
2535 if { (ac_try="$ac_compile"
2536 case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2542 ac_status=$?
2543 grep -v '^ *+' conftest.er1 >conftest.err
2544 rm -f conftest.er1
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } && {
2548 test -z "$ac_c_werror_flag" ||
2549 test ! -s conftest.err
2550 } && test -s conftest.$ac_objext; then
2551 ac_cv_prog_cc_g=yes
2552 else
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2556 CFLAGS=""
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 ac_c_werror_flag=$ac_save_c_werror_flag
2595 CFLAGS="-g"
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2604 main ()
2608 return 0;
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>conftest.er1
2619 ac_status=$?
2620 grep -v '^ *+' conftest.er1 >conftest.err
2621 rm -f conftest.er1
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } && {
2625 test -z "$ac_c_werror_flag" ||
2626 test ! -s conftest.err
2627 } && test -s conftest.$ac_objext; then
2628 ac_cv_prog_cc_g=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_c_werror_flag=$ac_save_c_werror_flag
2645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2646 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2647 if test "$ac_test_CFLAGS" = set; then
2648 CFLAGS=$ac_save_CFLAGS
2649 elif test $ac_cv_prog_cc_g = yes; then
2650 if test "$GCC" = yes; then
2651 CFLAGS="-g -O2"
2652 else
2653 CFLAGS="-g"
2655 else
2656 if test "$GCC" = yes; then
2657 CFLAGS="-O2"
2658 else
2659 CFLAGS=
2662 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2663 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_cc_c89+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 ac_cv_prog_cc_c89=no
2668 ac_save_CC=$CC
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <stdarg.h>
2676 #include <stdio.h>
2677 #include <sys/types.h>
2678 #include <sys/stat.h>
2679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2680 struct buf { int x; };
2681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2682 static char *e (p, i)
2683 char **p;
2684 int i;
2686 return p[i];
2688 static char *f (char * (*g) (char **, int), char **p, ...)
2690 char *s;
2691 va_list v;
2692 va_start (v,p);
2693 s = g (p, va_arg (v,int));
2694 va_end (v);
2695 return s;
2698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2699 function prototypes and stuff, but not '\xHH' hex character constants.
2700 These don't provoke an error unfortunately, instead are silently treated
2701 as 'x'. The following induces an error, until -std is added to get
2702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2703 array size at least. It's necessary to write '\x00'==0 to get something
2704 that's true only with -std. */
2705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2708 inside strings and character constants. */
2709 #define FOO(x) 'x'
2710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2712 int test (int i, double x);
2713 struct s1 {int (*f) (int a);};
2714 struct s2 {int (*f) (double a);};
2715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 int argc;
2717 char **argv;
2719 main ()
2721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2723 return 0;
2725 _ACEOF
2726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2729 CC="$ac_save_CC $ac_arg"
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } && {
2744 test -z "$ac_c_werror_flag" ||
2745 test ! -s conftest.err
2746 } && test -s conftest.$ac_objext; then
2747 ac_cv_prog_cc_c89=$ac_arg
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2755 rm -f core conftest.err conftest.$ac_objext
2756 test "x$ac_cv_prog_cc_c89" != "xno" && break
2757 done
2758 rm -f conftest.$ac_ext
2759 CC=$ac_save_CC
2762 # AC_CACHE_VAL
2763 case "x$ac_cv_prog_cc_c89" in
2765 { echo "$as_me:$LINENO: result: none needed" >&5
2766 echo "${ECHO_T}none needed" >&6; } ;;
2767 xno)
2768 { echo "$as_me:$LINENO: result: unsupported" >&5
2769 echo "${ECHO_T}unsupported" >&6; } ;;
2771 CC="$CC $ac_cv_prog_cc_c89"
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2774 esac
2777 ac_ext=c
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2782 ac_ext=c
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2787 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2788 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2789 # On Suns, sometimes $CPP names a directory.
2790 if test -n "$CPP" && test -d "$CPP"; then
2791 CPP=
2793 if test -z "$CPP"; then
2794 if test "${ac_cv_prog_CPP+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 # Double quotes because CPP needs to be expanded
2798 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2800 ac_preproc_ok=false
2801 for ac_c_preproc_warn_flag in '' yes
2803 # Use a header file that comes with gcc, so configuring glibc
2804 # with a fresh cross-compiler works.
2805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2806 # <limits.h> exists even on freestanding compilers.
2807 # On the NeXT, cc -E runs the code through the compiler's parser,
2808 # not just through cpp. "Syntax error" is here to catch this case.
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815 #ifdef __STDC__
2816 # include <limits.h>
2817 #else
2818 # include <assert.h>
2819 #endif
2820 Syntax error
2821 _ACEOF
2822 if { (ac_try="$ac_cpp conftest.$ac_ext"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } >/dev/null && {
2835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2836 test ! -s conftest.err
2837 }; then
2839 else
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # Broken: fails on valid input.
2844 continue
2847 rm -f conftest.err conftest.$ac_ext
2849 # OK, works on sane cases. Now check whether nonexistent headers
2850 # can be detected and how.
2851 cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h. */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 #include <ac_nonexistent.h>
2858 _ACEOF
2859 if { (ac_try="$ac_cpp conftest.$ac_ext"
2860 case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2866 ac_status=$?
2867 grep -v '^ *+' conftest.er1 >conftest.err
2868 rm -f conftest.er1
2869 cat conftest.err >&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } >/dev/null && {
2872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2873 test ! -s conftest.err
2874 }; then
2875 # Broken: success on invalid input.
2876 continue
2877 else
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.$ac_ext >&5
2881 # Passes both tests.
2882 ac_preproc_ok=:
2883 break
2886 rm -f conftest.err conftest.$ac_ext
2888 done
2889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2890 rm -f conftest.err conftest.$ac_ext
2891 if $ac_preproc_ok; then
2892 break
2895 done
2896 ac_cv_prog_CPP=$CPP
2899 CPP=$ac_cv_prog_CPP
2900 else
2901 ac_cv_prog_CPP=$CPP
2903 { echo "$as_me:$LINENO: result: $CPP" >&5
2904 echo "${ECHO_T}$CPP" >&6; }
2905 ac_preproc_ok=false
2906 for ac_c_preproc_warn_flag in '' yes
2908 # Use a header file that comes with gcc, so configuring glibc
2909 # with a fresh cross-compiler works.
2910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2911 # <limits.h> exists even on freestanding compilers.
2912 # On the NeXT, cc -E runs the code through the compiler's parser,
2913 # not just through cpp. "Syntax error" is here to catch this case.
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920 #ifdef __STDC__
2921 # include <limits.h>
2922 #else
2923 # include <assert.h>
2924 #endif
2925 Syntax error
2926 _ACEOF
2927 if { (ac_try="$ac_cpp conftest.$ac_ext"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } >/dev/null && {
2940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 }; then
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Broken: fails on valid input.
2949 continue
2952 rm -f conftest.err conftest.$ac_ext
2954 # OK, works on sane cases. Now check whether nonexistent headers
2955 # can be detected and how.
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include <ac_nonexistent.h>
2963 _ACEOF
2964 if { (ac_try="$ac_cpp conftest.$ac_ext"
2965 case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2971 ac_status=$?
2972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev/null && {
2977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2978 test ! -s conftest.err
2979 }; then
2980 # Broken: success on invalid input.
2981 continue
2982 else
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 # Passes both tests.
2987 ac_preproc_ok=:
2988 break
2991 rm -f conftest.err conftest.$ac_ext
2993 done
2994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2995 rm -f conftest.err conftest.$ac_ext
2996 if $ac_preproc_ok; then
2998 else
2999 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3014 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3015 if test "${ac_cv_path_GREP+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 else
3018 # Extract the first word of "grep ggrep" to use in msg output
3019 if test -z "$GREP"; then
3020 set dummy grep ggrep; ac_prog_name=$2
3021 if test "${ac_cv_path_GREP+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024 ac_path_GREP_found=false
3025 # Loop through the user's path and test for each of PROGNAME-LIST
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in grep ggrep; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3034 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3035 # Check for GNU ac_path_GREP and select it if it is found.
3036 # Check for GNU $ac_path_GREP
3037 case `"$ac_path_GREP" --version 2>&1` in
3038 *GNU*)
3039 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3041 ac_count=0
3042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3043 while :
3045 cat "conftest.in" "conftest.in" >"conftest.tmp"
3046 mv "conftest.tmp" "conftest.in"
3047 cp "conftest.in" "conftest.nl"
3048 echo 'GREP' >> "conftest.nl"
3049 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3051 ac_count=`expr $ac_count + 1`
3052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3053 # Best one so far, save it but keep looking for a better one
3054 ac_cv_path_GREP="$ac_path_GREP"
3055 ac_path_GREP_max=$ac_count
3057 # 10*(2^10) chars as input seems more than enough
3058 test $ac_count -gt 10 && break
3059 done
3060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3061 esac
3064 $ac_path_GREP_found && break 3
3065 done
3066 done
3068 done
3069 IFS=$as_save_IFS
3074 GREP="$ac_cv_path_GREP"
3075 if test -z "$GREP"; then
3076 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3077 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3078 { (exit 1); exit 1; }; }
3081 else
3082 ac_cv_path_GREP=$GREP
3087 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3088 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3089 GREP="$ac_cv_path_GREP"
3092 { echo "$as_me:$LINENO: checking for egrep" >&5
3093 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3094 if test "${ac_cv_path_EGREP+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3098 then ac_cv_path_EGREP="$GREP -E"
3099 else
3100 # Extract the first word of "egrep" to use in msg output
3101 if test -z "$EGREP"; then
3102 set dummy egrep; ac_prog_name=$2
3103 if test "${ac_cv_path_EGREP+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106 ac_path_EGREP_found=false
3107 # Loop through the user's path and test for each of PROGNAME-LIST
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in egrep; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3116 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3117 # Check for GNU ac_path_EGREP and select it if it is found.
3118 # Check for GNU $ac_path_EGREP
3119 case `"$ac_path_EGREP" --version 2>&1` in
3120 *GNU*)
3121 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3123 ac_count=0
3124 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3125 while :
3127 cat "conftest.in" "conftest.in" >"conftest.tmp"
3128 mv "conftest.tmp" "conftest.in"
3129 cp "conftest.in" "conftest.nl"
3130 echo 'EGREP' >> "conftest.nl"
3131 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3133 ac_count=`expr $ac_count + 1`
3134 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3135 # Best one so far, save it but keep looking for a better one
3136 ac_cv_path_EGREP="$ac_path_EGREP"
3137 ac_path_EGREP_max=$ac_count
3139 # 10*(2^10) chars as input seems more than enough
3140 test $ac_count -gt 10 && break
3141 done
3142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3143 esac
3146 $ac_path_EGREP_found && break 3
3147 done
3148 done
3150 done
3151 IFS=$as_save_IFS
3156 EGREP="$ac_cv_path_EGREP"
3157 if test -z "$EGREP"; then
3158 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3159 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3160 { (exit 1); exit 1; }; }
3163 else
3164 ac_cv_path_EGREP=$EGREP
3170 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3171 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3172 EGREP="$ac_cv_path_EGREP"
3175 cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h. */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3182 _ACEOF
3183 rm -f -r conftest*
3184 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3185 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3186 if test "${ac_cv_search_strerror+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 ac_func_search_save_LIBS=$LIBS
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3197 /* Override any GCC internal prototype to avoid an error.
3198 Use char because int might match the return type of a GCC
3199 builtin and then its argument prototype would still apply. */
3200 #ifdef __cplusplus
3201 extern "C"
3202 #endif
3203 char strerror ();
3205 main ()
3207 return strerror ();
3209 return 0;
3211 _ACEOF
3212 for ac_lib in '' cposix; do
3213 if test -z "$ac_lib"; then
3214 ac_res="none required"
3215 else
3216 ac_res=-l$ac_lib
3217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3219 rm -f conftest.$ac_objext conftest$ac_exeext
3220 if { (ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_link") 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } && {
3233 test -z "$ac_c_werror_flag" ||
3234 test ! -s conftest.err
3235 } && test -s conftest$ac_exeext &&
3236 $as_test_x conftest$ac_exeext; then
3237 ac_cv_search_strerror=$ac_res
3238 else
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3246 conftest$ac_exeext
3247 if test "${ac_cv_search_strerror+set}" = set; then
3248 break
3250 done
3251 if test "${ac_cv_search_strerror+set}" = set; then
3253 else
3254 ac_cv_search_strerror=no
3256 rm conftest.$ac_ext
3257 LIBS=$ac_func_search_save_LIBS
3259 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3260 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3261 ac_res=$ac_cv_search_strerror
3262 if test "$ac_res" != no; then
3263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3266 for ac_prog in gawk mawk nawk awk
3268 # Extract the first word of "$ac_prog", so it can be a program name with args.
3269 set dummy $ac_prog; ac_word=$2
3270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3272 if test "${ac_cv_prog_AWK+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_AWK="$ac_prog"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3291 IFS=$as_save_IFS
3295 AWK=$ac_cv_prog_AWK
3296 if test -n "$AWK"; then
3297 { echo "$as_me:$LINENO: result: $AWK" >&5
3298 echo "${ECHO_T}$AWK" >&6; }
3299 else
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3305 test -n "$AWK" && break
3306 done
3308 # Extract the first word of "strip", so it can be a program name with args.
3309 set dummy strip; ac_word=$2
3310 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3312 if test "${ac_cv_prog_STRIP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 if test -n "$STRIP"; then
3316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3325 ac_cv_prog_STRIP="strip"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3333 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3336 STRIP=$ac_cv_prog_STRIP
3337 if test -n "$STRIP"; then
3338 { echo "$as_me:$LINENO: result: $STRIP" >&5
3339 echo "${ECHO_T}$STRIP" >&6; }
3340 else
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
3349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdlib.h>
3361 #include <stdarg.h>
3362 #include <string.h>
3363 #include <float.h>
3366 main ()
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_header_stdc=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 ac_cv_header_stdc=no
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 if test $ac_cv_header_stdc = yes; then
3401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #include <string.h>
3410 _ACEOF
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 $EGREP "memchr" >/dev/null 2>&1; then
3414 else
3415 ac_cv_header_stdc=no
3417 rm -f -r conftest*
3421 if test $ac_cv_header_stdc = yes; then
3422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3423 cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h. */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include <stdlib.h>
3431 _ACEOF
3432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433 $EGREP "free" >/dev/null 2>&1; then
3435 else
3436 ac_cv_header_stdc=no
3438 rm -f -r conftest*
3442 if test $ac_cv_header_stdc = yes; then
3443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3444 if test "$cross_compiling" = yes; then
3446 else
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include <ctype.h>
3454 #include <stdlib.h>
3455 #if ((' ' & 0x0FF) == 0x020)
3456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3458 #else
3459 # define ISLOWER(c) \
3460 (('a' <= (c) && (c) <= 'i') \
3461 || ('j' <= (c) && (c) <= 'r') \
3462 || ('s' <= (c) && (c) <= 'z'))
3463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3464 #endif
3466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3468 main ()
3470 int i;
3471 for (i = 0; i < 256; i++)
3472 if (XOR (islower (i), ISLOWER (i))
3473 || toupper (i) != TOUPPER (i))
3474 return 2;
3475 return 0;
3477 _ACEOF
3478 rm -f conftest$ac_exeext
3479 if { (ac_try="$ac_link"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_link") 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3489 { (case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_try") 2>&5
3495 ac_status=$?
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3499 else
3500 echo "$as_me: program exited with status $ac_status" >&5
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 ( exit $ac_status )
3505 ac_cv_header_stdc=no
3507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3515 if test $ac_cv_header_stdc = yes; then
3517 cat >>confdefs.h <<\_ACEOF
3518 #define STDC_HEADERS 1
3519 _ACEOF
3523 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3524 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3525 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <sys/types.h>
3535 #include <sys/wait.h>
3536 #ifndef WEXITSTATUS
3537 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3538 #endif
3539 #ifndef WIFEXITED
3540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3541 #endif
3544 main ()
3546 int s;
3547 wait (&s);
3548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3550 return 0;
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (ac_try="$ac_compile"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_cv_header_sys_wait_h=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 ac_cv_header_sys_wait_h=no
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3582 if test $ac_cv_header_sys_wait_h = yes; then
3584 cat >>confdefs.h <<\_ACEOF
3585 #define HAVE_SYS_WAIT_H 1
3586 _ACEOF
3591 if test -z "$CFLAGS"; then
3592 CFLAGS="-O"
3593 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3595 if test "$GCC" = yes; then
3596 gccversion=`"$CC" -dumpversion`
3597 if test "x$gccversion" = "x"; then
3598 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3600 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3601 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3602 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3603 else
3604 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3605 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3606 CFLAGS="$CFLAGS -fno-strength-reduce"
3611 if test "$cross_compiling" = yes; then
3612 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3613 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3616 test "$GCC" = yes && CPP_MM=M;
3618 if test -f ./toolcheck; then
3619 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3620 echo "$as_me: checking for buggy tools..." >&6;}
3621 sh ./toolcheck 1>&6
3624 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3626 { echo "$as_me:$LINENO: checking for BeOS" >&5
3627 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3628 case `uname` in
3629 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3630 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3631 echo "${ECHO_T}yes" >&6; };;
3632 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6; };;
3634 esac
3636 { echo "$as_me:$LINENO: checking for QNX" >&5
3637 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3638 case `uname` in
3639 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3640 test -z "$with_x" && with_x=no
3641 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6; };;
3643 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3644 echo "${ECHO_T}no" >&6; };;
3645 esac
3647 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3648 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3649 if test "`(uname) 2>/dev/null`" = Darwin; then
3650 { echo "$as_me:$LINENO: result: yes" >&5
3651 echo "${ECHO_T}yes" >&6; }
3653 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3654 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3655 # Check whether --enable-darwin was given.
3656 if test "${enable_darwin+set}" = set; then
3657 enableval=$enable_darwin;
3658 else
3659 enable_darwin="yes"
3662 if test "$enable_darwin" = "yes"; then
3663 { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3665 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3666 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3667 if test -f os_macosx.c; then
3668 { echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6; }
3670 else
3671 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3672 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3673 enable_darwin=no
3675 else
3676 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3677 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3681 { echo "$as_me:$LINENO: checking --with-macsdk argument" >&5
3682 echo $ECHO_N "checking --with-macsdk argument... $ECHO_C" >&6; }
3684 # Check whether --with-macsdk was given.
3685 if test "${with_macsdk+set}" = set; then
3686 withval=$with_macsdk; MACSDK="$withval"; { echo "$as_me:$LINENO: result: $MACSDK" >&5
3687 echo "${ECHO_T}$MACSDK" >&6; }
3688 else
3689 MACSDK=""; { echo "$as_me:$LINENO: result: using default" >&5
3690 echo "${ECHO_T}using default" >&6; }
3694 if test -n "$MACSDK"; then
3695 { echo "$as_me:$LINENO: checking if SDK is supported" >&5
3696 echo $ECHO_N "checking if SDK is supported... $ECHO_C" >&6; }
3697 save_cflags="$CFLAGS"
3698 save_ldflags="$LDFLAGS"
3699 sdkflags="/Developer/SDKs/MacOSX$MACSDK"
3700 if test "x$MACSDK" = "x10.4"; then
3701 sdkflags="$sdkflags""u"
3703 sdkflags="$sdkflags.sdk -mmacosx-version-min=$MACSDK"
3704 CFLAGS="$CFLAGS -isysroot $sdkflags"
3705 LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags"
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h. */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 rm -f conftest.$ac_objext conftest$ac_exeext
3722 if { (ac_try="$ac_link"
3723 case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3726 esac
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_link") 2>conftest.er1
3729 ac_status=$?
3730 grep -v '^ *+' conftest.er1 >conftest.err
3731 rm -f conftest.er1
3732 cat conftest.err >&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } && {
3735 test -z "$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3737 } && test -s conftest$ac_exeext &&
3738 $as_test_x conftest$ac_exeext; then
3739 { echo "$as_me:$LINENO: result: yes" >&5
3740 echo "${ECHO_T}yes" >&6; }
3741 XCODEFLAGS="$XCODEFLAGS -sdk macosx$MACSDK MACOSX_DEPLOYMENT_TARGET=$MACSDK"
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3746 { echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6; }
3748 CFLAGS="$save_cflags"
3749 LDFLAGS="$save_ldflags"
3752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3753 conftest$ac_exeext conftest.$ac_ext
3757 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3758 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3760 # Check whether --with-macarchs was given.
3761 if test "${with_macarchs+set}" = set; then
3762 withval=$with_macarchs; ARCHS="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3763 echo "${ECHO_T}$ARCHS" >&6; }
3764 else
3765 ARCHS=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3766 echo "${ECHO_T}defaulting to native arch" >&6; }
3770 if test -n "$ARCHS"; then
3771 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3772 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3773 save_cflags="$CFLAGS"
3774 save_ldflags="$LDFLAGS"
3775 archflags=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3776 CFLAGS="$CFLAGS $archflags"
3777 LDFLAGS="$LDFLAGS $archflags"
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3786 main ()
3790 return 0;
3792 _ACEOF
3793 rm -f conftest.$ac_objext conftest$ac_exeext
3794 if { (ac_try="$ac_link"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_link") 2>conftest.er1
3801 ac_status=$?
3802 grep -v '^ *+' conftest.er1 >conftest.err
3803 rm -f conftest.er1
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } && {
3807 test -z "$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3809 } && test -s conftest$ac_exeext &&
3810 $as_test_x conftest$ac_exeext; then
3811 { echo "$as_me:$LINENO: result: yes" >&5
3812 echo "${ECHO_T}yes" >&6; }
3813 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3819 echo "${ECHO_T}no, will build for native arch only" >&6; }
3820 ARCHS=""
3821 CFLAGS="$save_cflags"
3822 LDFLAGS="$save_ldflags"
3825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3826 conftest$ac_exeext conftest.$ac_ext
3830 if test "$enable_darwin" = "yes"; then
3831 MACOSX=yes
3832 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3833 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3834 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3836 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3846 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3847 inttypes.h stdint.h unistd.h
3849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 cat >conftest.$ac_ext <<_ACEOF
3856 /* confdefs.h. */
3857 _ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 $ac_includes_default
3863 #include <$ac_header>
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } && {
3879 test -z "$ac_c_werror_flag" ||
3880 test ! -s conftest.err
3881 } && test -s conftest.$ac_objext; then
3882 eval "$as_ac_Header=yes"
3883 else
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 eval "$as_ac_Header=no"
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_res=`eval echo '${'$as_ac_Header'}'`
3893 { echo "$as_me:$LINENO: result: $ac_res" >&5
3894 echo "${ECHO_T}$ac_res" >&6; }
3895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3896 cat >>confdefs.h <<_ACEOF
3897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3898 _ACEOF
3902 done
3905 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3906 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3907 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3908 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3912 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3913 else
3914 # Is the header compilable?
3915 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3916 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3917 cat >conftest.$ac_ext <<_ACEOF
3918 /* confdefs.h. */
3919 _ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3923 $ac_includes_default
3924 #include <Carbon/Carbon.h>
3925 _ACEOF
3926 rm -f conftest.$ac_objext
3927 if { (ac_try="$ac_compile"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_compile") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest.$ac_objext; then
3943 ac_header_compiler=yes
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3948 ac_header_compiler=no
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3953 echo "${ECHO_T}$ac_header_compiler" >&6; }
3955 # Is the header present?
3956 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3957 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #include <Carbon/Carbon.h>
3965 _ACEOF
3966 if { (ac_try="$ac_cpp conftest.$ac_ext"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } >/dev/null && {
3979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 }; then
3982 ac_header_preproc=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 ac_header_preproc=no
3990 rm -f conftest.err conftest.$ac_ext
3991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3992 echo "${ECHO_T}$ac_header_preproc" >&6; }
3994 # So? What about this header?
3995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3996 yes:no: )
3997 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3998 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4000 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4001 ac_header_preproc=yes
4003 no:yes:* )
4004 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4005 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4006 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4007 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4008 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4009 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4010 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4011 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4012 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4013 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4014 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4015 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4018 esac
4019 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4020 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4021 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
4026 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4027 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4030 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4031 CARBON=yes
4036 SAVE_CPPFLAGS=$CPPFLAGS
4037 SAVE_CFLAGS=$CFLAGS
4038 CPPFLAGS="$CPPFLAGS -ObjC"
4039 CFLAGS="$CFLAGS -ObjC"
4040 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4041 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4042 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4043 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4047 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4048 else
4049 # Is the header compilable?
4050 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4051 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 $ac_includes_default
4059 #include <Cocoa/Cocoa.h>
4060 _ACEOF
4061 rm -f conftest.$ac_objext
4062 if { (ac_try="$ac_compile"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && {
4075 test -z "$ac_c_werror_flag" ||
4076 test ! -s conftest.err
4077 } && test -s conftest.$ac_objext; then
4078 ac_header_compiler=yes
4079 else
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_header_compiler=no
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4088 echo "${ECHO_T}$ac_header_compiler" >&6; }
4090 # Is the header present?
4091 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4092 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4093 cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <Cocoa/Cocoa.h>
4100 _ACEOF
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null && {
4114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 }; then
4117 ac_header_preproc=yes
4118 else
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_header_preproc=no
4125 rm -f conftest.err conftest.$ac_ext
4126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4127 echo "${ECHO_T}$ac_header_preproc" >&6; }
4129 # So? What about this header?
4130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4131 yes:no: )
4132 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4133 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4134 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4135 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4136 ac_header_preproc=yes
4138 no:yes:* )
4139 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4140 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4142 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4144 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4146 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4148 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4150 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4153 esac
4154 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4155 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4156 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
4161 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4162 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4165 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4166 COCOA=yes
4170 CPPFLAGS=$SAVE_CPPFLAGS
4171 CFLAGS=$SAVE_CFLAGS
4173 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4174 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
4175 with_x=no
4179 else
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4187 if test "$cross_compiling" = no; then
4188 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4189 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4190 have_local_include=''
4191 have_local_lib=''
4193 # Check whether --with-local-dir was given.
4194 if test "${with_local_dir+set}" = set; then
4195 withval=$with_local_dir;
4196 local_dir="$withval"
4197 case "$withval" in
4198 */*) ;;
4200 # avoid adding local dir to LDFLAGS and CPPFLAGS
4201 have_local_dir=yes
4202 have_local_lib=yes
4204 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4205 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4206 { (exit 1); exit 1; }; } ;;
4207 esac
4208 { echo "$as_me:$LINENO: result: $local_dir" >&5
4209 echo "${ECHO_T}$local_dir" >&6; }
4211 else
4213 local_dir=/usr/local
4214 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4215 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4219 if test "$GCC" = yes -a "$local_dir" != no; then
4220 echo 'void f(){}' > conftest.c
4221 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4222 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4223 rm -f conftest.c conftest.o
4225 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4226 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4227 if test "$tt" = "$LDFLAGS"; then
4228 LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4231 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4232 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4233 if test "$tt" = "$CPPFLAGS"; then
4234 CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4239 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4240 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4242 # Check whether --with-vim-name was given.
4243 if test "${with_vim_name+set}" = set; then
4244 withval=$with_vim_name; VIMNAME="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4245 echo "${ECHO_T}$VIMNAME" >&6; }
4246 else
4247 VIMNAME="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4248 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4252 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4253 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4255 # Check whether --with-ex-name was given.
4256 if test "${with_ex_name+set}" = set; then
4257 withval=$with_ex_name; EXNAME="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4258 echo "${ECHO_T}$EXNAME" >&6; }
4259 else
4260 EXNAME="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4261 echo "${ECHO_T}Defaulting to ex" >&6; }
4265 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4266 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4268 # Check whether --with-view-name was given.
4269 if test "${with_view_name+set}" = set; then
4270 withval=$with_view_name; VIEWNAME="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4271 echo "${ECHO_T}$VIEWNAME" >&6; }
4272 else
4273 VIEWNAME="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4274 echo "${ECHO_T}Defaulting to view" >&6; }
4279 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4280 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4282 # Check whether --with-global-runtime was given.
4283 if test "${with_global_runtime+set}" = set; then
4284 withval=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4285 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4286 #define RUNTIME_GLOBAL "$withval"
4287 _ACEOF
4289 else
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4295 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4296 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4298 # Check whether --with-modified-by was given.
4299 if test "${with_modified_by+set}" = set; then
4300 withval=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4301 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4302 #define MODIFIED_BY "$withval"
4303 _ACEOF
4305 else
4306 { echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6; }
4311 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4312 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4313 cat >conftest.$ac_ext <<_ACEOF
4314 /* confdefs.h. */
4315 _ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4321 main ()
4323 /* TryCompile function for CharSet.
4324 Treat any failure as ASCII for compatibility with existing art.
4325 Use compile-time rather than run-time tests for cross-compiler
4326 tolerance. */
4327 #if '0'!=240
4328 make an error "Character set is not EBCDIC"
4329 #endif
4331 return 0;
4333 _ACEOF
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest.$ac_objext; then
4351 # TryCompile action if true
4352 cf_cv_ebcdic=yes
4353 else
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 # TryCompile action if false
4358 cf_cv_ebcdic=no
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 # end of TryCompile ])
4363 # end of CacheVal CvEbcdic
4364 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4365 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4366 case "$cf_cv_ebcdic" in #(vi
4367 yes) cat >>confdefs.h <<\_ACEOF
4368 #define EBCDIC 1
4369 _ACEOF
4371 line_break='"\\n"'
4373 *) line_break='"\\012"';;
4374 esac
4377 if test "$cf_cv_ebcdic" = "yes"; then
4378 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4379 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4380 case `uname` in
4381 OS/390) OS390Unix="yes";
4382 if test "$CC" = "cc"; then
4383 ccm="$_CC_CCMODE"
4384 ccn="CC"
4385 else
4386 if test "$CC" = "c89"; then
4387 ccm="$_CC_C89MODE"
4388 ccn="C89"
4389 else
4390 ccm=1
4393 if test "$ccm" != "1"; then
4394 echo ""
4395 echo "------------------------------------------"
4396 echo " On OS/390 Unix, the environment variable"
4397 echo " __CC_${ccn}MODE must be set to \"1\"!"
4398 echo " Do:"
4399 echo " export _CC_${ccn}MODE=1"
4400 echo " and then call configure again."
4401 echo "------------------------------------------"
4402 exit 1
4404 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4405 { echo "$as_me:$LINENO: result: yes" >&5
4406 echo "${ECHO_T}yes" >&6; }
4408 *) OS390Unix="no";
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4412 esac
4415 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4416 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4417 # Check whether --enable-selinux was given.
4418 if test "${enable_selinux+set}" = set; then
4419 enableval=$enable_selinux;
4420 else
4421 enable_selinux="yes"
4424 if test "$enable_selinux" = "yes"; then
4425 { echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6; }
4427 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4428 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4429 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 ac_check_lib_save_LIBS=$LIBS
4433 LIBS="-lselinux $LIBS"
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4441 /* Override any GCC internal prototype to avoid an error.
4442 Use char because int might match the return type of a GCC
4443 builtin and then its argument prototype would still apply. */
4444 #ifdef __cplusplus
4445 extern "C"
4446 #endif
4447 char is_selinux_enabled ();
4449 main ()
4451 return is_selinux_enabled ();
4453 return 0;
4455 _ACEOF
4456 rm -f conftest.$ac_objext conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_link") 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } && {
4470 test -z "$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4472 } && test -s conftest$ac_exeext &&
4473 $as_test_x conftest$ac_exeext; then
4474 ac_cv_lib_selinux_is_selinux_enabled=yes
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 ac_cv_lib_selinux_is_selinux_enabled=no
4482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4483 conftest$ac_exeext conftest.$ac_ext
4484 LIBS=$ac_check_lib_save_LIBS
4486 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4487 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4488 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4489 LIBS="$LIBS -lselinux"
4490 cat >>confdefs.h <<\_ACEOF
4491 #define HAVE_SELINUX 1
4492 _ACEOF
4496 else
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; }
4502 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4503 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4505 # Check whether --with-features was given.
4506 if test "${with_features+set}" = set; then
4507 withval=$with_features; features="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4508 echo "${ECHO_T}$features" >&6; }
4509 else
4510 features="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4511 echo "${ECHO_T}Defaulting to normal" >&6; }
4515 dovimdiff=""
4516 dogvimdiff=""
4517 case "$features" in
4518 tiny) cat >>confdefs.h <<\_ACEOF
4519 #define FEAT_TINY 1
4520 _ACEOF
4522 small) cat >>confdefs.h <<\_ACEOF
4523 #define FEAT_SMALL 1
4524 _ACEOF
4526 normal) cat >>confdefs.h <<\_ACEOF
4527 #define FEAT_NORMAL 1
4528 _ACEOF
4529 dovimdiff="installvimdiff";
4530 dogvimdiff="installgvimdiff" ;;
4531 big) cat >>confdefs.h <<\_ACEOF
4532 #define FEAT_BIG 1
4533 _ACEOF
4534 dovimdiff="installvimdiff";
4535 dogvimdiff="installgvimdiff" ;;
4536 huge) cat >>confdefs.h <<\_ACEOF
4537 #define FEAT_HUGE 1
4538 _ACEOF
4539 dovimdiff="installvimdiff";
4540 dogvimdiff="installgvimdiff" ;;
4541 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4542 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4543 esac
4548 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4549 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4551 # Check whether --with-compiledby was given.
4552 if test "${with_compiledby+set}" = set; then
4553 withval=$with_compiledby; compiledby="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4554 echo "${ECHO_T}$withval" >&6; }
4555 else
4556 compiledby=""; { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4562 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4563 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4564 # Check whether --enable-xsmp was given.
4565 if test "${enable_xsmp+set}" = set; then
4566 enableval=$enable_xsmp;
4567 else
4568 enable_xsmp="yes"
4572 if test "$enable_xsmp" = "yes"; then
4573 { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4575 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4576 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4577 # Check whether --enable-xsmp-interact was given.
4578 if test "${enable_xsmp_interact+set}" = set; then
4579 enableval=$enable_xsmp_interact;
4580 else
4581 enable_xsmp_interact="yes"
4584 if test "$enable_xsmp_interact" = "yes"; then
4585 { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4587 cat >>confdefs.h <<\_ACEOF
4588 #define USE_XSMP_INTERACT 1
4589 _ACEOF
4591 else
4592 { echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6; }
4595 else
4596 { echo "$as_me:$LINENO: result: yes" >&5
4597 echo "${ECHO_T}yes" >&6; }
4600 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4601 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4602 # Check whether --enable-mzschemeinterp was given.
4603 if test "${enable_mzschemeinterp+set}" = set; then
4604 enableval=$enable_mzschemeinterp;
4605 else
4606 enable_mzschemeinterp="no"
4609 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4610 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4612 if test "$enable_mzschemeinterp" = "yes"; then
4615 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4616 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4618 # Check whether --with-plthome was given.
4619 if test "${with_plthome+set}" = set; then
4620 withval=$with_plthome; with_plthome="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4621 echo "${ECHO_T}$with_plthome" >&6; }
4622 else
4623 with_plthome="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4624 echo "${ECHO_T}\"no\"" >&6; }
4628 if test "X$with_plthome" != "X"; then
4629 vi_cv_path_mzscheme_pfx="$with_plthome"
4630 else
4631 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4632 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4633 if test "X$PLTHOME" != "X"; then
4634 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4635 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4636 vi_cv_path_mzscheme_pfx="$PLTHOME"
4637 else
4638 { echo "$as_me:$LINENO: result: not set" >&5
4639 echo "${ECHO_T}not set" >&6; }
4640 # Extract the first word of "mzscheme", so it can be a program name with args.
4641 set dummy mzscheme; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 case $vi_cv_path_mzscheme in
4648 [\\/]* | ?:[\\/]*)
4649 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4668 esac
4670 vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4671 if test -n "$vi_cv_path_mzscheme"; then
4672 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4673 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4674 else
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4681 if test "X$vi_cv_path_mzscheme" != "X"; then
4682 lsout=`ls -l $vi_cv_path_mzscheme`
4683 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4684 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4688 if test "X$vi_cv_path_mzscheme" != "X"; then
4689 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4690 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4691 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 echo "(display (simplify-path \
4695 (build-path (call-with-values \
4696 (lambda () (split-path (find-system-path (quote exec-file)))) \
4697 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4698 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4699 sed -e 's+/$++'`
4701 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4702 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4703 rm -f mzdirs.scm
4708 SCHEME_INC=
4709 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4710 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4711 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4712 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4713 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4714 { echo "$as_me:$LINENO: result: yes" >&5
4715 echo "${ECHO_T}yes" >&6; }
4716 else
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4720 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4721 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4722 { echo "$as_me:$LINENO: result: yes" >&5
4723 echo "${ECHO_T}yes" >&6; }
4724 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4729 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4730 if test -f /usr/include/plt/scheme.h; then
4731 { echo "$as_me:$LINENO: result: yes" >&5
4732 echo "${ECHO_T}yes" >&6; }
4733 SCHEME_INC=/usr/include/plt
4734 else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4737 vi_cv_path_mzscheme_pfx=
4743 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4744 if test "x$MACOSX" = "xyes"; then
4745 MZSCHEME_LIBS="-framework PLT_MzScheme"
4746 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4747 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4748 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4749 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4750 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4751 else
4752 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4753 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4754 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4755 else
4756 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4758 if test "$GCC" = yes; then
4759 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4760 elif test "`(uname) 2>/dev/null`" = SunOS &&
4761 uname -r | grep '^5' >/dev/null; then
4762 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4765 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4766 SCHEME_COLLECTS=lib/plt/
4768 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4769 MZSCHEME_EXTRA="mzscheme_base.c"
4770 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4771 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4773 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4774 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4775 MZSCHEME_SRC="if_mzsch.c"
4776 MZSCHEME_OBJ="objects/if_mzsch.o"
4777 MZSCHEME_PRO="if_mzsch.pro"
4778 cat >>confdefs.h <<\_ACEOF
4779 #define FEAT_MZSCHEME 1
4780 _ACEOF
4793 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4794 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4795 # Check whether --enable-perlinterp was given.
4796 if test "${enable_perlinterp+set}" = set; then
4797 enableval=$enable_perlinterp;
4798 else
4799 enable_perlinterp="no"
4802 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4803 echo "${ECHO_T}$enable_perlinterp" >&6; }
4804 if test "$enable_perlinterp" = "yes"; then
4806 # Extract the first word of "perl", so it can be a program name with args.
4807 set dummy perl; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 case $vi_cv_path_perl in
4814 [\\/]* | ?:[\\/]*)
4815 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4834 esac
4836 vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4837 if test -n "$vi_cv_path_perl"; then
4838 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4839 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4840 else
4841 { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4846 if test "X$vi_cv_path_perl" != "X"; then
4847 { echo "$as_me:$LINENO: checking Perl version" >&5
4848 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4849 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4850 eval `$vi_cv_path_perl -V:usethreads`
4851 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4852 badthreads=no
4853 else
4854 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4855 eval `$vi_cv_path_perl -V:use5005threads`
4856 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4857 badthreads=no
4858 else
4859 badthreads=yes
4860 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4861 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4863 else
4864 badthreads=yes
4865 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4866 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4869 if test $badthreads = no; then
4870 { echo "$as_me:$LINENO: result: OK" >&5
4871 echo "${ECHO_T}OK" >&6; }
4872 eval `$vi_cv_path_perl -V:shrpenv`
4873 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4874 shrpenv=""
4876 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4878 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4879 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4880 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4881 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4882 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4883 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4884 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4886 if test "x$MACOSX" = "xyes"; then
4887 perllibs=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4888 perlcppflags=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4891 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4892 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4893 cflags_save=$CFLAGS
4894 libs_save=$LIBS
4895 ldflags_save=$LDFLAGS
4896 CFLAGS="$CFLAGS $perlcppflags"
4897 LIBS="$LIBS $perllibs"
4898 LDFLAGS="$perlldflags $LDFLAGS"
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4907 main ()
4911 return 0;
4913 _ACEOF
4914 rm -f conftest.$ac_objext conftest$ac_exeext
4915 if { (ac_try="$ac_link"
4916 case "(($ac_try" in
4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4919 esac
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_link") 2>conftest.er1
4922 ac_status=$?
4923 grep -v '^ *+' conftest.er1 >conftest.err
4924 rm -f conftest.er1
4925 cat conftest.err >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && {
4928 test -z "$ac_c_werror_flag" ||
4929 test ! -s conftest.err
4930 } && test -s conftest$ac_exeext &&
4931 $as_test_x conftest$ac_exeext; then
4932 { echo "$as_me:$LINENO: result: yes" >&5
4933 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
4934 else
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4939 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
4942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4943 conftest$ac_exeext conftest.$ac_ext
4944 CFLAGS=$cflags_save
4945 LIBS=$libs_save
4946 LDFLAGS=$ldflags_save
4947 if test $perl_ok = yes; then
4948 if test "X$perlcppflags" != "X"; then
4949 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4951 if test "X$perlldflags" != "X"; then
4952 LDFLAGS="$perlldflags $LDFLAGS"
4954 PERL_LIBS=$perllibs
4955 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4956 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4957 PERL_PRO="if_perl.pro if_perlsfio.pro"
4958 cat >>confdefs.h <<\_ACEOF
4959 #define FEAT_PERL 1
4960 _ACEOF
4964 else
4965 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4966 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4970 if test "x$MACOSX" = "xyes"; then
4971 dir=/System/Library/Perl
4972 darwindir=$dir/darwin
4973 if test -d $darwindir; then
4974 PERL=/usr/bin/perl
4975 else
4976 dir=/System/Library/Perl/5.8.1
4977 darwindir=$dir/darwin-thread-multi-2level
4978 if test -d $darwindir; then
4979 PERL=/usr/bin/perl
4982 if test -n "$PERL"; then
4983 PERL_DIR="$dir"
4984 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4985 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4986 PERL_LIBS="-L$darwindir/CORE -lperl"
4997 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4998 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
4999 # Check whether --enable-pythoninterp was given.
5000 if test "${enable_pythoninterp+set}" = set; then
5001 enableval=$enable_pythoninterp;
5002 else
5003 enable_pythoninterp="no"
5006 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5007 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5008 if test "$enable_pythoninterp" = "yes"; then
5009 # Extract the first word of "python", so it can be a program name with args.
5010 set dummy python; ac_word=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 case $vi_cv_path_python in
5017 [\\/]* | ?:[\\/]*)
5018 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5037 esac
5039 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5040 if test -n "$vi_cv_path_python"; then
5041 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5042 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5043 else
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5049 if test "X$vi_cv_path_python" != "X"; then
5051 { echo "$as_me:$LINENO: checking Python version" >&5
5052 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5053 if test "${vi_cv_var_python_version+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 vi_cv_var_python_version=`
5057 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5060 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5061 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5063 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5064 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5065 if ${vi_cv_path_python} -c \
5066 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5067 then
5068 { echo "$as_me:$LINENO: result: yep" >&5
5069 echo "${ECHO_T}yep" >&6; }
5071 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5072 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5073 if test "${vi_cv_path_python_pfx+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 vi_cv_path_python_pfx=`
5077 ${vi_cv_path_python} -c \
5078 "import sys; print sys.prefix"`
5080 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5081 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5083 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5084 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5085 if test "${vi_cv_path_python_epfx+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088 vi_cv_path_python_epfx=`
5089 ${vi_cv_path_python} -c \
5090 "import sys; print sys.exec_prefix"`
5092 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5093 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5096 if test "${vi_cv_path_pythonpath+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099 vi_cv_path_pythonpath=`
5100 unset PYTHONPATH;
5101 ${vi_cv_path_python} -c \
5102 "import sys, string; print string.join(sys.path,':')"`
5108 # Check whether --with-python-config-dir was given.
5109 if test "${with_python_config_dir+set}" = set; then
5110 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5114 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5115 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5116 if test "${vi_cv_path_python_conf+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5120 vi_cv_path_python_conf=
5121 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5122 for subdir in lib share; do
5123 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5124 if test -d "$d" && test -f "$d/config.c"; then
5125 vi_cv_path_python_conf="$d"
5127 done
5128 done
5131 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5132 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5134 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5136 if test "X$PYTHON_CONFDIR" = "X"; then
5137 { echo "$as_me:$LINENO: result: can't find it!" >&5
5138 echo "${ECHO_T}can't find it!" >&6; }
5139 else
5141 if test "${vi_cv_path_python_plibs+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5145 pwd=`pwd`
5146 tmp_mkf="$pwd/config-PyMake$$"
5147 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5149 @echo "python_MODLIBS='$(MODLIBS)'"
5150 @echo "python_LIBS='$(LIBS)'"
5151 @echo "python_SYSLIBS='$(SYSLIBS)'"
5152 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5154 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5155 rm -f -- "${tmp_mkf}"
5156 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5157 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5158 vi_cv_path_python_plibs="-framework Python"
5159 else
5160 if test "${vi_cv_var_python_version}" = "1.4"; then
5161 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5162 else
5163 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5165 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5166 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5172 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5173 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5174 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5175 else
5176 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}"
5178 PYTHON_SRC="if_python.c"
5179 if test "x$MACOSX" = "xyes"; then
5180 PYTHON_OBJ="objects/if_python.o"
5181 else
5182 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5184 if test "${vi_cv_var_python_version}" = "1.4"; then
5185 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5187 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5189 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5190 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5191 threadsafe_flag=
5192 thread_lib=
5193 if test "`(uname) 2>/dev/null`" != Darwin; then
5194 test "$GCC" = yes && threadsafe_flag="-pthread"
5195 if test "`(uname) 2>/dev/null`" = FreeBSD; then
5196 threadsafe_flag="-D_THREAD_SAFE"
5197 thread_lib="-pthread"
5200 libs_save_old=$LIBS
5201 if test -n "$threadsafe_flag"; then
5202 cflags_save=$CFLAGS
5203 CFLAGS="$CFLAGS $threadsafe_flag"
5204 LIBS="$LIBS $thread_lib"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5213 main ()
5217 return 0;
5219 _ACEOF
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (ac_try="$ac_link"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_link") 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && {
5234 test -z "$ac_c_werror_flag" ||
5235 test ! -s conftest.err
5236 } && test -s conftest$ac_exeext &&
5237 $as_test_x conftest$ac_exeext; then
5238 { echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }; LIBS=$libs_save_old
5249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5250 conftest$ac_exeext conftest.$ac_ext
5251 CFLAGS=$cflags_save
5252 else
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5257 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5258 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5259 cflags_save=$CFLAGS
5260 libs_save=$LIBS
5261 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
5262 LIBS="$LIBS $PYTHON_LIBS"
5263 cat >conftest.$ac_ext <<_ACEOF
5264 /* confdefs.h. */
5265 _ACEOF
5266 cat confdefs.h >>conftest.$ac_ext
5267 cat >>conftest.$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5271 main ()
5275 return 0;
5277 _ACEOF
5278 rm -f conftest.$ac_objext conftest$ac_exeext
5279 if { (ac_try="$ac_link"
5280 case "(($ac_try" in
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5283 esac
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_link") 2>conftest.er1
5286 ac_status=$?
5287 grep -v '^ *+' conftest.er1 >conftest.err
5288 rm -f conftest.er1
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest$ac_exeext &&
5295 $as_test_x conftest$ac_exeext; then
5296 { echo "$as_me:$LINENO: result: yes" >&5
5297 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5303 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5307 conftest$ac_exeext conftest.$ac_ext
5308 CFLAGS=$cflags_save
5309 LIBS=$libs_save
5310 if test $python_ok = yes; then
5311 cat >>confdefs.h <<\_ACEOF
5312 #define FEAT_PYTHON 1
5313 _ACEOF
5315 else
5316 LIBS=$libs_save_old
5317 PYTHON_SRC=
5318 PYTHON_OBJ=
5319 PYTHON_LIBS=
5320 PYTHON_CFLAGS=
5324 else
5325 { echo "$as_me:$LINENO: result: too old" >&5
5326 echo "${ECHO_T}too old" >&6; }
5337 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5338 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5339 # Check whether --enable-tclinterp was given.
5340 if test "${enable_tclinterp+set}" = set; then
5341 enableval=$enable_tclinterp;
5342 else
5343 enable_tclinterp="no"
5346 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5347 echo "${ECHO_T}$enable_tclinterp" >&6; }
5349 if test "$enable_tclinterp" = "yes"; then
5351 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5352 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5354 # Check whether --with-tclsh was given.
5355 if test "${with_tclsh+set}" = set; then
5356 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5357 echo "${ECHO_T}$tclsh_name" >&6; }
5358 else
5359 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5360 echo "${ECHO_T}no" >&6; }
5363 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5364 set dummy $tclsh_name; ac_word=$2
5365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5367 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370 case $vi_cv_path_tcl in
5371 [\\/]* | ?:[\\/]*)
5372 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5391 esac
5393 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5394 if test -n "$vi_cv_path_tcl"; then
5395 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5396 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5397 else
5398 { echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6; }
5405 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5406 tclsh_name="tclsh8.4"
5407 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5408 set dummy $tclsh_name; ac_word=$2
5409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5411 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 case $vi_cv_path_tcl in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5435 esac
5437 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5438 if test -n "$vi_cv_path_tcl"; then
5439 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5440 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5441 else
5442 { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5448 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5449 tclsh_name="tclsh8.2"
5450 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5451 set dummy $tclsh_name; ac_word=$2
5452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5454 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5455 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457 case $vi_cv_path_tcl in
5458 [\\/]* | ?:[\\/]*)
5459 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5473 done
5474 done
5475 IFS=$as_save_IFS
5478 esac
5480 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5481 if test -n "$vi_cv_path_tcl"; then
5482 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5483 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5484 else
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5491 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5492 tclsh_name="tclsh8.0"
5493 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5494 set dummy $tclsh_name; ac_word=$2
5495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5497 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 case $vi_cv_path_tcl in
5501 [\\/]* | ?:[\\/]*)
5502 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5518 IFS=$as_save_IFS
5521 esac
5523 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5524 if test -n "$vi_cv_path_tcl"; then
5525 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5526 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5527 else
5528 { echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6; }
5534 if test "X$vi_cv_path_tcl" = "X"; then
5535 tclsh_name="tclsh"
5536 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5537 set dummy $tclsh_name; ac_word=$2
5538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5540 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 case $vi_cv_path_tcl in
5544 [\\/]* | ?:[\\/]*)
5545 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5561 IFS=$as_save_IFS
5564 esac
5566 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5567 if test -n "$vi_cv_path_tcl"; then
5568 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5569 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5570 else
5571 { echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6; }
5577 if test "X$vi_cv_path_tcl" != "X"; then
5578 { echo "$as_me:$LINENO: checking Tcl version" >&5
5579 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5580 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5581 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5582 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5583 echo "${ECHO_T}$tclver - OK" >&6; };
5584 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 -`
5586 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5587 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5588 if test "x$MACOSX" != "xyes"; then
5589 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5590 else
5591 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5593 TCL_INC=
5594 for try in $tclinc; do
5595 if test -f "$try/tcl.h"; then
5596 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5597 echo "${ECHO_T}$try/tcl.h" >&6; }
5598 TCL_INC=$try
5599 break
5601 done
5602 if test -z "$TCL_INC"; then
5603 { echo "$as_me:$LINENO: result: <not found>" >&5
5604 echo "${ECHO_T}<not found>" >&6; }
5605 SKIP_TCL=YES
5607 if test -z "$SKIP_TCL"; then
5608 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5609 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5610 if test "x$MACOSX" != "xyes"; then
5611 tclcnf=`echo $tclinc | sed s/include/lib/g`
5612 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5613 else
5614 tclcnf="/System/Library/Frameworks/Tcl.framework"
5616 for try in $tclcnf; do
5617 if test -f $try/tclConfig.sh; then
5618 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5619 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5620 . $try/tclConfig.sh
5621 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5622 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'`
5623 break
5625 done
5626 if test -z "$TCL_LIBS"; then
5627 { echo "$as_me:$LINENO: result: <not found>" >&5
5628 echo "${ECHO_T}<not found>" >&6; }
5629 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5630 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5631 tcllib=`echo $tclinc | sed s/include/lib/g`
5632 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5633 for ext in .so .a ; do
5634 for ver in "" $tclver ; do
5635 for try in $tcllib ; do
5636 trylib=tcl$ver$ext
5637 if test -f $try/lib$trylib ; then
5638 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5639 echo "${ECHO_T}$try/lib$trylib" >&6; }
5640 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5641 if test "`(uname) 2>/dev/null`" = SunOS &&
5642 uname -r | grep '^5' >/dev/null; then
5643 TCL_LIBS="$TCL_LIBS -R $try"
5645 break 3
5647 done
5648 done
5649 done
5650 if test -z "$TCL_LIBS"; then
5651 { echo "$as_me:$LINENO: result: <not found>" >&5
5652 echo "${ECHO_T}<not found>" >&6; }
5653 SKIP_TCL=YES
5656 if test -z "$SKIP_TCL"; then
5657 cat >>confdefs.h <<\_ACEOF
5658 #define FEAT_TCL 1
5659 _ACEOF
5661 TCL_SRC=if_tcl.c
5662 TCL_OBJ=objects/if_tcl.o
5663 TCL_PRO=if_tcl.pro
5664 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5667 else
5668 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5669 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5679 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5680 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5681 # Check whether --enable-rubyinterp was given.
5682 if test "${enable_rubyinterp+set}" = set; then
5683 enableval=$enable_rubyinterp;
5684 else
5685 enable_rubyinterp="no"
5688 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5689 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5690 if test "$enable_rubyinterp" = "yes"; then
5692 # Extract the first word of "ruby", so it can be a program name with args.
5693 set dummy ruby; ac_word=$2
5694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5696 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 case $vi_cv_path_ruby in
5700 [\\/]* | ?:[\\/]*)
5701 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5720 esac
5722 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5723 if test -n "$vi_cv_path_ruby"; then
5724 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5725 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5726 else
5727 { echo "$as_me:$LINENO: result: no" >&5
5728 echo "${ECHO_T}no" >&6; }
5732 if test "X$vi_cv_path_ruby" != "X"; then
5733 { echo "$as_me:$LINENO: checking Ruby version" >&5
5734 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5735 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5736 { echo "$as_me:$LINENO: result: OK" >&5
5737 echo "${ECHO_T}OK" >&6; }
5738 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5739 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5740 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5741 if test "X$rubyhdrdir" != "X"; then
5742 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5743 echo "${ECHO_T}$rubyhdrdir" >&6; }
5744 RUBY_CFLAGS="-I$rubyhdrdir"
5745 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5746 if test "X$rubylibs" != "X"; then
5747 RUBY_LIBS="$rubylibs"
5749 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5750 if test -f "$rubyhdrdir/$librubyarg"; then
5751 librubyarg="$rubyhdrdir/$librubyarg"
5752 else
5753 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5754 if test -f "$rubylibdir/$librubyarg"; then
5755 librubyarg="$rubylibdir/$librubyarg"
5756 elif test "$librubyarg" = "libruby.a"; then
5757 librubyarg="-lruby"
5758 else
5759 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5763 if test "X$librubyarg" != "X"; then
5764 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5766 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5767 if test "x$MACOSX" = "xyes"; then
5768 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch[^-]*//g'`
5770 if test "X$rubyldflags" != "X"; then
5771 LDFLAGS="$rubyldflags $LDFLAGS"
5773 RUBY_SRC="if_ruby.c"
5774 RUBY_OBJ="objects/if_ruby.o"
5775 RUBY_PRO="if_ruby.pro"
5776 cat >>confdefs.h <<\_ACEOF
5777 #define FEAT_RUBY 1
5778 _ACEOF
5780 else
5781 { echo "$as_me:$LINENO: result: not found" >&5
5782 echo "${ECHO_T}not found" >&6; }
5784 else
5785 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5786 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5796 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5797 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5798 # Check whether --enable-cscope was given.
5799 if test "${enable_cscope+set}" = set; then
5800 enableval=$enable_cscope;
5801 else
5802 enable_cscope="no"
5805 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5806 echo "${ECHO_T}$enable_cscope" >&6; }
5807 if test "$enable_cscope" = "yes"; then
5808 cat >>confdefs.h <<\_ACEOF
5809 #define FEAT_CSCOPE 1
5810 _ACEOF
5814 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5815 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5816 # Check whether --enable-workshop was given.
5817 if test "${enable_workshop+set}" = set; then
5818 enableval=$enable_workshop;
5819 else
5820 enable_workshop="no"
5823 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5824 echo "${ECHO_T}$enable_workshop" >&6; }
5825 if test "$enable_workshop" = "yes"; then
5826 cat >>confdefs.h <<\_ACEOF
5827 #define FEAT_SUN_WORKSHOP 1
5828 _ACEOF
5830 WORKSHOP_SRC="workshop.c integration.c"
5832 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5834 if test "${enable_gui-xxx}" = xxx; then
5835 enable_gui=motif
5839 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5840 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5841 # Check whether --enable-netbeans was given.
5842 if test "${enable_netbeans+set}" = set; then
5843 enableval=$enable_netbeans;
5844 else
5845 enable_netbeans="yes"
5848 if test "$enable_netbeans" = "yes"; then
5849 { echo "$as_me:$LINENO: result: no" >&5
5850 echo "${ECHO_T}no" >&6; }
5852 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5853 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5854 if test "${ac_cv_lib_socket_socket+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857 ac_check_lib_save_LIBS=$LIBS
5858 LIBS="-lsocket $LIBS"
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 /* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */
5869 #ifdef __cplusplus
5870 extern "C"
5871 #endif
5872 char socket ();
5874 main ()
5876 return socket ();
5878 return 0;
5880 _ACEOF
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (ac_try="$ac_link"
5883 case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_link") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && {
5895 test -z "$ac_c_werror_flag" ||
5896 test ! -s conftest.err
5897 } && test -s conftest$ac_exeext &&
5898 $as_test_x conftest$ac_exeext; then
5899 ac_cv_lib_socket_socket=yes
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 ac_cv_lib_socket_socket=no
5907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5908 conftest$ac_exeext conftest.$ac_ext
5909 LIBS=$ac_check_lib_save_LIBS
5911 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5912 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5913 if test $ac_cv_lib_socket_socket = yes; then
5914 cat >>confdefs.h <<_ACEOF
5915 #define HAVE_LIBSOCKET 1
5916 _ACEOF
5918 LIBS="-lsocket $LIBS"
5923 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5924 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5925 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 ac_check_lib_save_LIBS=$LIBS
5929 LIBS="-lnsl $LIBS"
5930 cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h. */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h. */
5937 /* Override any GCC internal prototype to avoid an error.
5938 Use char because int might match the return type of a GCC
5939 builtin and then its argument prototype would still apply. */
5940 #ifdef __cplusplus
5941 extern "C"
5942 #endif
5943 char gethostbyname ();
5945 main ()
5947 return gethostbyname ();
5949 return 0;
5951 _ACEOF
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (ac_try="$ac_link"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_lib_nsl_gethostbyname=yes
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 ac_cv_lib_nsl_gethostbyname=no
5978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext conftest.$ac_ext
5980 LIBS=$ac_check_lib_save_LIBS
5982 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5983 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5984 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5985 cat >>confdefs.h <<_ACEOF
5986 #define HAVE_LIBNSL 1
5987 _ACEOF
5989 LIBS="-lnsl $LIBS"
5993 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5994 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6002 #include <stdio.h>
6003 #include <stdlib.h>
6004 #include <stdarg.h>
6005 #include <fcntl.h>
6006 #include <netdb.h>
6007 #include <netinet/in.h>
6008 #include <errno.h>
6009 #include <sys/types.h>
6010 #include <sys/socket.h>
6011 /* Check bitfields */
6012 struct nbbuf {
6013 unsigned int initDone:1;
6014 ushort signmaplen;
6018 main ()
6021 /* Check creating a socket. */
6022 struct sockaddr_in server;
6023 (void)socket(AF_INET, SOCK_STREAM, 0);
6024 (void)htons(100);
6025 (void)gethostbyname("microsoft.com");
6026 if (errno == ECONNREFUSED)
6027 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6030 return 0;
6032 _ACEOF
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (ac_try="$ac_link"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_link") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest$ac_exeext &&
6050 $as_test_x conftest$ac_exeext; then
6051 { echo "$as_me:$LINENO: result: yes" >&5
6052 echo "${ECHO_T}yes" >&6; }
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6057 { echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6; }; enable_netbeans="no"
6061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6062 conftest$ac_exeext conftest.$ac_ext
6063 else
6064 { echo "$as_me:$LINENO: result: yes" >&5
6065 echo "${ECHO_T}yes" >&6; }
6067 if test "$enable_netbeans" = "yes"; then
6068 cat >>confdefs.h <<\_ACEOF
6069 #define FEAT_NETBEANS_INTG 1
6070 _ACEOF
6072 NETBEANS_SRC="netbeans.c"
6074 NETBEANS_OBJ="objects/netbeans.o"
6078 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6079 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6080 # Check whether --enable-sniff was given.
6081 if test "${enable_sniff+set}" = set; then
6082 enableval=$enable_sniff;
6083 else
6084 enable_sniff="no"
6087 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6088 echo "${ECHO_T}$enable_sniff" >&6; }
6089 if test "$enable_sniff" = "yes"; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define FEAT_SNIFF 1
6092 _ACEOF
6094 SNIFF_SRC="if_sniff.c"
6096 SNIFF_OBJ="objects/if_sniff.o"
6100 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6101 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6102 # Check whether --enable-multibyte was given.
6103 if test "${enable_multibyte+set}" = set; then
6104 enableval=$enable_multibyte;
6105 else
6106 enable_multibyte="no"
6109 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6110 echo "${ECHO_T}$enable_multibyte" >&6; }
6111 if test "$enable_multibyte" = "yes"; then
6112 cat >>confdefs.h <<\_ACEOF
6113 #define FEAT_MBYTE 1
6114 _ACEOF
6118 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6119 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6120 # Check whether --enable-hangulinput was given.
6121 if test "${enable_hangulinput+set}" = set; then
6122 enableval=$enable_hangulinput;
6123 else
6124 enable_hangulinput="no"
6127 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6128 echo "${ECHO_T}$enable_hangulinput" >&6; }
6130 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6131 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6132 # Check whether --enable-xim was given.
6133 if test "${enable_xim+set}" = set; then
6134 enableval=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6135 echo "${ECHO_T}$enable_xim" >&6; }
6136 else
6137 enable_xim="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6138 echo "${ECHO_T}defaulting to auto" >&6; }
6142 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6143 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6144 # Check whether --enable-fontset was given.
6145 if test "${enable_fontset+set}" = set; then
6146 enableval=$enable_fontset;
6147 else
6148 enable_fontset="no"
6151 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6152 echo "${ECHO_T}$enable_fontset" >&6; }
6154 test -z "$with_x" && with_x=yes
6155 test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
6156 if test "$with_x" = no; then
6157 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6158 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6159 else
6161 # Extract the first word of "xmkmf", so it can be a program name with args.
6162 set dummy xmkmf; ac_word=$2
6163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6165 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168 case $xmkmfpath in
6169 [\\/]* | ?:[\\/]*)
6170 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
6181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6184 done
6185 done
6186 IFS=$as_save_IFS
6189 esac
6191 xmkmfpath=$ac_cv_path_xmkmfpath
6192 if test -n "$xmkmfpath"; then
6193 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6194 echo "${ECHO_T}$xmkmfpath" >&6; }
6195 else
6196 { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6202 { echo "$as_me:$LINENO: checking for X" >&5
6203 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6206 # Check whether --with-x was given.
6207 if test "${with_x+set}" = set; then
6208 withval=$with_x;
6211 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6212 if test "x$with_x" = xno; then
6213 # The user explicitly disabled X.
6214 have_x=disabled
6215 else
6216 case $x_includes,$x_libraries in #(
6217 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6218 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6219 { (exit 1); exit 1; }; };; #(
6220 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 # One or both of the vars are not set, and there is no cached value.
6224 ac_x_includes=no ac_x_libraries=no
6225 rm -f -r conftest.dir
6226 if mkdir conftest.dir; then
6227 cd conftest.dir
6228 cat >Imakefile <<'_ACEOF'
6229 incroot:
6230 @echo incroot='${INCROOT}'
6231 usrlibdir:
6232 @echo usrlibdir='${USRLIBDIR}'
6233 libdir:
6234 @echo libdir='${LIBDIR}'
6235 _ACEOF
6236 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6238 for ac_var in incroot usrlibdir libdir; do
6239 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6240 done
6241 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6242 for ac_extension in a so sl dylib la dll; do
6243 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6244 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6245 ac_im_usrlibdir=$ac_im_libdir; break
6247 done
6248 # Screen out bogus values from the imake configuration. They are
6249 # bogus both because they are the default anyway, and because
6250 # using them would break gcc on systems where it needs fixed includes.
6251 case $ac_im_incroot in
6252 /usr/include) ac_x_includes= ;;
6253 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6254 esac
6255 case $ac_im_usrlibdir in
6256 /usr/lib | /lib) ;;
6257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6258 esac
6260 cd ..
6261 rm -f -r conftest.dir
6264 # Standard set of common directories for X headers.
6265 # Check X11 before X11Rn because it is often a symlink to the current release.
6266 ac_x_header_dirs='
6267 /usr/X11/include
6268 /usr/X11R6/include
6269 /usr/X11R5/include
6270 /usr/X11R4/include
6272 /usr/include/X11
6273 /usr/include/X11R6
6274 /usr/include/X11R5
6275 /usr/include/X11R4
6277 /usr/local/X11/include
6278 /usr/local/X11R6/include
6279 /usr/local/X11R5/include
6280 /usr/local/X11R4/include
6282 /usr/local/include/X11
6283 /usr/local/include/X11R6
6284 /usr/local/include/X11R5
6285 /usr/local/include/X11R4
6287 /usr/X386/include
6288 /usr/x386/include
6289 /usr/XFree86/include/X11
6291 /usr/include
6292 /usr/local/include
6293 /usr/unsupported/include
6294 /usr/athena/include
6295 /usr/local/x11r5/include
6296 /usr/lpp/Xamples/include
6298 /usr/openwin/include
6299 /usr/openwin/share/include'
6301 if test "$ac_x_includes" = no; then
6302 # Guess where to find include files, by looking for Xlib.h.
6303 # First, try using that file with no special directory specified.
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <X11/Xlib.h>
6311 _ACEOF
6312 if { (ac_try="$ac_cpp conftest.$ac_ext"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } >/dev/null && {
6325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 }; then
6328 # We can compile using X headers with no special include directory.
6329 ac_x_includes=
6330 else
6331 echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6334 for ac_dir in $ac_x_header_dirs; do
6335 if test -r "$ac_dir/X11/Xlib.h"; then
6336 ac_x_includes=$ac_dir
6337 break
6339 done
6342 rm -f conftest.err conftest.$ac_ext
6343 fi # $ac_x_includes = no
6345 if test "$ac_x_libraries" = no; then
6346 # Check for the libraries.
6347 # See if we find them without any special options.
6348 # Don't add to $LIBS permanently.
6349 ac_save_LIBS=$LIBS
6350 LIBS="-lX11 $LIBS"
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <X11/Xlib.h>
6359 main ()
6361 XrmInitialize ()
6363 return 0;
6365 _ACEOF
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6368 case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_link") 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && {
6380 test -z "$ac_c_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest$ac_exeext &&
6383 $as_test_x conftest$ac_exeext; then
6384 LIBS=$ac_save_LIBS
6385 # We can link X programs with no special library path.
6386 ac_x_libraries=
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6391 LIBS=$ac_save_LIBS
6392 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6394 # Don't even attempt the hair of trying to link an X program!
6395 for ac_extension in a so sl dylib la dll; do
6396 if test -r "$ac_dir/libX11.$ac_extension"; then
6397 ac_x_libraries=$ac_dir
6398 break 2
6400 done
6401 done
6404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6405 conftest$ac_exeext conftest.$ac_ext
6406 fi # $ac_x_libraries = no
6408 case $ac_x_includes,$ac_x_libraries in #(
6409 no,* | *,no | *\'*)
6410 # Didn't find X, or a directory has "'" in its name.
6411 ac_cv_have_x="have_x=no";; #(
6413 # Record where we found X for the cache.
6414 ac_cv_have_x="have_x=yes\
6415 ac_x_includes='$ac_x_includes'\
6416 ac_x_libraries='$ac_x_libraries'"
6417 esac
6419 ;; #(
6420 *) have_x=yes;;
6421 esac
6422 eval "$ac_cv_have_x"
6423 fi # $with_x != no
6425 if test "$have_x" != yes; then
6426 { echo "$as_me:$LINENO: result: $have_x" >&5
6427 echo "${ECHO_T}$have_x" >&6; }
6428 no_x=yes
6429 else
6430 # If each of the values was on the command line, it overrides each guess.
6431 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6432 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6433 # Update the cache value to reflect the command line values.
6434 ac_cv_have_x="have_x=yes\
6435 ac_x_includes='$x_includes'\
6436 ac_x_libraries='$x_libraries'"
6437 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6438 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6441 if test "$no_x" = yes; then
6442 # Not all programs may use this symbol, but it does not hurt to define it.
6444 cat >>confdefs.h <<\_ACEOF
6445 #define X_DISPLAY_MISSING 1
6446 _ACEOF
6448 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6449 else
6450 if test -n "$x_includes"; then
6451 X_CFLAGS="$X_CFLAGS -I$x_includes"
6454 # It would also be nice to do this for all -L options, not just this one.
6455 if test -n "$x_libraries"; then
6456 X_LIBS="$X_LIBS -L$x_libraries"
6457 # For Solaris; some versions of Sun CC require a space after -R and
6458 # others require no space. Words are not sufficient . . . .
6459 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6460 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6461 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6462 ac_xsave_c_werror_flag=$ac_c_werror_flag
6463 ac_c_werror_flag=yes
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h. */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6472 main ()
6476 return 0;
6478 _ACEOF
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (ac_try="$ac_link"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_link") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest$ac_exeext &&
6496 $as_test_x conftest$ac_exeext; then
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 X_LIBS="$X_LIBS -R$x_libraries"
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 LIBS="$ac_xsave_LIBS -R $x_libraries"
6505 cat >conftest.$ac_ext <<_ACEOF
6506 /* confdefs.h. */
6507 _ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6513 main ()
6517 return 0;
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (ac_try="$ac_link"
6522 case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_link") 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest$ac_exeext &&
6537 $as_test_x conftest$ac_exeext; then
6538 { echo "$as_me:$LINENO: result: yes" >&5
6539 echo "${ECHO_T}yes" >&6; }
6540 X_LIBS="$X_LIBS -R $x_libraries"
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6545 { echo "$as_me:$LINENO: result: neither works" >&5
6546 echo "${ECHO_T}neither works" >&6; }
6549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6550 conftest$ac_exeext conftest.$ac_ext
6553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554 conftest$ac_exeext conftest.$ac_ext
6555 ac_c_werror_flag=$ac_xsave_c_werror_flag
6556 LIBS=$ac_xsave_LIBS
6559 # Check for system-dependent libraries X programs must link with.
6560 # Do this before checking for the system-independent R6 libraries
6561 # (-lICE), since we may need -lsocket or whatever for X linking.
6563 if test "$ISC" = yes; then
6564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6565 else
6566 # Martyn Johnson says this is needed for Ultrix, if the X
6567 # libraries were built with DECnet support. And Karl Berry says
6568 # the Alpha needs dnet_stub (dnet does not exist).
6569 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h. */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6577 /* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6580 #ifdef __cplusplus
6581 extern "C"
6582 #endif
6583 char XOpenDisplay ();
6585 main ()
6587 return XOpenDisplay ();
6589 return 0;
6591 _ACEOF
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (ac_try="$ac_link"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_link") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest$ac_exeext &&
6609 $as_test_x conftest$ac_exeext; then
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6616 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6617 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620 ac_check_lib_save_LIBS=$LIBS
6621 LIBS="-ldnet $LIBS"
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6629 /* Override any GCC internal prototype to avoid an error.
6630 Use char because int might match the return type of a GCC
6631 builtin and then its argument prototype would still apply. */
6632 #ifdef __cplusplus
6633 extern "C"
6634 #endif
6635 char dnet_ntoa ();
6637 main ()
6639 return dnet_ntoa ();
6641 return 0;
6643 _ACEOF
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (ac_try="$ac_link"
6646 case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>conftest.er1
6652 ac_status=$?
6653 grep -v '^ *+' conftest.er1 >conftest.err
6654 rm -f conftest.er1
6655 cat conftest.err >&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest$ac_exeext &&
6661 $as_test_x conftest$ac_exeext; then
6662 ac_cv_lib_dnet_dnet_ntoa=yes
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6667 ac_cv_lib_dnet_dnet_ntoa=no
6670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6671 conftest$ac_exeext conftest.$ac_ext
6672 LIBS=$ac_check_lib_save_LIBS
6674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6675 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6676 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6677 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6680 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6681 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6682 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6683 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 ac_check_lib_save_LIBS=$LIBS
6687 LIBS="-ldnet_stub $LIBS"
6688 cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h. */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6695 /* Override any GCC internal prototype to avoid an error.
6696 Use char because int might match the return type of a GCC
6697 builtin and then its argument prototype would still apply. */
6698 #ifdef __cplusplus
6699 extern "C"
6700 #endif
6701 char dnet_ntoa ();
6703 main ()
6705 return dnet_ntoa ();
6707 return 0;
6709 _ACEOF
6710 rm -f conftest.$ac_objext conftest$ac_exeext
6711 if { (ac_try="$ac_link"
6712 case "(($ac_try" in
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6715 esac
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_link") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest$ac_exeext &&
6727 $as_test_x conftest$ac_exeext; then
6728 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_lib_dnet_stub_dnet_ntoa=no
6736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6737 conftest$ac_exeext conftest.$ac_ext
6738 LIBS=$ac_check_lib_save_LIBS
6740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6741 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6742 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6743 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS="$ac_xsave_LIBS"
6753 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6754 # to get the SysV transport functions.
6755 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6756 # needs -lnsl.
6757 # The nsl library prevents programs from opening the X display
6758 # on Irix 5.2, according to T.E. Dickey.
6759 # The functions gethostbyname, getservbyname, and inet_addr are
6760 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6761 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6762 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6763 if test "${ac_cv_func_gethostbyname+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6774 #define gethostbyname innocuous_gethostbyname
6776 /* System header to define __stub macros and hopefully few prototypes,
6777 which can conflict with char gethostbyname (); below.
6778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6779 <limits.h> exists even on freestanding compilers. */
6781 #ifdef __STDC__
6782 # include <limits.h>
6783 #else
6784 # include <assert.h>
6785 #endif
6787 #undef gethostbyname
6789 /* Override any GCC internal prototype to avoid an error.
6790 Use char because int might match the return type of a GCC
6791 builtin and then its argument prototype would still apply. */
6792 #ifdef __cplusplus
6793 extern "C"
6794 #endif
6795 char gethostbyname ();
6796 /* The GNU C library defines this for functions which it implements
6797 to always fail with ENOSYS. Some functions are actually named
6798 something starting with __ and the normal name is an alias. */
6799 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6800 choke me
6801 #endif
6804 main ()
6806 return gethostbyname ();
6808 return 0;
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (ac_try="$ac_link"
6813 case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816 esac
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_link") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } && {
6825 test -z "$ac_c_werror_flag" ||
6826 test ! -s conftest.err
6827 } && test -s conftest$ac_exeext &&
6828 $as_test_x conftest$ac_exeext; then
6829 ac_cv_func_gethostbyname=yes
6830 else
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6834 ac_cv_func_gethostbyname=no
6837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6838 conftest$ac_exeext conftest.$ac_ext
6840 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6841 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6843 if test $ac_cv_func_gethostbyname = no; then
6844 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6845 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6846 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 else
6849 ac_check_lib_save_LIBS=$LIBS
6850 LIBS="-lnsl $LIBS"
6851 cat >conftest.$ac_ext <<_ACEOF
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 /* Override any GCC internal prototype to avoid an error.
6859 Use char because int might match the return type of a GCC
6860 builtin and then its argument prototype would still apply. */
6861 #ifdef __cplusplus
6862 extern "C"
6863 #endif
6864 char gethostbyname ();
6866 main ()
6868 return gethostbyname ();
6870 return 0;
6872 _ACEOF
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (ac_try="$ac_link"
6875 case "(($ac_try" in
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6878 esac
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880 (eval "$ac_link") 2>conftest.er1
6881 ac_status=$?
6882 grep -v '^ *+' conftest.er1 >conftest.err
6883 rm -f conftest.er1
6884 cat conftest.err >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && {
6887 test -z "$ac_c_werror_flag" ||
6888 test ! -s conftest.err
6889 } && test -s conftest$ac_exeext &&
6890 $as_test_x conftest$ac_exeext; then
6891 ac_cv_lib_nsl_gethostbyname=yes
6892 else
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_cv_lib_nsl_gethostbyname=no
6899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6900 conftest$ac_exeext conftest.$ac_ext
6901 LIBS=$ac_check_lib_save_LIBS
6903 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6904 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6905 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6909 if test $ac_cv_lib_nsl_gethostbyname = no; then
6910 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6911 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6912 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 else
6915 ac_check_lib_save_LIBS=$LIBS
6916 LIBS="-lbsd $LIBS"
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 /* Override any GCC internal prototype to avoid an error.
6925 Use char because int might match the return type of a GCC
6926 builtin and then its argument prototype would still apply. */
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 char gethostbyname ();
6932 main ()
6934 return gethostbyname ();
6936 return 0;
6938 _ACEOF
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (ac_try="$ac_link"
6941 case "(($ac_try" in
6942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6944 esac
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_link") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest$ac_exeext &&
6956 $as_test_x conftest$ac_exeext; then
6957 ac_cv_lib_bsd_gethostbyname=yes
6958 else
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_cv_lib_bsd_gethostbyname=no
6965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6966 conftest$ac_exeext conftest.$ac_ext
6967 LIBS=$ac_check_lib_save_LIBS
6969 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6970 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6971 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6972 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6978 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6979 # socket/setsockopt and other routines are undefined under SCO ODT
6980 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6981 # on later versions), says Simon Leinen: it contains gethostby*
6982 # variants that don't use the name server (or something). -lsocket
6983 # must be given before -lnsl if both are needed. We assume that
6984 # if connect needs -lnsl, so does gethostbyname.
6985 { echo "$as_me:$LINENO: checking for connect" >&5
6986 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6987 if test "${ac_cv_func_connect+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6998 #define connect innocuous_connect
7000 /* System header to define __stub macros and hopefully few prototypes,
7001 which can conflict with char connect (); below.
7002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7003 <limits.h> exists even on freestanding compilers. */
7005 #ifdef __STDC__
7006 # include <limits.h>
7007 #else
7008 # include <assert.h>
7009 #endif
7011 #undef connect
7013 /* Override any GCC internal prototype to avoid an error.
7014 Use char because int might match the return type of a GCC
7015 builtin and then its argument prototype would still apply. */
7016 #ifdef __cplusplus
7017 extern "C"
7018 #endif
7019 char connect ();
7020 /* The GNU C library defines this for functions which it implements
7021 to always fail with ENOSYS. Some functions are actually named
7022 something starting with __ and the normal name is an alias. */
7023 #if defined __stub_connect || defined __stub___connect
7024 choke me
7025 #endif
7028 main ()
7030 return connect ();
7032 return 0;
7034 _ACEOF
7035 rm -f conftest.$ac_objext conftest$ac_exeext
7036 if { (ac_try="$ac_link"
7037 case "(($ac_try" in
7038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7040 esac
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_link") 2>conftest.er1
7043 ac_status=$?
7044 grep -v '^ *+' conftest.er1 >conftest.err
7045 rm -f conftest.er1
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest$ac_exeext &&
7052 $as_test_x conftest$ac_exeext; then
7053 ac_cv_func_connect=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_cv_func_connect=no
7061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7062 conftest$ac_exeext conftest.$ac_ext
7064 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7065 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7067 if test $ac_cv_func_connect = no; then
7068 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7069 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7070 if test "${ac_cv_lib_socket_connect+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072 else
7073 ac_check_lib_save_LIBS=$LIBS
7074 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7075 cat >conftest.$ac_ext <<_ACEOF
7076 /* confdefs.h. */
7077 _ACEOF
7078 cat confdefs.h >>conftest.$ac_ext
7079 cat >>conftest.$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7082 /* Override any GCC internal prototype to avoid an error.
7083 Use char because int might match the return type of a GCC
7084 builtin and then its argument prototype would still apply. */
7085 #ifdef __cplusplus
7086 extern "C"
7087 #endif
7088 char connect ();
7090 main ()
7092 return connect ();
7094 return 0;
7096 _ACEOF
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (ac_try="$ac_link"
7099 case "(($ac_try" in
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_link") 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest$ac_exeext &&
7114 $as_test_x conftest$ac_exeext; then
7115 ac_cv_lib_socket_connect=yes
7116 else
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 ac_cv_lib_socket_connect=no
7123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7124 conftest$ac_exeext conftest.$ac_ext
7125 LIBS=$ac_check_lib_save_LIBS
7127 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7128 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7129 if test $ac_cv_lib_socket_connect = yes; then
7130 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7135 # Guillermo Gomez says -lposix is necessary on A/UX.
7136 { echo "$as_me:$LINENO: checking for remove" >&5
7137 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7138 if test "${ac_cv_func_remove+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 else
7141 cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h. */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7149 #define remove innocuous_remove
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char remove (); below.
7153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7154 <limits.h> exists even on freestanding compilers. */
7156 #ifdef __STDC__
7157 # include <limits.h>
7158 #else
7159 # include <assert.h>
7160 #endif
7162 #undef remove
7164 /* Override any GCC internal prototype to avoid an error.
7165 Use char because int might match the return type of a GCC
7166 builtin and then its argument prototype would still apply. */
7167 #ifdef __cplusplus
7168 extern "C"
7169 #endif
7170 char remove ();
7171 /* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174 #if defined __stub_remove || defined __stub___remove
7175 choke me
7176 #endif
7179 main ()
7181 return remove ();
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (ac_try="$ac_link"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_link") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest$ac_exeext &&
7203 $as_test_x conftest$ac_exeext; then
7204 ac_cv_func_remove=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_cv_func_remove=no
7212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7213 conftest$ac_exeext conftest.$ac_ext
7215 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7216 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7218 if test $ac_cv_func_remove = no; then
7219 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7220 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7221 if test "${ac_cv_lib_posix_remove+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 ac_check_lib_save_LIBS=$LIBS
7225 LIBS="-lposix $LIBS"
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7233 /* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 char remove ();
7241 main ()
7243 return remove ();
7245 return 0;
7247 _ACEOF
7248 rm -f conftest.$ac_objext conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7250 case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_link") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest$ac_exeext &&
7265 $as_test_x conftest$ac_exeext; then
7266 ac_cv_lib_posix_remove=yes
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_cv_lib_posix_remove=no
7274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7275 conftest$ac_exeext conftest.$ac_ext
7276 LIBS=$ac_check_lib_save_LIBS
7278 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7279 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7280 if test $ac_cv_lib_posix_remove = yes; then
7281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7286 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7287 { echo "$as_me:$LINENO: checking for shmat" >&5
7288 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7289 if test "${ac_cv_func_shmat+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7300 #define shmat innocuous_shmat
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char shmat (); below.
7304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7305 <limits.h> exists even on freestanding compilers. */
7307 #ifdef __STDC__
7308 # include <limits.h>
7309 #else
7310 # include <assert.h>
7311 #endif
7313 #undef shmat
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char shmat ();
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined __stub_shmat || defined __stub___shmat
7326 choke me
7327 #endif
7330 main ()
7332 return shmat ();
7334 return 0;
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (ac_try="$ac_link"
7339 case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest$ac_exeext &&
7354 $as_test_x conftest$ac_exeext; then
7355 ac_cv_func_shmat=yes
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_cv_func_shmat=no
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364 conftest$ac_exeext conftest.$ac_ext
7366 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7367 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7369 if test $ac_cv_func_shmat = no; then
7370 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7371 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7372 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 ac_check_lib_save_LIBS=$LIBS
7376 LIBS="-lipc $LIBS"
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7387 #ifdef __cplusplus
7388 extern "C"
7389 #endif
7390 char shmat ();
7392 main ()
7394 return shmat ();
7396 return 0;
7398 _ACEOF
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_c_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest$ac_exeext &&
7416 $as_test_x conftest$ac_exeext; then
7417 ac_cv_lib_ipc_shmat=yes
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_cv_lib_ipc_shmat=no
7425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7426 conftest$ac_exeext conftest.$ac_ext
7427 LIBS=$ac_check_lib_save_LIBS
7429 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7430 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7431 if test $ac_cv_lib_ipc_shmat = yes; then
7432 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7438 # Check for libraries that X11R6 Xt/Xaw programs need.
7439 ac_save_LDFLAGS=$LDFLAGS
7440 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7441 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7442 # check for ICE first), but we must link in the order -lSM -lICE or
7443 # we get undefined symbols. So assume we have SM if we have ICE.
7444 # These have to be linked with before -lX11, unlike the other
7445 # libraries we check for below, so use a different variable.
7446 # John Interrante, Karl Berry
7447 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7448 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7449 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 ac_check_lib_save_LIBS=$LIBS
7453 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7454 cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h. */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7461 /* Override any GCC internal prototype to avoid an error.
7462 Use char because int might match the return type of a GCC
7463 builtin and then its argument prototype would still apply. */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 char IceConnectionNumber ();
7469 main ()
7471 return IceConnectionNumber ();
7473 return 0;
7475 _ACEOF
7476 rm -f conftest.$ac_objext conftest$ac_exeext
7477 if { (ac_try="$ac_link"
7478 case "(($ac_try" in
7479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7481 esac
7482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7483 (eval "$ac_link") 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } && {
7490 test -z "$ac_c_werror_flag" ||
7491 test ! -s conftest.err
7492 } && test -s conftest$ac_exeext &&
7493 $as_test_x conftest$ac_exeext; then
7494 ac_cv_lib_ICE_IceConnectionNumber=yes
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ac_cv_lib_ICE_IceConnectionNumber=no
7502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7503 conftest$ac_exeext conftest.$ac_ext
7504 LIBS=$ac_check_lib_save_LIBS
7506 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7507 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7508 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7509 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7512 LDFLAGS=$ac_save_LDFLAGS
7517 if test "$OS390Unix" = "yes"; then
7518 CFLAGS="$CFLAGS -W c,dll"
7519 LDFLAGS="$LDFLAGS -W l,dll"
7520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7524 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7525 x_libraries=`echo "$x_includes" | sed s/include/lib/`
7526 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7527 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7528 X_LIBS="$X_LIBS -L$x_libraries"
7529 if test "`(uname) 2>/dev/null`" = SunOS &&
7530 uname -r | grep '^5' >/dev/null; then
7531 X_LIBS="$X_LIBS -R $x_libraries"
7535 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7536 x_includes=`echo "$x_libraries" | sed s/lib/include/`
7537 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7538 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7539 X_CFLAGS="$X_CFLAGS -I$x_includes"
7542 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
7543 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
7544 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7547 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7548 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7549 cflags_save=$CFLAGS
7550 CFLAGS="$CFLAGS $X_CFLAGS"
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h. */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 #include <X11/Xlib.h>
7558 #include <X11/Intrinsic.h>
7560 main ()
7564 return 0;
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7569 case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 { echo "$as_me:$LINENO: result: yes" >&5
7585 echo "${ECHO_T}yes" >&6; }
7586 else
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 { echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6; }; no_x=yes
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 CFLAGS=$cflags_save
7597 if test "${no_x-no}" = yes; then
7598 with_x=no
7599 else
7600 cat >>confdefs.h <<\_ACEOF
7601 #define HAVE_X11 1
7602 _ACEOF
7604 X_LIB="-lXt -lX11";
7607 ac_save_LDFLAGS="$LDFLAGS"
7608 LDFLAGS="-L$x_libraries $LDFLAGS"
7610 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7611 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7612 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 ac_check_lib_save_LIBS=$LIBS
7616 LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7617 cat >conftest.$ac_ext <<_ACEOF
7618 /* confdefs.h. */
7619 _ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7624 /* Override any GCC internal prototype to avoid an error.
7625 Use char because int might match the return type of a GCC
7626 builtin and then its argument prototype would still apply. */
7627 #ifdef __cplusplus
7628 extern "C"
7629 #endif
7630 char _XdmcpAuthDoIt ();
7632 main ()
7634 return _XdmcpAuthDoIt ();
7636 return 0;
7638 _ACEOF
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (ac_try="$ac_link"
7641 case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_link") 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest$ac_exeext &&
7656 $as_test_x conftest$ac_exeext; then
7657 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7662 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7666 conftest$ac_exeext conftest.$ac_ext
7667 LIBS=$ac_check_lib_save_LIBS
7669 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7670 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7671 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7676 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7677 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7678 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 else
7681 ac_check_lib_save_LIBS=$LIBS
7682 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h. */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7690 /* Override any GCC internal prototype to avoid an error.
7691 Use char because int might match the return type of a GCC
7692 builtin and then its argument prototype would still apply. */
7693 #ifdef __cplusplus
7694 extern "C"
7695 #endif
7696 char IceOpenConnection ();
7698 main ()
7700 return IceOpenConnection ();
7702 return 0;
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (ac_try="$ac_link"
7707 case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_link") 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest$ac_exeext &&
7722 $as_test_x conftest$ac_exeext; then
7723 ac_cv_lib_ICE_IceOpenConnection=yes
7724 else
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 ac_cv_lib_ICE_IceOpenConnection=no
7731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7732 conftest$ac_exeext conftest.$ac_ext
7733 LIBS=$ac_check_lib_save_LIBS
7735 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7736 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7737 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
7742 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
7743 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7744 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7745 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7757 /* Override any GCC internal prototype to avoid an error.
7758 Use char because int might match the return type of a GCC
7759 builtin and then its argument prototype would still apply. */
7760 #ifdef __cplusplus
7761 extern "C"
7762 #endif
7763 char XpmCreatePixmapFromData ();
7765 main ()
7767 return XpmCreatePixmapFromData ();
7769 return 0;
7771 _ACEOF
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (ac_try="$ac_link"
7774 case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_link") 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest$ac_exeext &&
7789 $as_test_x conftest$ac_exeext; then
7790 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7799 conftest$ac_exeext conftest.$ac_ext
7800 LIBS=$ac_check_lib_save_LIBS
7802 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7803 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7804 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7805 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7809 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7810 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7811 cflags_save=$CFLAGS
7812 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
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. */
7819 #include <X11/Xlib.h>
7821 main ()
7825 return 0;
7827 _ACEOF
7828 rm -f conftest.$ac_objext
7829 if { (ac_try="$ac_compile"
7830 case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_compile") 2>conftest.er1
7836 ac_status=$?
7837 grep -v '^ *+' conftest.er1 >conftest.err
7838 rm -f conftest.er1
7839 cat conftest.err >&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && {
7842 test -z "$ac_c_werror_flag" ||
7843 test ! -s conftest.err
7844 } && test -s conftest.$ac_objext; then
7845 { echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6; }
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 CFLAGS="$CFLAGS -Wno-implicit-int"
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <X11/Xlib.h>
7860 main ()
7864 return 0;
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (ac_try="$ac_compile"
7869 case "(($ac_try" in
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_compile") 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest.$ac_objext; then
7884 { echo "$as_me:$LINENO: result: yes" >&5
7885 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 { echo "$as_me:$LINENO: result: test failed" >&5
7891 echo "${ECHO_T}test failed" >&6; }
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 CFLAGS=$cflags_save
7902 LDFLAGS="$ac_save_LDFLAGS"
7904 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
7905 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
7906 if test "${ac_cv_small_wchar_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 if test "$cross_compiling" = yes; then
7910 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
7911 echo "$as_me: error: failed to compile test program" >&2;}
7912 { (exit 1); exit 1; }; }
7913 else
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7921 #include <X11/Xlib.h>
7922 #if STDC_HEADERS
7923 # include <stdlib.h>
7924 # include <stddef.h>
7925 #endif
7926 main()
7928 if (sizeof(wchar_t) <= 2)
7929 exit(1);
7930 exit(0);
7932 _ACEOF
7933 rm -f conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7935 case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7944 { (case "(($ac_try" in
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7947 esac
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_try") 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_small_wchar_t="no"
7954 else
7955 echo "$as_me: program exited with status $ac_status" >&5
7956 echo "$as_me: failed program was:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7959 ( exit $ac_status )
7960 ac_cv_small_wchar_t="yes"
7962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7968 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
7969 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
7970 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
7971 cat >>confdefs.h <<\_ACEOF
7972 #define SMALL_WCHAR_T 1
7973 _ACEOF
7980 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7982 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7983 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
7984 # Check whether --enable-gui was given.
7985 if test "${enable_gui+set}" = set; then
7986 enableval=$enable_gui;
7987 else
7988 enable_gui="auto"
7992 enable_gui_canon=`echo "_$enable_gui" | \
7993 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7995 SKIP_GTK=YES
7996 SKIP_GTK2=YES
7997 SKIP_GNOME=YES
7998 SKIP_MOTIF=YES
7999 SKIP_ATHENA=YES
8000 SKIP_NEXTAW=YES
8001 SKIP_PHOTON=YES
8002 SKIP_CARBON=YES
8003 SKIP_MACVIM=YES
8004 GUITYPE=NONE
8006 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8007 SKIP_PHOTON=
8008 case "$enable_gui_canon" in
8009 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8010 echo "${ECHO_T}no GUI support" >&6; }
8011 SKIP_PHOTON=YES ;;
8012 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8013 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8014 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8015 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8016 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8017 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8018 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8019 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8020 SKIP_PHOTON=YES ;;
8021 esac
8023 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8024 SKIP_CARBON=
8025 SKIP_MACVIM=
8026 case "$enable_gui_canon" in
8027 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8028 echo "${ECHO_T}no GUI support" >&6; }
8029 SKIP_CARBON=YES
8030 SKIP_MACVIM=YES ;;
8031 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8032 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8033 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8034 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8035 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8036 echo "${ECHO_T}Carbon GUI support" >&6; }
8037 SKIP_MACVIM=YES ;;
8038 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8039 echo "${ECHO_T}MacVim GUI support" >&6; }
8040 SKIP_CARBON=YES ;;
8041 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8042 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8043 SKIP_CARBON=YES
8044 SKIP_MACVIM=YES ;;
8045 esac
8047 else
8049 case "$enable_gui_canon" in
8050 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8051 echo "${ECHO_T}no GUI support" >&6; } ;;
8052 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8053 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8054 SKIP_GTK=
8055 SKIP_GTK2=
8056 SKIP_GNOME=
8057 SKIP_MOTIF=
8058 SKIP_ATHENA=
8059 SKIP_NEXTAW=
8060 SKIP_MACVIM=
8061 SKIP_CARBON=;;
8062 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8063 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8064 SKIP_GTK=;;
8065 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8066 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8067 SKIP_GTK=
8068 SKIP_GTK2=;;
8069 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8070 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8071 SKIP_GNOME=
8072 SKIP_GTK=;;
8073 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8074 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8075 SKIP_GNOME=
8076 SKIP_GTK=
8077 SKIP_GTK2=;;
8078 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8079 echo "${ECHO_T}Motif GUI support" >&6; }
8080 SKIP_MOTIF=;;
8081 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8082 echo "${ECHO_T}Athena GUI support" >&6; }
8083 SKIP_ATHENA=;;
8084 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8085 echo "${ECHO_T}neXtaw GUI support" >&6; }
8086 SKIP_NEXTAW=;;
8087 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8088 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8089 esac
8093 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8094 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8095 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8096 # Check whether --enable-gtk-check was given.
8097 if test "${enable_gtk_check+set}" = set; then
8098 enableval=$enable_gtk_check;
8099 else
8100 enable_gtk_check="yes"
8103 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8104 echo "${ECHO_T}$enable_gtk_check" >&6; }
8105 if test "x$enable_gtk_check" = "xno"; then
8106 SKIP_GTK=YES
8107 SKIP_GNOME=YES
8111 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8112 -a "$enable_gui_canon" != "gnome2"; then
8113 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8114 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8115 # Check whether --enable-gtk2-check was given.
8116 if test "${enable_gtk2_check+set}" = set; then
8117 enableval=$enable_gtk2_check;
8118 else
8119 enable_gtk2_check="yes"
8122 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8123 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8124 if test "x$enable_gtk2_check" = "xno"; then
8125 SKIP_GTK2=YES
8129 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8130 -a "$enable_gui_canon" != "gnome2"; then
8131 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8132 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8133 # Check whether --enable-gnome-check was given.
8134 if test "${enable_gnome_check+set}" = set; then
8135 enableval=$enable_gnome_check;
8136 else
8137 enable_gnome_check="no"
8140 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8141 echo "${ECHO_T}$enable_gnome_check" >&6; }
8142 if test "x$enable_gnome_check" = "xno"; then
8143 SKIP_GNOME=YES
8147 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8148 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8149 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8150 # Check whether --enable-motif-check was given.
8151 if test "${enable_motif_check+set}" = set; then
8152 enableval=$enable_motif_check;
8153 else
8154 enable_motif_check="yes"
8157 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8158 echo "${ECHO_T}$enable_motif_check" >&6; }
8159 if test "x$enable_motif_check" = "xno"; then
8160 SKIP_MOTIF=YES
8164 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8165 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8166 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8167 # Check whether --enable-athena-check was given.
8168 if test "${enable_athena_check+set}" = set; then
8169 enableval=$enable_athena_check;
8170 else
8171 enable_athena_check="yes"
8174 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8175 echo "${ECHO_T}$enable_athena_check" >&6; }
8176 if test "x$enable_athena_check" = "xno"; then
8177 SKIP_ATHENA=YES
8181 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8182 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8183 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8184 # Check whether --enable-nextaw-check was given.
8185 if test "${enable_nextaw_check+set}" = set; then
8186 enableval=$enable_nextaw_check;
8187 else
8188 enable_nextaw_check="yes"
8191 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8192 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8193 if test "x$enable_nextaw_check" = "xno"; then
8194 SKIP_NEXTAW=YES
8198 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8199 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8200 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8201 # Check whether --enable-carbon-check was given.
8202 if test "${enable_carbon_check+set}" = set; then
8203 enableval=$enable_carbon_check;
8204 else
8205 enable_carbon_check="yes"
8208 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8209 echo "${ECHO_T}$enable_carbon_check" >&6; };
8210 if test "x$enable_carbon_check" = "xno"; then
8211 SKIP_CARBON=YES
8215 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8216 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8217 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8218 # Check whether --enable-macvim-check was given.
8219 if test "${enable_macvim_check+set}" = set; then
8220 enableval=$enable_macvim_check;
8221 else
8222 enable_macvim_check="yes"
8225 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8226 echo "${ECHO_T}$enable_macvim_check" >&6; };
8227 if test "x$enable_macvim_check" = "xno"; then
8228 SKIP_MACVIM=YES
8232 if test "x$MACOSX" = "xyes"; then
8233 if test x$prefix = xNONE; then
8234 prefix=/Applications
8237 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8238 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8239 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8240 { echo "$as_me:$LINENO: result: yes" >&5
8241 echo "${ECHO_T}yes" >&6; };
8242 GUITYPE=MACVIMGUI
8243 datadir='${prefix}/MacVim.app/Contents/Resources'
8244 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8245 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8246 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8247 { echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6; };
8249 GUITYPE=CARBONGUI
8250 datadir='${prefix}/Vim.app/Contents/Resources'
8252 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
8255 if test "$VIMNAME" = "vim"; then
8256 VIMNAME=Vim
8259 SKIP_GTK=YES;
8260 SKIP_GTK2=YES;
8261 SKIP_GNOME=YES;
8262 SKIP_MOTIF=YES;
8263 SKIP_ATHENA=YES;
8264 SKIP_NEXTAW=YES;
8265 SKIP_PHOTON=YES;
8266 SKIP_MACVIM=YES;
8267 SKIP_CARBON=YES
8278 if test -z "$SKIP_GTK"; then
8280 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8281 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8283 # Check whether --with-gtk-prefix was given.
8284 if test "${with_gtk_prefix+set}" = set; then
8285 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8286 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8287 else
8288 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8289 echo "${ECHO_T}no" >&6; }
8293 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8294 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8296 # Check whether --with-gtk-exec-prefix was given.
8297 if test "${with_gtk_exec_prefix+set}" = set; then
8298 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8299 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8300 else
8301 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8306 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8307 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8308 # Check whether --enable-gtktest was given.
8309 if test "${enable_gtktest+set}" = set; then
8310 enableval=$enable_gtktest;
8311 else
8312 enable_gtktest=yes
8315 if test "x$enable_gtktest" = "xyes" ; then
8316 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8317 echo "${ECHO_T}gtk test enabled" >&6; }
8318 else
8319 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8320 echo "${ECHO_T}gtk test disabled" >&6; }
8323 if test "x$gtk_config_prefix" != "x" ; then
8324 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8325 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8327 if test "x$gtk_config_exec_prefix" != "x" ; then
8328 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8329 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8331 if test "X$GTK_CONFIG" = "X"; then
8332 # Extract the first word of "gtk-config", so it can be a program name with args.
8333 set dummy gtk-config; ac_word=$2
8334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8336 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339 case $GTK_CONFIG in
8340 [\\/]* | ?:[\\/]*)
8341 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8347 IFS=$as_save_IFS
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8353 break 2
8355 done
8356 done
8357 IFS=$as_save_IFS
8359 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8361 esac
8363 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8364 if test -n "$GTK_CONFIG"; then
8365 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8366 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8367 else
8368 { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8373 if test "X$GTK_CONFIG" = "Xno"; then
8374 # Extract the first word of "gtk12-config", so it can be a program name with args.
8375 set dummy gtk12-config; ac_word=$2
8376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8378 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381 case $GTK12_CONFIG in
8382 [\\/]* | ?:[\\/]*)
8383 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in $PATH
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8397 done
8398 done
8399 IFS=$as_save_IFS
8401 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8403 esac
8405 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8406 if test -n "$GTK12_CONFIG"; then
8407 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8408 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8409 else
8410 { echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6; }
8415 GTK_CONFIG="$GTK12_CONFIG"
8417 else
8418 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8419 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8421 if test "X$PKG_CONFIG" = "X"; then
8422 # Extract the first word of "pkg-config", so it can be a program name with args.
8423 set dummy pkg-config; ac_word=$2
8424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 case $PKG_CONFIG in
8430 [\\/]* | ?:[\\/]*)
8431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8445 done
8446 done
8447 IFS=$as_save_IFS
8449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8451 esac
8453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8454 if test -n "$PKG_CONFIG"; then
8455 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8456 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8457 else
8458 { echo "$as_me:$LINENO: result: no" >&5
8459 echo "${ECHO_T}no" >&6; }
8465 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8466 if test "X$SKIP_GTK2" != "XYES"; then
8468 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8470 min_gtk_version=2.2.0
8471 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8472 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8473 no_gtk=""
8474 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8475 && $PKG_CONFIG --exists gtk+-2.0; then
8477 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8478 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8479 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8480 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8481 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8482 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8483 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8484 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8485 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8487 elif test "X$GTK_CONFIG" != "Xno"; then
8489 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8490 GTK_LIBDIR=
8491 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8492 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8493 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8494 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8495 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8496 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8497 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8499 else
8500 no_gtk=yes
8503 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8505 ac_save_CFLAGS="$CFLAGS"
8506 ac_save_LIBS="$LIBS"
8507 CFLAGS="$CFLAGS $GTK_CFLAGS"
8508 LIBS="$LIBS $GTK_LIBS"
8510 rm -f conf.gtktest
8511 if test "$cross_compiling" = yes; then
8512 echo $ac_n "cross compiling; assumed OK... $ac_c"
8513 else
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h. */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8521 #include <gtk/gtk.h>
8522 #include <stdio.h>
8523 #if STDC_HEADERS
8524 # include <stdlib.h>
8525 # include <stddef.h>
8526 #endif
8529 main ()
8531 int major, minor, micro;
8532 char *tmp_version;
8534 system ("touch conf.gtktest");
8536 /* HP/UX 9 (%@#!) writes to sscanf strings */
8537 tmp_version = g_strdup("$min_gtk_version");
8538 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8539 printf("%s, bad version string\n", "$min_gtk_version");
8540 exit(1);
8543 if ((gtk_major_version > major) ||
8544 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8545 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8546 (gtk_micro_version >= micro)))
8548 return 0;
8550 return 1;
8553 _ACEOF
8554 rm -f conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_link") 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8565 { (case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_try") 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8575 else
8576 echo "$as_me: program exited with status $ac_status" >&5
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ( exit $ac_status )
8581 no_gtk=yes
8583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8587 CFLAGS="$ac_save_CFLAGS"
8588 LIBS="$ac_save_LIBS"
8591 if test "x$no_gtk" = x ; then
8592 if test "x$enable_gtktest" = "xyes"; then
8593 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8594 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8595 else
8596 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8597 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8599 GUI_LIB_LOC="$GTK_LIBDIR"
8600 GTK_LIBNAME="$GTK_LIBS"
8601 GUI_INC_LOC="$GTK_CFLAGS"
8602 else
8604 { echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6; }
8606 GTK_CFLAGS=""
8607 GTK_LIBS=""
8612 else
8613 GTK_CFLAGS=""
8614 GTK_LIBS=""
8619 rm -f conf.gtktest
8621 if test "x$GTK_CFLAGS" != "x"; then
8622 SKIP_ATHENA=YES
8623 SKIP_NEXTAW=YES
8624 SKIP_MOTIF=YES
8625 GUITYPE=GTK
8630 if test "x$GUITYPE" != "xGTK"; then
8631 SKIP_GTK2=YES
8633 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8635 min_gtk_version=1.1.16
8636 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8637 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8638 no_gtk=""
8639 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8640 && $PKG_CONFIG --exists gtk+-2.0; then
8642 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
8643 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
8644 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8645 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8647 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8648 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8649 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8650 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8652 elif test "X$GTK_CONFIG" != "Xno"; then
8654 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8655 GTK_LIBDIR=
8656 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8657 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8658 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8659 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8660 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8661 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8662 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8664 else
8665 no_gtk=yes
8668 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8670 ac_save_CFLAGS="$CFLAGS"
8671 ac_save_LIBS="$LIBS"
8672 CFLAGS="$CFLAGS $GTK_CFLAGS"
8673 LIBS="$LIBS $GTK_LIBS"
8675 rm -f conf.gtktest
8676 if test "$cross_compiling" = yes; then
8677 echo $ac_n "cross compiling; assumed OK... $ac_c"
8678 else
8679 cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h. */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 #include <gtk/gtk.h>
8687 #include <stdio.h>
8688 #if STDC_HEADERS
8689 # include <stdlib.h>
8690 # include <stddef.h>
8691 #endif
8694 main ()
8696 int major, minor, micro;
8697 char *tmp_version;
8699 system ("touch conf.gtktest");
8701 /* HP/UX 9 (%@#!) writes to sscanf strings */
8702 tmp_version = g_strdup("$min_gtk_version");
8703 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8704 printf("%s, bad version string\n", "$min_gtk_version");
8705 exit(1);
8708 if ((gtk_major_version > major) ||
8709 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8710 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8711 (gtk_micro_version >= micro)))
8713 return 0;
8715 return 1;
8718 _ACEOF
8719 rm -f conftest$ac_exeext
8720 if { (ac_try="$ac_link"
8721 case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_link") 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733 esac
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8740 else
8741 echo "$as_me: program exited with status $ac_status" >&5
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8745 ( exit $ac_status )
8746 no_gtk=yes
8748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8752 CFLAGS="$ac_save_CFLAGS"
8753 LIBS="$ac_save_LIBS"
8756 if test "x$no_gtk" = x ; then
8757 if test "x$enable_gtktest" = "xyes"; then
8758 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8759 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8760 else
8761 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8762 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8764 GTK_LIBNAME="$GTK_LIBS"
8765 GUI_INC_LOC="$GTK_CFLAGS"
8766 else
8768 { echo "$as_me:$LINENO: result: no" >&5
8769 echo "${ECHO_T}no" >&6; }
8770 GTK_CFLAGS=""
8771 GTK_LIBS=""
8776 else
8777 GTK_CFLAGS=""
8778 GTK_LIBS=""
8783 rm -f conf.gtktest
8785 if test "x$GTK_CFLAGS" != "x"; then
8786 SKIP_ATHENA=YES
8787 SKIP_NEXTAW=YES
8788 SKIP_MOTIF=YES
8789 GUITYPE=GTK
8794 if test "x$GUITYPE" = "xGTK"; then
8795 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8796 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8797 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8798 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8799 else
8801 if test "0$gtk_major_version" -ge 2; then
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_GTK2 1
8804 _ACEOF
8806 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8807 || test "0$gtk_minor_version" -ge 2 \
8808 || test "0$gtk_major_version" -gt 2; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_GTK_MULTIHEAD 1
8811 _ACEOF
8815 if test -z "$SKIP_GNOME"; then
8823 # Check whether --with-gnome-includes was given.
8824 if test "${with_gnome_includes+set}" = set; then
8825 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8831 # Check whether --with-gnome-libs was given.
8832 if test "${with_gnome_libs+set}" = set; then
8833 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8839 # Check whether --with-gnome was given.
8840 if test "${with_gnome+set}" = set; then
8841 withval=$with_gnome; if test x$withval = xyes; then
8842 want_gnome=yes
8843 have_gnome=yes
8844 else
8845 if test "x$withval" = xno; then
8846 want_gnome=no
8847 else
8848 want_gnome=yes
8849 LDFLAGS="$LDFLAGS -L$withval/lib"
8850 CFLAGS="$CFLAGS -I$withval/include"
8851 gnome_prefix=$withval/lib
8854 else
8855 want_gnome=yes
8859 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8861 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8862 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8863 if $PKG_CONFIG --exists libgnomeui-2.0; then
8864 { echo "$as_me:$LINENO: result: yes" >&5
8865 echo "${ECHO_T}yes" >&6; }
8866 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8867 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8868 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8870 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8871 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8872 if test "`(uname) 2>/dev/null`" = FreeBSD; then
8873 { echo "$as_me:$LINENO: result: yes" >&5
8874 echo "${ECHO_T}yes" >&6; }
8875 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8876 GNOME_LIBS="$GNOME_LIBS -pthread"
8877 else
8878 { echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6; }
8881 have_gnome=yes
8882 else
8883 { echo "$as_me:$LINENO: result: not found" >&5
8884 echo "${ECHO_T}not found" >&6; }
8885 if test "x" = xfail; then
8886 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8887 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8888 { (exit 1); exit 1; }; }
8892 elif test "x$want_gnome" = xyes; then
8894 # Extract the first word of "gnome-config", so it can be a program name with args.
8895 set dummy gnome-config; ac_word=$2
8896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8898 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 case $GNOME_CONFIG in
8902 [\\/]* | ?:[\\/]*)
8903 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8917 done
8918 done
8919 IFS=$as_save_IFS
8921 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8923 esac
8925 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8926 if test -n "$GNOME_CONFIG"; then
8927 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8928 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
8929 else
8930 { echo "$as_me:$LINENO: result: no" >&5
8931 echo "${ECHO_T}no" >&6; }
8935 if test "$GNOME_CONFIG" = "no"; then
8936 no_gnome_config="yes"
8937 else
8938 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8939 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
8940 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8941 { echo "$as_me:$LINENO: result: yes" >&5
8942 echo "${ECHO_T}yes" >&6; }
8943 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8944 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8945 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8946 have_gnome=yes
8947 else
8948 { echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6; }
8950 no_gnome_config="yes"
8954 if test x$exec_prefix = xNONE; then
8955 if test x$prefix = xNONE; then
8956 gnome_prefix=$ac_default_prefix/lib
8957 else
8958 gnome_prefix=$prefix/lib
8960 else
8961 gnome_prefix=`eval echo \`echo $libdir\``
8964 if test "$no_gnome_config" = "yes"; then
8965 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8966 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
8967 if test -f $gnome_prefix/gnomeConf.sh; then
8968 { echo "$as_me:$LINENO: result: found" >&5
8969 echo "${ECHO_T}found" >&6; }
8970 echo "loading gnome configuration from" \
8971 "$gnome_prefix/gnomeConf.sh"
8972 . $gnome_prefix/gnomeConf.sh
8973 have_gnome=yes
8974 else
8975 { echo "$as_me:$LINENO: result: not found" >&5
8976 echo "${ECHO_T}not found" >&6; }
8977 if test x = xfail; then
8978 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8979 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8980 { (exit 1); exit 1; }; }
8987 if test x$have_gnome = xyes ; then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define FEAT_GUI_GNOME 1
8990 _ACEOF
8992 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8993 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9003 if test -z "$SKIP_MOTIF"; then
9004 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"
9005 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
9007 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9008 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9009 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
9010 GUI_INC_LOC=
9011 for try in $gui_includes; do
9012 if test -f "$try/Xm/Xm.h"; then
9013 GUI_INC_LOC=$try
9015 done
9016 if test -n "$GUI_INC_LOC"; then
9017 if test "$GUI_INC_LOC" = /usr/include; then
9018 GUI_INC_LOC=
9019 { echo "$as_me:$LINENO: result: in default path" >&5
9020 echo "${ECHO_T}in default path" >&6; }
9021 else
9022 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9023 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9025 else
9026 { echo "$as_me:$LINENO: result: <not found>" >&5
9027 echo "${ECHO_T}<not found>" >&6; }
9028 SKIP_MOTIF=YES
9033 if test -z "$SKIP_MOTIF"; then
9034 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9035 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9037 # Check whether --with-motif-lib was given.
9038 if test "${with_motif_lib+set}" = set; then
9039 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9043 if test -n "$MOTIF_LIBNAME"; then
9044 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9045 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9046 GUI_LIB_LOC=
9047 else
9048 { echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6; }
9051 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
9053 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9054 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9055 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"
9056 GUI_LIB_LOC=
9057 for try in $gui_libs; do
9058 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9059 if test -f "$libtry"; then
9060 GUI_LIB_LOC=$try
9062 done
9063 done
9064 if test -n "$GUI_LIB_LOC"; then
9065 if test "$GUI_LIB_LOC" = /usr/lib; then
9066 GUI_LIB_LOC=
9067 { echo "$as_me:$LINENO: result: in default path" >&5
9068 echo "${ECHO_T}in default path" >&6; }
9069 else
9070 if test -n "$GUI_LIB_LOC"; then
9071 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9072 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9073 if test "`(uname) 2>/dev/null`" = SunOS &&
9074 uname -r | grep '^5' >/dev/null; then
9075 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9079 MOTIF_LIBNAME=-lXm
9080 else
9081 { echo "$as_me:$LINENO: result: <not found>" >&5
9082 echo "${ECHO_T}<not found>" >&6; }
9083 SKIP_MOTIF=YES
9088 if test -z "$SKIP_MOTIF"; then
9089 SKIP_ATHENA=YES
9090 SKIP_NEXTAW=YES
9091 GUITYPE=MOTIF
9096 GUI_X_LIBS=
9098 if test -z "$SKIP_ATHENA"; then
9099 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9100 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9101 cflags_save=$CFLAGS
9102 CFLAGS="$CFLAGS $X_CFLAGS"
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h. */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9110 #include <X11/Intrinsic.h>
9111 #include <X11/Xaw/Paned.h>
9113 main ()
9117 return 0;
9119 _ACEOF
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9122 case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125 esac
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
9137 { echo "$as_me:$LINENO: result: yes" >&5
9138 echo "${ECHO_T}yes" >&6; }
9139 else
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 { echo "$as_me:$LINENO: result: no" >&5
9144 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA=YES
9147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148 CFLAGS=$cflags_save
9151 if test -z "$SKIP_ATHENA"; then
9152 GUITYPE=ATHENA
9155 if test -z "$SKIP_NEXTAW"; then
9156 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9157 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9158 cflags_save=$CFLAGS
9159 CFLAGS="$CFLAGS $X_CFLAGS"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h. */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9167 #include <X11/Intrinsic.h>
9168 #include <X11/neXtaw/Paned.h>
9170 main ()
9174 return 0;
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9179 case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9194 { echo "$as_me:$LINENO: result: yes" >&5
9195 echo "${ECHO_T}yes" >&6; }
9196 else
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.$ac_ext >&5
9200 { echo "$as_me:$LINENO: result: no" >&5
9201 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9205 CFLAGS=$cflags_save
9208 if test -z "$SKIP_NEXTAW"; then
9209 GUITYPE=NEXTAW
9212 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9213 if test -n "$GUI_INC_LOC"; then
9214 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9216 if test -n "$GUI_LIB_LOC"; then
9217 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9220 ldflags_save=$LDFLAGS
9221 LDFLAGS="$X_LIBS $LDFLAGS"
9222 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9223 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9224 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9229 cat >conftest.$ac_ext <<_ACEOF
9230 /* confdefs.h. */
9231 _ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9236 /* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9239 #ifdef __cplusplus
9240 extern "C"
9241 #endif
9242 char XShapeQueryExtension ();
9244 main ()
9246 return XShapeQueryExtension ();
9248 return 0;
9250 _ACEOF
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9253 case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_link") 2>conftest.er1
9259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest$ac_exeext &&
9268 $as_test_x conftest$ac_exeext; then
9269 ac_cv_lib_Xext_XShapeQueryExtension=yes
9270 else
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9274 ac_cv_lib_Xext_XShapeQueryExtension=no
9277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9278 conftest$ac_exeext conftest.$ac_ext
9279 LIBS=$ac_check_lib_save_LIBS
9281 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9282 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9283 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9284 GUI_X_LIBS="-lXext"
9287 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9288 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9289 if test "${ac_cv_lib_w_wslen+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 else
9292 ac_check_lib_save_LIBS=$LIBS
9293 LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9301 /* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 char wslen ();
9309 main ()
9311 return wslen ();
9313 return 0;
9315 _ACEOF
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (ac_try="$ac_link"
9318 case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321 esac
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_link") 2>conftest.er1
9324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest$ac_exeext &&
9333 $as_test_x conftest$ac_exeext; then
9334 ac_cv_lib_w_wslen=yes
9335 else
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9339 ac_cv_lib_w_wslen=no
9342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9343 conftest$ac_exeext conftest.$ac_ext
9344 LIBS=$ac_check_lib_save_LIBS
9346 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9347 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9348 if test $ac_cv_lib_w_wslen = yes; then
9349 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9352 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9353 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9354 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 ac_check_lib_save_LIBS=$LIBS
9358 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char dlsym ();
9374 main ()
9376 return dlsym ();
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9383 case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest$ac_exeext &&
9398 $as_test_x conftest$ac_exeext; then
9399 ac_cv_lib_dl_dlsym=yes
9400 else
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9404 ac_cv_lib_dl_dlsym=no
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9411 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9412 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9413 if test $ac_cv_lib_dl_dlsym = yes; then
9414 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
9417 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9418 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9419 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 ac_check_lib_save_LIBS=$LIBS
9423 LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9424 cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h. */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9431 /* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 char XmuCreateStippledPixmap ();
9439 main ()
9441 return XmuCreateStippledPixmap ();
9443 return 0;
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9448 case "(($ac_try" in
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && {
9460 test -z "$ac_c_werror_flag" ||
9461 test ! -s conftest.err
9462 } && test -s conftest$ac_exeext &&
9463 $as_test_x conftest$ac_exeext; then
9464 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9465 else
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473 conftest$ac_exeext conftest.$ac_ext
9474 LIBS=$ac_check_lib_save_LIBS
9476 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9477 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9478 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9479 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9482 if test -z "$SKIP_MOTIF"; then
9483 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9484 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9485 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488 ac_check_lib_save_LIBS=$LIBS
9489 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9497 /* Override any GCC internal prototype to avoid an error.
9498 Use char because int might match the return type of a GCC
9499 builtin and then its argument prototype would still apply. */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 char XpEndJob ();
9505 main ()
9507 return XpEndJob ();
9509 return 0;
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9514 case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest$ac_exeext &&
9529 $as_test_x conftest$ac_exeext; then
9530 ac_cv_lib_Xp_XpEndJob=yes
9531 else
9532 echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9535 ac_cv_lib_Xp_XpEndJob=no
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539 conftest$ac_exeext conftest.$ac_ext
9540 LIBS=$ac_check_lib_save_LIBS
9542 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9543 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9544 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9545 GUI_X_LIBS="-lXp $GUI_X_LIBS"
9549 LDFLAGS=$ldflags_save
9551 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9552 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9553 NARROW_PROTO=
9554 rm -fr conftestdir
9555 if mkdir conftestdir; then
9556 cd conftestdir
9557 cat > Imakefile <<'EOF'
9558 acfindx:
9559 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9561 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9562 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9564 cd ..
9565 rm -fr conftestdir
9567 if test -z "$NARROW_PROTO"; then
9568 { echo "$as_me:$LINENO: result: no" >&5
9569 echo "${ECHO_T}no" >&6; }
9570 else
9571 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9572 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9577 if test "$enable_xsmp" = "yes"; then
9578 cppflags_save=$CPPFLAGS
9579 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9581 for ac_header in X11/SM/SMlib.h
9583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 ac_res=`eval echo '${'$as_ac_Header'}'`
9591 { echo "$as_me:$LINENO: result: $ac_res" >&5
9592 echo "${ECHO_T}$ac_res" >&6; }
9593 else
9594 # Is the header compilable?
9595 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h. */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9603 $ac_includes_default
9604 #include <$ac_header>
9605 _ACEOF
9606 rm -f conftest.$ac_objext
9607 if { (ac_try="$ac_compile"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_compile") 2>conftest.er1
9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest.$ac_objext; then
9623 ac_header_compiler=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9628 ac_header_compiler=no
9631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9633 echo "${ECHO_T}$ac_header_compiler" >&6; }
9635 # Is the header present?
9636 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9638 cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h. */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 #include <$ac_header>
9645 _ACEOF
9646 if { (ac_try="$ac_cpp conftest.$ac_ext"
9647 case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } >/dev/null && {
9659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9660 test ! -s conftest.err
9661 }; then
9662 ac_header_preproc=yes
9663 else
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ac_header_preproc=no
9670 rm -f conftest.err conftest.$ac_ext
9671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9672 echo "${ECHO_T}$ac_header_preproc" >&6; }
9674 # So? What about this header?
9675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9676 yes:no: )
9677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9681 ac_header_preproc=yes
9683 no:yes:* )
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9687 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9691 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9698 esac
9699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704 eval "$as_ac_Header=\$ac_header_preproc"
9706 ac_res=`eval echo '${'$as_ac_Header'}'`
9707 { echo "$as_me:$LINENO: result: $ac_res" >&5
9708 echo "${ECHO_T}$ac_res" >&6; }
9711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9712 cat >>confdefs.h <<_ACEOF
9713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9714 _ACEOF
9718 done
9720 CPPFLAGS=$cppflags_save
9724 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9725 cppflags_save=$CPPFLAGS
9726 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9729 for ac_header in X11/xpm.h X11/Sunkeysym.h
9731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9738 ac_res=`eval echo '${'$as_ac_Header'}'`
9739 { echo "$as_me:$LINENO: result: $ac_res" >&5
9740 echo "${ECHO_T}$ac_res" >&6; }
9741 else
9742 # Is the header compilable?
9743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9751 $ac_includes_default
9752 #include <$ac_header>
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (ac_try="$ac_compile"
9756 case "(($ac_try" in
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9759 esac
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 (eval "$ac_compile") 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest.$ac_objext; then
9771 ac_header_compiler=yes
9772 else
9773 echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_header_compiler=no
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 echo "${ECHO_T}$ac_header_compiler" >&6; }
9783 # Is the header present?
9784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <$ac_header>
9793 _ACEOF
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9795 case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } >/dev/null && {
9807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 }; then
9810 ac_header_preproc=yes
9811 else
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_header_preproc=no
9818 rm -f conftest.err conftest.$ac_ext
9819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9820 echo "${ECHO_T}$ac_header_preproc" >&6; }
9822 # So? What about this header?
9823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9824 yes:no: )
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9829 ac_header_preproc=yes
9831 no:yes:* )
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9846 esac
9847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852 eval "$as_ac_Header=\$ac_header_preproc"
9854 ac_res=`eval echo '${'$as_ac_Header'}'`
9855 { echo "$as_me:$LINENO: result: $ac_res" >&5
9856 echo "${ECHO_T}$ac_res" >&6; }
9859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862 _ACEOF
9866 done
9869 if test ! "$enable_xim" = "no"; then
9870 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9871 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <X11/Xlib.h>
9879 _ACEOF
9880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9881 $EGREP "XIMText" >/dev/null 2>&1; then
9882 { echo "$as_me:$LINENO: result: yes" >&5
9883 echo "${ECHO_T}yes" >&6; }
9884 else
9885 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9886 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim = "no"
9888 rm -f -r conftest*
9891 CPPFLAGS=$cppflags_save
9893 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9894 -a "x$GUITYPE" != "xNONE" ; then
9895 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9896 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9897 enable_xim="yes"
9901 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9902 cppflags_save=$CPPFLAGS
9903 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9904 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9905 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 #include <X11/Intrinsic.h>
9914 #include <X11/Xmu/Editres.h>
9916 main ()
9918 int i; i = 0;
9920 return 0;
9922 _ACEOF
9923 rm -f conftest.$ac_objext
9924 if { (ac_try="$ac_compile"
9925 case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 { echo "$as_me:$LINENO: result: yes" >&5
9941 echo "${ECHO_T}yes" >&6; }
9942 cat >>confdefs.h <<\_ACEOF
9943 #define HAVE_X11_XMU_EDITRES_H 1
9944 _ACEOF
9946 else
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 { echo "$as_me:$LINENO: result: no" >&5
9951 echo "${ECHO_T}no" >&6; }
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 CPPFLAGS=$cppflags_save
9958 if test -z "$SKIP_MOTIF"; then
9959 cppflags_save=$CPPFLAGS
9960 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9968 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9969 Xm/UnhighlightT.h Xm/Notebook.h
9971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 ac_res=`eval echo '${'$as_ac_Header'}'`
9979 { echo "$as_me:$LINENO: result: $ac_res" >&5
9980 echo "${ECHO_T}$ac_res" >&6; }
9981 else
9982 # Is the header compilable?
9983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 $ac_includes_default
9992 #include <$ac_header>
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (ac_try="$ac_compile"
9996 case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $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 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 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 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10021 echo "${ECHO_T}$ac_header_compiler" >&6; }
10023 # Is the header present?
10024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null && {
10047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 }; then
10050 ac_header_preproc=yes
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_header_preproc=no
10058 rm -f conftest.err conftest.$ac_ext
10059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 echo "${ECHO_T}$ac_header_preproc" >&6; }
10062 # So? What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10064 yes:no: )
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10069 ac_header_preproc=yes
10071 no:yes:* )
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10086 esac
10087 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 eval "$as_ac_Header=\$ac_header_preproc"
10094 ac_res=`eval echo '${'$as_ac_Header'}'`
10095 { echo "$as_me:$LINENO: result: $ac_res" >&5
10096 echo "${ECHO_T}$ac_res" >&6; }
10099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10100 cat >>confdefs.h <<_ACEOF
10101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10102 _ACEOF
10106 done
10109 if test $ac_cv_header_Xm_XpmP_h = yes; then
10110 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10111 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10112 cat >conftest.$ac_ext <<_ACEOF
10113 /* confdefs.h. */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <Xm/XpmP.h>
10120 main ()
10122 XpmAttributes_21 attr;
10124 return 0;
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (ac_try="$ac_compile"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 { echo "$as_me:$LINENO: result: yes" >&5
10145 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10146 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10147 _ACEOF
10149 else
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 { echo "$as_me:$LINENO: result: no" >&5
10154 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h <<\_ACEOF
10155 #define XPMATTRIBUTES_TYPE XpmAttributes
10156 _ACEOF
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 else
10163 cat >>confdefs.h <<\_ACEOF
10164 #define XPMATTRIBUTES_TYPE XpmAttributes
10165 _ACEOF
10168 CPPFLAGS=$cppflags_save
10171 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10172 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10173 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10174 enable_xim="no"
10176 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10177 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10178 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10179 enable_fontset="no"
10181 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10182 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10183 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10184 enable_fontset="no"
10187 if test -z "$SKIP_PHOTON"; then
10188 GUITYPE=PHOTONGUI
10196 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10197 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10198 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10199 { (exit 1); exit 1; }; }
10202 if test "$enable_xim" = "yes"; then
10203 cat >>confdefs.h <<\_ACEOF
10204 #define FEAT_XIM 1
10205 _ACEOF
10208 if test "$enable_fontset" = "yes"; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define FEAT_XFONTSET 1
10211 _ACEOF
10218 if test "$enable_hangulinput" = "yes"; then
10219 if test "x$GUITYPE" = "xNONE"; then
10220 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10221 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10222 enable_hangulinput=no
10223 else
10224 cat >>confdefs.h <<\_ACEOF
10225 #define FEAT_HANGULIN 1
10226 _ACEOF
10228 HANGULIN_SRC=hangulin.c
10230 HANGULIN_OBJ=objects/hangulin.o
10236 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10237 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10238 if test "${vim_cv_toupper_broken+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10242 if test "$cross_compiling" = yes; then
10244 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10245 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10246 { (exit 1); exit 1; }; }
10248 else
10249 cat >conftest.$ac_ext <<_ACEOF
10251 #include "confdefs.h"
10252 #include <ctype.h>
10253 #if STDC_HEADERS
10254 # include <stdlib.h>
10255 # include <stddef.h>
10256 #endif
10257 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10259 _ACEOF
10260 rm -f conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10271 { (case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_try") 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10281 vim_cv_toupper_broken=yes
10283 else
10284 echo "$as_me: program exited with status $ac_status" >&5
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ( exit $ac_status )
10290 vim_cv_toupper_broken=no
10293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10298 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10299 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10301 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10302 cat >>confdefs.h <<\_ACEOF
10303 #define BROKEN_TOUPPER 1
10304 _ACEOF
10308 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10309 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 #include <stdio.h>
10318 main ()
10320 printf("(" __DATE__ " " __TIME__ ")");
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest.$ac_objext; then
10342 { echo "$as_me:$LINENO: result: yes" >&5
10343 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_DATE_TIME 1
10345 _ACEOF
10347 else
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 { echo "$as_me:$LINENO: result: no" >&5
10352 echo "${ECHO_T}no" >&6; }
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10358 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 #include <stdio.h>
10367 main ()
10369 int x __attribute__((unused));
10371 return 0;
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10382 ac_status=$?
10383 grep -v '^ *+' conftest.er1 >conftest.err
10384 rm -f conftest.er1
10385 cat conftest.err >&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && {
10388 test -z "$ac_c_werror_flag" ||
10389 test ! -s conftest.err
10390 } && test -s conftest.$ac_objext; then
10391 { echo "$as_me:$LINENO: result: yes" >&5
10392 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10393 #define HAVE_ATTRIBUTE_UNUSED 1
10394 _ACEOF
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 { echo "$as_me:$LINENO: result: no" >&5
10401 echo "${ECHO_T}no" >&6; }
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10406 if test "${ac_cv_header_elf_h+set}" = set; then
10407 { echo "$as_me:$LINENO: checking for elf.h" >&5
10408 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10409 if test "${ac_cv_header_elf_h+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10413 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10414 else
10415 # Is the header compilable?
10416 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10417 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h. */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 $ac_includes_default
10425 #include <elf.h>
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (ac_try="$ac_compile"
10429 case "(($ac_try" in
10430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431 *) ac_try_echo=$ac_try;;
10432 esac
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10435 ac_status=$?
10436 grep -v '^ *+' conftest.er1 >conftest.err
10437 rm -f conftest.er1
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } && {
10441 test -z "$ac_c_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest.$ac_objext; then
10444 ac_header_compiler=yes
10445 else
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_header_compiler=no
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10454 echo "${ECHO_T}$ac_header_compiler" >&6; }
10456 # Is the header present?
10457 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10458 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10459 cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h. */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 #include <elf.h>
10466 _ACEOF
10467 if { (ac_try="$ac_cpp conftest.$ac_ext"
10468 case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } >/dev/null && {
10480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 }; then
10483 ac_header_preproc=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_header_preproc=no
10491 rm -f conftest.err conftest.$ac_ext
10492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10493 echo "${ECHO_T}$ac_header_preproc" >&6; }
10495 # So? What about this header?
10496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10497 yes:no: )
10498 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10499 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10501 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10502 ac_header_preproc=yes
10504 no:yes:* )
10505 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10506 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10508 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10510 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10512 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10516 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10519 esac
10520 { echo "$as_me:$LINENO: checking for elf.h" >&5
10521 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10522 if test "${ac_cv_header_elf_h+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525 ac_cv_header_elf_h=$ac_header_preproc
10527 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10528 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10531 if test $ac_cv_header_elf_h = yes; then
10532 HAS_ELF=1
10536 if test "$HAS_ELF" = 1; then
10538 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10539 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10540 if test "${ac_cv_lib_elf_main+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 else
10543 ac_check_lib_save_LIBS=$LIBS
10544 LIBS="-lelf $LIBS"
10545 cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h. */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10554 main ()
10556 return main ();
10558 return 0;
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (ac_try="$ac_link"
10563 case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566 esac
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_link") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } && {
10575 test -z "$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 } && test -s conftest$ac_exeext &&
10578 $as_test_x conftest$ac_exeext; then
10579 ac_cv_lib_elf_main=yes
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10584 ac_cv_lib_elf_main=no
10587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LIBS=$ac_check_lib_save_LIBS
10591 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10592 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10593 if test $ac_cv_lib_elf_main = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_LIBELF 1
10596 _ACEOF
10598 LIBS="-lelf $LIBS"
10609 ac_header_dirent=no
10610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10611 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10612 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 else
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h. */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 #include <sys/types.h>
10624 #include <$ac_hdr>
10627 main ()
10629 if ((DIR *) 0)
10630 return 0;
10632 return 0;
10634 _ACEOF
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_compile") 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && {
10649 test -z "$ac_c_werror_flag" ||
10650 test ! -s conftest.err
10651 } && test -s conftest.$ac_objext; then
10652 eval "$as_ac_Header=yes"
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 eval "$as_ac_Header=no"
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 ac_res=`eval echo '${'$as_ac_Header'}'`
10663 { echo "$as_me:$LINENO: result: $ac_res" >&5
10664 echo "${ECHO_T}$ac_res" >&6; }
10665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10668 _ACEOF
10670 ac_header_dirent=$ac_hdr; break
10673 done
10674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10675 if test $ac_header_dirent = dirent.h; then
10676 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10677 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10678 if test "${ac_cv_search_opendir+set}" = set; then
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681 ac_func_search_save_LIBS=$LIBS
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10692 #ifdef __cplusplus
10693 extern "C"
10694 #endif
10695 char opendir ();
10697 main ()
10699 return opendir ();
10701 return 0;
10703 _ACEOF
10704 for ac_lib in '' dir; do
10705 if test -z "$ac_lib"; then
10706 ac_res="none required"
10707 else
10708 ac_res=-l$ac_lib
10709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_link") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext &&
10728 $as_test_x conftest$ac_exeext; then
10729 ac_cv_search_opendir=$ac_res
10730 else
10731 echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738 conftest$ac_exeext
10739 if test "${ac_cv_search_opendir+set}" = set; then
10740 break
10742 done
10743 if test "${ac_cv_search_opendir+set}" = set; then
10745 else
10746 ac_cv_search_opendir=no
10748 rm conftest.$ac_ext
10749 LIBS=$ac_func_search_save_LIBS
10751 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10752 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10753 ac_res=$ac_cv_search_opendir
10754 if test "$ac_res" != no; then
10755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10759 else
10760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10762 if test "${ac_cv_search_opendir+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 ac_func_search_save_LIBS=$LIBS
10766 cat >conftest.$ac_ext <<_ACEOF
10767 /* confdefs.h. */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10773 /* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char opendir ();
10781 main ()
10783 return opendir ();
10785 return 0;
10787 _ACEOF
10788 for ac_lib in '' x; do
10789 if test -z "$ac_lib"; then
10790 ac_res="none required"
10791 else
10792 ac_res=-l$ac_lib
10793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (ac_try="$ac_link"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_link") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest$ac_exeext &&
10812 $as_test_x conftest$ac_exeext; then
10813 ac_cv_search_opendir=$ac_res
10814 else
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10822 conftest$ac_exeext
10823 if test "${ac_cv_search_opendir+set}" = set; then
10824 break
10826 done
10827 if test "${ac_cv_search_opendir+set}" = set; then
10829 else
10830 ac_cv_search_opendir=no
10832 rm conftest.$ac_ext
10833 LIBS=$ac_func_search_save_LIBS
10835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10837 ac_res=$ac_cv_search_opendir
10838 if test "$ac_res" != no; then
10839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10846 if test $ac_cv_header_sys_wait_h = no; then
10847 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10848 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <sys/wait.h>
10857 main ()
10859 union wait xx, yy; xx = yy
10861 return 0;
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest.$ac_objext; then
10881 { echo "$as_me:$LINENO: result: yes" >&5
10882 echo "${ECHO_T}yes" >&6; }
10883 cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_SYS_WAIT_H 1
10885 _ACEOF
10887 cat >>confdefs.h <<\_ACEOF
10888 #define HAVE_UNION_WAIT 1
10889 _ACEOF
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 { echo "$as_me:$LINENO: result: no" >&5
10896 echo "${ECHO_T}no" >&6; }
10899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10943 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10944 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10945 sys/resource.h sys/systeminfo.h locale.h \
10946 sys/stream.h termios.h libc.h sys/statfs.h \
10947 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10948 libgen.h util/debug.h util/msg18n.h frame.h \
10949 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
10951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 ac_res=`eval echo '${'$as_ac_Header'}'`
10959 { echo "$as_me:$LINENO: result: $ac_res" >&5
10960 echo "${ECHO_T}$ac_res" >&6; }
10961 else
10962 # Is the header compilable?
10963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971 $ac_includes_default
10972 #include <$ac_header>
10973 _ACEOF
10974 rm -f conftest.$ac_objext
10975 if { (ac_try="$ac_compile"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_compile") 2>conftest.er1
10982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } && {
10988 test -z "$ac_c_werror_flag" ||
10989 test ! -s conftest.err
10990 } && test -s conftest.$ac_objext; then
10991 ac_header_compiler=yes
10992 else
10993 echo "$as_me: failed program was:" >&5
10994 sed 's/^/| /' conftest.$ac_ext >&5
10996 ac_header_compiler=no
10999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11001 echo "${ECHO_T}$ac_header_compiler" >&6; }
11003 # Is the header present?
11004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <$ac_header>
11013 _ACEOF
11014 if { (ac_try="$ac_cpp conftest.$ac_ext"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } >/dev/null && {
11027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 }; then
11030 ac_header_preproc=yes
11031 else
11032 echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11035 ac_header_preproc=no
11038 rm -f conftest.err conftest.$ac_ext
11039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11040 echo "${ECHO_T}$ac_header_preproc" >&6; }
11042 # So? What about this header?
11043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11044 yes:no: )
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11046 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11048 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11049 ac_header_preproc=yes
11051 no:yes:* )
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11053 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11055 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11057 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11059 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11063 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11066 esac
11067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 else
11072 eval "$as_ac_Header=\$ac_header_preproc"
11074 ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076 echo "${ECHO_T}$ac_res" >&6; }
11079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11080 cat >>confdefs.h <<_ACEOF
11081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11082 _ACEOF
11086 done
11090 for ac_header in sys/ptem.h
11092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 #if defined HAVE_SYS_STREAM_H
11105 # include <sys/stream.h>
11106 #endif
11108 #include <$ac_header>
11109 _ACEOF
11110 rm -f conftest.$ac_objext
11111 if { (ac_try="$ac_compile"
11112 case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115 esac
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_compile") 2>conftest.er1
11118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest.$ac_objext; then
11127 eval "$as_ac_Header=yes"
11128 else
11129 echo "$as_me: failed program was:" >&5
11130 sed 's/^/| /' conftest.$ac_ext >&5
11132 eval "$as_ac_Header=no"
11135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11137 ac_res=`eval echo '${'$as_ac_Header'}'`
11138 { echo "$as_me:$LINENO: result: $ac_res" >&5
11139 echo "${ECHO_T}$ac_res" >&6; }
11140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11141 cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11143 _ACEOF
11147 done
11151 for ac_header in sys/sysctl.h
11153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h. */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h. */
11165 #if defined HAVE_SYS_PARAM_H
11166 # include <sys/param.h>
11167 #endif
11169 #include <$ac_header>
11170 _ACEOF
11171 rm -f conftest.$ac_objext
11172 if { (ac_try="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 eval "$as_ac_Header=yes"
11189 else
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11193 eval "$as_ac_Header=no"
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 ac_res=`eval echo '${'$as_ac_Header'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204 _ACEOF
11208 done
11212 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11213 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11221 #include <pthread.h>
11222 #include <pthread_np.h>
11224 main ()
11226 int i; i = 0;
11228 return 0;
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (ac_try="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest.$ac_objext; then
11248 { echo "$as_me:$LINENO: result: yes" >&5
11249 echo "${ECHO_T}yes" >&6; }
11250 cat >>confdefs.h <<\_ACEOF
11251 #define HAVE_PTHREAD_NP_H 1
11252 _ACEOF
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 { echo "$as_me:$LINENO: result: no" >&5
11259 echo "${ECHO_T}no" >&6; }
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 for ac_header in strings.h
11267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11277 else
11278 # Is the header compilable?
11279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 #include <$ac_header>
11289 _ACEOF
11290 rm -f conftest.$ac_objext
11291 if { (ac_try="$ac_compile"
11292 case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } && {
11304 test -z "$ac_c_werror_flag" ||
11305 test ! -s conftest.err
11306 } && test -s conftest.$ac_objext; then
11307 ac_header_compiler=yes
11308 else
11309 echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11312 ac_header_compiler=no
11315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11317 echo "${ECHO_T}$ac_header_compiler" >&6; }
11319 # Is the header present?
11320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <$ac_header>
11329 _ACEOF
11330 if { (ac_try="$ac_cpp conftest.$ac_ext"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null && {
11343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 }; then
11346 ac_header_preproc=yes
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_preproc=no
11354 rm -f conftest.err conftest.$ac_ext
11355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11356 echo "${ECHO_T}$ac_header_preproc" >&6; }
11358 # So? What about this header?
11359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11360 yes:no: )
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11365 ac_header_preproc=yes
11367 no:yes:* )
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11382 esac
11383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 eval "$as_ac_Header=\$ac_header_preproc"
11390 ac_res=`eval echo '${'$as_ac_Header'}'`
11391 { echo "$as_me:$LINENO: result: $ac_res" >&5
11392 echo "${ECHO_T}$ac_res" >&6; }
11395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398 _ACEOF
11402 done
11404 if test "x$MACOSX" = "xyes"; then
11405 cat >>confdefs.h <<\_ACEOF
11406 #define NO_STRINGS_WITH_STRING_H 1
11407 _ACEOF
11409 else
11411 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11412 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11413 cppflags_save=$CPPFLAGS
11414 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11422 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11423 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11424 /* but don't do it on AIX 5.1 (Uribarri) */
11425 #endif
11426 #ifdef HAVE_XM_XM_H
11427 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11428 #endif
11429 #ifdef HAVE_STRING_H
11430 # include <string.h>
11431 #endif
11432 #if defined(HAVE_STRINGS_H)
11433 # include <strings.h>
11434 #endif
11437 main ()
11439 int i; i = 0;
11441 return 0;
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest.$ac_objext; then
11461 { echo "$as_me:$LINENO: result: yes" >&5
11462 echo "${ECHO_T}yes" >&6; }
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 cat >>confdefs.h <<\_ACEOF
11468 #define NO_STRINGS_WITH_STRING_H 1
11469 _ACEOF
11471 { echo "$as_me:$LINENO: result: no" >&5
11472 echo "${ECHO_T}no" >&6; }
11475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 CPPFLAGS=$cppflags_save
11479 if test $ac_cv_c_compiler_gnu = yes; then
11480 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11481 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11482 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 ac_pattern="Autoconf.*'x'"
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <sgtty.h>
11493 Autoconf TIOCGETP
11494 _ACEOF
11495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11496 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11497 ac_cv_prog_gcc_traditional=yes
11498 else
11499 ac_cv_prog_gcc_traditional=no
11501 rm -f -r conftest*
11504 if test $ac_cv_prog_gcc_traditional = no; then
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h. */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 #include <termio.h>
11512 Autoconf TCGETA
11513 _ACEOF
11514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11515 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11516 ac_cv_prog_gcc_traditional=yes
11518 rm -f -r conftest*
11522 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11523 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11524 if test $ac_cv_prog_gcc_traditional = yes; then
11525 CC="$CC -traditional"
11529 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11530 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11531 if test "${ac_cv_c_const+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533 else
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11542 main ()
11544 /* FIXME: Include the comments suggested by Paul. */
11545 #ifndef __cplusplus
11546 /* Ultrix mips cc rejects this. */
11547 typedef int charset[2];
11548 const charset cs;
11549 /* SunOS 4.1.1 cc rejects this. */
11550 char const *const *pcpcc;
11551 char **ppc;
11552 /* NEC SVR4.0.2 mips cc rejects this. */
11553 struct point {int x, y;};
11554 static struct point const zero = {0,0};
11555 /* AIX XL C 1.02.0.0 rejects this.
11556 It does not let you subtract one const X* pointer from another in
11557 an arm of an if-expression whose if-part is not a constant
11558 expression */
11559 const char *g = "string";
11560 pcpcc = &g + (g ? g-g : 0);
11561 /* HPUX 7.0 cc rejects these. */
11562 ++pcpcc;
11563 ppc = (char**) pcpcc;
11564 pcpcc = (char const *const *) ppc;
11565 { /* SCO 3.2v4 cc rejects this. */
11566 char *t;
11567 char const *s = 0 ? (char *) 0 : (char const *) 0;
11569 *t++ = 0;
11570 if (s) return 0;
11572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11573 int x[] = {25, 17};
11574 const int *foo = &x[0];
11575 ++foo;
11577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11578 typedef const int *iptr;
11579 iptr p = 0;
11580 ++p;
11582 { /* AIX XL C 1.02.0.0 rejects this saying
11583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11584 struct s { int j; const int *ap[3]; };
11585 struct s *b; b->j = 5;
11587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11588 const int foo = 10;
11589 if (!foo) return 0;
11591 return !cs[0] && !zero.x;
11592 #endif
11595 return 0;
11597 _ACEOF
11598 rm -f conftest.$ac_objext
11599 if { (ac_try="$ac_compile"
11600 case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_compile") 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } && {
11612 test -z "$ac_c_werror_flag" ||
11613 test ! -s conftest.err
11614 } && test -s conftest.$ac_objext; then
11615 ac_cv_c_const=yes
11616 else
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11620 ac_cv_c_const=no
11623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11626 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11627 if test $ac_cv_c_const = no; then
11629 cat >>confdefs.h <<\_ACEOF
11630 #define const
11631 _ACEOF
11635 { echo "$as_me:$LINENO: checking for working volatile" >&5
11636 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11637 if test "${ac_cv_c_volatile+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11648 main ()
11651 volatile int x;
11652 int * volatile y = (int *) 0;
11653 return !x && !y;
11655 return 0;
11657 _ACEOF
11658 rm -f conftest.$ac_objext
11659 if { (ac_try="$ac_compile"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_compile") 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } && {
11672 test -z "$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11674 } && test -s conftest.$ac_objext; then
11675 ac_cv_c_volatile=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_cv_c_volatile=no
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11685 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11686 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11687 if test $ac_cv_c_volatile = no; then
11689 cat >>confdefs.h <<\_ACEOF
11690 #define volatile
11691 _ACEOF
11695 { echo "$as_me:$LINENO: checking for mode_t" >&5
11696 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11697 if test "${ac_cv_type_mode_t+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 else
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 $ac_includes_default
11707 typedef mode_t ac__type_new_;
11709 main ()
11711 if ((ac__type_new_ *) 0)
11712 return 0;
11713 if (sizeof (ac__type_new_))
11714 return 0;
11716 return 0;
11718 _ACEOF
11719 rm -f conftest.$ac_objext
11720 if { (ac_try="$ac_compile"
11721 case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11724 esac
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_compile") 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && {
11733 test -z "$ac_c_werror_flag" ||
11734 test ! -s conftest.err
11735 } && test -s conftest.$ac_objext; then
11736 ac_cv_type_mode_t=yes
11737 else
11738 echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11741 ac_cv_type_mode_t=no
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11747 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11748 if test $ac_cv_type_mode_t = yes; then
11750 else
11752 cat >>confdefs.h <<_ACEOF
11753 #define mode_t int
11754 _ACEOF
11758 { echo "$as_me:$LINENO: checking for off_t" >&5
11759 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11760 if test "${ac_cv_type_off_t+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h. */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 $ac_includes_default
11770 typedef off_t ac__type_new_;
11772 main ()
11774 if ((ac__type_new_ *) 0)
11775 return 0;
11776 if (sizeof (ac__type_new_))
11777 return 0;
11779 return 0;
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_c_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest.$ac_objext; then
11799 ac_cv_type_off_t=yes
11800 else
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11804 ac_cv_type_off_t=no
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11810 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11811 if test $ac_cv_type_off_t = yes; then
11813 else
11815 cat >>confdefs.h <<_ACEOF
11816 #define off_t long int
11817 _ACEOF
11821 { echo "$as_me:$LINENO: checking for pid_t" >&5
11822 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11823 if test "${ac_cv_type_pid_t+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h. */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h. */
11832 $ac_includes_default
11833 typedef pid_t ac__type_new_;
11835 main ()
11837 if ((ac__type_new_ *) 0)
11838 return 0;
11839 if (sizeof (ac__type_new_))
11840 return 0;
11842 return 0;
11844 _ACEOF
11845 rm -f conftest.$ac_objext
11846 if { (ac_try="$ac_compile"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850 esac
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_compile") 2>conftest.er1
11853 ac_status=$?
11854 grep -v '^ *+' conftest.er1 >conftest.err
11855 rm -f conftest.er1
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && {
11859 test -z "$ac_c_werror_flag" ||
11860 test ! -s conftest.err
11861 } && test -s conftest.$ac_objext; then
11862 ac_cv_type_pid_t=yes
11863 else
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 ac_cv_type_pid_t=no
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11873 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11874 if test $ac_cv_type_pid_t = yes; then
11876 else
11878 cat >>confdefs.h <<_ACEOF
11879 #define pid_t int
11880 _ACEOF
11884 { echo "$as_me:$LINENO: checking for size_t" >&5
11885 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11886 if test "${ac_cv_type_size_t+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 else
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895 $ac_includes_default
11896 typedef size_t ac__type_new_;
11898 main ()
11900 if ((ac__type_new_ *) 0)
11901 return 0;
11902 if (sizeof (ac__type_new_))
11903 return 0;
11905 return 0;
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.$ac_objext; then
11925 ac_cv_type_size_t=yes
11926 else
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_cv_type_size_t=no
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11936 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11937 if test $ac_cv_type_size_t = yes; then
11939 else
11941 cat >>confdefs.h <<_ACEOF
11942 #define size_t unsigned int
11943 _ACEOF
11947 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11948 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11949 if test "${ac_cv_type_uid_t+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 #include <sys/types.h>
11960 _ACEOF
11961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11962 $EGREP "uid_t" >/dev/null 2>&1; then
11963 ac_cv_type_uid_t=yes
11964 else
11965 ac_cv_type_uid_t=no
11967 rm -f -r conftest*
11970 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11971 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11972 if test $ac_cv_type_uid_t = no; then
11974 cat >>confdefs.h <<\_ACEOF
11975 #define uid_t int
11976 _ACEOF
11979 cat >>confdefs.h <<\_ACEOF
11980 #define gid_t int
11981 _ACEOF
11985 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11986 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11987 if test "${ac_cv_header_time+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 else
11990 cat >conftest.$ac_ext <<_ACEOF
11991 /* confdefs.h. */
11992 _ACEOF
11993 cat confdefs.h >>conftest.$ac_ext
11994 cat >>conftest.$ac_ext <<_ACEOF
11995 /* end confdefs.h. */
11996 #include <sys/types.h>
11997 #include <sys/time.h>
11998 #include <time.h>
12001 main ()
12003 if ((struct tm *) 0)
12004 return 0;
12006 return 0;
12008 _ACEOF
12009 rm -f conftest.$ac_objext
12010 if { (ac_try="$ac_compile"
12011 case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_compile") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest.$ac_objext; then
12026 ac_cv_header_time=yes
12027 else
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_header_time=no
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12037 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12038 if test $ac_cv_header_time = yes; then
12040 cat >>confdefs.h <<\_ACEOF
12041 #define TIME_WITH_SYS_TIME 1
12042 _ACEOF
12046 { echo "$as_me:$LINENO: checking for ino_t" >&5
12047 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12048 if test "${ac_cv_type_ino_t+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051 cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h. */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12057 $ac_includes_default
12058 typedef ino_t ac__type_new_;
12060 main ()
12062 if ((ac__type_new_ *) 0)
12063 return 0;
12064 if (sizeof (ac__type_new_))
12065 return 0;
12067 return 0;
12069 _ACEOF
12070 rm -f conftest.$ac_objext
12071 if { (ac_try="$ac_compile"
12072 case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12075 esac
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12078 ac_status=$?
12079 grep -v '^ *+' conftest.er1 >conftest.err
12080 rm -f conftest.er1
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && {
12084 test -z "$ac_c_werror_flag" ||
12085 test ! -s conftest.err
12086 } && test -s conftest.$ac_objext; then
12087 ac_cv_type_ino_t=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_cv_type_ino_t=no
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12098 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12099 if test $ac_cv_type_ino_t = yes; then
12101 else
12103 cat >>confdefs.h <<_ACEOF
12104 #define ino_t long
12105 _ACEOF
12109 { echo "$as_me:$LINENO: checking for dev_t" >&5
12110 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12111 if test "${ac_cv_type_dev_t+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 $ac_includes_default
12121 typedef dev_t ac__type_new_;
12123 main ()
12125 if ((ac__type_new_ *) 0)
12126 return 0;
12127 if (sizeof (ac__type_new_))
12128 return 0;
12130 return 0;
12132 _ACEOF
12133 rm -f conftest.$ac_objext
12134 if { (ac_try="$ac_compile"
12135 case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138 esac
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_compile") 2>conftest.er1
12141 ac_status=$?
12142 grep -v '^ *+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } && {
12147 test -z "$ac_c_werror_flag" ||
12148 test ! -s conftest.err
12149 } && test -s conftest.$ac_objext; then
12150 ac_cv_type_dev_t=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_cv_type_dev_t=no
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12161 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12162 if test $ac_cv_type_dev_t = yes; then
12164 else
12166 cat >>confdefs.h <<_ACEOF
12167 #define dev_t unsigned
12168 _ACEOF
12173 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12174 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12175 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12176 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12177 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12178 else
12179 cat >conftest.$ac_ext <<_ACEOF
12180 /* confdefs.h. */
12181 _ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12186 #include <sys/types.h>
12187 #if STDC_HEADERS
12188 # include <stdlib.h>
12189 # include <stddef.h>
12190 #endif
12191 #ifdef HAVE_SYS_RESOURCE_H
12192 # include <sys/resource.h>
12193 #endif
12195 _ACEOF
12196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12197 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12198 ac_cv_type_rlim_t=yes
12199 else
12200 ac_cv_type_rlim_t=no
12202 rm -f -r conftest*
12204 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12205 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12207 if test $ac_cv_type_rlim_t = no; then
12208 cat >> confdefs.h <<\EOF
12209 #define rlim_t unsigned long
12213 { echo "$as_me:$LINENO: checking for stack_t" >&5
12214 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12215 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12216 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12217 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12218 else
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12226 #include <sys/types.h>
12227 #if STDC_HEADERS
12228 # include <stdlib.h>
12229 # include <stddef.h>
12230 #endif
12231 #include <signal.h>
12233 _ACEOF
12234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12235 $EGREP "stack_t" >/dev/null 2>&1; then
12236 ac_cv_type_stack_t=yes
12237 else
12238 ac_cv_type_stack_t=no
12240 rm -f -r conftest*
12242 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12243 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12245 if test $ac_cv_type_stack_t = no; then
12246 cat >> confdefs.h <<\EOF
12247 #define stack_t struct sigaltstack
12251 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12252 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 #include <sys/types.h>
12261 #if STDC_HEADERS
12262 # include <stdlib.h>
12263 # include <stddef.h>
12264 #endif
12265 #include <signal.h>
12266 #include "confdefs.h"
12269 main ()
12271 stack_t sigstk; sigstk.ss_base = 0;
12273 return 0;
12275 _ACEOF
12276 rm -f conftest.$ac_objext
12277 if { (ac_try="$ac_compile"
12278 case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281 esac
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_compile") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest.$ac_objext; then
12293 { echo "$as_me:$LINENO: result: yes" >&5
12294 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12295 #define HAVE_SS_BASE 1
12296 _ACEOF
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 { echo "$as_me:$LINENO: result: no" >&5
12303 echo "${ECHO_T}no" >&6; }
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 olibs="$LIBS"
12309 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12310 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12312 # Check whether --with-tlib was given.
12313 if test "${with_tlib+set}" = set; then
12314 withval=$with_tlib;
12317 if test -n "$with_tlib"; then
12318 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12319 echo "${ECHO_T}$with_tlib" >&6; }
12320 LIBS="$LIBS -l$with_tlib"
12321 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12322 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12323 cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h. */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12331 main ()
12335 return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (ac_try="$ac_link"
12340 case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_link") 2>conftest.er1
12346 ac_status=$?
12347 grep -v '^ *+' conftest.er1 >conftest.err
12348 rm -f conftest.er1
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest$ac_exeext &&
12355 $as_test_x conftest$ac_exeext; then
12356 { echo "$as_me:$LINENO: result: OK" >&5
12357 echo "${ECHO_T}OK" >&6; }
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 { { echo "$as_me:$LINENO: error: FAILED" >&5
12363 echo "$as_me: error: FAILED" >&2;}
12364 { (exit 1); exit 1; }; }
12367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12368 conftest$ac_exeext conftest.$ac_ext
12369 olibs="$LIBS"
12370 else
12371 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12372 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12373 case "`uname -s 2>/dev/null`" in
12374 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12375 *) tlibs="ncurses termlib termcap curses";;
12376 esac
12377 for libname in $tlibs; do
12379 as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12380 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12381 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 ac_check_lib_save_LIBS=$LIBS
12386 LIBS="-l${libname} $LIBS"
12387 cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h. */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397 #ifdef __cplusplus
12398 extern "C"
12399 #endif
12400 char tgetent ();
12402 main ()
12404 return tgetent ();
12406 return 0;
12408 _ACEOF
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (ac_try="$ac_link"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest$ac_exeext &&
12426 $as_test_x conftest$ac_exeext; then
12427 eval "$as_ac_Lib=yes"
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 eval "$as_ac_Lib=no"
12435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12439 ac_res=`eval echo '${'$as_ac_Lib'}'`
12440 { echo "$as_me:$LINENO: result: $ac_res" >&5
12441 echo "${ECHO_T}$ac_res" >&6; }
12442 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12443 cat >>confdefs.h <<_ACEOF
12444 #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12445 _ACEOF
12447 LIBS="-l${libname} $LIBS"
12451 if test "x$olibs" != "x$LIBS"; then
12452 if test "$cross_compiling" = yes; then
12453 res="FAIL"
12454 else
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h. */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12462 #ifdef HAVE_TERMCAP_H
12463 # include <termcap.h>
12464 #endif
12465 #if STDC_HEADERS
12466 # include <stdlib.h>
12467 # include <stddef.h>
12468 #endif
12469 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12470 _ACEOF
12471 rm -f conftest$ac_exeext
12472 if { (ac_try="$ac_link"
12473 case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476 esac
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_link") 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12482 { (case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12485 esac
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 res="OK"
12492 else
12493 echo "$as_me: program exited with status $ac_status" >&5
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12497 ( exit $ac_status )
12498 res="FAIL"
12500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12504 if test "$res" = "OK"; then
12505 break
12507 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12508 echo "${ECHO_T}$libname library is not usable" >&6; }
12509 LIBS="$olibs"
12511 done
12512 if test "x$olibs" = "x$LIBS"; then
12513 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12514 echo "${ECHO_T}no terminal library found" >&6; }
12518 if test "x$olibs" = "x$LIBS"; then
12519 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12520 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12529 main ()
12531 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12533 return 0;
12535 _ACEOF
12536 rm -f conftest.$ac_objext conftest$ac_exeext
12537 if { (ac_try="$ac_link"
12538 case "(($ac_try" in
12539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12541 esac
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_link") 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest$ac_exeext &&
12553 $as_test_x conftest$ac_exeext; then
12554 { echo "$as_me:$LINENO: result: yes" >&5
12555 echo "${ECHO_T}yes" >&6; }
12556 else
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12560 { { echo "$as_me:$LINENO: error: NOT FOUND!
12561 You need to install a terminal library; for example ncurses.
12562 Or specify the name of the library with --with-tlib." >&5
12563 echo "$as_me: error: NOT FOUND!
12564 You need to install a terminal library; for example ncurses.
12565 Or specify the name of the library with --with-tlib." >&2;}
12566 { (exit 1); exit 1; }; }
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570 conftest$ac_exeext conftest.$ac_ext
12573 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12574 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12575 if test "${vim_cv_terminfo+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12579 if test "$cross_compiling" = yes; then
12581 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12582 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12583 { (exit 1); exit 1; }; }
12585 else
12586 cat >conftest.$ac_ext <<_ACEOF
12588 #include "confdefs.h"
12589 #ifdef HAVE_TERMCAP_H
12590 # include <termcap.h>
12591 #endif
12592 #ifdef HAVE_STRING_H
12593 # include <string.h>
12594 #endif
12595 #if STDC_HEADERS
12596 # include <stdlib.h>
12597 # include <stddef.h>
12598 #endif
12599 main()
12600 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12602 _ACEOF
12603 rm -f conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608 esac
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>&5
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12624 vim_cv_terminfo=no
12626 else
12627 echo "$as_me: program exited with status $ac_status" >&5
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 ( exit $ac_status )
12633 vim_cv_terminfo=yes
12636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12642 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12643 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12645 if test "x$vim_cv_terminfo" = "xyes" ; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define TERMINFO 1
12648 _ACEOF
12652 if test "x$olibs" != "x$LIBS"; then
12653 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12654 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12655 if test "${vim_cv_tgent+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657 else
12659 if test "$cross_compiling" = yes; then
12661 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12662 echo "$as_me: error: failed to compile test program." >&2;}
12663 { (exit 1); exit 1; }; }
12665 else
12666 cat >conftest.$ac_ext <<_ACEOF
12668 #include "confdefs.h"
12669 #ifdef HAVE_TERMCAP_H
12670 # include <termcap.h>
12671 #endif
12672 #if STDC_HEADERS
12673 # include <stdlib.h>
12674 # include <stddef.h>
12675 #endif
12676 main()
12677 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12679 _ACEOF
12680 rm -f conftest$ac_exeext
12681 if { (ac_try="$ac_link"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12691 { (case "(($ac_try" in
12692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12693 *) ac_try_echo=$ac_try;;
12694 esac
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_try") 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12701 vim_cv_tgent=zero
12703 else
12704 echo "$as_me: program exited with status $ac_status" >&5
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ( exit $ac_status )
12710 vim_cv_tgent=non-zero
12713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12719 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12720 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12722 if test "x$vim_cv_tgent" = "xzero" ; then
12723 cat >>confdefs.h <<\_ACEOF
12724 #define TGETENT_ZERO_ERR 0
12725 _ACEOF
12730 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12731 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12739 #ifdef HAVE_TERMCAP_H
12740 # include <termcap.h>
12741 #endif
12744 main ()
12746 ospeed = 20000
12748 return 0;
12750 _ACEOF
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (ac_try="$ac_link"
12753 case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_link") 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest$ac_exeext &&
12768 $as_test_x conftest$ac_exeext; then
12769 { echo "$as_me:$LINENO: result: yes" >&5
12770 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12771 #define HAVE_OSPEED 1
12772 _ACEOF
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 { echo "$as_me:$LINENO: result: no" >&5
12779 echo "${ECHO_T}no" >&6; }
12780 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12781 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12782 cat >conftest.$ac_ext <<_ACEOF
12783 /* confdefs.h. */
12784 _ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12789 #ifdef HAVE_TERMCAP_H
12790 # include <termcap.h>
12791 #endif
12792 extern short ospeed;
12795 main ()
12797 ospeed = 20000
12799 return 0;
12801 _ACEOF
12802 rm -f conftest.$ac_objext conftest$ac_exeext
12803 if { (ac_try="$ac_link"
12804 case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
12810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } && {
12816 test -z "$ac_c_werror_flag" ||
12817 test ! -s conftest.err
12818 } && test -s conftest$ac_exeext &&
12819 $as_test_x conftest$ac_exeext; then
12820 { echo "$as_me:$LINENO: result: yes" >&5
12821 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12822 #define OSPEED_EXTERN 1
12823 _ACEOF
12825 else
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12829 { echo "$as_me:$LINENO: result: no" >&5
12830 echo "${ECHO_T}no" >&6; }
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12839 conftest$ac_exeext conftest.$ac_ext
12841 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12842 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12850 #ifdef HAVE_TERMCAP_H
12851 # include <termcap.h>
12852 #endif
12855 main ()
12857 if (UP == 0 && BC == 0) PC = 1
12859 return 0;
12861 _ACEOF
12862 rm -f conftest.$ac_objext conftest$ac_exeext
12863 if { (ac_try="$ac_link"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_link") 2>conftest.er1
12870 ac_status=$?
12871 grep -v '^ *+' conftest.er1 >conftest.err
12872 rm -f conftest.er1
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest$ac_exeext &&
12879 $as_test_x conftest$ac_exeext; then
12880 { echo "$as_me:$LINENO: result: yes" >&5
12881 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_UP_BC_PC 1
12883 _ACEOF
12885 else
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 { echo "$as_me:$LINENO: result: no" >&5
12890 echo "${ECHO_T}no" >&6; }
12891 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12892 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h. */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12900 #ifdef HAVE_TERMCAP_H
12901 # include <termcap.h>
12902 #endif
12903 extern char *UP, *BC, PC;
12906 main ()
12908 if (UP == 0 && BC == 0) PC = 1
12910 return 0;
12912 _ACEOF
12913 rm -f conftest.$ac_objext conftest$ac_exeext
12914 if { (ac_try="$ac_link"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && {
12927 test -z "$ac_c_werror_flag" ||
12928 test ! -s conftest.err
12929 } && test -s conftest$ac_exeext &&
12930 $as_test_x conftest$ac_exeext; then
12931 { echo "$as_me:$LINENO: result: yes" >&5
12932 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12933 #define UP_BC_PC_EXTERN 1
12934 _ACEOF
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 { echo "$as_me:$LINENO: result: no" >&5
12941 echo "${ECHO_T}no" >&6; }
12944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12945 conftest$ac_exeext conftest.$ac_ext
12949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12950 conftest$ac_exeext conftest.$ac_ext
12952 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12953 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h. */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 #ifdef HAVE_TERMCAP_H
12962 # include <termcap.h>
12963 #endif
12966 main ()
12968 extern int xx(); tputs("test", 1, (outfuntype)xx)
12970 return 0;
12972 _ACEOF
12973 rm -f conftest.$ac_objext
12974 if { (ac_try="$ac_compile"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_compile") 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } && {
12987 test -z "$ac_c_werror_flag" ||
12988 test ! -s conftest.err
12989 } && test -s conftest.$ac_objext; then
12990 { echo "$as_me:$LINENO: result: yes" >&5
12991 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_OUTFUNTYPE 1
12993 _ACEOF
12995 else
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 { echo "$as_me:$LINENO: result: no" >&5
13000 echo "${ECHO_T}no" >&6; }
13003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13006 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13014 #include <sys/types.h>
13015 #include <sys/time.h>
13016 #include <sys/select.h>
13018 main ()
13022 return 0;
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (ac_try="$ac_compile"
13027 case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_compile") 2>conftest.er1
13033 ac_status=$?
13034 grep -v '^ *+' conftest.er1 >conftest.err
13035 rm -f conftest.er1
13036 cat conftest.err >&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); } && {
13039 test -z "$ac_c_werror_flag" ||
13040 test ! -s conftest.err
13041 } && test -s conftest.$ac_objext; then
13042 { echo "$as_me:$LINENO: result: yes" >&5
13043 echo "${ECHO_T}yes" >&6; }
13044 cat >>confdefs.h <<\_ACEOF
13045 #define SYS_SELECT_WITH_SYS_TIME 1
13046 _ACEOF
13048 else
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13060 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13061 if test -r /dev/ptc; then
13062 cat >>confdefs.h <<\_ACEOF
13063 #define HAVE_DEV_PTC 1
13064 _ACEOF
13066 { echo "$as_me:$LINENO: result: yes" >&5
13067 echo "${ECHO_T}yes" >&6; }
13068 else
13069 { echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6; }
13073 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13074 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13075 if test -c /dev/ptmx ; then
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h. */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13084 main ()
13086 ptsname(0);grantpt(0);unlockpt(0);
13088 return 0;
13090 _ACEOF
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (ac_try="$ac_link"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_link") 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest$ac_exeext &&
13108 $as_test_x conftest$ac_exeext; then
13109 { echo "$as_me:$LINENO: result: yes" >&5
13110 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13111 #define HAVE_SVR4_PTYS 1
13112 _ACEOF
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 { echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6; }
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124 else
13125 { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13129 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13130 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13131 if test -d /dev/ptym ; then
13132 pdir='/dev/ptym'
13133 else
13134 pdir='/dev'
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 #ifdef M_UNIX
13143 yes;
13144 #endif
13146 _ACEOF
13147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13148 $EGREP "yes" >/dev/null 2>&1; then
13149 ptys=`echo /dev/ptyp??`
13150 else
13151 ptys=`echo $pdir/pty??`
13153 rm -f -r conftest*
13155 if test "$ptys" != "$pdir/pty??" ; then
13156 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13157 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13158 cat >>confdefs.h <<_ACEOF
13159 #define PTYRANGE0 "$p0"
13160 _ACEOF
13162 cat >>confdefs.h <<_ACEOF
13163 #define PTYRANGE1 "$p1"
13164 _ACEOF
13166 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13167 echo "${ECHO_T}$p0 / $p1" >&6; }
13168 else
13169 { echo "$as_me:$LINENO: result: don't know" >&5
13170 echo "${ECHO_T}don't know" >&6; }
13173 rm -f conftest_grp
13174 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13175 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13176 if test "${vim_cv_tty_group+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 else
13180 if test "$cross_compiling" = yes; then
13182 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13183 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13184 { (exit 1); exit 1; }; }
13186 else
13187 cat >conftest.$ac_ext <<_ACEOF
13189 #include "confdefs.h"
13190 #include <sys/types.h>
13191 #if STDC_HEADERS
13192 # include <stdlib.h>
13193 # include <stddef.h>
13194 #endif
13195 #ifdef HAVE_UNISTD_H
13196 #include <unistd.h>
13197 #endif
13198 #include <sys/stat.h>
13199 #include <stdio.h>
13200 main()
13202 struct stat sb;
13203 char *x,*ttyname();
13204 int om, m;
13205 FILE *fp;
13207 if (!(x = ttyname(0))) exit(1);
13208 if (stat(x, &sb)) exit(1);
13209 om = sb.st_mode;
13210 if (om & 002) exit(0);
13211 m = system("mesg y");
13212 if (m == -1 || m == 127) exit(1);
13213 if (stat(x, &sb)) exit(1);
13214 m = sb.st_mode;
13215 if (chmod(x, om)) exit(1);
13216 if (m & 002) exit(0);
13217 if (sb.st_gid == getgid()) exit(1);
13218 if (!(fp=fopen("conftest_grp", "w")))
13219 exit(1);
13220 fprintf(fp, "%d\n", sb.st_gid);
13221 fclose(fp);
13222 exit(0);
13225 _ACEOF
13226 rm -f conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13237 { (case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240 esac
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_try") 2>&5
13243 ac_status=$?
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); }; }; then
13247 if test -f conftest_grp; then
13248 vim_cv_tty_group=`cat conftest_grp`
13249 if test "x$vim_cv_tty_mode" = "x" ; then
13250 vim_cv_tty_mode=0620
13252 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13253 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13254 else
13255 vim_cv_tty_group=world
13256 { echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13257 echo "${ECHO_T}ptys are world accessable" >&6; }
13260 else
13261 echo "$as_me: program exited with status $ac_status" >&5
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 ( exit $ac_status )
13267 vim_cv_tty_group=world
13268 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13269 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6; }
13272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13279 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13280 rm -f conftest_grp
13282 if test "x$vim_cv_tty_group" != "xworld" ; then
13283 cat >>confdefs.h <<_ACEOF
13284 #define PTYGROUP $vim_cv_tty_group
13285 _ACEOF
13287 if test "x$vim_cv_tty_mode" = "x" ; then
13288 { { 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
13289 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;}
13290 { (exit 1); exit 1; }; }
13291 else
13292 cat >>confdefs.h <<\_ACEOF
13293 #define PTYMODE 0620
13294 _ACEOF
13300 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13301 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13302 if test "${ac_cv_type_signal+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13304 else
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <sys/types.h>
13312 #include <signal.h>
13315 main ()
13317 return *(signal (0, 0)) (0) == 1;
13319 return 0;
13321 _ACEOF
13322 rm -f conftest.$ac_objext
13323 if { (ac_try="$ac_compile"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_compile") 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest.$ac_objext; then
13339 ac_cv_type_signal=int
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 ac_cv_type_signal=void
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13350 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13352 cat >>confdefs.h <<_ACEOF
13353 #define RETSIGTYPE $ac_cv_type_signal
13354 _ACEOF
13358 if test $ac_cv_type_signal = void; then
13359 cat >>confdefs.h <<\_ACEOF
13360 #define SIGRETURN return
13361 _ACEOF
13363 else
13364 cat >>confdefs.h <<\_ACEOF
13365 #define SIGRETURN return 0
13366 _ACEOF
13370 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13371 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 #include <signal.h>
13380 test_sig()
13382 struct sigcontext *scont;
13383 scont = (struct sigcontext *)0;
13384 return 1;
13387 main ()
13391 return 0;
13393 _ACEOF
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest.$ac_objext; then
13411 { echo "$as_me:$LINENO: result: yes" >&5
13412 echo "${ECHO_T}yes" >&6; }
13413 cat >>confdefs.h <<\_ACEOF
13414 #define HAVE_SIGCONTEXT 1
13415 _ACEOF
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 { echo "$as_me:$LINENO: result: no" >&5
13422 echo "${ECHO_T}no" >&6; }
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13428 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13429 if test "${vim_cv_getcwd_broken+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13433 if test "$cross_compiling" = yes; then
13435 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13436 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13437 { (exit 1); exit 1; }; }
13439 else
13440 cat >conftest.$ac_ext <<_ACEOF
13442 #include "confdefs.h"
13443 #ifdef HAVE_UNISTD_H
13444 #include <unistd.h>
13445 #endif
13446 char *dagger[] = { "IFS=pwd", 0 };
13447 main()
13449 char buffer[500];
13450 extern char **environ;
13451 environ = dagger;
13452 return getcwd(buffer, 500) ? 0 : 1;
13455 _ACEOF
13456 rm -f conftest$ac_exeext
13457 if { (ac_try="$ac_link"
13458 case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470 esac
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13477 vim_cv_getcwd_broken=no
13479 else
13480 echo "$as_me: program exited with status $ac_status" >&5
13481 echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13484 ( exit $ac_status )
13486 vim_cv_getcwd_broken=yes
13489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13495 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13496 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13498 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13499 cat >>confdefs.h <<\_ACEOF
13500 #define BAD_GETCWD 1
13501 _ACEOF
13551 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13552 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13553 memset nanosleep opendir putenv qsort readlink select setenv \
13554 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13555 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13556 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13557 usleep utime utimes
13559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565 cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h. */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13573 #define $ac_func innocuous_$ac_func
13575 /* System header to define __stub macros and hopefully few prototypes,
13576 which can conflict with char $ac_func (); below.
13577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13578 <limits.h> exists even on freestanding compilers. */
13580 #ifdef __STDC__
13581 # include <limits.h>
13582 #else
13583 # include <assert.h>
13584 #endif
13586 #undef $ac_func
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char $ac_func ();
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined __stub_$ac_func || defined __stub___$ac_func
13599 choke me
13600 #endif
13603 main ()
13605 return $ac_func ();
13607 return 0;
13609 _ACEOF
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615 esac
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_link") 2>conftest.er1
13618 ac_status=$?
13619 grep -v '^ *+' conftest.er1 >conftest.err
13620 rm -f conftest.er1
13621 cat conftest.err >&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } && {
13624 test -z "$ac_c_werror_flag" ||
13625 test ! -s conftest.err
13626 } && test -s conftest$ac_exeext &&
13627 $as_test_x conftest$ac_exeext; then
13628 eval "$as_ac_var=yes"
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 eval "$as_ac_var=no"
13636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13637 conftest$ac_exeext conftest.$ac_ext
13639 ac_res=`eval echo '${'$as_ac_var'}'`
13640 { echo "$as_me:$LINENO: result: $ac_res" >&5
13641 echo "${ECHO_T}$ac_res" >&6; }
13642 if test `eval echo '${'$as_ac_var'}'` = yes; then
13643 cat >>confdefs.h <<_ACEOF
13644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13645 _ACEOF
13648 done
13651 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13652 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&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. */
13659 #include <sys/types.h>
13660 #include <sys/stat.h>
13662 main ()
13664 struct stat st;
13665 int n;
13667 stat("/", &st);
13668 n = (int)st.st_blksize;
13670 return 0;
13672 _ACEOF
13673 rm -f conftest.$ac_objext
13674 if { (ac_try="$ac_compile"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 { echo "$as_me:$LINENO: result: yes" >&5
13691 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13692 #define HAVE_ST_BLKSIZE 1
13693 _ACEOF
13695 else
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 { echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6; }
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13706 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13707 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13711 if test "$cross_compiling" = yes; then
13713 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13714 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13715 { (exit 1); exit 1; }; }
13717 else
13718 cat >conftest.$ac_ext <<_ACEOF
13720 #include "confdefs.h"
13721 #if STDC_HEADERS
13722 # include <stdlib.h>
13723 # include <stddef.h>
13724 #endif
13725 #include <sys/types.h>
13726 #include <sys/stat.h>
13727 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13729 _ACEOF
13730 rm -f conftest$ac_exeext
13731 if { (ac_try="$ac_link"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_link") 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13741 { (case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13744 esac
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_try") 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13751 vim_cv_stat_ignores_slash=yes
13753 else
13754 echo "$as_me: program exited with status $ac_status" >&5
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ( exit $ac_status )
13760 vim_cv_stat_ignores_slash=no
13763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13769 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13770 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13772 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13773 cat >>confdefs.h <<\_ACEOF
13774 #define STAT_IGNORES_SLASH 1
13775 _ACEOF
13779 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13780 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13781 save_LIBS="$LIBS"
13782 LIBS="$LIBS -liconv"
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h. */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #ifdef HAVE_ICONV_H
13791 # include <iconv.h>
13792 #endif
13795 main ()
13797 iconv_open("fr", "to");
13799 return 0;
13801 _ACEOF
13802 rm -f conftest.$ac_objext conftest$ac_exeext
13803 if { (ac_try="$ac_link"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } && {
13816 test -z "$ac_c_werror_flag" ||
13817 test ! -s conftest.err
13818 } && test -s conftest$ac_exeext &&
13819 $as_test_x conftest$ac_exeext; then
13820 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13821 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
13822 #define HAVE_ICONV 1
13823 _ACEOF
13825 else
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 LIBS="$save_LIBS"
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h. */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13837 #ifdef HAVE_ICONV_H
13838 # include <iconv.h>
13839 #endif
13842 main ()
13844 iconv_open("fr", "to");
13846 return 0;
13848 _ACEOF
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (ac_try="$ac_link"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_link") 2>conftest.er1
13857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest$ac_exeext &&
13866 $as_test_x conftest$ac_exeext; then
13867 { echo "$as_me:$LINENO: result: yes" >&5
13868 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_ICONV 1
13870 _ACEOF
13872 else
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 { echo "$as_me:$LINENO: result: no" >&5
13877 echo "${ECHO_T}no" >&6; }
13880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13881 conftest$ac_exeext conftest.$ac_ext
13884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13885 conftest$ac_exeext conftest.$ac_ext
13888 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13889 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
13890 cat >conftest.$ac_ext <<_ACEOF
13891 /* confdefs.h. */
13892 _ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13897 #ifdef HAVE_LANGINFO_H
13898 # include <langinfo.h>
13899 #endif
13902 main ()
13904 char *cs = nl_langinfo(CODESET);
13906 return 0;
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (ac_try="$ac_link"
13911 case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_link") 2>conftest.er1
13917 ac_status=$?
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } && {
13923 test -z "$ac_c_werror_flag" ||
13924 test ! -s conftest.err
13925 } && test -s conftest$ac_exeext &&
13926 $as_test_x conftest$ac_exeext; then
13927 { echo "$as_me:$LINENO: result: yes" >&5
13928 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13929 #define HAVE_NL_LANGINFO_CODESET 1
13930 _ACEOF
13932 else
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 { echo "$as_me:$LINENO: result: no" >&5
13937 echo "${ECHO_T}no" >&6; }
13940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13941 conftest$ac_exeext conftest.$ac_ext
13944 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
13945 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
13946 if test "${ac_cv_lib_m_strtod+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-lm $LIBS"
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h. */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13958 /* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
13961 #ifdef __cplusplus
13962 extern "C"
13963 #endif
13964 char strtod ();
13966 main ()
13968 return strtod ();
13970 return 0;
13972 _ACEOF
13973 rm -f conftest.$ac_objext conftest$ac_exeext
13974 if { (ac_try="$ac_link"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_link") 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest$ac_exeext &&
13990 $as_test_x conftest$ac_exeext; then
13991 ac_cv_lib_m_strtod=yes
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13996 ac_cv_lib_m_strtod=no
13999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14000 conftest$ac_exeext conftest.$ac_ext
14001 LIBS=$ac_check_lib_save_LIBS
14003 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14004 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14005 if test $ac_cv_lib_m_strtod = yes; then
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_LIBM 1
14008 _ACEOF
14010 LIBS="-lm $LIBS"
14014 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14015 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h. */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 #ifdef HAVE_MATH_H
14024 # include <math.h>
14025 #endif
14026 #if STDC_HEADERS
14027 # include <stdlib.h>
14028 # include <stddef.h>
14029 #endif
14032 main ()
14034 char *s; double d;
14035 d = strtod("1.1", &s);
14036 d = fabs(1.11);
14037 d = ceil(1.11);
14038 d = floor(1.11);
14039 d = log10(1.11);
14040 d = pow(1.11, 2.22);
14041 d = sqrt(1.11);
14042 d = sin(1.11);
14043 d = cos(1.11);
14044 d = atan(1.11);
14047 return 0;
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14058 ac_status=$?
14059 grep -v '^ *+' conftest.er1 >conftest.err
14060 rm -f conftest.er1
14061 cat conftest.err >&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest$ac_exeext &&
14067 $as_test_x conftest$ac_exeext; then
14068 { echo "$as_me:$LINENO: result: yes" >&5
14069 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14070 #define HAVE_FLOAT_FUNCS 1
14071 _ACEOF
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 { echo "$as_me:$LINENO: result: no" >&5
14078 echo "${ECHO_T}no" >&6; }
14081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14082 conftest$ac_exeext conftest.$ac_ext
14084 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14085 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14086 # Check whether --enable-acl was given.
14087 if test "${enable_acl+set}" = set; then
14088 enableval=$enable_acl;
14089 else
14090 enable_acl="yes"
14093 if test "$enable_acl" = "yes"; then
14094 { echo "$as_me:$LINENO: result: no" >&5
14095 echo "${ECHO_T}no" >&6; }
14096 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14097 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14098 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 else
14101 ac_check_lib_save_LIBS=$LIBS
14102 LIBS="-lposix1e $LIBS"
14103 cat >conftest.$ac_ext <<_ACEOF
14104 /* confdefs.h. */
14105 _ACEOF
14106 cat confdefs.h >>conftest.$ac_ext
14107 cat >>conftest.$ac_ext <<_ACEOF
14108 /* end confdefs.h. */
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply. */
14113 #ifdef __cplusplus
14114 extern "C"
14115 #endif
14116 char acl_get_file ();
14118 main ()
14120 return acl_get_file ();
14122 return 0;
14124 _ACEOF
14125 rm -f conftest.$ac_objext conftest$ac_exeext
14126 if { (ac_try="$ac_link"
14127 case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_link") 2>conftest.er1
14133 ac_status=$?
14134 grep -v '^ *+' conftest.er1 >conftest.err
14135 rm -f conftest.er1
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } && {
14139 test -z "$ac_c_werror_flag" ||
14140 test ! -s conftest.err
14141 } && test -s conftest$ac_exeext &&
14142 $as_test_x conftest$ac_exeext; then
14143 ac_cv_lib_posix1e_acl_get_file=yes
14144 else
14145 echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ac_cv_lib_posix1e_acl_get_file=no
14151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14152 conftest$ac_exeext conftest.$ac_ext
14153 LIBS=$ac_check_lib_save_LIBS
14155 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14156 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14157 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14158 LIBS="$LIBS -lposix1e"
14159 else
14160 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14161 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14162 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 ac_check_lib_save_LIBS=$LIBS
14166 LIBS="-lacl $LIBS"
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h. */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14174 /* Override any GCC internal prototype to avoid an error.
14175 Use char because int might match the return type of a GCC
14176 builtin and then its argument prototype would still apply. */
14177 #ifdef __cplusplus
14178 extern "C"
14179 #endif
14180 char acl_get_file ();
14182 main ()
14184 return acl_get_file ();
14186 return 0;
14188 _ACEOF
14189 rm -f conftest.$ac_objext conftest$ac_exeext
14190 if { (ac_try="$ac_link"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194 esac
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } && {
14203 test -z "$ac_c_werror_flag" ||
14204 test ! -s conftest.err
14205 } && test -s conftest$ac_exeext &&
14206 $as_test_x conftest$ac_exeext; then
14207 ac_cv_lib_acl_acl_get_file=yes
14208 else
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_cv_lib_acl_acl_get_file=no
14215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14216 conftest$ac_exeext conftest.$ac_ext
14217 LIBS=$ac_check_lib_save_LIBS
14219 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14220 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14221 if test $ac_cv_lib_acl_acl_get_file = yes; then
14222 LIBS="$LIBS -lacl"
14223 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14224 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14225 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228 ac_check_lib_save_LIBS=$LIBS
14229 LIBS="-lattr $LIBS"
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14240 #ifdef __cplusplus
14241 extern "C"
14242 #endif
14243 char fgetxattr ();
14245 main ()
14247 return fgetxattr ();
14249 return 0;
14251 _ACEOF
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14260 ac_status=$?
14261 grep -v '^ *+' conftest.er1 >conftest.err
14262 rm -f conftest.er1
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } && {
14266 test -z "$ac_c_werror_flag" ||
14267 test ! -s conftest.err
14268 } && test -s conftest$ac_exeext &&
14269 $as_test_x conftest$ac_exeext; then
14270 ac_cv_lib_attr_fgetxattr=yes
14271 else
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14275 ac_cv_lib_attr_fgetxattr=no
14278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14279 conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14282 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14283 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14284 if test $ac_cv_lib_attr_fgetxattr = yes; then
14285 LIBS="$LIBS -lattr"
14293 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14294 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h. */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 #include <sys/types.h>
14303 #ifdef HAVE_SYS_ACL_H
14304 # include <sys/acl.h>
14305 #endif
14306 acl_t acl;
14308 main ()
14310 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14311 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14312 acl_free(acl);
14314 return 0;
14316 _ACEOF
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest$ac_exeext &&
14334 $as_test_x conftest$ac_exeext; then
14335 { echo "$as_me:$LINENO: result: yes" >&5
14336 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14337 #define HAVE_POSIX_ACL 1
14338 _ACEOF
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 { echo "$as_me:$LINENO: result: no" >&5
14345 echo "${ECHO_T}no" >&6; }
14348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14349 conftest$ac_exeext conftest.$ac_ext
14351 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14352 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14353 cat >conftest.$ac_ext <<_ACEOF
14354 /* confdefs.h. */
14355 _ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 #ifdef HAVE_SYS_ACL_H
14361 # include <sys/acl.h>
14362 #endif
14364 main ()
14366 acl("foo", GETACLCNT, 0, NULL);
14369 return 0;
14371 _ACEOF
14372 rm -f conftest.$ac_objext conftest$ac_exeext
14373 if { (ac_try="$ac_link"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14377 esac
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_link") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && {
14386 test -z "$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 } && test -s conftest$ac_exeext &&
14389 $as_test_x conftest$ac_exeext; then
14390 { echo "$as_me:$LINENO: result: yes" >&5
14391 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14392 #define HAVE_SOLARIS_ACL 1
14393 _ACEOF
14395 else
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 { echo "$as_me:$LINENO: result: no" >&5
14400 echo "${ECHO_T}no" >&6; }
14403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext conftest.$ac_ext
14406 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14407 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14415 #if STDC_HEADERS
14416 # include <stdlib.h>
14417 # include <stddef.h>
14418 #endif
14419 #ifdef HAVE_SYS_ACL_H
14420 # include <sys/acl.h>
14421 #endif
14422 #ifdef HAVE_SYS_ACCESS_H
14423 # include <sys/access.h>
14424 #endif
14425 #define _ALL_SOURCE
14427 #include <sys/stat.h>
14429 int aclsize;
14430 struct acl *aclent;
14432 main ()
14434 aclsize = sizeof(struct acl);
14435 aclent = (void *)malloc(aclsize);
14436 statacl("foo", STX_NORMAL, aclent, aclsize);
14439 return 0;
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (ac_try="$ac_link"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest$ac_exeext &&
14459 $as_test_x conftest$ac_exeext; then
14460 { echo "$as_me:$LINENO: result: yes" >&5
14461 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14462 #define HAVE_AIX_ACL 1
14463 _ACEOF
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 { echo "$as_me:$LINENO: result: no" >&5
14470 echo "${ECHO_T}no" >&6; }
14473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14474 conftest$ac_exeext conftest.$ac_ext
14475 else
14476 { echo "$as_me:$LINENO: result: yes" >&5
14477 echo "${ECHO_T}yes" >&6; }
14480 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14481 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14482 # Check whether --enable-gpm was given.
14483 if test "${enable_gpm+set}" = set; then
14484 enableval=$enable_gpm;
14485 else
14486 enable_gpm="yes"
14490 if test "$enable_gpm" = "yes"; then
14491 { echo "$as_me:$LINENO: result: no" >&5
14492 echo "${ECHO_T}no" >&6; }
14493 { echo "$as_me:$LINENO: checking for gpm" >&5
14494 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14495 if test "${vi_cv_have_gpm+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 else
14498 olibs="$LIBS" ; LIBS="-lgpm"
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 #include <gpm.h>
14506 #include <linux/keyboard.h>
14508 main ()
14510 Gpm_GetLibVersion(NULL);
14512 return 0;
14514 _ACEOF
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (ac_try="$ac_link"
14517 case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14520 esac
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_link") 2>conftest.er1
14523 ac_status=$?
14524 grep -v '^ *+' conftest.er1 >conftest.err
14525 rm -f conftest.er1
14526 cat conftest.err >&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && {
14529 test -z "$ac_c_werror_flag" ||
14530 test ! -s conftest.err
14531 } && test -s conftest$ac_exeext &&
14532 $as_test_x conftest$ac_exeext; then
14533 vi_cv_have_gpm=yes
14534 else
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14538 vi_cv_have_gpm=no
14541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14542 conftest$ac_exeext conftest.$ac_ext
14543 LIBS="$olibs"
14546 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14547 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14548 if test $vi_cv_have_gpm = yes; then
14549 LIBS="$LIBS -lgpm"
14550 cat >>confdefs.h <<\_ACEOF
14551 #define HAVE_GPM 1
14552 _ACEOF
14555 else
14556 { echo "$as_me:$LINENO: result: yes" >&5
14557 echo "${ECHO_T}yes" >&6; }
14560 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14561 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14562 # Check whether --enable-sysmouse was given.
14563 if test "${enable_sysmouse+set}" = set; then
14564 enableval=$enable_sysmouse;
14565 else
14566 enable_sysmouse="yes"
14570 if test "$enable_sysmouse" = "yes"; then
14571 { echo "$as_me:$LINENO: result: no" >&5
14572 echo "${ECHO_T}no" >&6; }
14573 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14574 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14575 if test "${vi_cv_have_sysmouse+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h. */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h. */
14584 #include <sys/consio.h>
14585 #include <signal.h>
14586 #include <sys/fbio.h>
14588 main ()
14590 struct mouse_info mouse;
14591 mouse.operation = MOUSE_MODE;
14592 mouse.operation = MOUSE_SHOW;
14593 mouse.u.mode.mode = 0;
14594 mouse.u.mode.signal = SIGUSR2;
14596 return 0;
14598 _ACEOF
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (ac_try="$ac_link"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>conftest.er1
14607 ac_status=$?
14608 grep -v '^ *+' conftest.er1 >conftest.err
14609 rm -f conftest.er1
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } && {
14613 test -z "$ac_c_werror_flag" ||
14614 test ! -s conftest.err
14615 } && test -s conftest$ac_exeext &&
14616 $as_test_x conftest$ac_exeext; then
14617 vi_cv_have_sysmouse=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 vi_cv_have_sysmouse=no
14625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14626 conftest$ac_exeext conftest.$ac_ext
14629 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14630 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14631 if test $vi_cv_have_sysmouse = yes; then
14632 cat >>confdefs.h <<\_ACEOF
14633 #define HAVE_SYSMOUSE 1
14634 _ACEOF
14637 else
14638 { echo "$as_me:$LINENO: result: yes" >&5
14639 echo "${ECHO_T}yes" >&6; }
14642 { echo "$as_me:$LINENO: checking for rename" >&5
14643 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #include <stdio.h>
14652 main ()
14654 rename("this", "that")
14656 return 0;
14658 _ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (ac_try="$ac_link"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_link") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest$ac_exeext &&
14676 $as_test_x conftest$ac_exeext; then
14677 { echo "$as_me:$LINENO: result: yes" >&5
14678 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14679 #define HAVE_RENAME 1
14680 _ACEOF
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 { echo "$as_me:$LINENO: result: no" >&5
14687 echo "${ECHO_T}no" >&6; }
14690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14691 conftest$ac_exeext conftest.$ac_ext
14693 { echo "$as_me:$LINENO: checking for sysctl" >&5
14694 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h. */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 #include <sys/types.h>
14702 #include <sys/sysctl.h>
14704 main ()
14706 int mib[2], r;
14707 size_t len;
14709 mib[0] = CTL_HW;
14710 mib[1] = HW_USERMEM;
14711 len = sizeof(r);
14712 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14715 return 0;
14717 _ACEOF
14718 rm -f conftest.$ac_objext
14719 if { (ac_try="$ac_compile"
14720 case "(($ac_try" in
14721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 *) ac_try_echo=$ac_try;;
14723 esac
14724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest.$ac_objext; then
14735 { echo "$as_me:$LINENO: result: yes" >&5
14736 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_SYSCTL 1
14738 _ACEOF
14740 else
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 { echo "$as_me:$LINENO: result: not usable" >&5
14745 echo "${ECHO_T}not usable" >&6; }
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 { echo "$as_me:$LINENO: checking for sysinfo" >&5
14751 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 #include <sys/types.h>
14759 #include <sys/sysinfo.h>
14761 main ()
14763 struct sysinfo sinfo;
14764 int t;
14766 (void)sysinfo(&sinfo);
14767 t = sinfo.totalram;
14770 return 0;
14772 _ACEOF
14773 rm -f conftest.$ac_objext
14774 if { (ac_try="$ac_compile"
14775 case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_compile") 2>conftest.er1
14781 ac_status=$?
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } && {
14787 test -z "$ac_c_werror_flag" ||
14788 test ! -s conftest.err
14789 } && test -s conftest.$ac_objext; then
14790 { echo "$as_me:$LINENO: result: yes" >&5
14791 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_SYSINFO 1
14793 _ACEOF
14795 else
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 { echo "$as_me:$LINENO: result: not usable" >&5
14800 echo "${ECHO_T}not usable" >&6; }
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
14806 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
14807 cat >conftest.$ac_ext <<_ACEOF
14808 /* confdefs.h. */
14809 _ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <sys/types.h>
14814 #include <sys/sysinfo.h>
14816 main ()
14818 struct sysinfo sinfo;
14819 sinfo.mem_unit = 1;
14822 return 0;
14824 _ACEOF
14825 rm -f conftest.$ac_objext
14826 if { (ac_try="$ac_compile"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830 esac
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_compile") 2>conftest.er1
14833 ac_status=$?
14834 grep -v '^ *+' conftest.er1 >conftest.err
14835 rm -f conftest.er1
14836 cat conftest.err >&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && {
14839 test -z "$ac_c_werror_flag" ||
14840 test ! -s conftest.err
14841 } && test -s conftest.$ac_objext; then
14842 { echo "$as_me:$LINENO: result: yes" >&5
14843 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14844 #define HAVE_SYSINFO_MEM_UNIT 1
14845 _ACEOF
14847 else
14848 echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 { echo "$as_me:$LINENO: result: no" >&5
14852 echo "${ECHO_T}no" >&6; }
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 { echo "$as_me:$LINENO: checking for sysconf" >&5
14858 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <unistd.h>
14867 main ()
14869 (void)sysconf(_SC_PAGESIZE);
14870 (void)sysconf(_SC_PHYS_PAGES);
14873 return 0;
14875 _ACEOF
14876 rm -f conftest.$ac_objext
14877 if { (ac_try="$ac_compile"
14878 case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } && {
14890 test -z "$ac_c_werror_flag" ||
14891 test ! -s conftest.err
14892 } && test -s conftest.$ac_objext; then
14893 { echo "$as_me:$LINENO: result: yes" >&5
14894 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14895 #define HAVE_SYSCONF 1
14896 _ACEOF
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14902 { echo "$as_me:$LINENO: result: not usable" >&5
14903 echo "${ECHO_T}not usable" >&6; }
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { echo "$as_me:$LINENO: checking size of int" >&5
14910 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14911 if test "${ac_cv_sizeof_int+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 if test "$cross_compiling" = yes; then
14915 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14916 echo "$as_me: error: failed to compile test program" >&2;}
14917 { (exit 1); exit 1; }; }
14918 else
14919 cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h. */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14926 #include <stdio.h>
14927 #if STDC_HEADERS
14928 # include <stdlib.h>
14929 # include <stddef.h>
14930 #endif
14931 main()
14933 FILE *f=fopen("conftestval", "w");
14934 if (!f) exit(1);
14935 fprintf(f, "%d\n", (int)sizeof(int));
14936 exit(0);
14938 _ACEOF
14939 rm -f conftest$ac_exeext
14940 if { (ac_try="$ac_link"
14941 case "(($ac_try" in
14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14943 *) ac_try_echo=$ac_try;;
14944 esac
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14950 { (case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_sizeof_int=`cat conftestval`
14960 else
14961 echo "$as_me: program exited with status $ac_status" >&5
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ( exit $ac_status )
14966 ac_cv_sizeof_int=0
14968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14974 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14975 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14976 cat >>confdefs.h <<_ACEOF
14977 #define SIZEOF_INT $ac_cv_sizeof_int
14978 _ACEOF
14982 bcopy_test_prog='
14983 #include "confdefs.h"
14984 #ifdef HAVE_STRING_H
14985 # include <string.h>
14986 #endif
14987 #if STDC_HEADERS
14988 # include <stdlib.h>
14989 # include <stddef.h>
14990 #endif
14991 main() {
14992 char buf[10];
14993 strcpy(buf, "abcdefghi");
14994 mch_memmove(buf, buf + 2, 3);
14995 if (strncmp(buf, "ababcf", 6))
14996 exit(1);
14997 strcpy(buf, "abcdefghi");
14998 mch_memmove(buf + 2, buf, 3);
14999 if (strncmp(buf, "cdedef", 6))
15000 exit(1);
15001 exit(0); /* libc version works properly. */
15004 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15005 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15006 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15010 if test "$cross_compiling" = yes; then
15012 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15013 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15014 { (exit 1); exit 1; }; }
15016 else
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15019 _ACEOF
15020 rm -f conftest$ac_exeext
15021 if { (ac_try="$ac_link"
15022 case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025 esac
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_link") 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15041 vim_cv_memmove_handles_overlap=yes
15043 else
15044 echo "$as_me: program exited with status $ac_status" >&5
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15048 ( exit $ac_status )
15050 vim_cv_memmove_handles_overlap=no
15053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15059 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15060 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15062 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15063 cat >>confdefs.h <<\_ACEOF
15064 #define USEMEMMOVE 1
15065 _ACEOF
15067 else
15068 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15069 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15070 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15074 if test "$cross_compiling" = yes; then
15076 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15077 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15078 { (exit 1); exit 1; }; }
15080 else
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15083 _ACEOF
15084 rm -f conftest$ac_exeext
15085 if { (ac_try="$ac_link"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15105 vim_cv_bcopy_handles_overlap=yes
15107 else
15108 echo "$as_me: program exited with status $ac_status" >&5
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ( exit $ac_status )
15114 vim_cv_bcopy_handles_overlap=no
15117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15123 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15124 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15126 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15127 cat >>confdefs.h <<\_ACEOF
15128 #define USEBCOPY 1
15129 _ACEOF
15131 else
15132 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15133 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15134 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15138 if test "$cross_compiling" = yes; then
15140 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15141 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15142 { (exit 1); exit 1; }; }
15144 else
15145 cat >conftest.$ac_ext <<_ACEOF
15146 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15147 _ACEOF
15148 rm -f conftest$ac_exeext
15149 if { (ac_try="$ac_link"
15150 case "(($ac_try" in
15151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15153 esac
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15159 { (case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_try") 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15169 vim_cv_memcpy_handles_overlap=yes
15171 else
15172 echo "$as_me: program exited with status $ac_status" >&5
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ( exit $ac_status )
15178 vim_cv_memcpy_handles_overlap=no
15181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15187 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15188 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15190 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15191 cat >>confdefs.h <<\_ACEOF
15192 #define USEMEMCPY 1
15193 _ACEOF
15201 if test "$enable_multibyte" = "yes"; then
15202 cflags_save=$CFLAGS
15203 ldflags_save=$LDFLAGS
15204 if test "x$x_includes" != "xNONE" ; then
15205 CFLAGS="$CFLAGS -I$x_includes"
15206 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15207 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15208 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 #include <X11/Xlocale.h>
15217 main ()
15221 return 0;
15223 _ACEOF
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228 *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15232 ac_status=$?
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
15236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } && {
15238 test -z "$ac_c_werror_flag" ||
15239 test ! -s conftest.err
15240 } && test -s conftest.$ac_objext; then
15241 cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h. */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15248 /* Override any GCC internal prototype to avoid an error.
15249 Use char because int might match the return type of a GCC
15250 builtin and then its argument prototype would still apply. */
15251 #ifdef __cplusplus
15252 extern "C"
15253 #endif
15254 char _Xsetlocale ();
15256 main ()
15258 return _Xsetlocale ();
15260 return 0;
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
15271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest$ac_exeext &&
15280 $as_test_x conftest$ac_exeext; then
15281 { echo "$as_me:$LINENO: result: yes" >&5
15282 echo "${ECHO_T}yes" >&6; }
15283 cat >>confdefs.h <<\_ACEOF
15284 #define X_LOCALE 1
15285 _ACEOF
15287 else
15288 echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15291 { echo "$as_me:$LINENO: result: no" >&5
15292 echo "${ECHO_T}no" >&6; }
15295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15296 conftest$ac_exeext conftest.$ac_ext
15297 else
15298 echo "$as_me: failed program was:" >&5
15299 sed 's/^/| /' conftest.$ac_ext >&5
15301 { echo "$as_me:$LINENO: result: no" >&5
15302 echo "${ECHO_T}no" >&6; }
15305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15307 CFLAGS=$cflags_save
15308 LDFLAGS=$ldflags_save
15311 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15312 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15313 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 else
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lxpg4 $LIBS"
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15328 #ifdef __cplusplus
15329 extern "C"
15330 #endif
15331 char _xpg4_setrunelocale ();
15333 main ()
15335 return _xpg4_setrunelocale ();
15337 return 0;
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest$ac_exeext &&
15357 $as_test_x conftest$ac_exeext; then
15358 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS
15370 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15371 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15372 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15373 LIBS="$LIBS -lxpg4"
15377 { echo "$as_me:$LINENO: checking how to create tags" >&5
15378 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15379 test -f tags && mv tags tags.save
15380 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15381 TAGPRG="ctags -I INIT+ --fields=+S"
15382 else
15383 TAGPRG="ctags"
15384 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15385 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15386 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15387 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15388 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15389 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15390 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15392 test -f tags.save && mv tags.save tags
15393 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15394 echo "${ECHO_T}$TAGPRG" >&6; }
15396 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15397 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15398 MANDEF="man"
15399 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15400 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15401 echo "${ECHO_T}$MANDEF" >&6; }
15402 if test "$MANDEF" = "man -s"; then
15403 cat >>confdefs.h <<\_ACEOF
15404 #define USEMAN_S 1
15405 _ACEOF
15409 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15410 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15411 # Check whether --enable-nls was given.
15412 if test "${enable_nls+set}" = set; then
15413 enableval=$enable_nls;
15414 else
15415 enable_nls="yes"
15419 if test "$enable_nls" = "yes"; then
15420 { echo "$as_me:$LINENO: result: no" >&5
15421 echo "${ECHO_T}no" >&6; }
15423 INSTALL_LANGS=install-languages
15425 INSTALL_TOOL_LANGS=install-tool-languages
15428 # Extract the first word of "msgfmt", so it can be a program name with args.
15429 set dummy msgfmt; ac_word=$2
15430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15432 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435 if test -n "$MSGFMT"; then
15436 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15437 else
15438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439 for as_dir in $PATH
15441 IFS=$as_save_IFS
15442 test -z "$as_dir" && as_dir=.
15443 for ac_exec_ext in '' $ac_executable_extensions; do
15444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15445 ac_cv_prog_MSGFMT="msgfmt"
15446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15447 break 2
15449 done
15450 done
15451 IFS=$as_save_IFS
15455 MSGFMT=$ac_cv_prog_MSGFMT
15456 if test -n "$MSGFMT"; then
15457 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15458 echo "${ECHO_T}$MSGFMT" >&6; }
15459 else
15460 { echo "$as_me:$LINENO: result: no" >&5
15461 echo "${ECHO_T}no" >&6; }
15465 { echo "$as_me:$LINENO: checking for NLS" >&5
15466 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15467 if test -f po/Makefile; then
15468 have_gettext="no"
15469 if test -n "$MSGFMT"; then
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h. */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 #include <libintl.h>
15478 main ()
15480 gettext("Test");
15482 return 0;
15484 _ACEOF
15485 rm -f conftest.$ac_objext conftest$ac_exeext
15486 if { (ac_try="$ac_link"
15487 case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15493 ac_status=$?
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } && {
15499 test -z "$ac_c_werror_flag" ||
15500 test ! -s conftest.err
15501 } && test -s conftest$ac_exeext &&
15502 $as_test_x conftest$ac_exeext; then
15503 { echo "$as_me:$LINENO: result: gettext() works" >&5
15504 echo "${ECHO_T}gettext() works" >&6; }; have_gettext="yes"
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 olibs=$LIBS
15510 LIBS="$LIBS -lintl"
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #include <libintl.h>
15519 main ()
15521 gettext("Test");
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (ac_try="$ac_link"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_link") 2>conftest.er1
15534 ac_status=$?
15535 grep -v '^ *+' conftest.er1 >conftest.err
15536 rm -f conftest.er1
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } && {
15540 test -z "$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15542 } && test -s conftest$ac_exeext &&
15543 $as_test_x conftest$ac_exeext; then
15544 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15545 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15546 else
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15551 echo "${ECHO_T}gettext() doesn't work" >&6; };
15552 LIBS=$olibs
15555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15556 conftest$ac_exeext conftest.$ac_ext
15559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15560 conftest$ac_exeext conftest.$ac_ext
15561 else
15562 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15563 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15565 if test $have_gettext = "yes"; then
15566 cat >>confdefs.h <<\_ACEOF
15567 #define HAVE_GETTEXT 1
15568 _ACEOF
15570 MAKEMO=yes
15573 for ac_func in bind_textdomain_codeset
15575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 else
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h. */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15589 #define $ac_func innocuous_$ac_func
15591 /* System header to define __stub macros and hopefully few prototypes,
15592 which can conflict with char $ac_func (); below.
15593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15594 <limits.h> exists even on freestanding compilers. */
15596 #ifdef __STDC__
15597 # include <limits.h>
15598 #else
15599 # include <assert.h>
15600 #endif
15602 #undef $ac_func
15604 /* Override any GCC internal prototype to avoid an error.
15605 Use char because int might match the return type of a GCC
15606 builtin and then its argument prototype would still apply. */
15607 #ifdef __cplusplus
15608 extern "C"
15609 #endif
15610 char $ac_func ();
15611 /* The GNU C library defines this for functions which it implements
15612 to always fail with ENOSYS. Some functions are actually named
15613 something starting with __ and the normal name is an alias. */
15614 #if defined __stub_$ac_func || defined __stub___$ac_func
15615 choke me
15616 #endif
15619 main ()
15621 return $ac_func ();
15623 return 0;
15625 _ACEOF
15626 rm -f conftest.$ac_objext conftest$ac_exeext
15627 if { (ac_try="$ac_link"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_link") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && {
15640 test -z "$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 } && test -s conftest$ac_exeext &&
15643 $as_test_x conftest$ac_exeext; then
15644 eval "$as_ac_var=yes"
15645 else
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 eval "$as_ac_var=no"
15652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15653 conftest$ac_exeext conftest.$ac_ext
15655 ac_res=`eval echo '${'$as_ac_var'}'`
15656 { echo "$as_me:$LINENO: result: $ac_res" >&5
15657 echo "${ECHO_T}$ac_res" >&6; }
15658 if test `eval echo '${'$as_ac_var'}'` = yes; then
15659 cat >>confdefs.h <<_ACEOF
15660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15661 _ACEOF
15664 done
15666 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15667 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 #include <libintl.h>
15675 extern int _nl_msg_cat_cntr;
15677 main ()
15679 ++_nl_msg_cat_cntr;
15681 return 0;
15683 _ACEOF
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15689 esac
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_link") 2>conftest.er1
15692 ac_status=$?
15693 grep -v '^ *+' conftest.er1 >conftest.err
15694 rm -f conftest.er1
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 } && test -s conftest$ac_exeext &&
15701 $as_test_x conftest$ac_exeext; then
15702 { echo "$as_me:$LINENO: result: yes" >&5
15703 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15704 #define HAVE_NL_MSG_CAT_CNTR 1
15705 _ACEOF
15707 else
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15711 { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15716 conftest$ac_exeext conftest.$ac_ext
15718 else
15719 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15720 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15722 else
15723 { echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6; }
15727 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15728 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15729 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15730 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15734 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15735 else
15736 # Is the header compilable?
15737 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15738 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h. */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 $ac_includes_default
15746 #include <dlfcn.h>
15747 _ACEOF
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15756 ac_status=$?
15757 grep -v '^ *+' conftest.er1 >conftest.err
15758 rm -f conftest.er1
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest.$ac_objext; then
15765 ac_header_compiler=yes
15766 else
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_header_compiler=no
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6; }
15777 # Is the header present?
15778 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15779 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
15780 cat >conftest.$ac_ext <<_ACEOF
15781 /* confdefs.h. */
15782 _ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <dlfcn.h>
15787 _ACEOF
15788 if { (ac_try="$ac_cpp conftest.$ac_ext"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null && {
15801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 }; then
15804 ac_header_preproc=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_preproc=no
15812 rm -f conftest.err conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15814 echo "${ECHO_T}$ac_header_preproc" >&6; }
15816 # So? What about this header?
15817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15818 yes:no: )
15819 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
15820 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
15822 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
15823 ac_header_preproc=yes
15825 no:yes:* )
15826 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
15827 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
15829 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
15831 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
15833 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
15835 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
15837 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
15840 esac
15841 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15842 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15843 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 else
15846 ac_cv_header_dlfcn_h=$ac_header_preproc
15848 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15849 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15852 if test $ac_cv_header_dlfcn_h = yes; then
15853 DLL=dlfcn.h
15854 else
15855 if test "${ac_cv_header_dl_h+set}" = set; then
15856 { echo "$as_me:$LINENO: checking for dl.h" >&5
15857 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15858 if test "${ac_cv_header_dl_h+set}" = set; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15861 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15862 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15863 else
15864 # Is the header compilable?
15865 { echo "$as_me:$LINENO: checking dl.h usability" >&5
15866 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 $ac_includes_default
15874 #include <dl.h>
15875 _ACEOF
15876 rm -f conftest.$ac_objext
15877 if { (ac_try="$ac_compile"
15878 case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_compile") 2>conftest.er1
15884 ac_status=$?
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } && {
15890 test -z "$ac_c_werror_flag" ||
15891 test ! -s conftest.err
15892 } && test -s conftest.$ac_objext; then
15893 ac_header_compiler=yes
15894 else
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_header_compiler=no
15901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15903 echo "${ECHO_T}$ac_header_compiler" >&6; }
15905 # Is the header present?
15906 { echo "$as_me:$LINENO: checking dl.h presence" >&5
15907 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 #include <dl.h>
15915 _ACEOF
15916 if { (ac_try="$ac_cpp conftest.$ac_ext"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15923 ac_status=$?
15924 grep -v '^ *+' conftest.er1 >conftest.err
15925 rm -f conftest.er1
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } >/dev/null && {
15929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 }; then
15932 ac_header_preproc=yes
15933 else
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_header_preproc=no
15940 rm -f conftest.err conftest.$ac_ext
15941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15942 echo "${ECHO_T}$ac_header_preproc" >&6; }
15944 # So? What about this header?
15945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15946 yes:no: )
15947 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15948 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
15950 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
15951 ac_header_preproc=yes
15953 no:yes:* )
15954 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
15955 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
15957 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
15959 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
15961 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
15963 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
15965 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
15968 esac
15969 { echo "$as_me:$LINENO: checking for dl.h" >&5
15970 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15971 if test "${ac_cv_header_dl_h+set}" = set; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974 ac_cv_header_dl_h=$ac_header_preproc
15976 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15977 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15980 if test $ac_cv_header_dl_h = yes; then
15981 DLL=dl.h
15988 if test x${DLL} = xdlfcn.h; then
15990 cat >>confdefs.h <<\_ACEOF
15991 #define HAVE_DLFCN_H 1
15992 _ACEOF
15994 { echo "$as_me:$LINENO: checking for dlopen()" >&5
15995 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15997 /* confdefs.h. */
15998 _ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16004 main ()
16007 extern void* dlopen();
16008 dlopen();
16011 return 0;
16013 _ACEOF
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (ac_try="$ac_link"
16016 case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_link") 2>conftest.er1
16022 ac_status=$?
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } && {
16028 test -z "$ac_c_werror_flag" ||
16029 test ! -s conftest.err
16030 } && test -s conftest$ac_exeext &&
16031 $as_test_x conftest$ac_exeext; then
16032 { echo "$as_me:$LINENO: result: yes" >&5
16033 echo "${ECHO_T}yes" >&6; };
16035 cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_DLOPEN 1
16037 _ACEOF
16039 else
16040 echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.$ac_ext >&5
16043 { echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6; };
16045 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16046 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16047 olibs=$LIBS
16048 LIBS="$LIBS -ldl"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h. */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16057 main ()
16060 extern void* dlopen();
16061 dlopen();
16064 return 0;
16066 _ACEOF
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (ac_try="$ac_link"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_link") 2>conftest.er1
16075 ac_status=$?
16076 grep -v '^ *+' conftest.er1 >conftest.err
16077 rm -f conftest.er1
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && {
16081 test -z "$ac_c_werror_flag" ||
16082 test ! -s conftest.err
16083 } && test -s conftest$ac_exeext &&
16084 $as_test_x conftest$ac_exeext; then
16085 { echo "$as_me:$LINENO: result: yes" >&5
16086 echo "${ECHO_T}yes" >&6; };
16088 cat >>confdefs.h <<\_ACEOF
16089 #define HAVE_DLOPEN 1
16090 _ACEOF
16092 else
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 { echo "$as_me:$LINENO: result: no" >&5
16097 echo "${ECHO_T}no" >&6; };
16098 LIBS=$olibs
16101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16102 conftest$ac_exeext conftest.$ac_ext
16105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16106 conftest$ac_exeext conftest.$ac_ext
16107 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16108 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16117 main ()
16120 extern void* dlsym();
16121 dlsym();
16124 return 0;
16126 _ACEOF
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (ac_try="$ac_link"
16129 case "(($ac_try" in
16130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16131 *) ac_try_echo=$ac_try;;
16132 esac
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_link") 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && {
16141 test -z "$ac_c_werror_flag" ||
16142 test ! -s conftest.err
16143 } && test -s conftest$ac_exeext &&
16144 $as_test_x conftest$ac_exeext; then
16145 { echo "$as_me:$LINENO: result: yes" >&5
16146 echo "${ECHO_T}yes" >&6; };
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE_DLSYM 1
16150 _ACEOF
16152 else
16153 echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16156 { echo "$as_me:$LINENO: result: no" >&5
16157 echo "${ECHO_T}no" >&6; };
16158 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16159 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16160 olibs=$LIBS
16161 LIBS="$LIBS -ldl"
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16170 main ()
16173 extern void* dlsym();
16174 dlsym();
16177 return 0;
16179 _ACEOF
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (ac_try="$ac_link"
16182 case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16185 esac
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_link") 2>conftest.er1
16188 ac_status=$?
16189 grep -v '^ *+' conftest.er1 >conftest.err
16190 rm -f conftest.er1
16191 cat conftest.err >&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); } && {
16194 test -z "$ac_c_werror_flag" ||
16195 test ! -s conftest.err
16196 } && test -s conftest$ac_exeext &&
16197 $as_test_x conftest$ac_exeext; then
16198 { echo "$as_me:$LINENO: result: yes" >&5
16199 echo "${ECHO_T}yes" >&6; };
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE_DLSYM 1
16203 _ACEOF
16205 else
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 { echo "$as_me:$LINENO: result: no" >&5
16210 echo "${ECHO_T}no" >&6; };
16211 LIBS=$olibs
16214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16215 conftest$ac_exeext conftest.$ac_ext
16218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16219 conftest$ac_exeext conftest.$ac_ext
16220 elif test x${DLL} = xdl.h; then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_DL_H 1
16224 _ACEOF
16226 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16227 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h. */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16236 main ()
16239 extern void* shl_load();
16240 shl_load();
16243 return 0;
16245 _ACEOF
16246 rm -f conftest.$ac_objext conftest$ac_exeext
16247 if { (ac_try="$ac_link"
16248 case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251 esac
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_link") 2>conftest.er1
16254 ac_status=$?
16255 grep -v '^ *+' conftest.er1 >conftest.err
16256 rm -f conftest.er1
16257 cat conftest.err >&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); } && {
16260 test -z "$ac_c_werror_flag" ||
16261 test ! -s conftest.err
16262 } && test -s conftest$ac_exeext &&
16263 $as_test_x conftest$ac_exeext; then
16264 { echo "$as_me:$LINENO: result: yes" >&5
16265 echo "${ECHO_T}yes" >&6; };
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_SHL_LOAD 1
16269 _ACEOF
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 { echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6; };
16277 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16278 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16279 olibs=$LIBS
16280 LIBS="$LIBS -ldld"
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h. */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16289 main ()
16292 extern void* shl_load();
16293 shl_load();
16296 return 0;
16298 _ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_link") 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } && {
16313 test -z "$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 } && test -s conftest$ac_exeext &&
16316 $as_test_x conftest$ac_exeext; then
16317 { echo "$as_me:$LINENO: result: yes" >&5
16318 echo "${ECHO_T}yes" >&6; };
16320 cat >>confdefs.h <<\_ACEOF
16321 #define HAVE_SHL_LOAD 1
16322 _ACEOF
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16328 { echo "$as_me:$LINENO: result: no" >&5
16329 echo "${ECHO_T}no" >&6; };
16330 LIBS=$olibs
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16338 conftest$ac_exeext conftest.$ac_ext
16341 for ac_header in setjmp.h
16343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 ac_res=`eval echo '${'$as_ac_Header'}'`
16351 { echo "$as_me:$LINENO: result: $ac_res" >&5
16352 echo "${ECHO_T}$ac_res" >&6; }
16353 else
16354 # Is the header compilable?
16355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16357 cat >conftest.$ac_ext <<_ACEOF
16358 /* confdefs.h. */
16359 _ACEOF
16360 cat confdefs.h >>conftest.$ac_ext
16361 cat >>conftest.$ac_ext <<_ACEOF
16362 /* end confdefs.h. */
16363 $ac_includes_default
16364 #include <$ac_header>
16365 _ACEOF
16366 rm -f conftest.$ac_objext
16367 if { (ac_try="$ac_compile"
16368 case "(($ac_try" in
16369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16370 *) ac_try_echo=$ac_try;;
16371 esac
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_compile") 2>conftest.er1
16374 ac_status=$?
16375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } && {
16380 test -z "$ac_c_werror_flag" ||
16381 test ! -s conftest.err
16382 } && test -s conftest.$ac_objext; then
16383 ac_header_compiler=yes
16384 else
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 ac_header_compiler=no
16391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16393 echo "${ECHO_T}$ac_header_compiler" >&6; }
16395 # Is the header present?
16396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h. */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <$ac_header>
16405 _ACEOF
16406 if { (ac_try="$ac_cpp conftest.$ac_ext"
16407 case "(($ac_try" in
16408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16409 *) ac_try_echo=$ac_try;;
16410 esac
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } >/dev/null && {
16419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16420 test ! -s conftest.err
16421 }; then
16422 ac_header_preproc=yes
16423 else
16424 echo "$as_me: failed program was:" >&5
16425 sed 's/^/| /' conftest.$ac_ext >&5
16427 ac_header_preproc=no
16430 rm -f conftest.err conftest.$ac_ext
16431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16432 echo "${ECHO_T}$ac_header_preproc" >&6; }
16434 # So? What about this header?
16435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16436 yes:no: )
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16441 ac_header_preproc=yes
16443 no:yes:* )
16444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16458 esac
16459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 else
16464 eval "$as_ac_Header=\$ac_header_preproc"
16466 ac_res=`eval echo '${'$as_ac_Header'}'`
16467 { echo "$as_me:$LINENO: result: $ac_res" >&5
16468 echo "${ECHO_T}$ac_res" >&6; }
16471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16472 cat >>confdefs.h <<_ACEOF
16473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16474 _ACEOF
16478 done
16481 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16482 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16483 LIBS=`echo $LIBS | sed s/-ldl//`
16484 PERL_LIBS="$PERL_LIBS -ldl"
16488 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16489 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16490 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16491 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16492 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16493 || test "x$features" = "xhuge"; then
16494 LIBS="$LIBS -framework Carbon"
16495 { echo "$as_me:$LINENO: result: yes" >&5
16496 echo "${ECHO_T}yes" >&6; }
16497 else
16498 { echo "$as_me:$LINENO: result: no" >&5
16499 echo "${ECHO_T}no" >&6; }
16503 if test "x$MACOSX" = "xyes"; then
16504 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16505 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16507 # Check whether --with-xcodecfg was given.
16508 if test "${with_xcodecfg+set}" = set; then
16509 withval=$with_xcodecfg; XCODEFLAGS="$XCODEFLAGS -configuration $withval"
16510 { echo "$as_me:$LINENO: result: $withval" >&5
16511 echo "${ECHO_T}$withval" >&6; }
16512 else
16513 { echo "$as_me:$LINENO: result: using default" >&5
16514 echo "${ECHO_T}using default" >&6; }
16522 DEPEND_CFLAGS_FILTER=
16523 if test "$GCC" = yes; then
16524 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16525 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16526 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16527 if test "$gccmajor" -gt "2"; then
16528 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16529 { echo "$as_me:$LINENO: result: yes" >&5
16530 echo "${ECHO_T}yes" >&6; }
16531 else
16532 { echo "$as_me:$LINENO: result: no" >&5
16533 echo "${ECHO_T}no" >&6; }
16535 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16536 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16537 if test "$gccmajor" -gt "3"; then
16538 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=1"
16539 { echo "$as_me:$LINENO: result: yes" >&5
16540 echo "${ECHO_T}yes" >&6; }
16541 else
16542 { echo "$as_me:$LINENO: result: no" >&5
16543 echo "${ECHO_T}no" >&6; }
16548 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16550 cat >confcache <<\_ACEOF
16551 # This file is a shell script that caches the results of configure
16552 # tests run on this system so they can be shared between configure
16553 # scripts and configure runs, see configure's option --config-cache.
16554 # It is not useful on other systems. If it contains results you don't
16555 # want to keep, you may remove or edit it.
16557 # config.status only pays attention to the cache file if you give it
16558 # the --recheck option to rerun configure.
16560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16562 # following values.
16564 _ACEOF
16566 # The following way of writing the cache mishandles newlines in values,
16567 # but we know of no workaround that is simple, portable, and efficient.
16568 # So, we kill variables containing newlines.
16569 # Ultrix sh set writes to stderr and can't be redirected directly,
16570 # and sets the high bit in the cache file unless we assign to the vars.
16572 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16573 eval ac_val=\$$ac_var
16574 case $ac_val in #(
16575 *${as_nl}*)
16576 case $ac_var in #(
16577 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16578 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16579 esac
16580 case $ac_var in #(
16581 _ | IFS | as_nl) ;; #(
16582 *) $as_unset $ac_var ;;
16583 esac ;;
16584 esac
16585 done
16587 (set) 2>&1 |
16588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16589 *${as_nl}ac_space=\ *)
16590 # `set' does not quote correctly, so add quotes (double-quote
16591 # substitution turns \\\\ into \\, and sed turns \\ into \).
16592 sed -n \
16593 "s/'/'\\\\''/g;
16594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16595 ;; #(
16597 # `set' quotes correctly as required by POSIX, so do not add quotes.
16598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16600 esac |
16601 sort
16603 sed '
16604 /^ac_cv_env_/b end
16605 t clear
16606 :clear
16607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16608 t end
16609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16610 :end' >>confcache
16611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16612 if test -w "$cache_file"; then
16613 test "x$cache_file" != "x/dev/null" &&
16614 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16615 echo "$as_me: updating cache $cache_file" >&6;}
16616 cat confcache >$cache_file
16617 else
16618 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16619 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16622 rm -f confcache
16624 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16625 # Let make expand exec_prefix.
16626 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16628 DEFS=-DHAVE_CONFIG_H
16630 ac_libobjs=
16631 ac_ltlibobjs=
16632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16633 # 1. Remove the extension, and $U if already installed.
16634 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16635 ac_i=`echo "$ac_i" | sed "$ac_script"`
16636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16637 # will be set to the directory where LIBOBJS objects are built.
16638 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16639 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16640 done
16641 LIBOBJS=$ac_libobjs
16643 LTLIBOBJS=$ac_ltlibobjs
16647 : ${CONFIG_STATUS=./config.status}
16648 ac_clean_files_save=$ac_clean_files
16649 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16650 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16651 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16652 cat >$CONFIG_STATUS <<_ACEOF
16653 #! $SHELL
16654 # Generated by $as_me.
16655 # Run this file to recreate the current configuration.
16656 # Compiler output produced by configure, useful for debugging
16657 # configure, is in config.log if it exists.
16659 debug=false
16660 ac_cs_recheck=false
16661 ac_cs_silent=false
16662 SHELL=\${CONFIG_SHELL-$SHELL}
16663 _ACEOF
16665 cat >>$CONFIG_STATUS <<\_ACEOF
16666 ## --------------------- ##
16667 ## M4sh Initialization. ##
16668 ## --------------------- ##
16670 # Be more Bourne compatible
16671 DUALCASE=1; export DUALCASE # for MKS sh
16672 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16673 emulate sh
16674 NULLCMD=:
16675 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16676 # is contrary to our usage. Disable this feature.
16677 alias -g '${1+"$@"}'='"$@"'
16678 setopt NO_GLOB_SUBST
16679 else
16680 case `(set -o) 2>/dev/null` in
16681 *posix*) set -o posix ;;
16682 esac
16689 # PATH needs CR
16690 # Avoid depending upon Character Ranges.
16691 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16692 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16693 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16694 as_cr_digits='0123456789'
16695 as_cr_alnum=$as_cr_Letters$as_cr_digits
16697 # The user is always right.
16698 if test "${PATH_SEPARATOR+set}" != set; then
16699 echo "#! /bin/sh" >conf$$.sh
16700 echo "exit 0" >>conf$$.sh
16701 chmod +x conf$$.sh
16702 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16703 PATH_SEPARATOR=';'
16704 else
16705 PATH_SEPARATOR=:
16707 rm -f conf$$.sh
16710 # Support unset when possible.
16711 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16712 as_unset=unset
16713 else
16714 as_unset=false
16718 # IFS
16719 # We need space, tab and new line, in precisely that order. Quoting is
16720 # there to prevent editors from complaining about space-tab.
16721 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16722 # splitting by setting IFS to empty value.)
16723 as_nl='
16725 IFS=" "" $as_nl"
16727 # Find who we are. Look in the path if we contain no directory separator.
16728 case $0 in
16729 *[\\/]* ) as_myself=$0 ;;
16730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16731 for as_dir in $PATH
16733 IFS=$as_save_IFS
16734 test -z "$as_dir" && as_dir=.
16735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16736 done
16737 IFS=$as_save_IFS
16740 esac
16741 # We did not find ourselves, most probably we were run as `sh COMMAND'
16742 # in which case we are not to be found in the path.
16743 if test "x$as_myself" = x; then
16744 as_myself=$0
16746 if test ! -f "$as_myself"; then
16747 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16748 { (exit 1); exit 1; }
16751 # Work around bugs in pre-3.0 UWIN ksh.
16752 for as_var in ENV MAIL MAILPATH
16753 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16754 done
16755 PS1='$ '
16756 PS2='> '
16757 PS4='+ '
16759 # NLS nuisances.
16760 for as_var in \
16761 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16762 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16763 LC_TELEPHONE LC_TIME
16765 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16766 eval $as_var=C; export $as_var
16767 else
16768 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16770 done
16772 # Required to use basename.
16773 if expr a : '\(a\)' >/dev/null 2>&1 &&
16774 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16775 as_expr=expr
16776 else
16777 as_expr=false
16780 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16781 as_basename=basename
16782 else
16783 as_basename=false
16787 # Name of the executable.
16788 as_me=`$as_basename -- "$0" ||
16789 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16790 X"$0" : 'X\(//\)$' \| \
16791 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16792 echo X/"$0" |
16793 sed '/^.*\/\([^/][^/]*\)\/*$/{
16794 s//\1/
16797 /^X\/\(\/\/\)$/{
16798 s//\1/
16801 /^X\/\(\/\).*/{
16802 s//\1/
16805 s/.*/./; q'`
16807 # CDPATH.
16808 $as_unset CDPATH
16812 as_lineno_1=$LINENO
16813 as_lineno_2=$LINENO
16814 test "x$as_lineno_1" != "x$as_lineno_2" &&
16815 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16817 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16818 # uniformly replaced by the line number. The first 'sed' inserts a
16819 # line-number line after each line using $LINENO; the second 'sed'
16820 # does the real work. The second script uses 'N' to pair each
16821 # line-number line with the line containing $LINENO, and appends
16822 # trailing '-' during substitution so that $LINENO is not a special
16823 # case at line end.
16824 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16825 # scripts with optimization help from Paolo Bonzini. Blame Lee
16826 # E. McMahon (1931-1989) for sed's syntax. :-)
16827 sed -n '
16829 /[$]LINENO/=
16830 ' <$as_myself |
16831 sed '
16832 s/[$]LINENO.*/&-/
16833 t lineno
16835 :lineno
16837 :loop
16838 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16839 t loop
16840 s/-\n.*//
16841 ' >$as_me.lineno &&
16842 chmod +x "$as_me.lineno" ||
16843 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16844 { (exit 1); exit 1; }; }
16846 # Don't try to exec as it changes $[0], causing all sort of problems
16847 # (the dirname of $[0] is not the place where we might find the
16848 # original and so on. Autoconf is especially sensitive to this).
16849 . "./$as_me.lineno"
16850 # Exit status is that of the last command.
16851 exit
16855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16856 as_dirname=dirname
16857 else
16858 as_dirname=false
16861 ECHO_C= ECHO_N= ECHO_T=
16862 case `echo -n x` in
16863 -n*)
16864 case `echo 'x\c'` in
16865 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16866 *) ECHO_C='\c';;
16867 esac;;
16869 ECHO_N='-n';;
16870 esac
16872 if expr a : '\(a\)' >/dev/null 2>&1 &&
16873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16874 as_expr=expr
16875 else
16876 as_expr=false
16879 rm -f conf$$ conf$$.exe conf$$.file
16880 if test -d conf$$.dir; then
16881 rm -f conf$$.dir/conf$$.file
16882 else
16883 rm -f conf$$.dir
16884 mkdir conf$$.dir
16886 echo >conf$$.file
16887 if ln -s conf$$.file conf$$ 2>/dev/null; then
16888 as_ln_s='ln -s'
16889 # ... but there are two gotchas:
16890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16892 # In both cases, we have to default to `cp -p'.
16893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16894 as_ln_s='cp -p'
16895 elif ln conf$$.file conf$$ 2>/dev/null; then
16896 as_ln_s=ln
16897 else
16898 as_ln_s='cp -p'
16900 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16901 rmdir conf$$.dir 2>/dev/null
16903 if mkdir -p . 2>/dev/null; then
16904 as_mkdir_p=:
16905 else
16906 test -d ./-p && rmdir ./-p
16907 as_mkdir_p=false
16910 if test -x / >/dev/null 2>&1; then
16911 as_test_x='test -x'
16912 else
16913 if ls -dL / >/dev/null 2>&1; then
16914 as_ls_L_option=L
16915 else
16916 as_ls_L_option=
16918 as_test_x='
16919 eval sh -c '\''
16920 if test -d "$1"; then
16921 test -d "$1/.";
16922 else
16923 case $1 in
16924 -*)set "./$1";;
16925 esac;
16926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16927 ???[sx]*):;;*)false;;esac;fi
16928 '\'' sh
16931 as_executable_p=$as_test_x
16933 # Sed expression to map a string onto a valid CPP name.
16934 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16936 # Sed expression to map a string onto a valid variable name.
16937 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16940 exec 6>&1
16942 # Save the log message, to keep $[0] and so on meaningful, and to
16943 # report actual input values of CONFIG_FILES etc. instead of their
16944 # values after options handling.
16945 ac_log="
16946 This file was extended by $as_me, which was
16947 generated by GNU Autoconf 2.61. Invocation command line was
16949 CONFIG_FILES = $CONFIG_FILES
16950 CONFIG_HEADERS = $CONFIG_HEADERS
16951 CONFIG_LINKS = $CONFIG_LINKS
16952 CONFIG_COMMANDS = $CONFIG_COMMANDS
16953 $ $0 $@
16955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16958 _ACEOF
16960 cat >>$CONFIG_STATUS <<_ACEOF
16961 # Files that config.status was made for.
16962 config_files="$ac_config_files"
16963 config_headers="$ac_config_headers"
16965 _ACEOF
16967 cat >>$CONFIG_STATUS <<\_ACEOF
16968 ac_cs_usage="\
16969 \`$as_me' instantiates files from templates according to the
16970 current configuration.
16972 Usage: $0 [OPTIONS] [FILE]...
16974 -h, --help print this help, then exit
16975 -V, --version print version number and configuration settings, then exit
16976 -q, --quiet do not print progress messages
16977 -d, --debug don't remove temporary files
16978 --recheck update $as_me by reconfiguring in the same conditions
16979 --file=FILE[:TEMPLATE]
16980 instantiate the configuration file FILE
16981 --header=FILE[:TEMPLATE]
16982 instantiate the configuration header FILE
16984 Configuration files:
16985 $config_files
16987 Configuration headers:
16988 $config_headers
16990 Report bugs to <bug-autoconf@gnu.org>."
16992 _ACEOF
16993 cat >>$CONFIG_STATUS <<_ACEOF
16994 ac_cs_version="\\
16995 config.status
16996 configured by $0, generated by GNU Autoconf 2.61,
16997 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16999 Copyright (C) 2006 Free Software Foundation, Inc.
17000 This config.status script is free software; the Free Software Foundation
17001 gives unlimited permission to copy, distribute and modify it."
17003 ac_pwd='$ac_pwd'
17004 srcdir='$srcdir'
17005 _ACEOF
17007 cat >>$CONFIG_STATUS <<\_ACEOF
17008 # If no file are specified by the user, then we need to provide default
17009 # value. By we need to know if files were specified by the user.
17010 ac_need_defaults=:
17011 while test $# != 0
17013 case $1 in
17014 --*=*)
17015 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17016 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17017 ac_shift=:
17020 ac_option=$1
17021 ac_optarg=$2
17022 ac_shift=shift
17024 esac
17026 case $ac_option in
17027 # Handling of the options.
17028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17029 ac_cs_recheck=: ;;
17030 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17031 echo "$ac_cs_version"; exit ;;
17032 --debug | --debu | --deb | --de | --d | -d )
17033 debug=: ;;
17034 --file | --fil | --fi | --f )
17035 $ac_shift
17036 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17037 ac_need_defaults=false;;
17038 --header | --heade | --head | --hea )
17039 $ac_shift
17040 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17041 ac_need_defaults=false;;
17042 --he | --h)
17043 # Conflict between --help and --header
17044 { echo "$as_me: error: ambiguous option: $1
17045 Try \`$0 --help' for more information." >&2
17046 { (exit 1); exit 1; }; };;
17047 --help | --hel | -h )
17048 echo "$ac_cs_usage"; exit ;;
17049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17051 ac_cs_silent=: ;;
17053 # This is an error.
17054 -*) { echo "$as_me: error: unrecognized option: $1
17055 Try \`$0 --help' for more information." >&2
17056 { (exit 1); exit 1; }; } ;;
17058 *) ac_config_targets="$ac_config_targets $1"
17059 ac_need_defaults=false ;;
17061 esac
17062 shift
17063 done
17065 ac_configure_extra_args=
17067 if $ac_cs_silent; then
17068 exec 6>/dev/null
17069 ac_configure_extra_args="$ac_configure_extra_args --silent"
17072 _ACEOF
17073 cat >>$CONFIG_STATUS <<_ACEOF
17074 if \$ac_cs_recheck; then
17075 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17076 CONFIG_SHELL=$SHELL
17077 export CONFIG_SHELL
17078 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17081 _ACEOF
17082 cat >>$CONFIG_STATUS <<\_ACEOF
17083 exec 5>>config.log
17085 echo
17086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17087 ## Running $as_me. ##
17088 _ASBOX
17089 echo "$ac_log"
17090 } >&5
17092 _ACEOF
17093 cat >>$CONFIG_STATUS <<_ACEOF
17094 _ACEOF
17096 cat >>$CONFIG_STATUS <<\_ACEOF
17098 # Handling of arguments.
17099 for ac_config_target in $ac_config_targets
17101 case $ac_config_target in
17102 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17103 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17106 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17107 { (exit 1); exit 1; }; };;
17108 esac
17109 done
17112 # If the user did not use the arguments to specify the items to instantiate,
17113 # then the envvar interface is used. Set only those that are not.
17114 # We use the long form for the default assignment because of an extremely
17115 # bizarre bug on SunOS 4.1.3.
17116 if $ac_need_defaults; then
17117 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17118 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17121 # Have a temporary directory for convenience. Make it in the build tree
17122 # simply because there is no reason against having it here, and in addition,
17123 # creating and moving files from /tmp can sometimes cause problems.
17124 # Hook for its removal unless debugging.
17125 # Note that there is a small window in which the directory will not be cleaned:
17126 # after its creation but before its name has been assigned to `$tmp'.
17127 $debug ||
17129 tmp=
17130 trap 'exit_status=$?
17131 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17133 trap '{ (exit 1); exit 1; }' 1 2 13 15
17135 # Create a (secure) tmp directory for tmp files.
17138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17139 test -n "$tmp" && test -d "$tmp"
17140 } ||
17142 tmp=./conf$$-$RANDOM
17143 (umask 077 && mkdir "$tmp")
17144 } ||
17146 echo "$me: cannot create a temporary directory in ." >&2
17147 { (exit 1); exit 1; }
17151 # Set up the sed scripts for CONFIG_FILES section.
17154 # No need to generate the scripts if there are no CONFIG_FILES.
17155 # This happens for instance when ./config.status config.h
17156 if test -n "$CONFIG_FILES"; then
17158 _ACEOF
17162 ac_delim='%!_!# '
17163 for ac_last_try in false false false false false :; do
17164 cat >conf$$subs.sed <<_ACEOF
17165 SHELL!$SHELL$ac_delim
17166 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17167 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17168 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17169 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17170 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17171 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17172 exec_prefix!$exec_prefix$ac_delim
17173 prefix!$prefix$ac_delim
17174 program_transform_name!$program_transform_name$ac_delim
17175 bindir!$bindir$ac_delim
17176 sbindir!$sbindir$ac_delim
17177 libexecdir!$libexecdir$ac_delim
17178 datarootdir!$datarootdir$ac_delim
17179 datadir!$datadir$ac_delim
17180 sysconfdir!$sysconfdir$ac_delim
17181 sharedstatedir!$sharedstatedir$ac_delim
17182 localstatedir!$localstatedir$ac_delim
17183 includedir!$includedir$ac_delim
17184 oldincludedir!$oldincludedir$ac_delim
17185 docdir!$docdir$ac_delim
17186 infodir!$infodir$ac_delim
17187 htmldir!$htmldir$ac_delim
17188 dvidir!$dvidir$ac_delim
17189 pdfdir!$pdfdir$ac_delim
17190 psdir!$psdir$ac_delim
17191 libdir!$libdir$ac_delim
17192 localedir!$localedir$ac_delim
17193 mandir!$mandir$ac_delim
17194 DEFS!$DEFS$ac_delim
17195 ECHO_C!$ECHO_C$ac_delim
17196 ECHO_N!$ECHO_N$ac_delim
17197 ECHO_T!$ECHO_T$ac_delim
17198 LIBS!$LIBS$ac_delim
17199 build_alias!$build_alias$ac_delim
17200 host_alias!$host_alias$ac_delim
17201 target_alias!$target_alias$ac_delim
17202 SET_MAKE!$SET_MAKE$ac_delim
17203 CC!$CC$ac_delim
17204 CFLAGS!$CFLAGS$ac_delim
17205 LDFLAGS!$LDFLAGS$ac_delim
17206 CPPFLAGS!$CPPFLAGS$ac_delim
17207 ac_ct_CC!$ac_ct_CC$ac_delim
17208 EXEEXT!$EXEEXT$ac_delim
17209 OBJEXT!$OBJEXT$ac_delim
17210 CPP!$CPP$ac_delim
17211 GREP!$GREP$ac_delim
17212 EGREP!$EGREP$ac_delim
17213 AWK!$AWK$ac_delim
17214 STRIP!$STRIP$ac_delim
17215 CPP_MM!$CPP_MM$ac_delim
17216 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17217 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17218 VIMNAME!$VIMNAME$ac_delim
17219 EXNAME!$EXNAME$ac_delim
17220 VIEWNAME!$VIEWNAME$ac_delim
17221 line_break!$line_break$ac_delim
17222 dovimdiff!$dovimdiff$ac_delim
17223 dogvimdiff!$dogvimdiff$ac_delim
17224 compiledby!$compiledby$ac_delim
17225 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17226 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17227 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17228 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17229 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17230 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17231 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17232 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17233 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17234 vi_cv_perllib!$vi_cv_perllib$ac_delim
17235 shrpenv!$shrpenv$ac_delim
17236 PERL_SRC!$PERL_SRC$ac_delim
17237 PERL_OBJ!$PERL_OBJ$ac_delim
17238 PERL_PRO!$PERL_PRO$ac_delim
17239 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17240 PERL_LIBS!$PERL_LIBS$ac_delim
17241 vi_cv_path_python!$vi_cv_path_python$ac_delim
17242 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17243 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17244 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17245 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17246 PYTHON_SRC!$PYTHON_SRC$ac_delim
17247 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17248 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17249 TCL_SRC!$TCL_SRC$ac_delim
17250 TCL_OBJ!$TCL_OBJ$ac_delim
17251 TCL_PRO!$TCL_PRO$ac_delim
17252 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17253 TCL_LIBS!$TCL_LIBS$ac_delim
17254 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17255 RUBY_SRC!$RUBY_SRC$ac_delim
17256 RUBY_OBJ!$RUBY_OBJ$ac_delim
17257 RUBY_PRO!$RUBY_PRO$ac_delim
17258 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17259 RUBY_LIBS!$RUBY_LIBS$ac_delim
17260 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17261 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17262 _ACEOF
17264 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17265 break
17266 elif $ac_last_try; then
17267 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17268 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17269 { (exit 1); exit 1; }; }
17270 else
17271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17273 done
17275 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17276 if test -n "$ac_eof"; then
17277 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17278 ac_eof=`expr $ac_eof + 1`
17281 cat >>$CONFIG_STATUS <<_ACEOF
17282 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17284 _ACEOF
17285 sed '
17286 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17287 s/^/s,@/; s/!/@,|#_!!_#|/
17290 s/'"$ac_delim"'$/,g/; t
17291 s/$/\\/; p
17292 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17293 ' >>$CONFIG_STATUS <conf$$subs.sed
17294 rm -f conf$$subs.sed
17295 cat >>$CONFIG_STATUS <<_ACEOF
17296 CEOF$ac_eof
17297 _ACEOF
17300 ac_delim='%!_!# '
17301 for ac_last_try in false false false false false :; do
17302 cat >conf$$subs.sed <<_ACEOF
17303 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17304 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17305 SNIFF_SRC!$SNIFF_SRC$ac_delim
17306 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17307 xmkmfpath!$xmkmfpath$ac_delim
17308 XMKMF!$XMKMF$ac_delim
17309 X_CFLAGS!$X_CFLAGS$ac_delim
17310 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17311 X_LIBS!$X_LIBS$ac_delim
17312 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17313 X_LIB!$X_LIB$ac_delim
17314 GTK_CONFIG!$GTK_CONFIG$ac_delim
17315 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17316 PKG_CONFIG!$PKG_CONFIG$ac_delim
17317 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17318 GTK_LIBS!$GTK_LIBS$ac_delim
17319 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17320 GNOME_LIBS!$GNOME_LIBS$ac_delim
17321 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17322 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17323 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17324 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17325 NARROW_PROTO!$NARROW_PROTO$ac_delim
17326 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17327 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17328 GUITYPE!$GUITYPE$ac_delim
17329 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17330 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17331 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17332 TAGPRG!$TAGPRG$ac_delim
17333 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17334 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17335 MSGFMT!$MSGFMT$ac_delim
17336 MAKEMO!$MAKEMO$ac_delim
17337 XCODEFLAGS!$XCODEFLAGS$ac_delim
17338 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17339 LIBOBJS!$LIBOBJS$ac_delim
17340 LTLIBOBJS!$LTLIBOBJS$ac_delim
17341 _ACEOF
17343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
17344 break
17345 elif $ac_last_try; then
17346 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17347 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17348 { (exit 1); exit 1; }; }
17349 else
17350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17352 done
17354 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17355 if test -n "$ac_eof"; then
17356 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17357 ac_eof=`expr $ac_eof + 1`
17360 cat >>$CONFIG_STATUS <<_ACEOF
17361 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17363 _ACEOF
17364 sed '
17365 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17366 s/^/s,@/; s/!/@,|#_!!_#|/
17369 s/'"$ac_delim"'$/,g/; t
17370 s/$/\\/; p
17371 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17372 ' >>$CONFIG_STATUS <conf$$subs.sed
17373 rm -f conf$$subs.sed
17374 cat >>$CONFIG_STATUS <<_ACEOF
17375 :end
17376 s/|#_!!_#|//g
17377 CEOF$ac_eof
17378 _ACEOF
17381 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17382 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17383 # trailing colons and then remove the whole line if VPATH becomes empty
17384 # (actually we leave an empty line to preserve line numbers).
17385 if test "x$srcdir" = x.; then
17386 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17387 s/:*\$(srcdir):*/:/
17388 s/:*\${srcdir}:*/:/
17389 s/:*@srcdir@:*/:/
17390 s/^\([^=]*=[ ]*\):*/\1/
17391 s/:*$//
17392 s/^[^=]*=[ ]*$//
17396 cat >>$CONFIG_STATUS <<\_ACEOF
17397 fi # test -n "$CONFIG_FILES"
17400 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
17402 case $ac_tag in
17403 :[FHLC]) ac_mode=$ac_tag; continue;;
17404 esac
17405 case $ac_mode$ac_tag in
17406 :[FHL]*:*);;
17407 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17408 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17409 { (exit 1); exit 1; }; };;
17410 :[FH]-) ac_tag=-:-;;
17411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17412 esac
17413 ac_save_IFS=$IFS
17414 IFS=:
17415 set x $ac_tag
17416 IFS=$ac_save_IFS
17417 shift
17418 ac_file=$1
17419 shift
17421 case $ac_mode in
17422 :L) ac_source=$1;;
17423 :[FH])
17424 ac_file_inputs=
17425 for ac_f
17427 case $ac_f in
17428 -) ac_f="$tmp/stdin";;
17429 *) # Look for the file first in the build tree, then in the source tree
17430 # (if the path is not absolute). The absolute path cannot be DOS-style,
17431 # because $ac_f cannot contain `:'.
17432 test -f "$ac_f" ||
17433 case $ac_f in
17434 [\\/$]*) false;;
17435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17436 esac ||
17437 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17438 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17439 { (exit 1); exit 1; }; };;
17440 esac
17441 ac_file_inputs="$ac_file_inputs $ac_f"
17442 done
17444 # Let's still pretend it is `configure' which instantiates (i.e., don't
17445 # use $as_me), people would be surprised to read:
17446 # /* config.h. Generated by config.status. */
17447 configure_input="Generated from "`IFS=:
17448 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17449 if test x"$ac_file" != x-; then
17450 configure_input="$ac_file. $configure_input"
17451 { echo "$as_me:$LINENO: creating $ac_file" >&5
17452 echo "$as_me: creating $ac_file" >&6;}
17455 case $ac_tag in
17456 *:-:* | *:-) cat >"$tmp/stdin";;
17457 esac
17459 esac
17461 ac_dir=`$as_dirname -- "$ac_file" ||
17462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17463 X"$ac_file" : 'X\(//\)[^/]' \| \
17464 X"$ac_file" : 'X\(//\)$' \| \
17465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17466 echo X"$ac_file" |
17467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17468 s//\1/
17471 /^X\(\/\/\)[^/].*/{
17472 s//\1/
17475 /^X\(\/\/\)$/{
17476 s//\1/
17479 /^X\(\/\).*/{
17480 s//\1/
17483 s/.*/./; q'`
17484 { as_dir="$ac_dir"
17485 case $as_dir in #(
17486 -*) as_dir=./$as_dir;;
17487 esac
17488 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17489 as_dirs=
17490 while :; do
17491 case $as_dir in #(
17492 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17493 *) as_qdir=$as_dir;;
17494 esac
17495 as_dirs="'$as_qdir' $as_dirs"
17496 as_dir=`$as_dirname -- "$as_dir" ||
17497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17498 X"$as_dir" : 'X\(//\)[^/]' \| \
17499 X"$as_dir" : 'X\(//\)$' \| \
17500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17501 echo X"$as_dir" |
17502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17503 s//\1/
17506 /^X\(\/\/\)[^/].*/{
17507 s//\1/
17510 /^X\(\/\/\)$/{
17511 s//\1/
17514 /^X\(\/\).*/{
17515 s//\1/
17518 s/.*/./; q'`
17519 test -d "$as_dir" && break
17520 done
17521 test -z "$as_dirs" || eval "mkdir $as_dirs"
17522 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17523 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17524 { (exit 1); exit 1; }; }; }
17525 ac_builddir=.
17527 case "$ac_dir" in
17528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17531 # A ".." for each directory in $ac_dir_suffix.
17532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17533 case $ac_top_builddir_sub in
17534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17536 esac ;;
17537 esac
17538 ac_abs_top_builddir=$ac_pwd
17539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17540 # for backward compatibility:
17541 ac_top_builddir=$ac_top_build_prefix
17543 case $srcdir in
17544 .) # We are building in place.
17545 ac_srcdir=.
17546 ac_top_srcdir=$ac_top_builddir_sub
17547 ac_abs_top_srcdir=$ac_pwd ;;
17548 [\\/]* | ?:[\\/]* ) # Absolute name.
17549 ac_srcdir=$srcdir$ac_dir_suffix;
17550 ac_top_srcdir=$srcdir
17551 ac_abs_top_srcdir=$srcdir ;;
17552 *) # Relative name.
17553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17554 ac_top_srcdir=$ac_top_build_prefix$srcdir
17555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17556 esac
17557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17560 case $ac_mode in
17563 # CONFIG_FILE
17566 _ACEOF
17568 cat >>$CONFIG_STATUS <<\_ACEOF
17569 # If the template does not know about datarootdir, expand it.
17570 # FIXME: This hack should be removed a few years after 2.60.
17571 ac_datarootdir_hack=; ac_datarootdir_seen=
17573 case `sed -n '/datarootdir/ {
17577 /@datadir@/p
17578 /@docdir@/p
17579 /@infodir@/p
17580 /@localedir@/p
17581 /@mandir@/p
17582 ' $ac_file_inputs` in
17583 *datarootdir*) ac_datarootdir_seen=yes;;
17584 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17585 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17586 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17587 _ACEOF
17588 cat >>$CONFIG_STATUS <<_ACEOF
17589 ac_datarootdir_hack='
17590 s&@datadir@&$datadir&g
17591 s&@docdir@&$docdir&g
17592 s&@infodir@&$infodir&g
17593 s&@localedir@&$localedir&g
17594 s&@mandir@&$mandir&g
17595 s&\\\${datarootdir}&$datarootdir&g' ;;
17596 esac
17597 _ACEOF
17599 # Neutralize VPATH when `$srcdir' = `.'.
17600 # Shell code in configure.ac might set extrasub.
17601 # FIXME: do we really want to maintain this feature?
17602 cat >>$CONFIG_STATUS <<_ACEOF
17603 sed "$ac_vpsub
17604 $extrasub
17605 _ACEOF
17606 cat >>$CONFIG_STATUS <<\_ACEOF
17608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17609 s&@configure_input@&$configure_input&;t t
17610 s&@top_builddir@&$ac_top_builddir_sub&;t t
17611 s&@srcdir@&$ac_srcdir&;t t
17612 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17613 s&@top_srcdir@&$ac_top_srcdir&;t t
17614 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17615 s&@builddir@&$ac_builddir&;t t
17616 s&@abs_builddir@&$ac_abs_builddir&;t t
17617 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17618 $ac_datarootdir_hack
17619 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17621 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17622 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17624 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17625 which seems to be undefined. Please make sure it is defined." >&5
17626 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17627 which seems to be undefined. Please make sure it is defined." >&2;}
17629 rm -f "$tmp/stdin"
17630 case $ac_file in
17631 -) cat "$tmp/out"; rm -f "$tmp/out";;
17632 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17633 esac
17637 # CONFIG_HEADER
17639 _ACEOF
17641 # Transform confdefs.h into a sed script `conftest.defines', that
17642 # substitutes the proper values into config.h.in to produce config.h.
17643 rm -f conftest.defines conftest.tail
17644 # First, append a space to every undef/define line, to ease matching.
17645 echo 's/$/ /' >conftest.defines
17646 # Then, protect against being on the right side of a sed subst, or in
17647 # an unquoted here document, in config.status. If some macros were
17648 # called several times there might be several #defines for the same
17649 # symbol, which is useless. But do not sort them, since the last
17650 # AC_DEFINE must be honored.
17651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17652 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17653 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17654 # PARAMS is the parameter list in the macro definition--in most cases, it's
17655 # just an empty string.
17656 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17657 ac_dB='\\)[ (].*,\\1define\\2'
17658 ac_dC=' '
17659 ac_dD=' ,'
17661 uniq confdefs.h |
17662 sed -n '
17663 t rset
17664 :rset
17665 s/^[ ]*#[ ]*define[ ][ ]*//
17666 t ok
17669 s/[\\&,]/\\&/g
17670 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17671 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17672 ' >>conftest.defines
17674 # Remove the space that was appended to ease matching.
17675 # Then replace #undef with comments. This is necessary, for
17676 # example, in the case of _POSIX_SOURCE, which is predefined and required
17677 # on some systems where configure will not decide to define it.
17678 # (The regexp can be short, since the line contains either #define or #undef.)
17679 echo 's/ $//
17680 s,^[ #]*u.*,/* & */,' >>conftest.defines
17682 # Break up conftest.defines:
17683 ac_max_sed_lines=50
17685 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17686 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17687 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17688 # et cetera.
17689 ac_in='$ac_file_inputs'
17690 ac_out='"$tmp/out1"'
17691 ac_nxt='"$tmp/out2"'
17693 while :
17695 # Write a here document:
17696 cat >>$CONFIG_STATUS <<_ACEOF
17697 # First, check the format of the line:
17698 cat >"\$tmp/defines.sed" <<\\CEOF
17699 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17700 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17702 :def
17703 _ACEOF
17704 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17705 echo 'CEOF
17706 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17707 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17708 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17709 grep . conftest.tail >/dev/null || break
17710 rm -f conftest.defines
17711 mv conftest.tail conftest.defines
17712 done
17713 rm -f conftest.defines conftest.tail
17715 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17716 cat >>$CONFIG_STATUS <<\_ACEOF
17717 if test x"$ac_file" != x-; then
17718 echo "/* $configure_input */" >"$tmp/config.h"
17719 cat "$ac_result" >>"$tmp/config.h"
17720 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17721 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17722 echo "$as_me: $ac_file is unchanged" >&6;}
17723 else
17724 rm -f $ac_file
17725 mv "$tmp/config.h" $ac_file
17727 else
17728 echo "/* $configure_input */"
17729 cat "$ac_result"
17731 rm -f "$tmp/out12"
17735 esac
17737 done # for ac_tag
17740 { (exit 0); exit 0; }
17741 _ACEOF
17742 chmod +x $CONFIG_STATUS
17743 ac_clean_files=$ac_clean_files_save
17746 # configure is writing to config.log, and then calls config.status.
17747 # config.status does its own redirection, appending to config.log.
17748 # Unfortunately, on DOS this fails, as config.log is still kept open
17749 # by configure, so config.status won't be able to write to it; its
17750 # output is simply discarded. So we exec the FD to /dev/null,
17751 # effectively closing config.log, so it can be properly (re)opened and
17752 # appended to by config.status. When coming back to configure, we
17753 # need to make the FD available again.
17754 if test "$no_create" != yes; then
17755 ac_cs_success=:
17756 ac_config_status_args=
17757 test "$silent" = yes &&
17758 ac_config_status_args="$ac_config_status_args --quiet"
17759 exec 5>/dev/null
17760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17761 exec 5>>config.log
17762 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17763 # would make configure fail if this is the last instruction.
17764 $ac_cs_success || { (exit 1); exit 1; }