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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
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
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
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
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
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; }
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
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 () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
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
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
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. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
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
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`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="vim.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
695 PYTHON_GETPATH_CFLAGS
752 ac_precious_vars
='build_alias
764 # Initialize some variables set by options.
766 ac_init_version
=false
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name
=s
,x
,x
,
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'
806 libdir
='${exec_prefix}/lib'
807 localedir
='${datarootdir}/locale'
808 mandir
='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\
$ac_option
822 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
832 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
834 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
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 ;;
850 cache_file
=config.cache
;;
852 -datadir |
--datadir |
--datadi |
--datad)
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)
875 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
878 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
880 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
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.
905 -help |
--help |
--hel |
--he |
-h)
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)
919 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
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)
932 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
933 infodir
=$ac_optarg ;;
935 -libdir |
--libdir |
--libdi |
--libd)
937 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
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)
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)
961 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
965 # Obsolete; use --without-fp.
968 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
969 |
--no-cr |
--no-c |
-n)
972 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
973 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
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)
987 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
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)
1023 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1024 pdfdir
=$ac_optarg ;;
1026 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1028 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1031 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1032 |
-silent |
--silent |
--silen |
--sile |
--sil)
1035 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1037 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1039 sbindir
=$ac_optarg ;;
1041 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1042 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1043 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1045 ac_prev
=sharedstatedir
;;
1046 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1047 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1048 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1050 sharedstatedir
=$ac_optarg ;;
1052 -site |
--site |
--sit)
1054 -site=* |
--site=* |
--sit=*)
1057 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
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)
1077 -version |
--version |
--versio |
--versi |
--vers |
-V)
1078 ac_init_version
=: ;;
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
;;
1099 # Obsolete; use --with-x.
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; }; }
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}
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
1155 [\\/$
]* | ?
:[\\/]* ) continue;;
1156 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1158 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1159 { (exit 1); exit 1; }; }
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.
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
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 ||
1206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 if test ! -r "$srcdir/$ac_unique_file"; then
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"
1237 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1238 { (exit 1); exit 1; }; }
1240 # When building in place, set srcdir=.
1241 if test "$ac_abs_confdir" = "$ac_pwd"; then
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.
1248 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
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}
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.
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.
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
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]
1322 --x-includes=DIR X include files are
in DIR
1323 --x-libraries=DIR X library files are
in DIR
1327 if test -n "$ac_init_help"; then
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()).
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
>
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.
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
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/ ;;
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
1434 .) # We are building in place.
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 ;;
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 ;;
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
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1458 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
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.
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
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
`
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 test -z "$as_dir" && as_dir=.
1518 echo "PATH: $as_dir"
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.
1542 ac_must_keep_next=false
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)
1553 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
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.
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 ;;
1571 -* ) ac_must_keep_next=true ;;
1574 ac_configure_args="$ac_configure_args '$ac_arg'"
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.
1593 ## ---------------- ##
1594 ## Cache variables. ##
1595 ## ---------------- ##
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
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;} ;;
1609 _ | IFS | as_nl) ;; #(
1610 *) $as_unset $ac_var ;;
1615 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1616 *${as_nl}ac_space=\ *)
1618 "s/'\''/'\''\\\\'\'''\''/g;
1619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1630 ## ----------------- ##
1631 ## Output variables. ##
1632 ## ----------------- ##
1635 for ac_var in $ac_subst_vars
1637 eval ac_val=\$$ac_var
1639 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 echo "$ac_var='\''$ac_val'\''"
1645 if test -n "$ac_subst_files"; then
1647 ## ------------------- ##
1648 ## File substitutions. ##
1649 ## ------------------- ##
1652 for ac_var in $ac_subst_files
1654 eval ac_val=\$$ac_var
1656 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 echo "$ac_var='\''$ac_val'\''"
1663 if test -s confdefs.h; then
1673 test "$ac_signal" != 0 &&
1674 echo "$as_me: caught signal $ac_signal"
1675 echo "$as_me: exit $exit_status"
1677 rm -f core *.core core.conftest.* &&
1678 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1681 for ac_signal in 1 2 13 15; do
1682 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_STRING "$PACKAGE_STRING"
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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"
1723 set x "$ac_default_prefix/share/config.site" \
1724 "$ac_default_prefix/etc/config.site"
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
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;}
1744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745 *) . "./$cache_file";;
1749 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750 echo "$as_me: creating cache $cache_file" >&6;}
1754 # Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
1783 # Pass precious variables to config.status.
1784 if test "$ac_new_set" = set; then
1786 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1787 *) ac_arg=$ac_var=$ac_new_val ;;
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'" ;;
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; }; }
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
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
1839 cat >conftest.make <<\_ACEOF
1842 @echo '@@@%%%=$(MAKE)=@@@%%%'
1844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1845 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1847 eval ac_cv_prog_make_${ac_make}_set=yes;;
1849 eval ac_cv_prog_make_${ac_make}_set=no;;
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; }
1858 { echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6; }
1860 SET_MAKE="MAKE=${MAKE-make}"
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
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1898 if test -n "$CC"; then
1899 { echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6; }
1902 { echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6; }
1908 if test -z "$ac_cv_prog_CC"; then
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
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
1942 { echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6; }
1946 if test "x$ac_ct_CC" = x; then
1949 case $cross_compiling:$ac_tool_warned in
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 ;;
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
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
1995 if test -n "$CC"; then
1996 { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
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
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
2046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2052 if test -n "$CC"; then
2053 { echo "$as_me:$LINENO: result: $CC" >&5
2054 echo "${ECHO_T}$CC" >&6; }
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
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
2094 if test -n "$CC"; then
2095 { echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6; }
2098 { echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6; }
2103 test -n "$CC" && break
2106 if test -z "$CC"; then
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
2117 if test -n "$ac_ct_CC"; then
2118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2147 test -n "$ac_ct_CC" && break
2150 if test "x$ac_ct_CC" = x; then
2153 case $cross_compiling:$ac_tool_warned in
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 ;;
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"
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2185 (eval "$ac_compiler --version >&5") 2>&5
2187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2188 (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2195 (eval "$ac_compiler -v >&5") 2>&5
2197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2198 (exit $ac_status); }
2199 { (ac_try="$ac_compiler -V >&5"
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2205 (eval "$ac_compiler -V >&5") 2>&5
2207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2208 (exit $ac_status); }
2210 cat >conftest.$ac_ext <<_ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h. */
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
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.
2243 for ac_file in $ac_files
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2252 if { (ac_try="$ac_link_default"
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_link_default") 2>&5
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
2267 for ac_file in $ac_files ''
2269 test -f "$ac_file" || continue
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2274 # We found the default executable, but exeext='' is most
2278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
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
2292 test "$ac_cv_exeext" = no && ac_cv_exeext=
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;;
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_try") 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2332 if test "$cross_compiling" = maybe; then
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"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_link") 2>&5
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
2373 for ac_file in conftest.exe conftest conftest.*; do
2374 test -f "$ac_file" || continue
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2377 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
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
2402 cat >conftest.$ac_ext <<_ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2417 rm -f conftest.o conftest.obj
2418 if { (ac_try="$ac_compile"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_compile") 2>&5
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;
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2432 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
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
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
2458 cat >conftest.$ac_ext <<_ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2476 rm -f conftest.$ac_objext
2477 if { (ac_try="$ac_compile"
2479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2480 *) ac_try_echo
=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_compile") 2>conftest.er1
2485 grep -v '^ *+' conftest.er1
>conftest.err
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
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.
$ac_ext >&5
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
2515 ac_save_c_werror_flag
=$ac_c_werror_flag
2516 ac_c_werror_flag
=yes
2519 cat >conftest.
$ac_ext <<_ACEOF
2522 cat confdefs.h
>>conftest.
$ac_ext
2523 cat >>conftest.
$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2534 rm -f conftest.
$ac_objext
2535 if { (ac_try
="$ac_compile"
2537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541 (eval "$ac_compile") 2>conftest.er1
2543 grep -v '^ *+' conftest.er1 >conftest.err
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
2553 echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2557 cat >conftest.$ac_ext <<_ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2576 *) ac_try_echo
=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2581 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2596 cat >conftest.
$ac_ext <<_ACEOF
2599 cat confdefs.h
>>conftest.
$ac_ext
2600 cat >>conftest.
$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2611 rm -f conftest.
$ac_objext
2612 if { (ac_try
="$ac_compile"
2614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>conftest.er1
2620 grep -v '^ *+' conftest.er1 >conftest.err
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
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
2656 if test "$GCC" = yes; then
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
2667 ac_cv_prog_cc_c89=no
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.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)
2688 static char *f (char * (*g) (char **, int), char **p, ...)
2693 s = g (p, va_arg (v,int));
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. */
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);
2721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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"
2733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2734 *) ac_try_echo
=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2739 grep -v '^ *+' conftest.er1
>conftest.err
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
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
2758 rm -f conftest.
$ac_ext
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; } ;;
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; } ;;
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
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
2793 if test -z "$CPP"; then
2794 if test "${ac_cv_prog_CPP+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2797 # Double quotes because CPP needs to be expanded
2798 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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
2812 cat confdefs.h
>>conftest.
$ac_ext
2813 cat >>conftest.
$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2816 # include <limits.h>
2818 # include <assert.h>
2822 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
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
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2843 # Broken: fails on valid input.
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
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 #include <ac_nonexistent.h>
2859 if { (ac_try="$ac_cpp conftest.$ac_ext"
2861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2862 *) ac_try_echo
=$ac_try;;
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2867 grep -v '^ *+' conftest.er1
>conftest.err
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
2875 # Broken: success on invalid input.
2878 echo "$as_me: failed program was:" >&5
2879 sed 's/^/| /' conftest.
$ac_ext >&5
2881 # Passes both tests.
2886 rm -f conftest.err conftest.
$ac_ext
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
2903 { echo "$as_me:$LINENO: result: $CPP" >&5
2904 echo "${ECHO_T}$CPP" >&6; }
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
2917 cat confdefs.h
>>conftest.
$ac_ext
2918 cat >>conftest.
$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2921 # include <limits.h>
2923 # include <assert.h>
2927 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1 >conftest.err
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
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Broken: fails on valid input.
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
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962 #include <ac_nonexistent.h>
2964 if { (ac_try="$ac_cpp conftest.$ac_ext"
2966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2967 *) ac_try_echo
=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2972 grep -v '^ *+' conftest.er1
>conftest.err
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
2980 # Broken: success on invalid input.
2983 echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.
$ac_ext >&5
2986 # Passes both tests.
2991 rm -f conftest.err conftest.
$ac_ext
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
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; }; }
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
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
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
/xpg
4/bin
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
3039 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3042 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
3060 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3064 $ac_path_GREP_found && break 3
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; }; }
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
3097 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3098 then ac_cv_path_EGREP
="$GREP -E"
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
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
/xpg
4/bin
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
3121 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3124 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
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
3142 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3146 $ac_path_EGREP_found && break 3
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; }; }
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
3178 cat confdefs.h
>>conftest.
$ac_ext
3179 cat >>conftest.
$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
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
3189 ac_func_search_save_LIBS
=$LIBS
3190 cat >conftest.
$ac_ext <<_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. */
3212 for ac_lib
in '' cposix
; do
3213 if test -z "$ac_lib"; then
3214 ac_res
="none required"
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"
3222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226 (eval "$ac_link") 2>conftest.er1
3228 grep -v '^ *+' conftest.er1 >conftest.err
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
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 \
3247 if test "${ac_cv_search_strerror+set}" = set; then
3251 if test "${ac_cv_search_strerror+set}" = set; then
3254 ac_cv_search_strerror=no
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
3275 if test -n "$AWK"; then
3276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
3296 if test -n "$AWK"; then
3297 { echo "$as_me:$LINENO: result: $AWK" >&5
3298 echo "${ECHO_T}$AWK" >&6; }
3300 { echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6; }
3305 test -n "$AWK" && break
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
3315 if test -n "$STRIP"; then
3316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
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
3354 cat >conftest.$ac_ext <<_ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3377 *) ac_try_echo
=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1
>conftest.err
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
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
3405 cat confdefs.h
>>conftest.
$ac_ext
3406 cat >>conftest.
$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3412 $EGREP "memchr" >/dev
/null
2>&1; then
3415 ac_cv_header_stdc
=no
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
3426 cat confdefs.h
>>conftest.
$ac_ext
3427 cat >>conftest.
$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433 $EGREP "free" >/dev
/null
2>&1; then
3436 ac_cv_header_stdc
=no
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
3447 cat >conftest.
$ac_ext <<_ACEOF
3450 cat confdefs.h
>>conftest.
$ac_ext
3451 cat >>conftest.
$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3455 #if ((' ' & 0x0FF) == 0x020)
3456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
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))
3466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3471 for (i = 0; i < 256; i++)
3472 if (XOR (islower (i), ISLOWER (i))
3473 || toupper (i) != TOUPPER (i))
3478 rm -f conftest
$ac_exeext
3479 if { (ac_try
="$ac_link"
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_link") 2>&5
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;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_try") 2>&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
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
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
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
3528 cat >conftest.
$ac_ext <<_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>
3537 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3553 rm -f conftest.
$ac_objext
3554 if { (ac_try
="$ac_compile"
3556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3591 if test -z "$CFLAGS"; then
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/'`
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;}
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; }
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; };;
3636 { echo "$as_me:$LINENO: checking for QNX" >&5
3637 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
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; };;
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;
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; }
3671 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3672 echo "${ECHO_T}no, Darwin support disabled" >&6; }
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; }
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
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3721 rm -f conftest.$ac_objext conftest$ac_exeext
3722 if { (ac_try="$ac_link"
3724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3725 *) ac_try_echo
=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_link") 2>conftest.er1
3730 grep -v '^ *+' conftest.er1
>conftest.err
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"
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; }
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
3781 cat confdefs.h
>>conftest.
$ac_ext
3782 cat >>conftest.
$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3793 rm -f conftest.
$ac_objext conftest
$ac_exeext
3794 if { (ac_try
="$ac_link"
3796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_link") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
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\""
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; }
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
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
3855 cat >conftest.$ac_ext <<_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>
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3869 *) ac_try_echo
=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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; }
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
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>
3926 rm -f conftest.
$ac_objext
3927 if { (ac_try
="$ac_compile"
3929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_compile") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
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
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
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #include <Carbon/Carbon.h>
3966 if { (ac_try="$ac_cpp conftest.$ac_ext"
3968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3969 *) ac_try_echo
=$ac_try;;
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3974 grep -v '^ *+' conftest.er1
>conftest.err
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
3982 ac_header_preproc
=yes
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
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
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;}
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
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
4036 SAVE_CPPFLAGS
=$CPPFLAGS
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; }
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
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>
4061 rm -f conftest.
$ac_objext
4062 if { (ac_try
="$ac_compile"
4064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
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
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
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <Cocoa/Cocoa.h>
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4104 *) ac_try_echo
=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1
>conftest.err
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
4117 ac_header_preproc
=yes
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
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
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;}
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
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
4170 CPPFLAGS
=$SAVE_CPPFLAGS
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
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
=''
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"
4200 # avoid adding local dir to LDFLAGS and CPPFLAGS
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; }; } ;;
4208 { echo "$as_me:$LINENO: result: $local_dir" >&5
4209 echo "${ECHO_T}$local_dir" >&6; }
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; }
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; }
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; }
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"
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"
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
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
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
4328 make an error "Character set is not EBCDIC"
4334 rm -f conftest.
$ac_objext
4335 if { (ac_try
="$ac_compile"
4337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
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
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 # TryCompile action if false
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
4373 *) line_break='"\\012"';;
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; }
4381 OS/390) OS390Unix="yes";
4382 if test "$CC" = "cc"; then
4386 if test "$CC" = "c89"; then
4393 if test "$ccm" != "1"; then
4395 echo "------------------------------------------"
4396 echo " On OS/390 Unix, the environment variable"
4397 echo " __CC_${ccn}MODE must be set to \"1\"!"
4399 echo " export _CC_${ccn}MODE=1"
4400 echo " and then call configure again."
4401 echo "------------------------------------------"
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; }
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
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;
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
4432 ac_check_lib_save_LIBS=$LIBS
4433 LIBS="-lselinux $LIBS"
4434 cat >conftest.$ac_ext <<_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. */
4447 char is_selinux_enabled ();
4451 return is_selinux_enabled ();
4456 rm -f conftest.$ac_objext conftest$ac_exeext
4457 if { (ac_try="$ac_link"
4459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4460 *) ac_try_echo
=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_link") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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; }
4510 features
="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4511 echo "${ECHO_T}Defaulting to normal" >&6; }
4518 tiny
) cat >>confdefs.h
<<\_ACEOF
4522 small
) cat >>confdefs.h
<<\_ACEOF
4523 #define FEAT_SMALL 1
4526 normal
) cat >>confdefs.h
<<\_ACEOF
4527 #define FEAT_NORMAL 1
4529 dovimdiff
="installvimdiff";
4530 dogvimdiff
="installgvimdiff" ;;
4531 big
) cat >>confdefs.h
<<\_ACEOF
4534 dovimdiff
="installvimdiff";
4535 dogvimdiff
="installgvimdiff" ;;
4536 huge
) cat >>confdefs.h
<<\_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; } ;;
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; }
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;
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;
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
4592 { echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6; }
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;
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; }
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"
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"
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
4647 case $vi_cv_path_mzscheme in
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
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
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; }
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
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 | \
4701 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4702 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
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; }
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
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
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"
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"
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
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;
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
4813 case $vi_cv_path_perl in
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
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
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; }
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
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
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; }
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
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; }
4895 ldflags_save
=$LDFLAGS
4896 CFLAGS
="$CFLAGS $perlcppflags"
4897 LIBS
="$LIBS $perllibs"
4898 LDFLAGS
="$perlldflags $LDFLAGS"
4899 cat >conftest.
$ac_ext <<_ACEOF
4902 cat confdefs.h
>>conftest.
$ac_ext
4903 cat >>conftest.
$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4914 rm -f conftest.
$ac_objext conftest
$ac_exeext
4915 if { (ac_try
="$ac_link"
4917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4918 *) ac_try_echo=$ac_try;;
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_link") 2>conftest.er1
4923 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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"
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
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
4976 dir=/System/Library/Perl/5.8.1
4977 darwindir=$dir/darwin-thread-multi-2level
4978 if test -d $darwindir; then
4982 if test -n "$PERL"; then
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;
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
5016 case $vi_cv_path_python in
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
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
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; }
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
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)"
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
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
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
5099 vi_cv_path_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
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"
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; }
5141 if test "${vi_cv_path_python_plibs+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
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"
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"
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}"
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"
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; }
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"
5201 if test -n "$threadsafe_flag"; then
5203 CFLAGS="$CFLAGS $threadsafe_flag"
5204 LIBS="$LIBS $thread_lib"
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (ac_try="$ac_link"
5223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5224 *) ac_try_echo
=$ac_try;;
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_link") 2>conftest.er1
5229 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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; }
5261 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5262 LIBS
="$LIBS $PYTHON_LIBS"
5263 cat >conftest.
$ac_ext <<_ACEOF
5266 cat confdefs.h
>>conftest.
$ac_ext
5267 cat >>conftest.
$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5278 rm -f conftest.
$ac_objext conftest
$ac_exeext
5279 if { (ac_try
="$ac_link"
5281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_link") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
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
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
5310 if test $python_ok = yes; then
5311 cat >>confdefs.h <<\_ACEOF
5312 #define FEAT_PYTHON 1
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;
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; }
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
5370 case $vi_cv_path_tcl in
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
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
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; }
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
5414 case $vi_cv_path_tcl in
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
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
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; }
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
5457 case $vi_cv_path_tcl in
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
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
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; }
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
5500 case $vi_cv_path_tcl in
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
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
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; }
5528 { echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6; }
5534 if test "X$vi_cv_path_tcl" = "X"; then
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
5543 case $vi_cv_path_tcl in
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
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
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; }
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"
5591 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
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; }
5602 if test -z "$TCL_INC"; then
5603 { echo "$as_me:$LINENO: result: <not found>" >&5
5604 echo "${ECHO_T}<not found>" >&6; }
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
`"
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; }
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'`
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
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"
5650 if test -z "$TCL_LIBS"; then
5651 { echo "$as_me:$LINENO: result: <not found>" >&5
5652 echo "${ECHO_T}<not found>" >&6; }
5656 if test -z "$SKIP_TCL"; then
5657 cat >>confdefs.h <<\_ACEOF
5662 TCL_OBJ=objects/if_tcl.o
5664 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
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;
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
5699 case $vi_cv_path_ruby in
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
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
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; }
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"
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
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
5781 { echo "$as_me:$LINENO: result: not found" >&5
5782 echo "${ECHO_T}not found" >&6; }
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;
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
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;
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
5830 WORKSHOP_SRC="workshop.c integration.c"
5832 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5834 if test "${enable_gui-xxx}" = xxx; then
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;
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
5857 ac_check_lib_save_LIBS=$LIBS
5858 LIBS="-lsocket $LIBS"
5859 cat >conftest.$ac_ext <<_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. */
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (ac_try="$ac_link"
5884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5885 *) ac_try_echo
=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_link") 2>conftest.er1
5890 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
5928 ac_check_lib_save_LIBS
=$LIBS
5930 cat >conftest.
$ac_ext <<_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. */
5943 char gethostbyname ();
5947 return gethostbyname ();
5952 rm -f conftest.
$ac_objext conftest
$ac_exeext
5953 if { (ac_try
="$ac_link"
5955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6007 #include <netinet/in.h>
6009 #include <sys/types.h>
6010 #include <sys/socket.h>
6011 /* Check bitfields */
6013 unsigned int initDone:1;
6021 /* Check creating a socket. */
6022 struct sockaddr_in server;
6023 (void)socket(AF_INET, SOCK_STREAM, 0);
6025 (void)gethostbyname("microsoft.com");
6026 if (errno == ECONNREFUSED)
6027 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (ac_try="$ac_link"
6036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6037 *) ac_try_echo
=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_link") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
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
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;
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
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;
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
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;
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; }
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;
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; }
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
6170 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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
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; }
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
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.
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
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
6228 cat >Imakefile
<<'_ACEOF'
6230 @echo incroot='${INCROOT}'
6232 @echo usrlibdir='${USRLIBDIR}'
6234 @echo libdir='${LIBDIR}'
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'\`"
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
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;;
6255 case $ac_im_usrlibdir in
6257 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
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.
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
6289 /usr/XFree86/include/X11
6293 /usr/unsupported/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
6307 cat confdefs.h
>>conftest.
$ac_ext
6308 cat >>conftest.
$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <X11/Xlib.h>
6312 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6320 grep -v '^ *+' conftest.er1 >conftest.err
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
6328 # We can compile using X headers with no special include directory.
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
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.
6351 cat >conftest.$ac_ext <<_ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <X11/Xlib.h>
6366 rm -f conftest.$ac_objext conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6370 *) ac_try_echo
=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_link") 2>conftest.er1
6375 grep -v '^ *+' conftest.er1
>conftest.err
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
6385 # We can link X programs with no special library path.
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
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
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 #(
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'"
6422 eval "$ac_cv_have_x"
6425 if test "$have_x" != yes; then
6426 { echo "$as_me:$LINENO: result: $have_x" >&5
6427 echo "${ECHO_T}$have_x" >&6; }
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
6448 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
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
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6479 rm -f conftest.
$ac_objext conftest
$ac_exeext
6480 if { (ac_try
="$ac_link"
6482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_link") 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (ac_try="$ac_link"
6523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6524 *) ac_try_echo
=$ac_try;;
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_link") 2>conftest.er1
6529 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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"
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
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. */
6583 char XOpenDisplay ();
6587 return XOpenDisplay ();
6592 rm -f conftest.
$ac_objext conftest
$ac_exeext
6593 if { (ac_try
="$ac_link"
6595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_link") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6620 ac_check_lib_save_LIBS=$LIBS
6622 cat >conftest.$ac_ext <<_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. */
6639 return dnet_ntoa ();
6644 rm -f conftest.$ac_objext conftest$ac_exeext
6645 if { (ac_try="$ac_link"
6647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6648 *) ac_try_echo
=$ac_try;;
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>conftest.er1
6653 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6686 ac_check_lib_save_LIBS
=$LIBS
6687 LIBS
="-ldnet_stub $LIBS"
6688 cat >conftest.
$ac_ext <<_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. */
6705 return dnet_ntoa ();
6710 rm -f conftest.
$ac_objext conftest
$ac_exeext
6711 if { (ac_try
="$ac_link"
6713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_link") 2>conftest.er1
6719 grep -v '^ *+' conftest.er1 >conftest.err
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
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)
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
6766 cat >conftest.$ac_ext <<_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. */
6782 # include <limits.h>
6784 # include <assert.h>
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. */
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
6806 return gethostbyname ();
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (ac_try="$ac_link"
6814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6815 *) ac_try_echo
=$ac_try;;
6817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_link") 2>conftest.er1
6820 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6849 ac_check_lib_save_LIBS
=$LIBS
6851 cat >conftest.
$ac_ext <<_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. */
6864 char gethostbyname ();
6868 return gethostbyname ();
6873 rm -f conftest.
$ac_objext conftest
$ac_exeext
6874 if { (ac_try
="$ac_link"
6876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6880 (eval "$ac_link") 2>conftest.er1
6882 grep -v '^ *+' conftest.er1 >conftest.err
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
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
6915 ac_check_lib_save_LIBS=$LIBS
6917 cat >conftest.$ac_ext <<_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. */
6930 char gethostbyname ();
6934 return gethostbyname ();
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (ac_try="$ac_link"
6942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6943 *) ac_try_echo
=$ac_try;;
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_link") 2>conftest.er1
6948 grep -v '^ *+' conftest.er1
>conftest.err
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
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
6990 cat >conftest.
$ac_ext <<_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. */
7006 # include <limits.h>
7008 # include <assert.h>
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. */
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
7035 rm -f conftest.
$ac_objext conftest
$ac_exeext
7036 if { (ac_try
="$ac_link"
7038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_link") 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7073 ac_check_lib_save_LIBS=$LIBS
7074 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7075 cat >conftest.$ac_ext <<_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. */
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (ac_try="$ac_link"
7100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7101 *) ac_try_echo
=$ac_try;;
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_link") 2>conftest.er1
7106 grep -v '^ *+' conftest.er1
>conftest.err
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
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
7141 cat >conftest.
$ac_ext <<_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. */
7157 # include <limits.h>
7159 # include <assert.h>
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. */
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
7186 rm -f conftest.
$ac_objext conftest
$ac_exeext
7187 if { (ac_try
="$ac_link"
7189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_link") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7224 ac_check_lib_save_LIBS=$LIBS
7225 LIBS="-lposix $LIBS"
7226 cat >conftest.$ac_ext <<_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. */
7248 rm -f conftest.$ac_objext conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7252 *) ac_try_echo
=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_link") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1
>conftest.err
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
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
7292 cat >conftest.
$ac_ext <<_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. */
7308 # include <limits.h>
7310 # include <assert.h>
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. */
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
7337 rm -f conftest.
$ac_objext conftest
$ac_exeext
7338 if { (ac_try
="$ac_link"
7340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7346 grep -v '^ *+' conftest.er1 >conftest.err
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
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
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
7375 ac_check_lib_save_LIBS=$LIBS
7377 cat >conftest.$ac_ext <<_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. */
7399 rm -f conftest.$ac_objext conftest$ac_exeext
7400 if { (ac_try="$ac_link"
7402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7403 *) ac_try_echo
=$ac_try;;
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>conftest.er1
7408 grep -v '^ *+' conftest.er1
>conftest.err
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
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
7452 ac_check_lib_save_LIBS
=$LIBS
7453 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7454 cat >conftest.
$ac_ext <<_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. */
7467 char IceConnectionNumber ();
7471 return IceConnectionNumber ();
7476 rm -f conftest.
$ac_objext conftest
$ac_exeext
7477 if { (ac_try
="$ac_link"
7479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7483 (eval "$ac_link") 2>conftest.er1
7485 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
7550 CFLAGS="$CFLAGS $X_CFLAGS"
7551 cat >conftest.$ac_ext <<_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>
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7571 *) ac_try_echo
=$ac_try;;
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7576 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
7597 if test "${no_x-no}" = yes; then
7600 cat >>confdefs.h
<<\_ACEOF
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
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
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. */
7630 char _XdmcpAuthDoIt ();
7634 return _XdmcpAuthDoIt ();
7639 rm -f conftest.
$ac_objext conftest
$ac_exeext
7640 if { (ac_try
="$ac_link"
7642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_link") 2>conftest.er1
7648 grep -v '^ *+' conftest.er1 >conftest.err
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
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
7681 ac_check_lib_save_LIBS=$LIBS
7682 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7683 cat >conftest.$ac_ext <<_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. */
7696 char IceOpenConnection ();
7700 return IceOpenConnection ();
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (ac_try="$ac_link"
7708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7709 *) ac_try_echo
=$ac_try;;
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_link") 2>conftest.er1
7714 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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. */
7763 char XpmCreatePixmapFromData ();
7767 return XpmCreatePixmapFromData ();
7772 rm -f conftest.
$ac_objext conftest
$ac_exeext
7773 if { (ac_try
="$ac_link"
7775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_link") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
7812 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <X11/Xlib.h>
7828 rm -f conftest.$ac_objext
7829 if { (ac_try="$ac_compile"
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_compile") 2>conftest.er1
7837 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
7855 cat confdefs.h
>>conftest.
$ac_ext
7856 cat >>conftest.
$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 #include <X11/Xlib.h>
7867 rm -f conftest.
$ac_objext
7868 if { (ac_try
="$ac_compile"
7870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_compile") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
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; }; }
7914 cat >conftest.$ac_ext <<_ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7921 #include <X11/Xlib.h>
7923 # include <stdlib.h>
7924 # include <stddef.h>
7928 if (sizeof(wchar_t) <= 2)
7933 rm -f conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7937 *) ac_try_echo
=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>&5
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;;
7948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_try") 2>&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_small_wchar_t="no"
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
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
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;
7992 enable_gui_canon=`echo "_$enable_gui" | \
7993 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8006 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
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; }
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; }
8023 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
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; }
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; }
8038 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8039 echo "${ECHO_T}MacVim GUI support" >&6; }
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; }
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; }
8062 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8063 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8065 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8066 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8069 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8070 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8073 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8074 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8078 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8079 echo "${ECHO_T}Motif GUI support" >&6; }
8081 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8082 echo "${ECHO_T}Athena GUI support" >&6; }
8084 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8085 echo "${ECHO_T}neXtaw GUI support" >&6; }
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; } ;;
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;
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
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;
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
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;
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
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;
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
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;
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
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;
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
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;
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
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;
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
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; };
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; };
8250 datadir='${prefix}/Vim.app/Contents/Resources'
8252 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
8255 if test "$VIMNAME" = "vim"; then
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; }
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; }
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;
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; }
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
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
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
8359 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
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; }
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
8381 case $GTK12_CONFIG in
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
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
8401 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
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; }
8410 { echo "$as_me:$LINENO: result: no" >&5
8411 echo "${ECHO_T}no" >&6; }
8415 GTK_CONFIG="$GTK12_CONFIG"
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
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
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
8449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
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; }
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; }
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`
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/'`
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"
8511 if test "$cross_compiling" = yes; then
8512 echo $ac_n "cross compiling; assumed OK... $ac_c"
8514 cat >conftest.$ac_ext <<_ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h. */
8521 #include <gtk/gtk.h>
8524 # include <stdlib.h>
8525 # include <stddef.h>
8531 int major, minor, micro;
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, µ) != 3) {
8539 printf("%s, bad version string\n", "$min_gtk_version");
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)))
8554 rm -f conftest$ac_exeext
8555 if { (ac_try="$ac_link"
8557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8558 *) ac_try_echo
=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_link") 2>&5
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;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_try") 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
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
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; }
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"
8604 { echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6; }
8621 if test "x$GTK_CFLAGS" != "x"; then
8630 if test "x$GUITYPE" != "xGTK"; then
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; }
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`
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/'`
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"
8676 if test "$cross_compiling" = yes; then
8677 echo $ac_n "cross compiling; assumed OK... $ac_c"
8679 cat >conftest.$ac_ext <<_ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 #include <gtk/gtk.h>
8689 # include <stdlib.h>
8690 # include <stddef.h>
8696 int major, minor, micro;
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, µ) != 3) {
8704 printf("%s, bad version string\n", "$min_gtk_version");
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)))
8719 rm -f conftest$ac_exeext
8720 if { (ac_try="$ac_link"
8722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8723 *) ac_try_echo
=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_link") 2>&5
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;;
8734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
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
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; }
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"
8768 { echo "$as_me:$LINENO: result: no" >&5
8769 echo "${ECHO_T}no" >&6; }
8785 if test "x$GTK_CFLAGS" != "x"; then
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; }
8801 if test "0$gtk_major_version" -ge 2; then
8802 cat >>confdefs.h <<\_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
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
8845 if test "x$withval" = xno; then
8849 LDFLAGS="$LDFLAGS -L$withval/lib"
8850 CFLAGS="$CFLAGS -I$withval/include"
8851 gnome_prefix=$withval/lib
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"
8878 { echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6; }
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
8901 case $GNOME_CONFIG in
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
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
8921 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
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; }
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"
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
`"
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
8958 gnome_prefix=$prefix/lib
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
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
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"
9011 for try in $gui_includes; do
9012 if test -f "$try/Xm/Xm.h"; then
9016 if test -n "$GUI_INC_LOC"; then
9017 if test "$GUI_INC_LOC" = /usr/include; then
9019 { echo "$as_me:$LINENO: result: in default path" >&5
9020 echo "${ECHO_T}in default path" >&6; }
9022 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9023 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9026 { echo "$as_me:$LINENO: result: <not found>" >&5
9027 echo "${ECHO_T}<not found>" >&6; }
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; }
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"
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
9064 if test -n "$GUI_LIB_LOC"; then
9065 if test "$GUI_LIB_LOC" = /usr/lib; then
9067 { echo "$as_me:$LINENO: result: in default path" >&5
9068 echo "${ECHO_T}in default path" >&6; }
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"
9081 { echo "$as_me:$LINENO: result: <not found>" >&5
9082 echo "${ECHO_T}<not found>" >&6; }
9088 if test -z "$SKIP_MOTIF"; then
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; }
9102 CFLAGS="$CFLAGS $X_CFLAGS"
9103 cat >conftest.$ac_ext <<_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>
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9124 *) ac_try_echo
=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9129 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
9151 if test -z "$SKIP_ATHENA"; then
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; }
9159 CFLAGS
="$CFLAGS $X_CFLAGS"
9160 cat >conftest.
$ac_ext <<_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>
9177 rm -f conftest.
$ac_objext
9178 if { (ac_try
="$ac_compile"
9180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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
9208 if test -z "$SKIP_NEXTAW"; then
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
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
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. */
9242 char XShapeQueryExtension ();
9246 return XShapeQueryExtension ();
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9255 *) ac_try_echo
=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_link") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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
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. */
9316 rm -f conftest.
$ac_objext conftest
$ac_exeext
9317 if { (ac_try
="$ac_link"
9319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_link") 2>conftest.er1
9325 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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. */
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9385 *) ac_try_echo
=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
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. */
9437 char XmuCreateStippledPixmap ();
9441 return XmuCreateStippledPixmap ();
9446 rm -f conftest.
$ac_objext conftest
$ac_exeext
9447 if { (ac_try
="$ac_link"
9449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
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. */
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9516 *) ac_try_echo
=$ac_try;;
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
9521 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
9555 if mkdir conftestdir
; then
9557 cat > Imakefile
<<'EOF'
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`
9567 if test -z "$NARROW_PROTO"; then
9568 { echo "$as_me:$LINENO: result: no" >&5
9569 echo "${ECHO_T}no" >&6; }
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; }
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
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>
9606 rm -f conftest.
$ac_objext
9607 if { (ac_try
="$ac_compile"
9609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_compile") 2>conftest.er1
9615 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 #include <$ac_header>
9646 if { (ac_try="$ac_cpp conftest.$ac_ext"
9648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9649 *) ac_try_echo
=$ac_try;;
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9654 grep -v '^ *+' conftest.er1
>conftest.err
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
9662 ac_header_preproc
=yes
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
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
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;}
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
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
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; }
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
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>
9754 rm -f conftest.
$ac_objext
9755 if { (ac_try
="$ac_compile"
9757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761 (eval "$ac_compile") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
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
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
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <$ac_header>
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9797 *) ac_try_echo
=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1
>conftest.err
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
9810 ac_header_preproc
=yes
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
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
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;}
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
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
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
9875 cat confdefs.h
>>conftest.
$ac_ext
9876 cat >>conftest.
$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 #include <X11/Xlib.h>
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; }
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"
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; }
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
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>
9923 rm -f conftest.
$ac_objext
9924 if { (ac_try
="$ac_compile"
9926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
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
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>
9994 rm -f conftest.$ac_objext
9995 if { (ac_try="$ac_compile"
9997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9998 *) ac_try_echo
=$ac_try;;
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_compile") 2>conftest.er1
10003 grep -v '^ *+' conftest.er1
>conftest.err
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
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
10029 cat confdefs.h
>>conftest.
$ac_ext
10030 cat >>conftest.
$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #include <$ac_header>
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;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
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
10050 ac_header_preproc=yes
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
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
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;}
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
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
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
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 #include <Xm/XpmP.h>
10122 XpmAttributes_21 attr;
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;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10136 grep -v '^ *+' conftest.er1
>conftest.err
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
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
10161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10163 cat >>confdefs.h
<<\_ACEOF
10164 #define XPMATTRIBUTES_TYPE XpmAttributes
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; }
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
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
10208 if test "$enable_fontset" = "yes"; then
10209 cat >>confdefs.h
<<\_ACEOF
10210 #define FEAT_XFONTSET 1
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
10224 cat >>confdefs.h
<<\_ACEOF
10225 #define FEAT_HANGULIN 1
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
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; }; }
10249 cat >conftest.
$ac_ext <<_ACEOF
10251 #include "confdefs.h"
10254 # include <stdlib.h>
10255 # include <stddef.h>
10257 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
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;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>&5
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;;
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_try") 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10281 vim_cv_toupper_broken
=yes
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
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
10313 cat confdefs.h
>>conftest.
$ac_ext
10314 cat >>conftest.
$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10320 printf("(" __DATE__ " " __TIME__ ")");
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;;
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_compile") 2>conftest.er1
10334 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10369 int x __attribute__((unused));
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;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10383 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
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
10421 cat confdefs.h
>>conftest.
$ac_ext
10422 cat >>conftest.
$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 $ac_includes_default
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;;
10433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434 (eval "$ac_compile") 2>conftest.er1
10436 grep -v '^ *+' conftest.er1 >conftest.err
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
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
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
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;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1
>conftest.err
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
10483 ac_header_preproc
=yes
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
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
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;}
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
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
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
10543 ac_check_lib_save_LIBS
=$LIBS
10545 cat >conftest.
$ac_ext <<_ACEOF
10548 cat confdefs.h
>>conftest.
$ac_ext
10549 cat >>conftest.
$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
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;;
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_link") 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 #include <sys/types.h>
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;;
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_compile") 2>conftest.er1
10644 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
10670 ac_header_dirent
=$ac_hdr; break
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
10681 ac_func_search_save_LIBS
=$LIBS
10682 cat >conftest.
$ac_ext <<_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. */
10704 for ac_lib
in '' dir
; do
10705 if test -z "$ac_lib"; then
10706 ac_res
="none required"
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;;
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_link") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
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
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 \
10739 if test "${ac_cv_search_opendir+set}" = set; then
10743 if test "${ac_cv_search_opendir+set}" = set; then
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"
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
10765 ac_func_search_save_LIBS=$LIBS
10766 cat >conftest.$ac_ext <<_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. */
10788 for ac_lib in '' x; do
10789 if test -z "$ac_lib"; then
10790 ac_res="none required"
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;;
10801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_link") 2>conftest.er1
10804 grep -v '^ *+' conftest.er1
>conftest.err
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
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 \
10823 if test "${ac_cv_search_opendir+set}" = set; then
10827 if test "${ac_cv_search_opendir+set}" = set; then
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
10852 cat confdefs.h
>>conftest.
$ac_ext
10853 cat >>conftest.
$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <sys/wait.h>
10859 union wait xx, yy; xx = yy
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;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_compile") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
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
10887 cat >>confdefs.h <<\_ACEOF
10888 #define HAVE_UNION_WAIT 1
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; }
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
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>
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;;
10980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_compile") 2>conftest.er1
10983 grep -v '^ *+' conftest.er1
>conftest.err
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
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
11009 cat confdefs.h
>>conftest.
$ac_ext
11010 cat >>conftest.
$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #include <$ac_header>
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;;
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11022 grep -v '^ *+' conftest.er1 >conftest.err
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
11030 ac_header_preproc=yes
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
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
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;}
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
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
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
11098 cat >conftest.$ac_ext <<_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>
11108 #include <$ac_header>
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;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_compile") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
11159 cat >conftest.
$ac_ext <<_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>
11169 #include <$ac_header>
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;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
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>
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;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_compile") 2>conftest.er1
11240 grep -v '^ *+' conftest.er1
>conftest.err
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
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; }
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
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>
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;;
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <$ac_header>
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;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1
>conftest.err
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
11346 ac_header_preproc
=yes
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
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
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;}
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
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
11404 if test "x$MACOSX" = "xyes"; then
11405 cat >>confdefs.h
<<\_ACEOF
11406 #define NO_STRINGS_WITH_STRING_H 1
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
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) */
11426 #ifdef HAVE_XM_XM_H
11427 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11429 #ifdef HAVE_STRING_H
11430 # include <string.h>
11432 #if defined(HAVE_STRINGS_H)
11433 # include <strings.h>
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;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1 >conftest.err
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; }
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
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
11485 ac_pattern="Autoconf.*'x'"
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
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
11499 ac_cv_prog_gcc_traditional=no
11504 if test $ac_cv_prog_gcc_traditional = no; then
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 #include <termio.h>
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
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
11534 cat >conftest.$ac_ext <<_ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11544 /* FIXME: Include the comments suggested by Paul. */
11545 #ifndef __cplusplus
11546 /* Ultrix mips cc rejects this. */
11547 typedef int charset[2];
11549 /* SunOS 4.1.1 cc rejects this. */
11550 char const *const *pcpcc;
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
11559 const char *g = "string";
11560 pcpcc = &g + (g ? g-g : 0);
11561 /* HPUX 7.0 cc rejects these. */
11563 ppc = (char**) pcpcc;
11564 pcpcc = (char const *const *) ppc;
11565 { /* SCO 3.2v4 cc rejects this. */
11567 char const *s = 0 ? (char *) 0 : (char const *) 0;
11572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11573 int x[] = {25, 17};
11574 const int *foo = &x[0];
11577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11578 typedef const int *iptr;
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;
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;;
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_compile") 2>conftest.er1
11607 grep -v '^ *+' conftest.er1
>conftest.err
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
11617 echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.
$ac_ext >&5
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
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
11640 cat >conftest.
$ac_ext <<_ACEOF
11643 cat confdefs.h
>>conftest.
$ac_ext
11644 cat >>conftest.
$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11652 int * volatile y = (int *) 0;
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;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_compile") 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
11700 cat >conftest.$ac_ext <<_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_;
11711 if ((ac__type_new_ *) 0)
11713 if (sizeof (ac__type_new_))
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;;
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_compile") 2>conftest.er1
11728 grep -v '^ *+' conftest.er1
>conftest.err
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
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
11752 cat >>confdefs.h
<<_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
11763 cat >conftest.
$ac_ext <<_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_;
11774 if ((ac__type_new_ *) 0)
11776 if (sizeof (ac__type_new_))
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;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11815 cat >>confdefs.h <<_ACEOF
11816 #define off_t long int
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
11826 cat >conftest.$ac_ext <<_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_;
11837 if ((ac__type_new_ *) 0)
11839 if (sizeof (ac__type_new_))
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;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_compile") 2>conftest.er1
11854 grep -v '^ *+' conftest.er1
>conftest.err
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
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
11878 cat >>confdefs.h
<<_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
11889 cat >conftest.
$ac_ext <<_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_;
11900 if ((ac__type_new_ *) 0)
11902 if (sizeof (ac__type_new_))
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;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
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
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
11941 cat >>confdefs.h <<_ACEOF
11942 #define size_t unsigned int
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
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 #include <sys/types.h>
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
11965 ac_cv_type_uid_t=no
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
11979 cat >>confdefs.h <<\_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
11990 cat >conftest.$ac_ext <<_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>
12003 if ((struct tm *) 0)
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;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_compile") 2>conftest.er1
12018 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
12051 cat >conftest.
$ac_ext <<_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_;
12062 if ((ac__type_new_ *) 0)
12064 if (sizeof (ac__type_new_))
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;;
12076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_compile") 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
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
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
12103 cat >>confdefs.h <<_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
12114 cat >conftest.$ac_ext <<_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_;
12125 if ((ac__type_new_ *) 0)
12127 if (sizeof (ac__type_new_))
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;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_compile") 2>conftest.er1
12142 grep -v '^ *+' conftest.er1
>conftest.err
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
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
12166 cat >>confdefs.h
<<_ACEOF
12167 #define dev_t unsigned
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; }
12179 cat >conftest.
$ac_ext <<_ACEOF
12182 cat confdefs.h
>>conftest.
$ac_ext
12183 cat >>conftest.
$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12186 #include <sys/types.h>
12188 # include <stdlib.h>
12189 # include <stddef.h>
12191 #ifdef HAVE_SYS_RESOURCE_H
12192 # include <sys/resource.h>
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
12200 ac_cv_type_rlim_t
=no
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; }
12219 cat >conftest.
$ac_ext <<_ACEOF
12222 cat confdefs.h
>>conftest.
$ac_ext
12223 cat >>conftest.
$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12226 #include <sys/types.h>
12228 # include <stdlib.h>
12229 # include <stddef.h>
12231 #include <signal.h>
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
12238 ac_cv_type_stack_t
=no
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
12256 cat confdefs.h
>>conftest.
$ac_ext
12257 cat >>conftest.
$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 #include <sys/types.h>
12262 # include <stdlib.h>
12263 # include <stddef.h>
12265 #include <signal.h>
12266 #include "confdefs.h"
12271 stack_t sigstk; sigstk.ss_base = 0;
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;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_compile") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
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;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_link") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
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";;
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
12385 ac_check_lib_save_LIBS
=$LIBS
12386 LIBS
="-l${libname} $LIBS"
12387 cat >conftest.
$ac_ext <<_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. */
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;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
12447 LIBS="-l${libname} $LIBS"
12451 if test "x$olibs" != "x$LIBS"; then
12452 if test "$cross_compiling" = yes; then
12455 cat >conftest.$ac_ext <<_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>
12466 # include <stdlib.h>
12467 # include <stddef.h>
12469 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
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;;
12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12478 (eval "$ac_link") 2>&5
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;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
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 )
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
12507 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12508 echo "${ECHO_T}$libname library is not usable" >&6; }
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
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12531 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
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;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_link") 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
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; }
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
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; }; }
12586 cat >conftest.
$ac_ext <<_ACEOF
12588 #include "confdefs.h"
12589 #ifdef HAVE_TERMCAP_H
12590 # include <termcap.h>
12592 #ifdef HAVE_STRING_H
12593 # include <string.h>
12596 # include <stdlib.h>
12597 # include <stddef.h>
12600 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
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;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>&5
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;;
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
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
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
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; }; }
12666 cat >conftest.
$ac_ext <<_ACEOF
12668 #include "confdefs.h"
12669 #ifdef HAVE_TERMCAP_H
12670 # include <termcap.h>
12673 # include <stdlib.h>
12674 # include <stddef.h>
12677 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
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;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>&5
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;;
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_try") 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
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
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
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>
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;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_link") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
12792 extern short ospeed;
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;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
12811 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
12857 if (UP == 0 && BC == 0) PC = 1
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;;
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_link") 2>conftest.er1
12871 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
12903 extern char *UP, *BC, PC;
12908 if (UP == 0 && BC == 0) PC = 1
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;;
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_link") 2>conftest.er1
12922 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
12968 extern int xx(); tputs("test", 1, (outfuntype)xx)
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;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_compile") 2>conftest.er1
12982 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
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;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_compile") 2>conftest.er1
13034 grep -v '^ *+' conftest.er1
>conftest.err
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
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
13066 { echo "$as_me:$LINENO: result: yes" >&5
13067 echo "${ECHO_T}yes" >&6; }
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
13079 cat confdefs.h
>>conftest.
$ac_ext
13080 cat >>conftest.
$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13086 ptsname(0);grantpt(0);unlockpt(0);
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;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_link") 2>conftest.er1
13100 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13148 $EGREP "yes" >/dev/null 2>&1; then
13149 ptys=`echo /dev
/ptyp??
`
13151 ptys=`echo $pdir/pty??
`
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"
13162 cat >>confdefs.h <<_ACEOF
13163 #define PTYRANGE1 "$p1"
13166 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13167 echo "${ECHO_T}$p0 / $p1" >&6; }
13169 { echo "$as_me:$LINENO: result: don't know" >&5
13170 echo "${ECHO_T}don't know" >&6; }
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
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; }; }
13187 cat >conftest.$ac_ext <<_ACEOF
13189 #include "confdefs.h"
13190 #include <sys/types.h>
13192 # include <stdlib.h>
13193 # include <stddef.h>
13195 #ifdef HAVE_UNISTD_H
13196 #include <unistd.h>
13198 #include <sys/stat.h>
13203 char *x,*ttyname();
13207 if (!(x = ttyname(0))) exit(1);
13208 if (stat(x, &sb)) exit(1);
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);
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")))
13220 fprintf(fp, "%d\n", sb.st_gid);
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;;
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>&5
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;;
13241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_try") 2>&5
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; }
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; }
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; }
13282 if test "x$vim_cv_tty_group" != "xworld" ; then
13283 cat >>confdefs.h <<_ACEOF
13284 #define PTYGROUP $vim_cv_tty_group
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; }; }
13292 cat >>confdefs.h <<\_ACEOF
13293 #define PTYMODE 0620
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
13305 cat >conftest.$ac_ext <<_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>
13317 return *(signal (0, 0)) (0) == 1;
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;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_compile") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1
>conftest.err
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
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
13358 if test $ac_cv_type_signal = void
; then
13359 cat >>confdefs.h
<<\_ACEOF
13360 #define SIGRETURN return
13364 cat >>confdefs.h
<<\_ACEOF
13365 #define SIGRETURN return 0
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
13375 cat confdefs.h
>>conftest.
$ac_ext
13376 cat >>conftest.
$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 #include <signal.h>
13382 struct sigcontext *scont;
13383 scont = (struct sigcontext *)0;
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;;
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401 (eval "$ac_compile") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }; }
13440 cat >conftest.$ac_ext <<_ACEOF
13442 #include "confdefs.h"
13443 #ifdef HAVE_UNISTD_H
13444 #include <unistd.h>
13446 char *dagger[] = { "IFS=pwd", 0 };
13450 extern char **environ;
13452 return getcwd(buffer, 500) ? 0 : 1;
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;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>&5
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;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13477 vim_cv_getcwd_broken=no
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
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
13565 cat >conftest.$ac_ext <<_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. */
13581 # include <limits.h>
13583 # include <assert.h>
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. */
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
13605 return $ac_func ();
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;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_link") 2>conftest.er1
13619 grep -v '^ *+' conftest.er1
>conftest.err
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"
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
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
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>
13668 n = (int)st.st_blksize;
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;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }; }
13718 cat >conftest.$ac_ext <<_ACEOF
13720 #include "confdefs.h"
13722 # include <stdlib.h>
13723 # include <stddef.h>
13725 #include <sys/types.h>
13726 #include <sys/stat.h>
13727 main() {struct stat st; exit(stat("configure/", &st) != 0); }
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;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_link") 2>&5
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;;
13745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13746 (eval "$ac_try") 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13751 vim_cv_stat_ignores_slash=yes
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
13779 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13780 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13782 LIBS="$LIBS -liconv"
13783 cat >conftest.$ac_ext <<_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>
13797 iconv_open("fr", "to");
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;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1
>conftest.err
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
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.
$ac_ext >&5
13830 cat >conftest.
$ac_ext <<_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>
13844 iconv_open("fr", "to");
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;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_link") 2>conftest.er1
13858 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
13904 char *cs = nl_langinfo(CODESET);
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;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_link") 2>conftest.er1
13918 grep -v '^ *+' conftest.er1
>conftest.err
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
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
13949 ac_check_lib_save_LIBS
=$LIBS
13951 cat >conftest.
$ac_ext <<_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. */
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;;
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_link") 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14027 # include <stdlib.h>
14028 # include <stddef.h>
14035 d = strtod("1.1", &s);
14040 d = pow(1.11, 2.22);
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;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1
>conftest.err
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
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;
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
14101 ac_check_lib_save_LIBS
=$LIBS
14102 LIBS
="-lposix1e $LIBS"
14103 cat >conftest.
$ac_ext <<_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. */
14116 char acl_get_file ();
14120 return acl_get_file ();
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;;
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_link") 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
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
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"
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
14165 ac_check_lib_save_LIBS=$LIBS
14167 cat >conftest.$ac_ext <<_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. */
14180 char acl_get_file ();
14184 return acl_get_file ();
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;;
14195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
14198 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
14228 ac_check_lib_save_LIBS
=$LIBS
14229 LIBS
="-lattr $LIBS"
14230 cat >conftest.
$ac_ext <<_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. */
14247 return fgetxattr ();
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;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
14310 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14311 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
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;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
14366 acl("foo", GETACLCNT, 0, NULL);
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;;
14378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14379 (eval "$ac_link") 2>conftest.er1
14381 grep -v '^ *+' conftest.er1 >conftest.err
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
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
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14416 # include <stdlib.h>
14417 # include <stddef.h>
14419 #ifdef HAVE_SYS_ACL_H
14420 # include <sys/acl.h>
14422 #ifdef HAVE_SYS_ACCESS_H
14423 # include <sys/access.h>
14425 #define _ALL_SOURCE
14427 #include <sys/stat.h>
14430 struct acl *aclent;
14434 aclsize = sizeof(struct acl);
14435 aclent = (void *)malloc(aclsize);
14436 statacl("foo", STX_NORMAL, aclent, aclsize);
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;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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;
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
14498 olibs
="$LIBS" ; LIBS
="-lgpm"
14499 cat >conftest.
$ac_ext <<_ACEOF
14502 cat confdefs.h
>>conftest.
$ac_ext
14503 cat >>conftest.
$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14506 #include <linux/keyboard.h>
14510 Gpm_GetLibVersion(NULL);
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;;
14521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14522 (eval "$ac_link") 2>conftest.er1
14524 grep -v '^ *+' conftest.er1 >conftest.err
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
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.$ac_ext >&5
14541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14542 conftest$ac_exeext conftest.$ac_ext
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
14550 cat >>confdefs.h <<\_ACEOF
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;
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
14578 cat >conftest.$ac_ext <<_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>
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;
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;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>conftest.er1
14608 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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
14647 cat confdefs.h
>>conftest.
$ac_ext
14648 cat >>conftest.
$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14654 rename("this", "that")
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;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_link") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
14710 mib[1] = HW_USERMEM;
14712 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
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;;
14724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14727 grep -v '^ *+' conftest.er1
>conftest.err
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
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
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>
14763 struct sysinfo sinfo;
14766 (void)sysinfo(&sinfo);
14767 t = sinfo.totalram;
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;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_compile") 2>conftest.er1
14782 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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>
14818 struct sysinfo sinfo;
14819 sinfo.mem_unit = 1;
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;;
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_compile") 2>conftest.er1
14834 grep -v '^ *+' conftest.er1
>conftest.err
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
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
14862 cat confdefs.h
>>conftest.
$ac_ext
14863 cat >>conftest.
$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <unistd.h>
14869 (void)sysconf(_SC_PAGESIZE);
14870 (void)sysconf(_SC_PHYS_PAGES);
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;;
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_compile") 2>conftest.er1
14885 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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; }; }
14919 cat >conftest.$ac_ext <<_ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h. */
14928 # include <stdlib.h>
14929 # include <stddef.h>
14933 FILE *f=fopen("conftestval", "w");
14935 fprintf(f, "%d\n", (int)sizeof(int));
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;;
14945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14946 (eval "$ac_link") 2>&5
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;;
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_try") 2>&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_sizeof_int=`cat conftestval
`
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 )
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
14983 #include "confdefs.h"
14984 #ifdef HAVE_STRING_H
14985 # include <string.h>
14988 # include <stdlib.h>
14989 # include <stddef.h>
14993 strcpy(buf, "abcdefghi");
14994 mch_memmove(buf, buf + 2, 3);
14995 if (strncmp(buf, "ababcf", 6))
14997 strcpy(buf, "abcdefghi");
14998 mch_memmove(buf + 2, buf, 3);
14999 if (strncmp(buf, "cdedef", 6))
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
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; }; }
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
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;;
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_link") 2>&5
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;;
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15041 vim_cv_memmove_handles_overlap=yes
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
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
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; }; }
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
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;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>&5
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;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15105 vim_cv_bcopy_handles_overlap=yes
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
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
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; }; }
15145 cat >conftest.$ac_ext <<_ACEOF
15146 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
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;;
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>&5
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;;
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_try") 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; }; then
15169 vim_cv_memcpy_handles_overlap=yes
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
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
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215 #include <X11/Xlocale.h>
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;;
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231 (eval "$ac_compile") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1
>conftest.err
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
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. */
15254 char _Xsetlocale ();
15258 return _Xsetlocale ();
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;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
15272 grep -v '^ *+' conftest.er1 >conftest.err
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
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
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
15316 ac_check_lib_save_LIBS=$LIBS
15317 LIBS="-lxpg4 $LIBS"
15318 cat >conftest.$ac_ext <<_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. */
15331 char _xpg4_setrunelocale ();
15335 return _xpg4_setrunelocale ();
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;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1
>conftest.err
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
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"
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; }
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
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;
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
15435 if test -n "$MSGFMT"; then
15436 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
15438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15439 for as_dir
in $PATH
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
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; }
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
15469 if test -n "$MSGFMT"; then
15470 cat >conftest.
$ac_ext <<_ACEOF
15473 cat confdefs.h
>>conftest.
$ac_ext
15474 cat >>conftest.
$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 #include <libintl.h>
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;;
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_link") 2>conftest.er1
15494 grep -v '^ *+' conftest.er1 >conftest.err
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"
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15510 LIBS="$LIBS -lintl"
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #include <libintl.h>
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;;
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_link") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1
>conftest.err
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"
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; };
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
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
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
15581 cat >conftest.
$ac_ext <<_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. */
15597 # include <limits.h>
15599 # include <assert.h>
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. */
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
15621 return $ac_func ();
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;;
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_link") 2>conftest.er1
15635 grep -v '^ *+' conftest.er1 >conftest.err
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"
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
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
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;
15679 ++_nl_msg_cat_cntr;
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;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_link") 2>conftest.er1
15693 grep -v '^ *+' conftest.er1
>conftest.err
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
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
15719 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15720 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
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; }
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
15742 cat confdefs.h
>>conftest.
$ac_ext
15743 cat >>conftest.
$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 $ac_includes_default
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;;
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_compile") 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
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
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
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
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;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1
>conftest.err
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
15804 ac_header_preproc
=yes
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
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
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;}
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
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
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; }
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
15870 cat confdefs.h
>>conftest.
$ac_ext
15871 cat >>conftest.
$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 $ac_includes_default
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;;
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883 (eval "$ac_compile") 2>conftest.er1
15885 grep -v '^ *+' conftest.er1 >conftest.err
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
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
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
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;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15924 grep -v '^ *+' conftest.er1
>conftest.err
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
15932 ac_header_preproc
=yes
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
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
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;}
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
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
15988 if test x
${DLL} = xdlfcn.h
; then
15990 cat >>confdefs.h
<<\_ACEOF
15991 #define HAVE_DLFCN_H 1
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
15999 cat confdefs.h
>>conftest.
$ac_ext
16000 cat >>conftest.
$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16007 extern void* dlopen();
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;;
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_link") 2>conftest.er1
16023 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
16049 cat >conftest.$ac_ext <<_ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h. */
16060 extern void* dlopen();
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;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_link") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1
>conftest.err
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
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; };
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
16112 cat confdefs.h
>>conftest.
$ac_ext
16113 cat >>conftest.
$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16120 extern void* dlsym();
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;;
16133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16134 (eval "$ac_link") 2>conftest.er1
16136 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
16162 cat >conftest.$ac_ext <<_ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16173 extern void* dlsym();
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;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_link") 2>conftest.er1
16189 grep -v '^ *+' conftest.er1
>conftest.err
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
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; };
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
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
16231 cat confdefs.h
>>conftest.
$ac_ext
16232 cat >>conftest.
$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16239 extern void* shl_load();
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;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_link") 2>conftest.er1
16255 grep -v '^ *+' conftest.er1 >conftest.err
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
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; }
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16292 extern void* shl_load();
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;;
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_link") 2>conftest.er1
16308 grep -v '^ *+' conftest.er1
>conftest.err
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
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; };
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; }
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
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>
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;;
16372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16373 (eval "$ac_compile") 2>conftest.er1
16375 grep -v '^ *+' conftest.er1 >conftest.err
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
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
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <$ac_header>
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;;
16411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16414 grep -v '^ *+' conftest.er1
>conftest.err
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
16422 ac_header_preproc
=yes
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
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
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;}
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
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
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; }
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; }
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; }
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; }
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.
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
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;} ;;
16581 _ | IFS | as_nl
) ;; #(
16582 *) $as_unset $ac_var ;;
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 \).
16594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16597 # `set' quotes correctly as required by POSIX, so do not add quotes.
16598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
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
16618 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16619 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
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
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'
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
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.
16660 ac_cs_recheck=false
16662 SHELL=\${CONFIG_SHELL-$SHELL}
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
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
16680 case `(set -o) 2>/dev/null` in
16681 *posix
*) set -o posix
;;
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
16702 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16710 # Support unset when possible.
16711 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
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.)
16727 # Find who we are. Look in the path if we contain no directory separator.
16729 *[\\/]* ) as_myself
=$0 ;;
16730 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16731 for as_dir
in $PATH
16734 test -z "$as_dir" && as_dir
=.
16735 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
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
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
16768 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
16772 # Required to use basename.
16773 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16774 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16780 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16781 as_basename
=basename
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 ||
16793 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
16838 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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.
16855 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16861 ECHO_C
= ECHO_N
= ECHO_T
=
16862 case `echo -n x` in
16864 case `echo 'x\c'` in
16865 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16872 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16873 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16879 rm -f conf$$ conf$$.exe conf$$.
file
16880 if test -d conf$$.dir
; then
16881 rm -f conf$$.dir
/conf$$.
file
16887 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
16895 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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
16906 test -d .
/-p && rmdir .
/-p
16910 if test -x / >/dev
/null
2>&1; then
16911 as_test_x
='test -x'
16913 if ls -dL / >/dev
/null
2>&1; then
16920 if test -d "$1"; then
16926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16927 ???[sx]*):;;*)false;;esac;fi
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'"
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.
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
16955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
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"
16967 cat >>$CONFIG_STATUS <<\_ACEOF
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:
16987 Configuration headers:
16990 Report bugs to <bug-autoconf@gnu.org>."
16993 cat >>$CONFIG_STATUS <<_ACEOF
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."
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.
17015 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17016 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17027 # Handling of the options.
17028 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17030 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17031 echo "$ac_cs_version"; exit ;;
17032 --debug |
--debu |
--deb |
--de |
--d |
-d )
17034 --file |
--fil |
--fi |
--f )
17036 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17037 ac_need_defaults
=false
;;
17038 --header |
--heade |
--head |
--hea )
17040 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17041 ac_need_defaults
=false
;;
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)
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
;;
17065 ac_configure_extra_args
=
17067 if $ac_cs_silent; then
17069 ac_configure_extra_args
="$ac_configure_extra_args --silent"
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
17082 cat >>$CONFIG_STATUS <<\_ACEOF
17086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17087 ## Running $as_me. ##
17093 cat >>$CONFIG_STATUS <<_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; }; };;
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'.
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"
17142 tmp
=.
/conf$$
-$RANDOM
17143 (umask 077 && mkdir
"$tmp")
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
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
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
17211 GREP!$GREP$ac_delim
17212 EGREP!$EGREP$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
17264 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
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; }; }
17271 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
17286 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17287 s/^/s,@/; s/!/@,|#_!!_#|/
17290 s/'"$ac_delim"'$/,g/; t
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
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
17343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
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; }; }
17350 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
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
17365 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17366 s/^/s,@/; s/!/@,|#_!!_#|/
17369 s/'"$ac_delim"'$/,g/; t
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
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}:*/:/
17390 s/^\([^=]*=[ ]*\):*/\1/
17396 cat >>$CONFIG_STATUS <<\_ACEOF
17397 fi # test -n "$CONFIG_FILES"
17400 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
17403 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17405 case $ac_mode$ac_tag in
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;;
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 `:'.
17435 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
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; }; };;
17441 ac_file_inputs
="$ac_file_inputs $ac_f"
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;}
17456 *:-:* |
*:-) cat >"$tmp/stdin";;
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 ||
17467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17471 /^X\(\/\/\)[^/].*/{
17486 -*) as_dir
=.
/$as_dir;;
17488 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17492 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17493 *) as_qdir
=$as_dir;;
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 ||
17502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17506 /^X\(\/\/\)[^/].*/{
17519 test -d "$as_dir" && break
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; }; }; }
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/ ;;
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
17544 .
) # We are building in place.
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 ;;
17557 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
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/ {
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;}
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' ;;
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
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;}
17631 -) cat "$tmp/out"; rm -f "$tmp/out";;
17632 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
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'
17665 s/^[ ]*#[ ]*define[ ][ ]*//
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.)
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"
17689 ac_in
='$ac_file_inputs'
17690 ac_out
='"$tmp/out1"'
17691 ac_nxt
='"$tmp/out2"'
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
17704 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
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
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;}
17725 mv "$tmp/config.h" $ac_file
17728 echo "/* $configure_input */"
17740 { (exit 0); exit 0; }
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
17756 ac_config_status_args
=
17757 test "$silent" = yes &&
17758 ac_config_status_args
="$ac_config_status_args --quiet"
17760 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
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; }