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; }
3749 CFLAGS
="$save_cflags"
3750 LDFLAGS
="$save_ldflags"
3753 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3754 conftest
$ac_exeext conftest.
$ac_ext
3758 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3759 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3761 # Check whether --with-macarchs was given.
3762 if test "${with_macarchs+set}" = set; then
3763 withval
=$with_macarchs; ARCHS
="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3764 echo "${ECHO_T}$ARCHS" >&6; }
3766 ARCHS
=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3767 echo "${ECHO_T}defaulting to native arch" >&6; }
3771 if test -n "$ARCHS"; then
3772 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3773 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3774 save_cflags
="$CFLAGS"
3775 save_ldflags
="$LDFLAGS"
3776 archflags
=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3777 CFLAGS
="$CFLAGS $archflags"
3778 LDFLAGS
="$LDFLAGS $archflags"
3779 cat >conftest.
$ac_ext <<_ACEOF
3782 cat confdefs.h
>>conftest.
$ac_ext
3783 cat >>conftest.
$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3794 rm -f conftest.
$ac_objext conftest
$ac_exeext
3795 if { (ac_try
="$ac_link"
3797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_link") 2>conftest.er1
3803 grep -v '^ *+' conftest.er1 >conftest.err
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest$ac_exeext &&
3811 $as_test_x conftest$ac_exeext; then
3812 { echo "$as_me:$LINENO: result: yes" >&5
3813 echo "${ECHO_T}yes" >&6; }
3814 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3820 echo "${ECHO_T}no, will build for native arch only" >&6; }
3822 CFLAGS="$save_cflags"
3823 LDFLAGS="$save_ldflags"
3826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3827 conftest$ac_exeext conftest.$ac_ext
3831 if test "$enable_darwin" = "yes"; then
3833 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3834 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3835 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3837 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848 inttypes.h stdint.h unistd.h
3850 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862 $ac_includes_default
3864 #include <$ac_header>
3866 rm -f conftest.$ac_objext
3867 if { (ac_try="$ac_compile"
3869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3870 *) ac_try_echo
=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1
>conftest.err
3877 cat conftest.err
>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.
$ac_objext; then
3883 eval "$as_ac_Header=yes"
3885 echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.
$ac_ext >&5
3888 eval "$as_ac_Header=no"
3891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3893 ac_res
=`eval echo '${'$as_ac_Header'}'`
3894 { echo "$as_me:$LINENO: result: $ac_res" >&5
3895 echo "${ECHO_T}$ac_res" >&6; }
3896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3897 cat >>confdefs.h
<<_ACEOF
3898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3906 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3907 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3908 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3909 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3913 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3915 # Is the header compilable?
3916 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3917 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3918 cat >conftest.
$ac_ext <<_ACEOF
3921 cat confdefs.h
>>conftest.
$ac_ext
3922 cat >>conftest.
$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 $ac_includes_default
3925 #include <Carbon/Carbon.h>
3927 rm -f conftest.
$ac_objext
3928 if { (ac_try
="$ac_compile"
3930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_compile") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 ac_header_compiler=yes
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_header_compiler=no
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3954 echo "${ECHO_T}$ac_header_compiler" >&6; }
3956 # Is the header present?
3957 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3958 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
3959 cat >conftest.$ac_ext <<_ACEOF
3962 cat confdefs.h >>conftest.$ac_ext
3963 cat >>conftest.$ac_ext <<_ACEOF
3964 /* end confdefs.h. */
3965 #include <Carbon/Carbon.h>
3967 if { (ac_try="$ac_cpp conftest.$ac_ext"
3969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3970 *) ac_try_echo
=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3975 grep -v '^ *+' conftest.er1
>conftest.err
3977 cat conftest.err
>&5
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); } >/dev
/null
&& {
3980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3981 test ! -s conftest.err
3983 ac_header_preproc
=yes
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.
$ac_ext >&5
3988 ac_header_preproc
=no
3991 rm -f conftest.err conftest.
$ac_ext
3992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3993 echo "${ECHO_T}$ac_header_preproc" >&6; }
3995 # So? What about this header?
3996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3998 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3999 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4000 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4001 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4002 ac_header_preproc
=yes
4005 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4006 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4007 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4008 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4009 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4010 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4011 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4012 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4013 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4014 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4015 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4016 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4020 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4021 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4022 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4027 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4028 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4031 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4037 SAVE_CPPFLAGS
=$CPPFLAGS
4039 CPPFLAGS
="$CPPFLAGS -ObjC"
4040 CFLAGS
="$CFLAGS -ObjC"
4041 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4042 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4043 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4044 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4048 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4050 # Is the header compilable?
4051 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4052 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4053 cat >conftest.
$ac_ext <<_ACEOF
4056 cat confdefs.h
>>conftest.
$ac_ext
4057 cat >>conftest.
$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 $ac_includes_default
4060 #include <Cocoa/Cocoa.h>
4062 rm -f conftest.
$ac_objext
4063 if { (ac_try
="$ac_compile"
4065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && {
4076 test -z "$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 } && test -s conftest.$ac_objext; then
4079 ac_header_compiler=yes
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 ac_header_compiler=no
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4089 echo "${ECHO_T}$ac_header_compiler" >&6; }
4091 # Is the header present?
4092 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4093 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <Cocoa/Cocoa.h>
4102 if { (ac_try="$ac_cpp conftest.$ac_ext"
4104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4105 *) ac_try_echo
=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4110 grep -v '^ *+' conftest.er1
>conftest.err
4112 cat conftest.err
>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev
/null
&& {
4115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4118 ac_header_preproc
=yes
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.
$ac_ext >&5
4123 ac_header_preproc
=no
4126 rm -f conftest.err conftest.
$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128 echo "${ECHO_T}$ac_header_preproc" >&6; }
4130 # So? What about this header?
4131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4133 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4134 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4136 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4137 ac_header_preproc
=yes
4140 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4141 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4142 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4143 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4144 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4145 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4146 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4147 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4148 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4149 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4150 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4151 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4155 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4156 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4157 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 ac_cv_header_Cocoa_Cocoa_h
=$ac_header_preproc
4162 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4163 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4166 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4171 CPPFLAGS
=$SAVE_CPPFLAGS
4174 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4175 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
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4188 if test "$cross_compiling" = no
; then
4189 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4190 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4191 have_local_include
=''
4194 # Check whether --with-local-dir was given.
4195 if test "${with_local_dir+set}" = set; then
4196 withval
=$with_local_dir;
4197 local_dir
="$withval"
4201 # avoid adding local dir to LDFLAGS and CPPFLAGS
4205 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4206 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4207 { (exit 1); exit 1; }; } ;;
4209 { echo "$as_me:$LINENO: result: $local_dir" >&5
4210 echo "${ECHO_T}$local_dir" >&6; }
4214 local_dir
=/usr
/local
4215 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4216 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4220 if test "$GCC" = yes -a "$local_dir" != no
; then
4221 echo 'void f(){}' > conftest.c
4222 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4223 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4224 rm -f conftest.c conftest.o
4226 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4227 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4228 if test "$tt" = "$LDFLAGS"; then
4229 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4232 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4233 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4234 if test "$tt" = "$CPPFLAGS"; then
4235 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4240 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4241 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4243 # Check whether --with-vim-name was given.
4244 if test "${with_vim_name+set}" = set; then
4245 withval
=$with_vim_name; VIMNAME
="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4246 echo "${ECHO_T}$VIMNAME" >&6; }
4248 VIMNAME
="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4249 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4253 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4254 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4256 # Check whether --with-ex-name was given.
4257 if test "${with_ex_name+set}" = set; then
4258 withval
=$with_ex_name; EXNAME
="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4259 echo "${ECHO_T}$EXNAME" >&6; }
4261 EXNAME
="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4262 echo "${ECHO_T}Defaulting to ex" >&6; }
4266 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4267 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4269 # Check whether --with-view-name was given.
4270 if test "${with_view_name+set}" = set; then
4271 withval
=$with_view_name; VIEWNAME
="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4272 echo "${ECHO_T}$VIEWNAME" >&6; }
4274 VIEWNAME
="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4275 echo "${ECHO_T}Defaulting to view" >&6; }
4280 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4281 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4283 # Check whether --with-global-runtime was given.
4284 if test "${with_global_runtime+set}" = set; then
4285 withval
=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4286 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4287 #define RUNTIME_GLOBAL "$withval"
4291 { echo "$as_me:$LINENO: result: no" >&5
4292 echo "${ECHO_T}no" >&6; }
4296 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4297 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4299 # Check whether --with-modified-by was given.
4300 if test "${with_modified_by+set}" = set; then
4301 withval
=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4302 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4303 #define MODIFIED_BY "$withval"
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4313 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4314 cat >conftest.
$ac_ext <<_ACEOF
4317 cat confdefs.h
>>conftest.
$ac_ext
4318 cat >>conftest.
$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4324 /* TryCompile function for CharSet.
4325 Treat any failure as ASCII for compatibility with existing art.
4326 Use compile-time rather than run-time tests for cross-compiler
4329 make an error "Character set is not EBCDIC"
4335 rm -f conftest.
$ac_objext
4336 if { (ac_try
="$ac_compile"
4338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_compile") 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && {
4349 test -z "$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 } && test -s conftest.$ac_objext; then
4352 # TryCompile action if true
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # TryCompile action if false
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 # end of TryCompile ])
4364 # end of CacheVal CvEbcdic
4365 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4366 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4367 case "$cf_cv_ebcdic" in #(vi
4368 yes) cat >>confdefs.h <<\_ACEOF
4374 *) line_break='"\\012"';;
4378 if test "$cf_cv_ebcdic" = "yes"; then
4379 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4380 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4382 OS/390) OS390Unix="yes";
4383 if test "$CC" = "cc"; then
4387 if test "$CC" = "c89"; then
4394 if test "$ccm" != "1"; then
4396 echo "------------------------------------------"
4397 echo " On OS/390 Unix, the environment variable"
4398 echo " __CC_${ccn}MODE must be set to \"1\"!"
4400 echo " export _CC_${ccn}MODE=1"
4401 echo " and then call configure again."
4402 echo "------------------------------------------"
4405 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4406 { echo "$as_me:$LINENO: result: yes" >&5
4407 echo "${ECHO_T}yes" >&6; }
4410 { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4416 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4417 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4418 # Check whether --enable-selinux was given.
4419 if test "${enable_selinux+set}" = set; then
4420 enableval=$enable_selinux;
4422 enable_selinux="yes"
4425 if test "$enable_selinux" = "yes"; then
4426 { echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6; }
4428 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4429 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4430 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ac_check_lib_save_LIBS=$LIBS
4434 LIBS="-lselinux $LIBS"
4435 cat >conftest.$ac_ext <<_ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4442 /* Override any GCC internal prototype to avoid an error.
4443 Use char because int might match the return type of a GCC
4444 builtin and then its argument prototype would still apply. */
4448 char is_selinux_enabled ();
4452 return is_selinux_enabled ();
4457 rm -f conftest.$ac_objext conftest$ac_exeext
4458 if { (ac_try="$ac_link"
4460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4461 *) ac_try_echo
=$ac_try;;
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_link") 2>conftest.er1
4466 grep -v '^ *+' conftest.er1
>conftest.err
4468 cat conftest.err
>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && {
4471 test -z "$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 } && test -s conftest
$ac_exeext &&
4474 $as_test_x conftest
$ac_exeext; then
4475 ac_cv_lib_selinux_is_selinux_enabled
=yes
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.
$ac_ext >&5
4480 ac_cv_lib_selinux_is_selinux_enabled
=no
4483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4484 conftest
$ac_exeext conftest.
$ac_ext
4485 LIBS
=$ac_check_lib_save_LIBS
4487 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4488 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4489 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4490 LIBS
="$LIBS -lselinux"
4491 cat >>confdefs.h
<<\_ACEOF
4492 #define HAVE_SELINUX 1
4498 { echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6; }
4503 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4504 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4506 # Check whether --with-features was given.
4507 if test "${with_features+set}" = set; then
4508 withval
=$with_features; features
="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4509 echo "${ECHO_T}$features" >&6; }
4511 features
="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4512 echo "${ECHO_T}Defaulting to normal" >&6; }
4519 tiny
) cat >>confdefs.h
<<\_ACEOF
4523 small
) cat >>confdefs.h
<<\_ACEOF
4524 #define FEAT_SMALL 1
4527 normal
) cat >>confdefs.h
<<\_ACEOF
4528 #define FEAT_NORMAL 1
4530 dovimdiff
="installvimdiff";
4531 dogvimdiff
="installgvimdiff" ;;
4532 big
) cat >>confdefs.h
<<\_ACEOF
4535 dovimdiff
="installvimdiff";
4536 dogvimdiff
="installgvimdiff" ;;
4537 huge
) cat >>confdefs.h
<<\_ACEOF
4540 dovimdiff
="installvimdiff";
4541 dogvimdiff
="installgvimdiff" ;;
4542 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4543 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4549 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4550 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4552 # Check whether --with-compiledby was given.
4553 if test "${with_compiledby+set}" = set; then
4554 withval
=$with_compiledby; compiledby
="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4555 echo "${ECHO_T}$withval" >&6; }
4557 compiledby
=""; { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4563 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4564 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4565 # Check whether --enable-xsmp was given.
4566 if test "${enable_xsmp+set}" = set; then
4567 enableval
=$enable_xsmp;
4573 if test "$enable_xsmp" = "yes"; then
4574 { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4577 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4578 # Check whether --enable-xsmp-interact was given.
4579 if test "${enable_xsmp_interact+set}" = set; then
4580 enableval
=$enable_xsmp_interact;
4582 enable_xsmp_interact
="yes"
4585 if test "$enable_xsmp_interact" = "yes"; then
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 cat >>confdefs.h
<<\_ACEOF
4589 #define USE_XSMP_INTERACT 1
4593 { echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6; }
4597 { echo "$as_me:$LINENO: result: yes" >&5
4598 echo "${ECHO_T}yes" >&6; }
4601 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4602 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4603 # Check whether --enable-mzschemeinterp was given.
4604 if test "${enable_mzschemeinterp+set}" = set; then
4605 enableval
=$enable_mzschemeinterp;
4607 enable_mzschemeinterp
="no"
4610 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4611 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4613 if test "$enable_mzschemeinterp" = "yes"; then
4616 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4617 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4619 # Check whether --with-plthome was given.
4620 if test "${with_plthome+set}" = set; then
4621 withval
=$with_plthome; with_plthome
="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4622 echo "${ECHO_T}$with_plthome" >&6; }
4624 with_plthome
="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4625 echo "${ECHO_T}\"no\"" >&6; }
4629 if test "X$with_plthome" != "X"; then
4630 vi_cv_path_mzscheme_pfx
="$with_plthome"
4632 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4633 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4634 if test "X$PLTHOME" != "X"; then
4635 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4636 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4637 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4639 { echo "$as_me:$LINENO: result: not set" >&5
4640 echo "${ECHO_T}not set" >&6; }
4641 # Extract the first word of "mzscheme", so it can be a program name with args.
4642 set dummy mzscheme
; ac_word
=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 case $vi_cv_path_mzscheme in
4650 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4653 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir
=.
4658 for ac_exec_ext
in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4672 if test -n "$vi_cv_path_mzscheme"; then
4673 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4674 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4682 if test "X$vi_cv_path_mzscheme" != "X"; then
4683 lsout
=`ls -l $vi_cv_path_mzscheme`
4684 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4685 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4689 if test "X$vi_cv_path_mzscheme" != "X"; then
4690 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4691 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4692 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 echo "(display (simplify-path \
4696 (build-path (call-with-values \
4697 (lambda () (split-path (find-system-path (quote exec-file)))) \
4698 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4699 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4702 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4703 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4710 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4711 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4712 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4713 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4714 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4715 { echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6; }
4718 { echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6; }
4720 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4721 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4722 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4723 { echo "$as_me:$LINENO: result: yes" >&5
4724 echo "${ECHO_T}yes" >&6; }
4725 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4727 { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4730 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4731 if test -f /usr
/include
/plt
/scheme.h
; then
4732 { echo "$as_me:$LINENO: result: yes" >&5
4733 echo "${ECHO_T}yes" >&6; }
4734 SCHEME_INC
=/usr
/include
/plt
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4738 vi_cv_path_mzscheme_pfx
=
4744 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4745 if test "x$MACOSX" = "xyes"; then
4746 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4747 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4748 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4749 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4750 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4751 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4753 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4754 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4755 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4757 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4759 if test "$GCC" = yes; then
4760 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4761 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4762 uname
-r |
grep '^5' >/dev
/null
; then
4763 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4766 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4767 SCHEME_COLLECTS
=lib
/plt
/
4769 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4770 MZSCHEME_EXTRA
="mzscheme_base.c"
4771 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4772 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4774 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4775 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4776 MZSCHEME_SRC
="if_mzsch.c"
4777 MZSCHEME_OBJ
="objects/if_mzsch.o"
4778 MZSCHEME_PRO
="if_mzsch.pro"
4779 cat >>confdefs.h
<<\_ACEOF
4780 #define FEAT_MZSCHEME 1
4794 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4795 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4796 # Check whether --enable-perlinterp was given.
4797 if test "${enable_perlinterp+set}" = set; then
4798 enableval
=$enable_perlinterp;
4800 enable_perlinterp
="no"
4803 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4804 echo "${ECHO_T}$enable_perlinterp" >&6; }
4805 if test "$enable_perlinterp" = "yes"; then
4807 # Extract the first word of "perl", so it can be a program name with args.
4808 set dummy perl
; ac_word
=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 case $vi_cv_path_perl in
4816 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir
=.
4824 for ac_exec_ext
in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4838 if test -n "$vi_cv_path_perl"; then
4839 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4840 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 if test "X$vi_cv_path_perl" != "X"; then
4848 { echo "$as_me:$LINENO: checking Perl version" >&5
4849 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4850 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4851 eval `$vi_cv_path_perl -V:usethreads`
4852 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4855 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4856 eval `$vi_cv_path_perl -V:use5005threads`
4857 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4861 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4862 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4866 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4867 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4870 if test $badthreads = no
; then
4871 { echo "$as_me:$LINENO: result: OK" >&5
4872 echo "${ECHO_T}OK" >&6; }
4873 eval `$vi_cv_path_perl -V:shrpenv`
4874 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4877 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4879 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4880 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4881 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4882 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4883 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4884 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4885 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4887 if test "x$MACOSX" = "xyes"; then
4888 perllibs
=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4889 perlcppflags
=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4892 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4893 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4896 ldflags_save
=$LDFLAGS
4897 CFLAGS
="$CFLAGS $perlcppflags"
4898 LIBS
="$LIBS $perllibs"
4899 LDFLAGS
="$perlldflags $LDFLAGS"
4900 cat >conftest.
$ac_ext <<_ACEOF
4903 cat confdefs.h
>>conftest.
$ac_ext
4904 cat >>conftest.
$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4915 rm -f conftest.
$ac_objext conftest
$ac_exeext
4916 if { (ac_try
="$ac_link"
4918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_link") 2>conftest.er1
4924 grep -v '^ *+' conftest.er1 >conftest.err
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } && {
4929 test -z "$ac_c_werror_flag" ||
4930 test ! -s conftest.err
4931 } && test -s conftest$ac_exeext &&
4932 $as_test_x conftest$ac_exeext; then
4933 { echo "$as_me:$LINENO: result: yes" >&5
4934 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4940 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
4943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4944 conftest$ac_exeext conftest.$ac_ext
4947 LDFLAGS=$ldflags_save
4948 if test $perl_ok = yes; then
4949 if test "X$perlcppflags" != "X"; then
4950 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4952 if test "X$perlldflags" != "X"; then
4953 LDFLAGS="$perlldflags $LDFLAGS"
4956 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4957 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4958 PERL_PRO="if_perl.pro if_perlsfio.pro"
4959 cat >>confdefs.h <<\_ACEOF
4966 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4967 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4971 if test "x$MACOSX" = "xyes"; then
4972 dir=/System/Library/Perl
4973 darwindir=$dir/darwin
4974 if test -d $darwindir; then
4977 dir=/System/Library/Perl/5.8.1
4978 darwindir=$dir/darwin-thread-multi-2level
4979 if test -d $darwindir; then
4983 if test -n "$PERL"; then
4985 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4986 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4987 PERL_LIBS="-L$darwindir/CORE -lperl"
4998 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4999 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
5000 # Check whether --enable-pythoninterp was given.
5001 if test "${enable_pythoninterp+set}" = set; then
5002 enableval=$enable_pythoninterp;
5004 enable_pythoninterp="no"
5007 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5008 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5009 if test "$enable_pythoninterp" = "yes"; then
5010 # Extract the first word of "python", so it can be a program name with args.
5011 set dummy python; ac_word=$2
5012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5014 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 case $vi_cv_path_python in
5019 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5041 if test -n "$vi_cv_path_python"; then
5042 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5043 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5045 { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5050 if test "X$vi_cv_path_python" != "X"; then
5052 { echo "$as_me:$LINENO: checking Python version" >&5
5053 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5054 if test "${vi_cv_var_python_version+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 vi_cv_var_python_version=`
5058 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5061 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5062 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5064 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5065 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5066 if ${vi_cv_path_python} -c \
5067 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5069 { echo "$as_me:$LINENO: result: yep" >&5
5070 echo "${ECHO_T}yep" >&6; }
5072 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5073 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5074 if test "${vi_cv_path_python_pfx+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 vi_cv_path_python_pfx=`
5078 ${vi_cv_path_python} -c \
5079 "import sys; print sys.prefix"`
5081 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5082 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5084 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5085 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5086 if test "${vi_cv_path_python_epfx+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 vi_cv_path_python_epfx=`
5090 ${vi_cv_path_python} -c \
5091 "import sys; print sys.exec_prefix"`
5093 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5094 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5097 if test "${vi_cv_path_pythonpath+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 vi_cv_path_pythonpath=`
5102 ${vi_cv_path_python} -c \
5103 "import sys, string; print string.join(sys.path,':')"`
5109 # Check whether --with-python-config-dir was given.
5110 if test "${with_python_config_dir+set}" = set; then
5111 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5115 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5116 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5117 if test "${vi_cv_path_python_conf+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5121 vi_cv_path_python_conf=
5122 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5123 for subdir in lib share; do
5124 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5125 if test -d "$d" && test -f "$d/config.c"; then
5126 vi_cv_path_python_conf="$d"
5132 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5133 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5135 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5137 if test "X$PYTHON_CONFDIR" = "X"; then
5138 { echo "$as_me:$LINENO: result: can't find it!" >&5
5139 echo "${ECHO_T}can't find it!" >&6; }
5142 if test "${vi_cv_path_python_plibs+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 tmp_mkf="$pwd/config-PyMake$$"
5148 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5150 @echo "python_MODLIBS='$(MODLIBS)'"
5151 @echo "python_LIBS='$(LIBS)'"
5152 @echo "python_SYSLIBS='$(SYSLIBS)'"
5153 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5155 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5156 rm -f -- "${tmp_mkf}"
5157 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5158 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5159 vi_cv_path_python_plibs="-framework Python"
5161 if test "${vi_cv_var_python_version}" = "1.4"; then
5162 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5164 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5166 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5167 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5173 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5174 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5175 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5177 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}"
5179 PYTHON_SRC="if_python.c"
5180 if test "x$MACOSX" = "xyes"; then
5181 PYTHON_OBJ="objects/if_python.o"
5183 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5185 if test "${vi_cv_var_python_version}" = "1.4"; then
5186 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5188 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5190 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5191 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5194 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5195 test "$GCC" = yes && threadsafe_flag="-pthread"
5196 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5197 threadsafe_flag="-D_THREAD_SAFE"
5198 thread_lib="-pthread"
5202 if test -n "$threadsafe_flag"; then
5204 CFLAGS="$CFLAGS $threadsafe_flag"
5205 LIBS="$LIBS $thread_lib"
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5221 rm -f conftest.$ac_objext conftest$ac_exeext
5222 if { (ac_try="$ac_link"
5224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5225 *) ac_try_echo
=$ac_try;;
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_link") 2>conftest.er1
5230 grep -v '^ *+' conftest.er1
>conftest.err
5232 cat conftest.err
>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } && {
5235 test -z "$ac_c_werror_flag" ||
5236 test ! -s conftest.err
5237 } && test -s conftest
$ac_exeext &&
5238 $as_test_x conftest
$ac_exeext; then
5239 { echo "$as_me:$LINENO: result: yes" >&5
5240 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.
$ac_ext >&5
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }; LIBS
=$libs_save_old
5250 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5251 conftest
$ac_exeext conftest.
$ac_ext
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5258 if test -n "$MACSDK"; then
5260 PYTHON_LIBS
=-framework Python
5262 PYTHON_GETPATH_CFLAGS
=
5265 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5266 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5269 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5270 LIBS
="$LIBS $PYTHON_LIBS"
5271 cat >conftest.
$ac_ext <<_ACEOF
5274 cat confdefs.h
>>conftest.
$ac_ext
5275 cat >>conftest.
$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5286 rm -f conftest.
$ac_objext conftest
$ac_exeext
5287 if { (ac_try
="$ac_link"
5289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_link") 2>conftest.er1
5295 grep -v '^ *+' conftest.er1 >conftest.err
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && {
5300 test -z "$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 } && test -s conftest$ac_exeext &&
5303 $as_test_x conftest$ac_exeext; then
5304 { echo "$as_me:$LINENO: result: yes" >&5
5305 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5310 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5311 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5315 conftest$ac_exeext conftest.$ac_ext
5318 if test $python_ok = yes; then
5319 cat >>confdefs.h <<\_ACEOF
5320 #define FEAT_PYTHON 1
5333 { echo "$as_me:$LINENO: result: too old" >&5
5334 echo "${ECHO_T}too old" >&6; }
5345 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5346 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5347 # Check whether --enable-tclinterp was given.
5348 if test "${enable_tclinterp+set}" = set; then
5349 enableval=$enable_tclinterp;
5351 enable_tclinterp="no"
5354 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5355 echo "${ECHO_T}$enable_tclinterp" >&6; }
5357 if test "$enable_tclinterp" = "yes"; then
5359 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5360 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5362 # Check whether --with-tclsh was given.
5363 if test "${with_tclsh+set}" = set; then
5364 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5365 echo "${ECHO_T}$tclsh_name" >&6; }
5367 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5371 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5372 set dummy $tclsh_name; ac_word=$2
5373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5375 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 case $vi_cv_path_tcl in
5380 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5402 if test -n "$vi_cv_path_tcl"; then
5403 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5404 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5406 { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5413 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5414 tclsh_name="tclsh8.4"
5415 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5416 set dummy $tclsh_name; ac_word=$2
5417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 case $vi_cv_path_tcl in
5424 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5446 if test -n "$vi_cv_path_tcl"; then
5447 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5448 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5450 { echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6; }
5456 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5457 tclsh_name="tclsh8.2"
5458 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5459 set dummy $tclsh_name; ac_word=$2
5460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 case $vi_cv_path_tcl in
5467 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5489 if test -n "$vi_cv_path_tcl"; then
5490 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5491 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5493 { echo "$as_me:$LINENO: result: no" >&5
5494 echo "${ECHO_T}no" >&6; }
5499 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5500 tclsh_name="tclsh8.0"
5501 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5502 set dummy $tclsh_name; ac_word=$2
5503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 case $vi_cv_path_tcl in
5510 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5532 if test -n "$vi_cv_path_tcl"; then
5533 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5534 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5536 { echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6; }
5542 if test "X$vi_cv_path_tcl" = "X"; then
5544 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5545 set dummy $tclsh_name; ac_word=$2
5546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5548 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 case $vi_cv_path_tcl in
5553 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5575 if test -n "$vi_cv_path_tcl"; then
5576 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5577 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5579 { echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6; }
5585 if test "X$vi_cv_path_tcl" != "X"; then
5586 { echo "$as_me:$LINENO: checking Tcl version" >&5
5587 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5588 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5589 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5590 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5591 echo "${ECHO_T}$tclver - OK" >&6; };
5592 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 -`
5594 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5595 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5596 if test "x$MACOSX" != "xyes"; then
5597 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5599 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5602 for try in $tclinc; do
5603 if test -f "$try/tcl.h"; then
5604 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5605 echo "${ECHO_T}$try/tcl.h" >&6; }
5610 if test -z "$TCL_INC"; then
5611 { echo "$as_me:$LINENO: result: <not found>" >&5
5612 echo "${ECHO_T}<not found>" >&6; }
5615 if test -z "$SKIP_TCL"; then
5616 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5617 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5618 if test "x$MACOSX" != "xyes"; then
5619 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5620 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5622 tclcnf="/System/Library/Frameworks/Tcl.framework"
5624 for try in $tclcnf; do
5625 if test -f $try/tclConfig.sh; then
5626 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5627 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5629 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5630 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'`
5634 if test -z "$TCL_LIBS"; then
5635 { echo "$as_me:$LINENO: result: <not found>" >&5
5636 echo "${ECHO_T}<not found>" >&6; }
5637 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5638 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5639 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5640 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5641 for ext in .so .a ; do
5642 for ver in "" $tclver ; do
5643 for try in $tcllib ; do
5645 if test -f $try/lib$trylib ; then
5646 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5647 echo "${ECHO_T}$try/lib$trylib" >&6; }
5648 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5649 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5650 uname -r | grep '^5' >/dev/null; then
5651 TCL_LIBS="$TCL_LIBS -R $try"
5658 if test -z "$TCL_LIBS"; then
5659 { echo "$as_me:$LINENO: result: <not found>" >&5
5660 echo "${ECHO_T}<not found>" >&6; }
5664 if test -z "$SKIP_TCL"; then
5665 cat >>confdefs.h <<\_ACEOF
5670 TCL_OBJ=objects/if_tcl.o
5672 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5676 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5677 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5687 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5688 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5689 # Check whether --enable-rubyinterp was given.
5690 if test "${enable_rubyinterp+set}" = set; then
5691 enableval=$enable_rubyinterp;
5693 enable_rubyinterp="no"
5696 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5697 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5698 if test "$enable_rubyinterp" = "yes"; then
5700 # Extract the first word of "ruby", so it can be a program name with args.
5701 set dummy ruby; ac_word=$2
5702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5704 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 case $vi_cv_path_ruby in
5709 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5731 if test -n "$vi_cv_path_ruby"; then
5732 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5733 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5735 { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5740 if test "X$vi_cv_path_ruby" != "X"; then
5741 { echo "$as_me:$LINENO: checking Ruby version" >&5
5742 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5743 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5744 { echo "$as_me:$LINENO: result: OK" >&5
5745 echo "${ECHO_T}OK" >&6; }
5746 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5747 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5748 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5749 if test "X$rubyhdrdir" != "X"; then
5750 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5751 echo "${ECHO_T}$rubyhdrdir" >&6; }
5752 RUBY_CFLAGS="-I$rubyhdrdir"
5753 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5754 if test "X$rubylibs" != "X"; then
5755 RUBY_LIBS="$rubylibs"
5757 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5758 if test -f "$rubyhdrdir/$librubyarg"; then
5759 librubyarg="$rubyhdrdir/$librubyarg"
5761 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5762 if test -d "/System/Library/Frameworks/Ruby.framework"; then
5763 RUBY_LIBS="-framework Ruby"
5766 elif test -f "$rubylibdir/$librubyarg"; then
5767 librubyarg="$rubylibdir/$librubyarg"
5768 elif test "$librubyarg" = "libruby.a"; then
5771 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5775 if test "X$librubyarg" != "X"; then
5776 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5778 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5779 if test "x$MACOSX" = "xyes"; then
5780 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch[^-]*//g'`
5782 if test "X$rubyldflags" != "X"; then
5783 LDFLAGS="$rubyldflags $LDFLAGS"
5785 RUBY_SRC="if_ruby.c"
5786 RUBY_OBJ="objects/if_ruby.o"
5787 RUBY_PRO="if_ruby.pro"
5789 cat >>confdefs.h <<\_ACEOF
5794 { echo "$as_me:$LINENO: result: not found" >&5
5795 echo "${ECHO_T}not found" >&6; }
5798 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5799 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5809 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5810 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5811 # Check whether --enable-cscope was given.
5812 if test "${enable_cscope+set}" = set; then
5813 enableval=$enable_cscope;
5818 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5819 echo "${ECHO_T}$enable_cscope" >&6; }
5820 if test "$enable_cscope" = "yes"; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define FEAT_CSCOPE 1
5827 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5828 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5829 # Check whether --enable-workshop was given.
5830 if test "${enable_workshop+set}" = set; then
5831 enableval=$enable_workshop;
5833 enable_workshop="no"
5836 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5837 echo "${ECHO_T}$enable_workshop" >&6; }
5838 if test "$enable_workshop" = "yes"; then
5839 cat >>confdefs.h <<\_ACEOF
5840 #define FEAT_SUN_WORKSHOP 1
5843 WORKSHOP_SRC="workshop.c integration.c"
5845 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5847 if test "${enable_gui-xxx}" = xxx; then
5852 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5853 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5854 # Check whether --enable-netbeans was given.
5855 if test "${enable_netbeans+set}" = set; then
5856 enableval=$enable_netbeans;
5858 enable_netbeans="yes"
5861 if test "$enable_netbeans" = "yes"; then
5862 { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5865 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5866 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5867 if test "${ac_cv_lib_socket_socket+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_check_lib_save_LIBS=$LIBS
5871 LIBS="-lsocket $LIBS"
5872 cat >conftest.$ac_ext <<_ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5879 /* Override any GCC internal prototype to avoid an error.
5880 Use char because int might match the return type of a GCC
5881 builtin and then its argument prototype would still apply. */
5894 rm -f conftest.$ac_objext conftest$ac_exeext
5895 if { (ac_try="$ac_link"
5897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5898 *) ac_try_echo
=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_link") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest
$ac_exeext &&
5911 $as_test_x conftest
$ac_exeext; then
5912 ac_cv_lib_socket_socket
=yes
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.
$ac_ext >&5
5917 ac_cv_lib_socket_socket
=no
5920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5921 conftest
$ac_exeext conftest.
$ac_ext
5922 LIBS
=$ac_check_lib_save_LIBS
5924 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5925 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5926 if test $ac_cv_lib_socket_socket = yes; then
5927 cat >>confdefs.h
<<_ACEOF
5928 #define HAVE_LIBSOCKET 1
5931 LIBS
="-lsocket $LIBS"
5936 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5937 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5938 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 ac_check_lib_save_LIBS
=$LIBS
5943 cat >conftest.
$ac_ext <<_ACEOF
5946 cat confdefs.h
>>conftest.
$ac_ext
5947 cat >>conftest.
$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5956 char gethostbyname ();
5960 return gethostbyname ();
5965 rm -f conftest.
$ac_objext conftest
$ac_exeext
5966 if { (ac_try
="$ac_link"
5968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_link") 2>conftest.er1
5974 grep -v '^ *+' conftest.er1 >conftest.err
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } && {
5979 test -z "$ac_c_werror_flag" ||
5980 test ! -s conftest.err
5981 } && test -s conftest$ac_exeext &&
5982 $as_test_x conftest$ac_exeext; then
5983 ac_cv_lib_nsl_gethostbyname=yes
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 ac_cv_lib_nsl_gethostbyname=no
5991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5992 conftest$ac_exeext conftest.$ac_ext
5993 LIBS=$ac_check_lib_save_LIBS
5995 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5996 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5997 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5998 cat >>confdefs.h <<_ACEOF
5999 #define HAVE_LIBNSL 1
6006 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6007 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6020 #include <netinet/in.h>
6022 #include <sys/types.h>
6023 #include <sys/socket.h>
6024 /* Check bitfields */
6026 unsigned int initDone:1;
6034 /* Check creating a socket. */
6035 struct sockaddr_in server;
6036 (void)socket(AF_INET, SOCK_STREAM, 0);
6038 (void)gethostbyname("microsoft.com");
6039 if (errno == ECONNREFUSED)
6040 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6050 *) ac_try_echo
=$ac_try;;
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_link") 2>conftest.er1
6055 grep -v '^ *+' conftest.er1
>conftest.err
6057 cat conftest.err
>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest
$ac_exeext &&
6063 $as_test_x conftest
$ac_exeext; then
6064 { echo "$as_me:$LINENO: result: yes" >&5
6065 echo "${ECHO_T}yes" >&6; }
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.
$ac_ext >&5
6070 { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }; enable_netbeans
="no"
6074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6075 conftest
$ac_exeext conftest.
$ac_ext
6077 { echo "$as_me:$LINENO: result: yes" >&5
6078 echo "${ECHO_T}yes" >&6; }
6080 if test "$enable_netbeans" = "yes"; then
6081 cat >>confdefs.h
<<\_ACEOF
6082 #define FEAT_NETBEANS_INTG 1
6085 NETBEANS_SRC
="netbeans.c"
6087 NETBEANS_OBJ
="objects/netbeans.o"
6091 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6092 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6093 # Check whether --enable-sniff was given.
6094 if test "${enable_sniff+set}" = set; then
6095 enableval
=$enable_sniff;
6100 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6101 echo "${ECHO_T}$enable_sniff" >&6; }
6102 if test "$enable_sniff" = "yes"; then
6103 cat >>confdefs.h
<<\_ACEOF
6104 #define FEAT_SNIFF 1
6107 SNIFF_SRC
="if_sniff.c"
6109 SNIFF_OBJ
="objects/if_sniff.o"
6113 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6114 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6115 # Check whether --enable-multibyte was given.
6116 if test "${enable_multibyte+set}" = set; then
6117 enableval
=$enable_multibyte;
6119 enable_multibyte
="no"
6122 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6123 echo "${ECHO_T}$enable_multibyte" >&6; }
6124 if test "$enable_multibyte" = "yes"; then
6125 cat >>confdefs.h
<<\_ACEOF
6126 #define FEAT_MBYTE 1
6131 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6132 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6133 # Check whether --enable-hangulinput was given.
6134 if test "${enable_hangulinput+set}" = set; then
6135 enableval
=$enable_hangulinput;
6137 enable_hangulinput
="no"
6140 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6141 echo "${ECHO_T}$enable_hangulinput" >&6; }
6143 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6144 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6145 # Check whether --enable-xim was given.
6146 if test "${enable_xim+set}" = set; then
6147 enableval
=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6148 echo "${ECHO_T}$enable_xim" >&6; }
6150 enable_xim
="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6151 echo "${ECHO_T}defaulting to auto" >&6; }
6155 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6156 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6157 # Check whether --enable-fontset was given.
6158 if test "${enable_fontset+set}" = set; then
6159 enableval
=$enable_fontset;
6164 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6165 echo "${ECHO_T}$enable_fontset" >&6; }
6167 test -z "$with_x" && with_x
=yes
6168 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6169 if test "$with_x" = no
; then
6170 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6171 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6174 # Extract the first word of "xmkmf", so it can be a program name with args.
6175 set dummy xmkmf
; ac_word
=$2
6176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6178 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir
=.
6191 for ac_exec_ext
in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 xmkmfpath
=$ac_cv_path_xmkmfpath
6205 if test -n "$xmkmfpath"; then
6206 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6207 echo "${ECHO_T}$xmkmfpath" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6215 { echo "$as_me:$LINENO: checking for X" >&5
6216 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6219 # Check whether --with-x was given.
6220 if test "${with_x+set}" = set; then
6224 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6225 if test "x$with_x" = xno
; then
6226 # The user explicitly disabled X.
6229 case $x_includes,$x_libraries in #(
6230 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6231 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6232 { (exit 1); exit 1; }; };; #(
6233 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6236 # One or both of the vars are not set, and there is no cached value.
6237 ac_x_includes
=no ac_x_libraries
=no
6238 rm -f -r conftest.dir
6239 if mkdir conftest.dir
; then
6241 cat >Imakefile
<<'_ACEOF'
6243 @echo incroot='${INCROOT}'
6245 @echo usrlibdir='${USRLIBDIR}'
6247 @echo libdir='${LIBDIR}'
6249 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6250 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6251 for ac_var
in incroot usrlibdir libdir
; do
6252 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6254 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6255 for ac_extension
in a so sl dylib la dll
; do
6256 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6257 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6258 ac_im_usrlibdir
=$ac_im_libdir; break
6261 # Screen out bogus values from the imake configuration. They are
6262 # bogus both because they are the default anyway, and because
6263 # using them would break gcc on systems where it needs fixed includes.
6264 case $ac_im_incroot in
6265 /usr
/include
) ac_x_includes
= ;;
6266 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6268 case $ac_im_usrlibdir in
6270 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6274 rm -f -r conftest.dir
6277 # Standard set of common directories for X headers.
6278 # Check X11 before X11Rn because it is often a symlink to the current release.
6290 /usr/local/X11/include
6291 /usr/local/X11R6/include
6292 /usr/local/X11R5/include
6293 /usr/local/X11R4/include
6295 /usr/local/include/X11
6296 /usr/local/include/X11R6
6297 /usr/local/include/X11R5
6298 /usr/local/include/X11R4
6302 /usr/XFree86/include/X11
6306 /usr/unsupported/include
6308 /usr/local/x11r5/include
6309 /usr/lpp/Xamples/include
6311 /usr/openwin/include
6312 /usr/openwin/share/include'
6314 if test "$ac_x_includes" = no
; then
6315 # Guess where to find include files, by looking for Xlib.h.
6316 # First, try using that file with no special directory specified.
6317 cat >conftest.
$ac_ext <<_ACEOF
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 #include <X11/Xlib.h>
6325 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev/null && {
6338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6341 # We can compile using X headers with no special include directory.
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 for ac_dir in $ac_x_header_dirs; do
6348 if test -r "$ac_dir/X11/Xlib.h"; then
6349 ac_x_includes=$ac_dir
6355 rm -f conftest.err conftest.$ac_ext
6356 fi # $ac_x_includes = no
6358 if test "$ac_x_libraries" = no; then
6359 # Check for the libraries.
6360 # See if we find them without any special options.
6361 # Don't add to $LIBS permanently.
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <X11/Xlib.h>
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (ac_try="$ac_link"
6382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6383 *) ac_try_echo
=$ac_try;;
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_link") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1
>conftest.err
6390 cat conftest.err
>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest
$ac_exeext &&
6396 $as_test_x conftest
$ac_exeext; then
6398 # We can link X programs with no special library path.
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.
$ac_ext >&5
6405 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6407 # Don't even attempt the hair of trying to link an X program!
6408 for ac_extension
in a so sl dylib la dll
; do
6409 if test -r "$ac_dir/libX11.$ac_extension"; then
6410 ac_x_libraries
=$ac_dir
6417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6418 conftest
$ac_exeext conftest.
$ac_ext
6419 fi # $ac_x_libraries = no
6421 case $ac_x_includes,$ac_x_libraries in #(
6423 # Didn't find X, or a directory has "'" in its name.
6424 ac_cv_have_x
="have_x=no";; #(
6426 # Record where we found X for the cache.
6427 ac_cv_have_x
="have_x=yes\
6428 ac_x_includes='$ac_x_includes'\
6429 ac_x_libraries='$ac_x_libraries'"
6435 eval "$ac_cv_have_x"
6438 if test "$have_x" != yes; then
6439 { echo "$as_me:$LINENO: result: $have_x" >&5
6440 echo "${ECHO_T}$have_x" >&6; }
6443 # If each of the values was on the command line, it overrides each guess.
6444 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6445 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6446 # Update the cache value to reflect the command line values.
6447 ac_cv_have_x
="have_x=yes\
6448 ac_x_includes='$x_includes'\
6449 ac_x_libraries='$x_libraries'"
6450 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6451 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6454 if test "$no_x" = yes; then
6455 # Not all programs may use this symbol, but it does not hurt to define it.
6457 cat >>confdefs.h
<<\_ACEOF
6458 #define X_DISPLAY_MISSING 1
6461 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6463 if test -n "$x_includes"; then
6464 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6467 # It would also be nice to do this for all -L options, not just this one.
6468 if test -n "$x_libraries"; then
6469 X_LIBS
="$X_LIBS -L$x_libraries"
6470 # For Solaris; some versions of Sun CC require a space after -R and
6471 # others require no space. Words are not sufficient . . . .
6472 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6473 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6474 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6475 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6476 ac_c_werror_flag
=yes
6477 cat >conftest.
$ac_ext <<_ACEOF
6480 cat confdefs.h
>>conftest.
$ac_ext
6481 cat >>conftest.
$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6492 rm -f conftest.
$ac_objext conftest
$ac_exeext
6493 if { (ac_try
="$ac_link"
6495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_link") 2>conftest.er1
6501 grep -v '^ *+' conftest.er1 >conftest.err
6503 cat conftest.err >&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && {
6506 test -z "$ac_c_werror_flag" ||
6507 test ! -s conftest.err
6508 } && test -s conftest$ac_exeext &&
6509 $as_test_x conftest$ac_exeext; then
6510 { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6512 X_LIBS="$X_LIBS -R$x_libraries"
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 LIBS="$ac_xsave_LIBS -R $x_libraries"
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (ac_try="$ac_link"
6536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6537 *) ac_try_echo
=$ac_try;;
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
6542 grep -v '^ *+' conftest.er1
>conftest.err
6544 cat conftest.err
>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest
$ac_exeext &&
6550 $as_test_x conftest
$ac_exeext; then
6551 { echo "$as_me:$LINENO: result: yes" >&5
6552 echo "${ECHO_T}yes" >&6; }
6553 X_LIBS
="$X_LIBS -R $x_libraries"
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.
$ac_ext >&5
6558 { echo "$as_me:$LINENO: result: neither works" >&5
6559 echo "${ECHO_T}neither works" >&6; }
6562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6563 conftest
$ac_exeext conftest.
$ac_ext
6566 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6567 conftest
$ac_exeext conftest.
$ac_ext
6568 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6572 # Check for system-dependent libraries X programs must link with.
6573 # Do this before checking for the system-independent R6 libraries
6574 # (-lICE), since we may need -lsocket or whatever for X linking.
6576 if test "$ISC" = yes; then
6577 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6579 # Martyn Johnson says this is needed for Ultrix, if the X
6580 # libraries were built with DECnet support. And Karl Berry says
6581 # the Alpha needs dnet_stub (dnet does not exist).
6582 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6583 cat >conftest.
$ac_ext <<_ACEOF
6586 cat confdefs.h
>>conftest.
$ac_ext
6587 cat >>conftest.
$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 /* Override any GCC internal prototype to avoid an error.
6591 Use char because int might match the return type of a GCC
6592 builtin and then its argument prototype would still apply. */
6596 char XOpenDisplay ();
6600 return XOpenDisplay ();
6605 rm -f conftest.
$ac_objext conftest
$ac_exeext
6606 if { (ac_try
="$ac_link"
6608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6629 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6630 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_check_lib_save_LIBS=$LIBS
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6642 /* Override any GCC internal prototype to avoid an error.
6643 Use char because int might match the return type of a GCC
6644 builtin and then its argument prototype would still apply. */
6652 return dnet_ntoa ();
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6661 *) ac_try_echo
=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>conftest.er1
6666 grep -v '^ *+' conftest.er1
>conftest.err
6668 cat conftest.err
>&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest
$ac_exeext &&
6674 $as_test_x conftest
$ac_exeext; then
6675 ac_cv_lib_dnet_dnet_ntoa
=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 ac_cv_lib_dnet_dnet_ntoa
=no
6683 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6684 conftest
$ac_exeext conftest.
$ac_ext
6685 LIBS
=$ac_check_lib_save_LIBS
6687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6688 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6689 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6690 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6693 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6694 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6695 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6696 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_check_lib_save_LIBS
=$LIBS
6700 LIBS
="-ldnet_stub $LIBS"
6701 cat >conftest.
$ac_ext <<_ACEOF
6704 cat confdefs.h
>>conftest.
$ac_ext
6705 cat >>conftest.
$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6708 /* Override any GCC internal prototype to avoid an error.
6709 Use char because int might match the return type of a GCC
6710 builtin and then its argument prototype would still apply. */
6718 return dnet_ntoa ();
6723 rm -f conftest.
$ac_objext conftest
$ac_exeext
6724 if { (ac_try
="$ac_link"
6726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_link") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest$ac_exeext &&
6740 $as_test_x conftest$ac_exeext; then
6741 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 ac_cv_lib_dnet_stub_dnet_ntoa=no
6749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6750 conftest$ac_exeext conftest.$ac_ext
6751 LIBS=$ac_check_lib_save_LIBS
6753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6754 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6755 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6756 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6763 conftest$ac_exeext conftest.$ac_ext
6764 LIBS="$ac_xsave_LIBS"
6766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6767 # to get the SysV transport functions.
6768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6770 # The nsl library prevents programs from opening the X display
6771 # on Irix 5.2, according to T.E. Dickey.
6772 # The functions gethostbyname, getservbyname, and inet_addr are
6773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6774 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6775 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6776 if test "${ac_cv_func_gethostbyname+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6787 #define gethostbyname innocuous_gethostbyname
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char gethostbyname (); below.
6791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6792 <limits.h> exists even on freestanding compilers. */
6795 # include <limits.h>
6797 # include <assert.h>
6800 #undef gethostbyname
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6808 char gethostbyname ();
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6819 return gethostbyname ();
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (ac_try="$ac_link"
6827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6828 *) ac_try_echo
=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_link") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1
>conftest.err
6835 cat conftest.err
>&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest
$ac_exeext &&
6841 $as_test_x conftest
$ac_exeext; then
6842 ac_cv_func_gethostbyname
=yes
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.
$ac_ext >&5
6847 ac_cv_func_gethostbyname
=no
6850 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6851 conftest
$ac_exeext conftest.
$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6854 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6856 if test $ac_cv_func_gethostbyname = no
; then
6857 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6858 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6859 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_check_lib_save_LIBS
=$LIBS
6864 cat >conftest.
$ac_ext <<_ACEOF
6867 cat confdefs.h
>>conftest.
$ac_ext
6868 cat >>conftest.
$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6871 /* Override any GCC internal prototype to avoid an error.
6872 Use char because int might match the return type of a GCC
6873 builtin and then its argument prototype would still apply. */
6877 char gethostbyname ();
6881 return gethostbyname ();
6886 rm -f conftest.
$ac_objext conftest
$ac_exeext
6887 if { (ac_try
="$ac_link"
6889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_link") 2>conftest.er1
6895 grep -v '^ *+' conftest.er1 >conftest.err
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest$ac_exeext &&
6903 $as_test_x conftest$ac_exeext; then
6904 ac_cv_lib_nsl_gethostbyname=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6909 ac_cv_lib_nsl_gethostbyname=no
6912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6913 conftest$ac_exeext conftest.$ac_ext
6914 LIBS=$ac_check_lib_save_LIBS
6916 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6917 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6918 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6922 if test $ac_cv_lib_nsl_gethostbyname = no; then
6923 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6924 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6925 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_check_lib_save_LIBS=$LIBS
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6937 /* Override any GCC internal prototype to avoid an error.
6938 Use char because int might match the return type of a GCC
6939 builtin and then its argument prototype would still apply. */
6943 char gethostbyname ();
6947 return gethostbyname ();
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6956 *) ac_try_echo
=$ac_try;;
6958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6959 (eval "$ac_link") 2>conftest.er1
6961 grep -v '^ *+' conftest.er1
>conftest.err
6963 cat conftest.err
>&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest
$ac_exeext &&
6969 $as_test_x conftest
$ac_exeext; then
6970 ac_cv_lib_bsd_gethostbyname
=yes
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.
$ac_ext >&5
6975 ac_cv_lib_bsd_gethostbyname
=no
6978 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6979 conftest
$ac_exeext conftest.
$ac_ext
6980 LIBS
=$ac_check_lib_save_LIBS
6982 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6983 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6984 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6985 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
6991 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6992 # socket/setsockopt and other routines are undefined under SCO ODT
6993 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6994 # on later versions), says Simon Leinen: it contains gethostby*
6995 # variants that don't use the name server (or something). -lsocket
6996 # must be given before -lnsl if both are needed. We assume that
6997 # if connect needs -lnsl, so does gethostbyname.
6998 { echo "$as_me:$LINENO: checking for connect" >&5
6999 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7000 if test "${ac_cv_func_connect+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 cat >conftest.
$ac_ext <<_ACEOF
7006 cat confdefs.h
>>conftest.
$ac_ext
7007 cat >>conftest.
$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7011 #define connect innocuous_connect
7013 /* System header to define __stub macros and hopefully few prototypes,
7014 which can conflict with char connect (); below.
7015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7016 <limits.h> exists even on freestanding compilers. */
7019 # include <limits.h>
7021 # include <assert.h>
7026 /* Override any GCC internal prototype to avoid an error.
7027 Use char because int might match the return type of a GCC
7028 builtin and then its argument prototype would still apply. */
7033 /* The GNU C library defines this for functions which it implements
7034 to always fail with ENOSYS. Some functions are actually named
7035 something starting with __ and the normal name is an alias. */
7036 #if defined __stub_connect || defined __stub___connect
7048 rm -f conftest.
$ac_objext conftest
$ac_exeext
7049 if { (ac_try
="$ac_link"
7051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7055 (eval "$ac_link") 2>conftest.er1
7057 grep -v '^ *+' conftest.er1 >conftest.err
7059 cat conftest.err >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } && {
7062 test -z "$ac_c_werror_flag" ||
7063 test ! -s conftest.err
7064 } && test -s conftest$ac_exeext &&
7065 $as_test_x conftest$ac_exeext; then
7066 ac_cv_func_connect=yes
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 ac_cv_func_connect=no
7074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7075 conftest$ac_exeext conftest.$ac_ext
7077 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7078 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7080 if test $ac_cv_func_connect = no; then
7081 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7082 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7083 if test "${ac_cv_lib_socket_connect+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7095 /* Override any GCC internal prototype to avoid an error.
7096 Use char because int might match the return type of a GCC
7097 builtin and then its argument prototype would still apply. */
7110 rm -f conftest.$ac_objext conftest$ac_exeext
7111 if { (ac_try="$ac_link"
7113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7114 *) ac_try_echo
=$ac_try;;
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_link") 2>conftest.er1
7119 grep -v '^ *+' conftest.er1
>conftest.err
7121 cat conftest.err
>&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest
$ac_exeext &&
7127 $as_test_x conftest
$ac_exeext; then
7128 ac_cv_lib_socket_connect
=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 ac_cv_lib_socket_connect
=no
7136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7137 conftest
$ac_exeext conftest.
$ac_ext
7138 LIBS
=$ac_check_lib_save_LIBS
7140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7141 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7142 if test $ac_cv_lib_socket_connect = yes; then
7143 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7148 # Guillermo Gomez says -lposix is necessary on A/UX.
7149 { echo "$as_me:$LINENO: checking for remove" >&5
7150 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7151 if test "${ac_cv_func_remove+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7162 #define remove innocuous_remove
7164 /* System header to define __stub macros and hopefully few prototypes,
7165 which can conflict with char remove (); below.
7166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167 <limits.h> exists even on freestanding compilers. */
7170 # include <limits.h>
7172 # include <assert.h>
7177 /* Override any GCC internal prototype to avoid an error.
7178 Use char because int might match the return type of a GCC
7179 builtin and then its argument prototype would still apply. */
7184 /* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187 #if defined __stub_remove || defined __stub___remove
7199 rm -f conftest.
$ac_objext conftest
$ac_exeext
7200 if { (ac_try
="$ac_link"
7202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_link") 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest$ac_exeext &&
7216 $as_test_x conftest$ac_exeext; then
7217 ac_cv_func_remove=yes
7219 echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7222 ac_cv_func_remove=no
7225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7226 conftest$ac_exeext conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7229 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7231 if test $ac_cv_func_remove = no; then
7232 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7233 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7234 if test "${ac_cv_lib_posix_remove+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 ac_check_lib_save_LIBS=$LIBS
7238 LIBS="-lposix $LIBS"
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7246 /* Override any GCC internal prototype to avoid an error.
7247 Use char because int might match the return type of a GCC
7248 builtin and then its argument prototype would still apply. */
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (ac_try="$ac_link"
7264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7265 *) ac_try_echo
=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_link") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest
$ac_exeext &&
7278 $as_test_x conftest
$ac_exeext; then
7279 ac_cv_lib_posix_remove
=yes
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.
$ac_ext >&5
7284 ac_cv_lib_posix_remove
=no
7287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7288 conftest
$ac_exeext conftest.
$ac_ext
7289 LIBS
=$ac_check_lib_save_LIBS
7291 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7292 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7293 if test $ac_cv_lib_posix_remove = yes; then
7294 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7299 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7300 { echo "$as_me:$LINENO: checking for shmat" >&5
7301 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7302 if test "${ac_cv_func_shmat+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 cat >conftest.
$ac_ext <<_ACEOF
7308 cat confdefs.h
>>conftest.
$ac_ext
7309 cat >>conftest.
$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313 #define shmat innocuous_shmat
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char shmat (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7321 # include <limits.h>
7323 # include <assert.h>
7328 /* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
7335 /* The GNU C library defines this for functions which it implements
7336 to always fail with ENOSYS. Some functions are actually named
7337 something starting with __ and the normal name is an alias. */
7338 #if defined __stub_shmat || defined __stub___shmat
7350 rm -f conftest.
$ac_objext conftest
$ac_exeext
7351 if { (ac_try
="$ac_link"
7353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
7368 ac_cv_func_shmat=yes
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7380 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7382 if test $ac_cv_func_shmat = no; then
7383 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7384 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7385 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_check_lib_save_LIBS=$LIBS
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7397 /* Override any GCC internal prototype to avoid an error.
7398 Use char because int might match the return type of a GCC
7399 builtin and then its argument prototype would still apply. */
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (ac_try="$ac_link"
7415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7416 *) ac_try_echo
=$ac_try;;
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_link") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1
>conftest.err
7423 cat conftest.err
>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest
$ac_exeext &&
7429 $as_test_x conftest
$ac_exeext; then
7430 ac_cv_lib_ipc_shmat
=yes
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.
$ac_ext >&5
7435 ac_cv_lib_ipc_shmat
=no
7438 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7439 conftest
$ac_exeext conftest.
$ac_ext
7440 LIBS
=$ac_check_lib_save_LIBS
7442 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7443 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7444 if test $ac_cv_lib_ipc_shmat = yes; then
7445 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7451 # Check for libraries that X11R6 Xt/Xaw programs need.
7452 ac_save_LDFLAGS
=$LDFLAGS
7453 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7454 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7455 # check for ICE first), but we must link in the order -lSM -lICE or
7456 # we get undefined symbols. So assume we have SM if we have ICE.
7457 # These have to be linked with before -lX11, unlike the other
7458 # libraries we check for below, so use a different variable.
7459 # John Interrante, Karl Berry
7460 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7461 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7462 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 ac_check_lib_save_LIBS
=$LIBS
7466 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7467 cat >conftest.
$ac_ext <<_ACEOF
7470 cat confdefs.h
>>conftest.
$ac_ext
7471 cat >>conftest.
$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7474 /* Override any GCC internal prototype to avoid an error.
7475 Use char because int might match the return type of a GCC
7476 builtin and then its argument prototype would still apply. */
7480 char IceConnectionNumber ();
7484 return IceConnectionNumber ();
7489 rm -f conftest.
$ac_objext conftest
$ac_exeext
7490 if { (ac_try
="$ac_link"
7492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_link") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest$ac_exeext &&
7506 $as_test_x conftest$ac_exeext; then
7507 ac_cv_lib_ICE_IceConnectionNumber=yes
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_cv_lib_ICE_IceConnectionNumber=no
7515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7516 conftest$ac_exeext conftest.$ac_ext
7517 LIBS=$ac_check_lib_save_LIBS
7519 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7520 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7521 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7525 LDFLAGS=$ac_save_LDFLAGS
7530 if test "$OS390Unix" = "yes"; then
7531 CFLAGS="$CFLAGS -W c,dll"
7532 LDFLAGS="$LDFLAGS -W l,dll"
7533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7537 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7538 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7539 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7540 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7541 X_LIBS="$X_LIBS -L$x_libraries"
7542 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7543 uname -r | grep '^5' >/dev/null; then
7544 X_LIBS="$X_LIBS -R $x_libraries"
7548 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7549 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7550 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7551 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7552 X_CFLAGS="$X_CFLAGS -I$x_includes"
7555 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7556 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7557 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7560 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7561 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7563 CFLAGS="$CFLAGS $X_CFLAGS"
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <X11/Xlib.h>
7571 #include <X11/Intrinsic.h>
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7584 *) ac_try_echo
=$ac_try;;
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7589 grep -v '^ *+' conftest.er1
>conftest.err
7591 cat conftest.err
>&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && {
7594 test -z "$ac_c_werror_flag" ||
7595 test ! -s conftest.err
7596 } && test -s conftest.
$ac_objext; then
7597 { echo "$as_me:$LINENO: result: yes" >&5
7598 echo "${ECHO_T}yes" >&6; }
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7603 { echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6; }; no_x
=yes
7607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7610 if test "${no_x-no}" = yes; then
7613 cat >>confdefs.h
<<\_ACEOF
7620 ac_save_LDFLAGS
="$LDFLAGS"
7621 LDFLAGS
="-L$x_libraries $LDFLAGS"
7623 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7624 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7625 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 ac_check_lib_save_LIBS
=$LIBS
7629 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7630 cat >conftest.
$ac_ext <<_ACEOF
7633 cat confdefs.h
>>conftest.
$ac_ext
7634 cat >>conftest.
$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char _XdmcpAuthDoIt ();
7647 return _XdmcpAuthDoIt ();
7652 rm -f conftest.
$ac_objext conftest
$ac_exeext
7653 if { (ac_try
="$ac_link"
7655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_link") 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest$ac_exeext &&
7669 $as_test_x conftest$ac_exeext; then
7670 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7679 conftest$ac_exeext conftest.$ac_ext
7680 LIBS=$ac_check_lib_save_LIBS
7682 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7683 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7684 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7689 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7690 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7691 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7709 char IceOpenConnection ();
7713 return IceOpenConnection ();
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7722 *) ac_try_echo
=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_link") 2>conftest.er1
7727 grep -v '^ *+' conftest.er1
>conftest.err
7729 cat conftest.err
>&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_c_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest
$ac_exeext &&
7735 $as_test_x conftest
$ac_exeext; then
7736 ac_cv_lib_ICE_IceOpenConnection
=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.
$ac_ext >&5
7741 ac_cv_lib_ICE_IceOpenConnection
=no
7744 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7745 conftest
$ac_exeext conftest.
$ac_ext
7746 LIBS
=$ac_check_lib_save_LIBS
7748 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7749 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7750 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7751 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7755 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7756 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7757 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7758 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 ac_check_lib_save_LIBS
=$LIBS
7762 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7763 cat >conftest.
$ac_ext <<_ACEOF
7766 cat confdefs.h
>>conftest.
$ac_ext
7767 cat >>conftest.
$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 /* Override any GCC internal prototype to avoid an error.
7771 Use char because int might match the return type of a GCC
7772 builtin and then its argument prototype would still apply. */
7776 char XpmCreatePixmapFromData ();
7780 return XpmCreatePixmapFromData ();
7785 rm -f conftest.
$ac_objext conftest
$ac_exeext
7786 if { (ac_try
="$ac_link"
7788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7789 *) ac_try_echo=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_link") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1 >conftest.err
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest$ac_exeext &&
7802 $as_test_x conftest$ac_exeext; then
7803 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7812 conftest$ac_exeext conftest.$ac_ext
7813 LIBS=$ac_check_lib_save_LIBS
7815 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7816 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7817 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7818 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7822 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7823 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7825 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7826 cat >conftest.$ac_ext <<_ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h. */
7832 #include <X11/Xlib.h>
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7845 *) ac_try_echo
=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1
>conftest.err
7852 cat conftest.err
>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.
$ac_objext; then
7858 { echo "$as_me:$LINENO: result: no" >&5
7859 echo "${ECHO_T}no" >&6; }
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.
$ac_ext >&5
7864 CFLAGS
="$CFLAGS -Wno-implicit-int"
7865 cat >conftest.
$ac_ext <<_ACEOF
7868 cat confdefs.h
>>conftest.
$ac_ext
7869 cat >>conftest.
$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <X11/Xlib.h>
7880 rm -f conftest.
$ac_objext
7881 if { (ac_try
="$ac_compile"
7883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 { echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 { echo "$as_me:$LINENO: result: test failed" >&5
7904 echo "${ECHO_T}test failed" >&6; }
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 LDFLAGS="$ac_save_LDFLAGS"
7917 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
7918 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
7919 if test "${ac_cv_small_wchar_t+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 if test "$cross_compiling" = yes; then
7923 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
7924 echo "$as_me: error: failed to compile test program" >&2;}
7925 { (exit 1); exit 1; }; }
7927 cat >conftest.$ac_ext <<_ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7934 #include <X11/Xlib.h>
7936 # include <stdlib.h>
7937 # include <stddef.h>
7941 if (sizeof(wchar_t) <= 2)
7946 rm -f conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7950 *) ac_try_echo
=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7957 { (case "(($ac_try" in
7958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_try") 2>&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_small_wchar_t="no"
7968 echo "$as_me: program exited with status $ac_status" >&5
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7973 ac_cv_small_wchar_t="yes"
7975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7981 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
7982 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
7983 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
7984 cat >>confdefs.h <<\_ACEOF
7985 #define SMALL_WCHAR_T 1
7993 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7995 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7996 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
7997 # Check whether --enable-gui was given.
7998 if test "${enable_gui+set}" = set; then
7999 enableval=$enable_gui;
8005 enable_gui_canon=`echo "_$enable_gui" | \
8006 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8019 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8021 case "$enable_gui_canon" in
8022 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8023 echo "${ECHO_T}no GUI support" >&6; }
8025 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8026 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8027 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8028 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8029 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8030 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8031 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8032 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8036 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8039 case "$enable_gui_canon" in
8040 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8041 echo "${ECHO_T}no GUI support" >&6; }
8044 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8045 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8046 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8047 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8048 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8049 echo "${ECHO_T}Carbon GUI support" >&6; }
8051 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8052 echo "${ECHO_T}MacVim GUI support" >&6; }
8054 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8055 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8062 case "$enable_gui_canon" in
8063 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8064 echo "${ECHO_T}no GUI support" >&6; } ;;
8065 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8066 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8075 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8076 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8078 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8079 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8082 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8083 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8086 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8087 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8091 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8092 echo "${ECHO_T}Motif GUI support" >&6; }
8094 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8095 echo "${ECHO_T}Athena GUI support" >&6; }
8097 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8098 echo "${ECHO_T}neXtaw GUI support" >&6; }
8100 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8101 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8106 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8107 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8108 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8109 # Check whether --enable-gtk-check was given.
8110 if test "${enable_gtk_check+set}" = set; then
8111 enableval=$enable_gtk_check;
8113 enable_gtk_check="yes"
8116 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8117 echo "${ECHO_T}$enable_gtk_check" >&6; }
8118 if test "x$enable_gtk_check" = "xno"; then
8124 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8125 -a "$enable_gui_canon" != "gnome2"; then
8126 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8127 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8128 # Check whether --enable-gtk2-check was given.
8129 if test "${enable_gtk2_check+set}" = set; then
8130 enableval=$enable_gtk2_check;
8132 enable_gtk2_check="yes"
8135 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8136 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8137 if test "x$enable_gtk2_check" = "xno"; then
8142 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8143 -a "$enable_gui_canon" != "gnome2"; then
8144 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8145 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8146 # Check whether --enable-gnome-check was given.
8147 if test "${enable_gnome_check+set}" = set; then
8148 enableval=$enable_gnome_check;
8150 enable_gnome_check="no"
8153 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8154 echo "${ECHO_T}$enable_gnome_check" >&6; }
8155 if test "x$enable_gnome_check" = "xno"; then
8160 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8161 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8162 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8163 # Check whether --enable-motif-check was given.
8164 if test "${enable_motif_check+set}" = set; then
8165 enableval=$enable_motif_check;
8167 enable_motif_check="yes"
8170 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8171 echo "${ECHO_T}$enable_motif_check" >&6; }
8172 if test "x$enable_motif_check" = "xno"; then
8177 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8178 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8179 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8180 # Check whether --enable-athena-check was given.
8181 if test "${enable_athena_check+set}" = set; then
8182 enableval=$enable_athena_check;
8184 enable_athena_check="yes"
8187 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8188 echo "${ECHO_T}$enable_athena_check" >&6; }
8189 if test "x$enable_athena_check" = "xno"; then
8194 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8195 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8196 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8197 # Check whether --enable-nextaw-check was given.
8198 if test "${enable_nextaw_check+set}" = set; then
8199 enableval=$enable_nextaw_check;
8201 enable_nextaw_check="yes"
8204 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8205 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8206 if test "x$enable_nextaw_check" = "xno"; then
8211 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8212 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8213 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8214 # Check whether --enable-carbon-check was given.
8215 if test "${enable_carbon_check+set}" = set; then
8216 enableval=$enable_carbon_check;
8218 enable_carbon_check="yes"
8221 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8222 echo "${ECHO_T}$enable_carbon_check" >&6; };
8223 if test "x$enable_carbon_check" = "xno"; then
8228 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8229 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8230 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8231 # Check whether --enable-macvim-check was given.
8232 if test "${enable_macvim_check+set}" = set; then
8233 enableval=$enable_macvim_check;
8235 enable_macvim_check="yes"
8238 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8239 echo "${ECHO_T}$enable_macvim_check" >&6; };
8240 if test "x$enable_macvim_check" = "xno"; then
8245 if test "x$MACOSX" = "xyes"; then
8246 if test x$prefix = xNONE; then
8247 prefix=/Applications
8250 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8251 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8252 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8253 { echo "$as_me:$LINENO: result: yes" >&5
8254 echo "${ECHO_T}yes" >&6; };
8256 datadir='${prefix}/MacVim.app/Contents/Resources'
8257 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8258 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8259 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8260 { echo "$as_me:$LINENO: result: yes" >&5
8261 echo "${ECHO_T}yes" >&6; };
8263 datadir='${prefix}/Vim.app/Contents/Resources'
8265 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
8268 if test "$VIMNAME" = "vim"; then
8291 if test -z "$SKIP_GTK"; then
8293 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8294 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8296 # Check whether --with-gtk-prefix was given.
8297 if test "${with_gtk_prefix+set}" = set; then
8298 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8299 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8301 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6; }
8306 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8307 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8309 # Check whether --with-gtk-exec-prefix was given.
8310 if test "${with_gtk_exec_prefix+set}" = set; then
8311 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8312 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8314 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8315 echo "${ECHO_T}no" >&6; }
8319 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8320 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8321 # Check whether --enable-gtktest was given.
8322 if test "${enable_gtktest+set}" = set; then
8323 enableval=$enable_gtktest;
8328 if test "x$enable_gtktest" = "xyes" ; then
8329 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8330 echo "${ECHO_T}gtk test enabled" >&6; }
8332 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8333 echo "${ECHO_T}gtk test disabled" >&6; }
8336 if test "x$gtk_config_prefix" != "x" ; then
8337 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8338 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8340 if test "x$gtk_config_exec_prefix" != "x" ; then
8341 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8342 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8344 if test "X$GTK_CONFIG" = "X"; then
8345 # Extract the first word of "gtk-config", so it can be a program name with args.
8346 set dummy gtk-config; ac_word=$2
8347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8349 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8364 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8376 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8377 if test -n "$GTK_CONFIG"; then
8378 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8379 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8381 { echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6; }
8386 if test "X$GTK_CONFIG" = "Xno"; then
8387 # Extract the first word of "gtk12-config", so it can be a program name with args.
8388 set dummy gtk12-config; ac_word=$2
8389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8391 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 case $GTK12_CONFIG in
8396 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8418 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8419 if test -n "$GTK12_CONFIG"; then
8420 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8421 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8423 { echo "$as_me:$LINENO: result: no" >&5
8424 echo "${ECHO_T}no" >&6; }
8428 GTK_CONFIG="$GTK12_CONFIG"
8431 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8432 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8434 if test "X$PKG_CONFIG" = "X"; then
8435 # Extract the first word of "pkg-config", so it can be a program name with args.
8436 set dummy pkg-config; ac_word=$2
8437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8439 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8467 if test -n "$PKG_CONFIG"; then
8468 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8469 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8471 { echo "$as_me:$LINENO: result: no" >&5
8472 echo "${ECHO_T}no" >&6; }
8478 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8479 if test "X$SKIP_GTK2" != "XYES"; then
8481 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8483 min_gtk_version=2.2.0
8484 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8485 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8487 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8488 && $PKG_CONFIG --exists gtk+-2.0; then
8490 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8491 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8492 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8493 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8494 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8495 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8496 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8497 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8498 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8500 elif test "X$GTK_CONFIG" != "Xno"; then
8502 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8504 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8505 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8506 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8507 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8508 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8509 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8510 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8516 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8518 ac_save_CFLAGS="$CFLAGS"
8519 ac_save_LIBS="$LIBS"
8520 CFLAGS="$CFLAGS $GTK_CFLAGS"
8521 LIBS="$LIBS $GTK_LIBS"
8524 if test "$cross_compiling" = yes; then
8525 echo $ac_n "cross compiling; assumed OK... $ac_c"
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8534 #include <gtk/gtk.h>
8537 # include <stdlib.h>
8538 # include <stddef.h>
8544 int major, minor, micro;
8547 system ("touch conf.gtktest");
8549 /* HP/UX 9 (%@#!) writes to sscanf strings */
8550 tmp_version = g_strdup("$min_gtk_version");
8551 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8552 printf("%s, bad version string\n", "$min_gtk_version");
8556 if ((gtk_major_version > major) ||
8557 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8558 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8559 (gtk_micro_version >= micro)))
8567 rm -f conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8571 *) ac_try_echo
=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_link") 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8578 { (case "(($ac_try" in
8579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_try") 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8589 echo "$as_me: program exited with status $ac_status" >&5
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8600 CFLAGS="$ac_save_CFLAGS"
8601 LIBS="$ac_save_LIBS"
8604 if test "x$no_gtk" = x ; then
8605 if test "x$enable_gtktest" = "xyes"; then
8606 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8607 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8609 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8610 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8612 GUI_LIB_LOC="$GTK_LIBDIR"
8613 GTK_LIBNAME="$GTK_LIBS"
8614 GUI_INC_LOC="$GTK_CFLAGS"
8617 { echo "$as_me:$LINENO: result: no" >&5
8618 echo "${ECHO_T}no" >&6; }
8634 if test "x$GTK_CFLAGS" != "x"; then
8643 if test "x$GUITYPE" != "xGTK"; then
8646 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8648 min_gtk_version=1.1.16
8649 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8650 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8652 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8653 && $PKG_CONFIG --exists gtk+-2.0; then
8655 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8656 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8657 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8658 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8659 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8660 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8661 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8662 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8663 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8665 elif test "X$GTK_CONFIG" != "Xno"; then
8667 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8669 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8670 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8671 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8672 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8673 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8674 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8675 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8681 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8683 ac_save_CFLAGS="$CFLAGS"
8684 ac_save_LIBS="$LIBS"
8685 CFLAGS="$CFLAGS $GTK_CFLAGS"
8686 LIBS="$LIBS $GTK_LIBS"
8689 if test "$cross_compiling" = yes; then
8690 echo $ac_n "cross compiling; assumed OK... $ac_c"
8692 cat >conftest.$ac_ext <<_ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 #include <gtk/gtk.h>
8702 # include <stdlib.h>
8703 # include <stddef.h>
8709 int major, minor, micro;
8712 system ("touch conf.gtktest");
8714 /* HP/UX 9 (%@#!) writes to sscanf strings */
8715 tmp_version = g_strdup("$min_gtk_version");
8716 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8717 printf("%s, bad version string\n", "$min_gtk_version");
8721 if ((gtk_major_version > major) ||
8722 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8723 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8724 (gtk_micro_version >= micro)))
8732 rm -f conftest$ac_exeext
8733 if { (ac_try="$ac_link"
8735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8736 *) ac_try_echo
=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_link") 2>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8743 { (case "(($ac_try" in
8744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_try") 2>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8754 echo "$as_me: program exited with status $ac_status" >&5
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8765 CFLAGS="$ac_save_CFLAGS"
8766 LIBS="$ac_save_LIBS"
8769 if test "x$no_gtk" = x ; then
8770 if test "x$enable_gtktest" = "xyes"; then
8771 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8772 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8774 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8775 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8777 GTK_LIBNAME="$GTK_LIBS"
8778 GUI_INC_LOC="$GTK_CFLAGS"
8781 { echo "$as_me:$LINENO: result: no" >&5
8782 echo "${ECHO_T}no" >&6; }
8798 if test "x$GTK_CFLAGS" != "x"; then
8807 if test "x$GUITYPE" = "xGTK"; then
8808 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8809 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8810 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8811 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8814 if test "0$gtk_major_version" -ge 2; then
8815 cat >>confdefs.h <<\_ACEOF
8819 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8820 || test "0$gtk_minor_version" -ge 2 \
8821 || test "0$gtk_major_version" -gt 2; then
8822 cat >>confdefs.h <<\_ACEOF
8823 #define HAVE_GTK_MULTIHEAD 1
8828 if test -z "$SKIP_GNOME"; then
8836 # Check whether --with-gnome-includes was given.
8837 if test "${with_gnome_includes+set}" = set; then
8838 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8844 # Check whether --with-gnome-libs was given.
8845 if test "${with_gnome_libs+set}" = set; then
8846 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8852 # Check whether --with-gnome was given.
8853 if test "${with_gnome+set}" = set; then
8854 withval=$with_gnome; if test x$withval = xyes; then
8858 if test "x$withval" = xno; then
8862 LDFLAGS="$LDFLAGS -L$withval/lib"
8863 CFLAGS="$CFLAGS -I$withval/include"
8864 gnome_prefix=$withval/lib
8872 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8874 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8875 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8876 if $PKG_CONFIG --exists libgnomeui-2.0; then
8877 { echo "$as_me:$LINENO: result: yes" >&5
8878 echo "${ECHO_T}yes" >&6; }
8879 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8880 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8881 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8883 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8884 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8885 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8886 { echo "$as_me:$LINENO: result: yes" >&5
8887 echo "${ECHO_T}yes" >&6; }
8888 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8889 GNOME_LIBS="$GNOME_LIBS -pthread"
8891 { echo "$as_me:$LINENO: result: no" >&5
8892 echo "${ECHO_T}no" >&6; }
8896 { echo "$as_me:$LINENO: result: not found" >&5
8897 echo "${ECHO_T}not found" >&6; }
8898 if test "x" = xfail; then
8899 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8900 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8901 { (exit 1); exit 1; }; }
8905 elif test "x$want_gnome" = xyes; then
8907 # Extract the first word of "gnome-config", so it can be a program name with args.
8908 set dummy gnome-config; ac_word=$2
8909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8911 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 case $GNOME_CONFIG in
8916 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8926 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8938 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8939 if test -n "$GNOME_CONFIG"; then
8940 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8941 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
8943 { echo "$as_me:$LINENO: result: no" >&5
8944 echo "${ECHO_T}no" >&6; }
8948 if test "$GNOME_CONFIG" = "no"; then
8949 no_gnome_config="yes"
8951 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8952 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
8953 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8954 { echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6; }
8956 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
8957 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
8958 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
8961 { echo "$as_me:$LINENO: result: no" >&5
8962 echo "${ECHO_T}no" >&6; }
8963 no_gnome_config="yes"
8967 if test x$exec_prefix = xNONE; then
8968 if test x$prefix = xNONE; then
8969 gnome_prefix=$ac_default_prefix/lib
8971 gnome_prefix=$prefix/lib
8974 gnome_prefix=`eval echo \
`echo $libdir\``
8977 if test "$no_gnome_config" = "yes"; then
8978 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8979 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
8980 if test -f $gnome_prefix/gnomeConf.sh; then
8981 { echo "$as_me:$LINENO: result: found" >&5
8982 echo "${ECHO_T}found" >&6; }
8983 echo "loading gnome configuration from" \
8984 "$gnome_prefix/gnomeConf.sh"
8985 . $gnome_prefix/gnomeConf.sh
8988 { echo "$as_me:$LINENO: result: not found" >&5
8989 echo "${ECHO_T}not found" >&6; }
8990 if test x = xfail; then
8991 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8992 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8993 { (exit 1); exit 1; }; }
9000 if test x$have_gnome = xyes ; then
9001 cat >>confdefs.h <<\_ACEOF
9002 #define FEAT_GUI_GNOME 1
9005 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9006 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9016 if test -z "$SKIP_MOTIF"; then
9017 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"
9018 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9020 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9021 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9022 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9024 for try in $gui_includes; do
9025 if test -f "$try/Xm/Xm.h"; then
9029 if test -n "$GUI_INC_LOC"; then
9030 if test "$GUI_INC_LOC" = /usr/include; then
9032 { echo "$as_me:$LINENO: result: in default path" >&5
9033 echo "${ECHO_T}in default path" >&6; }
9035 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9036 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9039 { echo "$as_me:$LINENO: result: <not found>" >&5
9040 echo "${ECHO_T}<not found>" >&6; }
9046 if test -z "$SKIP_MOTIF"; then
9047 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9048 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9050 # Check whether --with-motif-lib was given.
9051 if test "${with_motif_lib+set}" = set; then
9052 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9056 if test -n "$MOTIF_LIBNAME"; then
9057 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9058 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9061 { echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6; }
9064 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9066 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9067 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9068 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"
9070 for try in $gui_libs; do
9071 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9072 if test -f "$libtry"; then
9077 if test -n "$GUI_LIB_LOC"; then
9078 if test "$GUI_LIB_LOC" = /usr/lib; then
9080 { echo "$as_me:$LINENO: result: in default path" >&5
9081 echo "${ECHO_T}in default path" >&6; }
9083 if test -n "$GUI_LIB_LOC"; then
9084 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9085 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9086 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9087 uname -r | grep '^5' >/dev/null; then
9088 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9094 { echo "$as_me:$LINENO: result: <not found>" >&5
9095 echo "${ECHO_T}<not found>" >&6; }
9101 if test -z "$SKIP_MOTIF"; then
9111 if test -z "$SKIP_ATHENA"; then
9112 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9113 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9115 CFLAGS="$CFLAGS $X_CFLAGS"
9116 cat >conftest.$ac_ext <<_ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 #include <X11/Intrinsic.h>
9124 #include <X11/Xaw/Paned.h>
9133 rm -f conftest.$ac_objext
9134 if { (ac_try="$ac_compile"
9136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9137 *) ac_try_echo
=$ac_try;;
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_compile") 2>conftest.er1
9142 grep -v '^ *+' conftest.er1
>conftest.err
9144 cat conftest.err
>&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } && {
9147 test -z "$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9149 } && test -s conftest.
$ac_objext; then
9150 { echo "$as_me:$LINENO: result: yes" >&5
9151 echo "${ECHO_T}yes" >&6; }
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.
$ac_ext >&5
9156 { echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA
=YES
9160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9164 if test -z "$SKIP_ATHENA"; then
9168 if test -z "$SKIP_NEXTAW"; then
9169 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9170 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9172 CFLAGS
="$CFLAGS $X_CFLAGS"
9173 cat >conftest.
$ac_ext <<_ACEOF
9176 cat confdefs.h
>>conftest.
$ac_ext
9177 cat >>conftest.
$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9180 #include <X11/Intrinsic.h>
9181 #include <X11/neXtaw/Paned.h>
9190 rm -f conftest.
$ac_objext
9191 if { (ac_try
="$ac_compile"
9193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_compile") 2>conftest.er1
9199 grep -v '^ *+' conftest.er1 >conftest.err
9201 cat conftest.err >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest.$ac_objext; then
9207 { echo "$as_me:$LINENO: result: yes" >&5
9208 echo "${ECHO_T}yes" >&6; }
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 { echo "$as_me:$LINENO: result: no" >&5
9214 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 if test -z "$SKIP_NEXTAW"; then
9225 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9226 if test -n "$GUI_INC_LOC"; then
9227 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9229 if test -n "$GUI_LIB_LOC"; then
9230 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9233 ldflags_save=$LDFLAGS
9234 LDFLAGS="$X_LIBS $LDFLAGS"
9235 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9236 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9237 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 ac_check_lib_save_LIBS=$LIBS
9241 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9255 char XShapeQueryExtension ();
9259 return XShapeQueryExtension ();
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9268 *) ac_try_echo
=$ac_try;;
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_link") 2>conftest.er1
9273 grep -v '^ *+' conftest.er1
>conftest.err
9275 cat conftest.err
>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest
$ac_exeext &&
9281 $as_test_x conftest
$ac_exeext; then
9282 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.
$ac_ext >&5
9287 ac_cv_lib_Xext_XShapeQueryExtension
=no
9290 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9291 conftest
$ac_exeext conftest.
$ac_ext
9292 LIBS
=$ac_check_lib_save_LIBS
9294 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9295 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9296 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9300 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9301 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9302 if test "${ac_cv_lib_w_wslen+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 ac_check_lib_save_LIBS
=$LIBS
9306 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9307 cat >conftest.
$ac_ext <<_ACEOF
9310 cat confdefs.h
>>conftest.
$ac_ext
9311 cat >>conftest.
$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9329 rm -f conftest.
$ac_objext conftest
$ac_exeext
9330 if { (ac_try
="$ac_link"
9332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_link") 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_c_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest$ac_exeext &&
9346 $as_test_x conftest$ac_exeext; then
9347 ac_cv_lib_w_wslen=yes
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9352 ac_cv_lib_w_wslen=no
9355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9356 conftest$ac_exeext conftest.$ac_ext
9357 LIBS=$ac_check_lib_save_LIBS
9359 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9360 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9361 if test $ac_cv_lib_w_wslen = yes; then
9362 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9365 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9366 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9367 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 ac_check_lib_save_LIBS=$LIBS
9371 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9394 rm -f conftest.$ac_objext conftest$ac_exeext
9395 if { (ac_try="$ac_link"
9397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9398 *) ac_try_echo
=$ac_try;;
9400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9401 (eval "$ac_link") 2>conftest.er1
9403 grep -v '^ *+' conftest.er1
>conftest.err
9405 cat conftest.err
>&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest
$ac_exeext &&
9411 $as_test_x conftest
$ac_exeext; then
9412 ac_cv_lib_dl_dlsym
=yes
9414 echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.
$ac_ext >&5
9417 ac_cv_lib_dl_dlsym
=no
9420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9421 conftest
$ac_exeext conftest.
$ac_ext
9422 LIBS
=$ac_check_lib_save_LIBS
9424 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9425 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9426 if test $ac_cv_lib_dl_dlsym = yes; then
9427 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9430 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9431 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9432 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9435 ac_check_lib_save_LIBS
=$LIBS
9436 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9437 cat >conftest.
$ac_ext <<_ACEOF
9440 cat confdefs.h
>>conftest.
$ac_ext
9441 cat >>conftest.
$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9450 char XmuCreateStippledPixmap ();
9454 return XmuCreateStippledPixmap ();
9459 rm -f conftest.
$ac_objext conftest
$ac_exeext
9460 if { (ac_try
="$ac_link"
9462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9463 *) ac_try_echo=$ac_try;;
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466 (eval "$ac_link") 2>conftest.er1
9468 grep -v '^ *+' conftest.er1 >conftest.err
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } && {
9473 test -z "$ac_c_werror_flag" ||
9474 test ! -s conftest.err
9475 } && test -s conftest$ac_exeext &&
9476 $as_test_x conftest$ac_exeext; then
9477 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9479 echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9482 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9489 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9490 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9491 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9492 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9495 if test -z "$SKIP_MOTIF"; then
9496 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9497 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9498 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 ac_check_lib_save_LIBS=$LIBS
9502 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9510 /* Override any GCC internal prototype to avoid an error.
9511 Use char because int might match the return type of a GCC
9512 builtin and then its argument prototype would still apply. */
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9529 *) ac_try_echo
=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1
>conftest.err
9536 cat conftest.err
>&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest
$ac_exeext &&
9542 $as_test_x conftest
$ac_exeext; then
9543 ac_cv_lib_Xp_XpEndJob
=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.
$ac_ext >&5
9548 ac_cv_lib_Xp_XpEndJob
=no
9551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9552 conftest
$ac_exeext conftest.
$ac_ext
9553 LIBS
=$ac_check_lib_save_LIBS
9555 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9556 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9557 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9558 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9562 LDFLAGS
=$ldflags_save
9564 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9565 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9568 if mkdir conftestdir
; then
9570 cat > Imakefile
<<'EOF'
9572 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9574 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9575 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9580 if test -z "$NARROW_PROTO"; then
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9584 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9585 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9590 if test "$enable_xsmp" = "yes"; then
9591 cppflags_save
=$CPPFLAGS
9592 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9594 for ac_header
in X11
/SM
/SMlib.h
9596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res
=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9619 rm -f conftest.
$ac_objext
9620 if { (ac_try
="$ac_compile"
9622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9662 *) ac_try_echo
=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1
>conftest.err
9669 cat conftest.err
>&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev
/null
&& {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9675 ac_header_preproc
=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9680 ac_header_preproc
=no
9683 rm -f conftest.err conftest.
$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc
=yes
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res
=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h
<<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9733 CPPFLAGS
=$cppflags_save
9737 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9738 cppflags_save
=$CPPFLAGS
9739 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9742 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9744 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9745 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9748 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 ac_res
=`eval echo '${'$as_ac_Header'}'`
9752 { echo "$as_me:$LINENO: result: $ac_res" >&5
9753 echo "${ECHO_T}$ac_res" >&6; }
9755 # Is the header compilable?
9756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9758 cat >conftest.
$ac_ext <<_ACEOF
9761 cat confdefs.h
>>conftest.
$ac_ext
9762 cat >>conftest.
$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 $ac_includes_default
9765 #include <$ac_header>
9767 rm -f conftest.
$ac_objext
9768 if { (ac_try
="$ac_compile"
9770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_compile") 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest.$ac_objext; then
9784 ac_header_compiler=yes
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_header_compiler=no
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9794 echo "${ECHO_T}$ac_header_compiler" >&6; }
9796 # Is the header present?
9797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9799 cat >conftest.$ac_ext <<_ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #include <$ac_header>
9807 if { (ac_try="$ac_cpp conftest.$ac_ext"
9809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9810 *) ac_try_echo
=$ac_try;;
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9815 grep -v '^ *+' conftest.er1
>conftest.err
9817 cat conftest.err
>&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } >/dev
/null
&& {
9820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9823 ac_header_preproc
=yes
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.
$ac_ext >&5
9828 ac_header_preproc
=no
9831 rm -f conftest.err conftest.
$ac_ext
9832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9833 echo "${ECHO_T}$ac_header_preproc" >&6; }
9835 # So? What about this header?
9836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9842 ac_header_preproc
=yes
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9862 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 eval "$as_ac_Header=\$ac_header_preproc"
9867 ac_res
=`eval echo '${'$as_ac_Header'}'`
9868 { echo "$as_me:$LINENO: result: $ac_res" >&5
9869 echo "${ECHO_T}$ac_res" >&6; }
9872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9873 cat >>confdefs.h
<<_ACEOF
9874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9882 if test ! "$enable_xim" = "no"; then
9883 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9884 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <X11/Xlib.h>
9893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9894 $EGREP "XIMText" >/dev
/null
2>&1; then
9895 { echo "$as_me:$LINENO: result: yes" >&5
9896 echo "${ECHO_T}yes" >&6; }
9898 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9899 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim
= "no"
9904 CPPFLAGS
=$cppflags_save
9906 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9907 -a "x$GUITYPE" != "xNONE" ; then
9908 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9909 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9914 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9915 cppflags_save
=$CPPFLAGS
9916 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9917 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9918 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
9919 cat >conftest.
$ac_ext <<_ACEOF
9922 cat confdefs.h
>>conftest.
$ac_ext
9923 cat >>conftest.
$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9926 #include <X11/Intrinsic.h>
9927 #include <X11/Xmu/Editres.h>
9936 rm -f conftest.
$ac_objext
9937 if { (ac_try
="$ac_compile"
9939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9953 { echo "$as_me:$LINENO: result: yes" >&5
9954 echo "${ECHO_T}yes" >&6; }
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_X11_XMU_EDITRES_H 1
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 { echo "$as_me:$LINENO: result: no" >&5
9964 echo "${ECHO_T}no" >&6; }
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 CPPFLAGS=$cppflags_save
9971 if test -z "$SKIP_MOTIF"; then
9972 cppflags_save=$CPPFLAGS
9973 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9981 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9982 Xm/UnhighlightT.h Xm/Notebook.h
9984 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 ac_res=`eval echo '${'$as_ac_Header'}'`
9992 { echo "$as_me:$LINENO: result: $ac_res" >&5
9993 echo "${ECHO_T}$ac_res" >&6; }
9995 # Is the header compilable?
9996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9998 cat >conftest.$ac_ext <<_ACEOF
10001 cat confdefs.h >>conftest.$ac_ext
10002 cat >>conftest.$ac_ext <<_ACEOF
10003 /* end confdefs.h. */
10004 $ac_includes_default
10005 #include <$ac_header>
10007 rm -f conftest.$ac_objext
10008 if { (ac_try="$ac_compile"
10009 case "(($ac_try" in
10010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10011 *) ac_try_echo
=$ac_try;;
10013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10014 (eval "$ac_compile") 2>conftest.er1
10016 grep -v '^ *+' conftest.er1
>conftest.err
10018 cat conftest.err
>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } && {
10021 test -z "$ac_c_werror_flag" ||
10022 test ! -s conftest.err
10023 } && test -s conftest.
$ac_objext; then
10024 ac_header_compiler
=yes
10026 echo "$as_me: failed program was:" >&5
10027 sed 's/^/| /' conftest.
$ac_ext >&5
10029 ac_header_compiler
=no
10032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10034 echo "${ECHO_T}$ac_header_compiler" >&6; }
10036 # Is the header present?
10037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10039 cat >conftest.
$ac_ext <<_ACEOF
10042 cat confdefs.h
>>conftest.
$ac_ext
10043 cat >>conftest.
$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 #include <$ac_header>
10047 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10048 case "(($ac_try" in
10049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } >/dev/null && {
10060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10063 ac_header_preproc=yes
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 ac_header_preproc=no
10071 rm -f conftest.err conftest.$ac_ext
10072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10073 echo "${ECHO_T}$ac_header_preproc" >&6; }
10075 # So? What about this header?
10076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10082 ac_header_preproc=yes
10085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 eval "$as_ac_Header=\$ac_header_preproc"
10107 ac_res=`eval echo '${'$as_ac_Header'}'`
10108 { echo "$as_me:$LINENO: result: $ac_res" >&5
10109 echo "${ECHO_T}$ac_res" >&6; }
10112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10113 cat >>confdefs.h <<_ACEOF
10114 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10122 if test $ac_cv_header_Xm_XpmP_h = yes; then
10123 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10124 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10131 #include <Xm/XpmP.h>
10135 XpmAttributes_21 attr;
10140 rm -f conftest.$ac_objext
10141 if { (ac_try="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10144 *) ac_try_echo
=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1
>conftest.err
10151 cat conftest.err
>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.
$ac_objext; then
10157 { echo "$as_me:$LINENO: result: yes" >&5
10158 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10159 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.
$ac_ext >&5
10166 { echo "$as_me:$LINENO: result: no" >&5
10167 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10168 #define XPMATTRIBUTES_TYPE XpmAttributes
10174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10176 cat >>confdefs.h
<<\_ACEOF
10177 #define XPMATTRIBUTES_TYPE XpmAttributes
10181 CPPFLAGS
=$cppflags_save
10184 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10185 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10186 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10189 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10190 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10191 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10192 enable_fontset
="no"
10194 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10195 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10196 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10197 enable_fontset
="no"
10200 if test -z "$SKIP_PHOTON"; then
10209 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10210 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10211 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10212 { (exit 1); exit 1; }; }
10215 if test "$enable_xim" = "yes"; then
10216 cat >>confdefs.h
<<\_ACEOF
10221 if test "$enable_fontset" = "yes"; then
10222 cat >>confdefs.h
<<\_ACEOF
10223 #define FEAT_XFONTSET 1
10231 if test "$enable_hangulinput" = "yes"; then
10232 if test "x$GUITYPE" = "xNONE"; then
10233 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10234 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10235 enable_hangulinput
=no
10237 cat >>confdefs.h
<<\_ACEOF
10238 #define FEAT_HANGULIN 1
10241 HANGULIN_SRC
=hangulin.c
10243 HANGULIN_OBJ
=objects
/hangulin.o
10249 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10250 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10251 if test "${vim_cv_toupper_broken+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 if test "$cross_compiling" = yes; then
10257 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10258 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10259 { (exit 1); exit 1; }; }
10262 cat >conftest.
$ac_ext <<_ACEOF
10264 #include "confdefs.h"
10267 # include <stdlib.h>
10268 # include <stddef.h>
10270 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10273 rm -f conftest
$ac_exeext
10274 if { (ac_try
="$ac_link"
10275 case "(($ac_try" in
10276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_link") 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10286 *) ac_try_echo
=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10294 vim_cv_toupper_broken
=yes
10297 echo "$as_me: program exited with status $ac_status" >&5
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.
$ac_ext >&5
10301 ( exit $ac_status )
10303 vim_cv_toupper_broken
=no
10306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10311 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10312 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10314 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10315 cat >>confdefs.h
<<\_ACEOF
10316 #define BROKEN_TOUPPER 1
10321 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10322 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10323 cat >conftest.
$ac_ext <<_ACEOF
10326 cat confdefs.h
>>conftest.
$ac_ext
10327 cat >>conftest.
$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10333 printf("(" __DATE__ " " __TIME__ ")");
10338 rm -f conftest.
$ac_objext
10339 if { (ac_try
="$ac_compile"
10340 case "(($ac_try" in
10341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.$ac_objext; then
10355 { echo "$as_me:$LINENO: result: yes" >&5
10356 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10357 #define HAVE_DATE_TIME 1
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10371 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10382 int x __attribute__((unused));
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10391 *) ac_try_echo
=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1
>conftest.err
10398 cat conftest.err
>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.
$ac_objext; then
10404 { echo "$as_me:$LINENO: result: yes" >&5
10405 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10406 #define HAVE_ATTRIBUTE_UNUSED 1
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.
$ac_ext >&5
10413 { echo "$as_me:$LINENO: result: no" >&5
10414 echo "${ECHO_T}no" >&6; }
10417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10419 if test "${ac_cv_header_elf_h+set}" = set; then
10420 { echo "$as_me:$LINENO: checking for elf.h" >&5
10421 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10422 if test "${ac_cv_header_elf_h+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10426 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10428 # Is the header compilable?
10429 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10430 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10431 cat >conftest.
$ac_ext <<_ACEOF
10434 cat confdefs.h
>>conftest.
$ac_ext
10435 cat >>conftest.
$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 $ac_includes_default
10440 rm -f conftest.
$ac_objext
10441 if { (ac_try
="$ac_compile"
10442 case "(($ac_try" in
10443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_compile") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest.$ac_objext; then
10457 ac_header_compiler=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_header_compiler=no
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10467 echo "${ECHO_T}$ac_header_compiler" >&6; }
10469 # Is the header present?
10470 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10471 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10472 cat >conftest.$ac_ext <<_ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10480 if { (ac_try="$ac_cpp conftest.$ac_ext"
10481 case "(($ac_try" in
10482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10483 *) ac_try_echo
=$ac_try;;
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1
>conftest.err
10490 cat conftest.err
>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } >/dev
/null
&& {
10493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10496 ac_header_preproc
=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.
$ac_ext >&5
10501 ac_header_preproc
=no
10504 rm -f conftest.err conftest.
$ac_ext
10505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10506 echo "${ECHO_T}$ac_header_preproc" >&6; }
10508 # So? What about this header?
10509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10511 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10512 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10514 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10515 ac_header_preproc
=yes
10518 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10519 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10521 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10523 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10524 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10525 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10526 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10527 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10528 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10529 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10533 { echo "$as_me:$LINENO: checking for elf.h" >&5
10534 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10535 if test "${ac_cv_header_elf_h+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 ac_cv_header_elf_h
=$ac_header_preproc
10540 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10541 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10544 if test $ac_cv_header_elf_h = yes; then
10549 if test "$HAS_ELF" = 1; then
10551 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10552 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10553 if test "${ac_cv_lib_elf_main+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 ac_check_lib_save_LIBS
=$LIBS
10558 cat >conftest.
$ac_ext <<_ACEOF
10561 cat confdefs.h
>>conftest.
$ac_ext
10562 cat >>conftest.
$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10574 rm -f conftest.
$ac_objext conftest
$ac_exeext
10575 if { (ac_try
="$ac_link"
10576 case "(($ac_try" in
10577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_link") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest$ac_exeext &&
10591 $as_test_x conftest$ac_exeext; then
10592 ac_cv_lib_elf_main=yes
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10597 ac_cv_lib_elf_main=no
10600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10605 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10606 if test $ac_cv_lib_elf_main = yes; then
10607 cat >>confdefs.h <<_ACEOF
10608 #define HAVE_LIBELF 1
10622 ac_header_dirent=no
10623 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10624 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10625 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10626 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10652 *) ac_try_echo
=$ac_try;;
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1
>conftest.err
10659 cat conftest.err
>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.
$ac_objext; then
10665 eval "$as_ac_Header=yes"
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.
$ac_ext >&5
10670 eval "$as_ac_Header=no"
10673 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10675 ac_res
=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679 cat >>confdefs.h
<<_ACEOF
10680 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10683 ac_header_dirent
=$ac_hdr; break
10687 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10688 if test $ac_header_dirent = dirent.h
; then
10689 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10691 if test "${ac_cv_search_opendir+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 ac_func_search_save_LIBS
=$LIBS
10695 cat >conftest.
$ac_ext <<_ACEOF
10698 cat confdefs.h
>>conftest.
$ac_ext
10699 cat >>conftest.
$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10717 for ac_lib
in '' dir
; do
10718 if test -z "$ac_lib"; then
10719 ac_res
="none required"
10722 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10724 rm -f conftest.
$ac_objext conftest
$ac_exeext
10725 if { (ac_try
="$ac_link"
10726 case "(($ac_try" in
10727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_link") 2>conftest.er1
10733 grep -v '^ *+' conftest.er1 >conftest.err
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } && {
10738 test -z "$ac_c_werror_flag" ||
10739 test ! -s conftest.err
10740 } && test -s conftest$ac_exeext &&
10741 $as_test_x conftest$ac_exeext; then
10742 ac_cv_search_opendir=$ac_res
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10752 if test "${ac_cv_search_opendir+set}" = set; then
10756 if test "${ac_cv_search_opendir+set}" = set; then
10759 ac_cv_search_opendir=no
10761 rm conftest.$ac_ext
10762 LIBS=$ac_func_search_save_LIBS
10764 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10765 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10766 ac_res=$ac_cv_search_opendir
10767 if test "$ac_res" != no; then
10768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10773 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10775 if test "${ac_cv_search_opendir+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10778 ac_func_search_save_LIBS=$LIBS
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10801 for ac_lib in '' x; do
10802 if test -z "$ac_lib"; then
10803 ac_res="none required"
10806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10812 *) ac_try_echo
=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10817 grep -v '^ *+' conftest.er1
>conftest.err
10819 cat conftest.err
>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } && {
10822 test -z "$ac_c_werror_flag" ||
10823 test ! -s conftest.err
10824 } && test -s conftest
$ac_exeext &&
10825 $as_test_x conftest
$ac_exeext; then
10826 ac_cv_search_opendir
=$ac_res
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.
$ac_ext >&5
10834 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10836 if test "${ac_cv_search_opendir+set}" = set; then
10840 if test "${ac_cv_search_opendir+set}" = set; then
10843 ac_cv_search_opendir
=no
10845 rm conftest.
$ac_ext
10846 LIBS
=$ac_func_search_save_LIBS
10848 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10849 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10850 ac_res
=$ac_cv_search_opendir
10851 if test "$ac_res" != no
; then
10852 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10859 if test $ac_cv_header_sys_wait_h = no
; then
10860 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10861 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10862 cat >conftest.
$ac_ext <<_ACEOF
10865 cat confdefs.h
>>conftest.
$ac_ext
10866 cat >>conftest.
$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <sys/wait.h>
10872 union wait xx, yy; xx = yy
10877 rm -f conftest.
$ac_objext
10878 if { (ac_try
="$ac_compile"
10879 case "(($ac_try" in
10880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884 (eval "$ac_compile") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest.$ac_objext; then
10894 { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_SYS_WAIT_H 1
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_UNION_WAIT 1
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10908 { echo "$as_me:$LINENO: result: no" >&5
10909 echo "${ECHO_T}no" >&6; }
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10956 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10957 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10958 sys/resource.h sys/systeminfo.h locale.h \
10959 sys/stream.h termios.h libc.h sys/statfs.h \
10960 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10961 libgen.h util/debug.h util/msg18n.h frame.h \
10962 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
10964 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10971 ac_res=`eval echo '${'$as_ac_Header'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10975 # Is the header compilable?
10976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 #include <$ac_header>
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10991 *) ac_try_echo
=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1
>conftest.err
10998 cat conftest.err
>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.
$ac_objext; then
11004 ac_header_compiler
=yes
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.
$ac_ext >&5
11009 ac_header_compiler
=no
11012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11014 echo "${ECHO_T}$ac_header_compiler" >&6; }
11016 # Is the header present?
11017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <$ac_header>
11027 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11028 case "(($ac_try" in
11029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } >/dev/null && {
11040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11043 ac_header_preproc=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_header_preproc=no
11051 rm -f conftest.err conftest.$ac_ext
11052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11053 echo "${ECHO_T}$ac_header_preproc" >&6; }
11055 # So? What about this header?
11056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11062 ac_header_preproc=yes
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11083 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 eval "$as_ac_Header=\$ac_header_preproc"
11087 ac_res=`eval echo '${'$as_ac_Header'}'`
11088 { echo "$as_me:$LINENO: result: $ac_res" >&5
11089 echo "${ECHO_T}$ac_res" >&6; }
11092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11093 cat >>confdefs.h <<_ACEOF
11094 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11103 for ac_header in sys/ptem.h
11105 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 #if defined HAVE_SYS_STREAM_H
11118 # include <sys/stream.h>
11121 #include <$ac_header>
11123 rm -f conftest.$ac_objext
11124 if { (ac_try="$ac_compile"
11125 case "(($ac_try" in
11126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11127 *) ac_try_echo
=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_compile") 2>conftest.er1
11132 grep -v '^ *+' conftest.er1
>conftest.err
11134 cat conftest.err
>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && {
11137 test -z "$ac_c_werror_flag" ||
11138 test ! -s conftest.err
11139 } && test -s conftest.
$ac_objext; then
11140 eval "$as_ac_Header=yes"
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.
$ac_ext >&5
11145 eval "$as_ac_Header=no"
11148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11150 ac_res
=`eval echo '${'$as_ac_Header'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11154 cat >>confdefs.h
<<_ACEOF
11155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11164 for ac_header
in sys
/sysctl.h
11166 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11169 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.
$ac_ext <<_ACEOF
11175 cat confdefs.h
>>conftest.
$ac_ext
11176 cat >>conftest.
$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 #if defined HAVE_SYS_PARAM_H
11179 # include <sys/param.h>
11182 #include <$ac_header>
11184 rm -f conftest.
$ac_objext
11185 if { (ac_try
="$ac_compile"
11186 case "(($ac_try" in
11187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_compile") 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest.$ac_objext; then
11201 eval "$as_ac_Header=yes"
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 eval "$as_ac_Header=no"
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11211 ac_res=`eval echo '${'$as_ac_Header'}'`
11212 { echo "$as_me:$LINENO: result: $ac_res" >&5
11213 echo "${ECHO_T}$ac_res" >&6; }
11214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11225 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11226 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11234 #include <pthread.h>
11235 #include <pthread_np.h>
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11248 *) ac_try_echo
=$ac_try;;
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251 (eval "$ac_compile") 2>conftest.er1
11253 grep -v '^ *+' conftest.er1
>conftest.err
11255 cat conftest.err
>&5
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); } && {
11258 test -z "$ac_c_werror_flag" ||
11259 test ! -s conftest.err
11260 } && test -s conftest.
$ac_objext; then
11261 { echo "$as_me:$LINENO: result: yes" >&5
11262 echo "${ECHO_T}yes" >&6; }
11263 cat >>confdefs.h
<<\_ACEOF
11264 #define HAVE_PTHREAD_NP_H 1
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.
$ac_ext >&5
11271 { echo "$as_me:$LINENO: result: no" >&5
11272 echo "${ECHO_T}no" >&6; }
11275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11278 for ac_header
in strings.h
11280 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11281 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11284 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 ac_res
=`eval echo '${'$as_ac_Header'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11291 # Is the header compilable?
11292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11294 cat >conftest.
$ac_ext <<_ACEOF
11297 cat confdefs.h
>>conftest.
$ac_ext
11298 cat >>conftest.
$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 #include <$ac_header>
11303 rm -f conftest.
$ac_objext
11304 if { (ac_try
="$ac_compile"
11305 case "(($ac_try" in
11306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_compile") 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } && {
11317 test -z "$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11319 } && test -s conftest.$ac_objext; then
11320 ac_header_compiler=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_compiler=no
11328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11330 echo "${ECHO_T}$ac_header_compiler" >&6; }
11332 # Is the header present?
11333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11335 cat >conftest.$ac_ext <<_ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 #include <$ac_header>
11343 if { (ac_try="$ac_cpp conftest.$ac_ext"
11344 case "(($ac_try" in
11345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11346 *) ac_try_echo
=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1
>conftest.err
11353 cat conftest.err
>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } >/dev
/null
&& {
11356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11359 ac_header_preproc
=yes
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.
$ac_ext >&5
11364 ac_header_preproc
=no
11367 rm -f conftest.err conftest.
$ac_ext
11368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11369 echo "${ECHO_T}$ac_header_preproc" >&6; }
11371 # So? What about this header?
11372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11378 ac_header_preproc
=yes
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 eval "$as_ac_Header=\$ac_header_preproc"
11403 ac_res
=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11409 cat >>confdefs.h
<<_ACEOF
11410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11417 if test "x$MACOSX" = "xyes"; then
11418 cat >>confdefs.h
<<\_ACEOF
11419 #define NO_STRINGS_WITH_STRING_H 1
11424 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11425 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11426 cppflags_save
=$CPPFLAGS
11427 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11428 cat >conftest.
$ac_ext <<_ACEOF
11431 cat confdefs.h
>>conftest.
$ac_ext
11432 cat >>conftest.
$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11435 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11436 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11437 /* but don't do it on AIX 5.1 (Uribarri) */
11439 #ifdef HAVE_XM_XM_H
11440 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11442 #ifdef HAVE_STRING_H
11443 # include <string.h>
11445 #if defined(HAVE_STRINGS_H)
11446 # include <strings.h>
11457 rm -f conftest.
$ac_objext
11458 if { (ac_try
="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11461 *) ac_try_echo=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 { echo "$as_me:$LINENO: result: yes" >&5
11475 echo "${ECHO_T}yes" >&6; }
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 cat >>confdefs.h <<\_ACEOF
11481 #define NO_STRINGS_WITH_STRING_H 1
11484 { echo "$as_me:$LINENO: result: no" >&5
11485 echo "${ECHO_T}no" >&6; }
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 CPPFLAGS=$cppflags_save
11492 if test $ac_cv_c_compiler_gnu = yes; then
11493 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11494 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11495 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 ac_pattern="Autoconf.*'x'"
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11509 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11510 ac_cv_prog_gcc_traditional=yes
11512 ac_cv_prog_gcc_traditional=no
11517 if test $ac_cv_prog_gcc_traditional = no; then
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <termio.h>
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11529 ac_cv_prog_gcc_traditional=yes
11535 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11536 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11537 if test $ac_cv_prog_gcc_traditional = yes; then
11538 CC="$CC -traditional"
11542 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11544 if test "${ac_cv_c_const+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11557 /* FIXME: Include the comments suggested by Paul. */
11558 #ifndef __cplusplus
11559 /* Ultrix mips cc rejects this. */
11560 typedef int charset[2];
11562 /* SunOS 4.1.1 cc rejects this. */
11563 char const *const *pcpcc;
11565 /* NEC SVR4.0.2 mips cc rejects this. */
11566 struct point {int x, y;};
11567 static struct point const zero = {0,0};
11568 /* AIX XL C 1.02.0.0 rejects this.
11569 It does not let you subtract one const X* pointer from another in
11570 an arm of an if-expression whose if-part is not a constant
11572 const char *g = "string";
11573 pcpcc = &g + (g ? g-g : 0);
11574 /* HPUX 7.0 cc rejects these. */
11576 ppc = (char**) pcpcc;
11577 pcpcc = (char const *const *) ppc;
11578 { /* SCO 3.2v4 cc rejects this. */
11580 char const *s = 0 ? (char *) 0 : (char const *) 0;
11585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11586 int x[] = {25, 17};
11587 const int *foo = &x[0];
11590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11591 typedef const int *iptr;
11595 { /* AIX XL C 1.02.0.0 rejects this saying
11596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11597 struct s { int j; const int *ap[3]; };
11598 struct s *b; b->j = 5;
11600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11601 const int foo = 10;
11602 if (!foo) return 0;
11604 return !cs[0] && !zero.x;
11611 rm -f conftest.$ac_objext
11612 if { (ac_try="$ac_compile"
11613 case "(($ac_try" in
11614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11615 *) ac_try_echo
=$ac_try;;
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1
>conftest.err
11622 cat conftest.err
>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.
$ac_objext; then
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.
$ac_ext >&5
11636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11639 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11640 if test $ac_cv_c_const = no
; then
11642 cat >>confdefs.h
<<\_ACEOF
11648 { echo "$as_me:$LINENO: checking for working volatile" >&5
11649 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11650 if test "${ac_cv_c_volatile+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.
$ac_ext <<_ACEOF
11656 cat confdefs.h
>>conftest.
$ac_ext
11657 cat >>conftest.
$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11665 int * volatile y = (int *) 0;
11671 rm -f conftest.
$ac_objext
11672 if { (ac_try
="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11688 ac_cv_c_volatile=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_cv_c_volatile=no
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11699 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11700 if test $ac_cv_c_volatile = no; then
11702 cat >>confdefs.h <<\_ACEOF
11708 { echo "$as_me:$LINENO: checking for mode_t" >&5
11709 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11710 if test "${ac_cv_type_mode_t+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 $ac_includes_default
11720 typedef mode_t ac__type_new_;
11724 if ((ac__type_new_ *) 0)
11726 if (sizeof (ac__type_new_))
11732 rm -f conftest.$ac_objext
11733 if { (ac_try="$ac_compile"
11734 case "(($ac_try" in
11735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11736 *) ac_try_echo
=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_compile") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1
>conftest.err
11743 cat conftest.err
>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest.
$ac_objext; then
11749 ac_cv_type_mode_t
=yes
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.
$ac_ext >&5
11754 ac_cv_type_mode_t
=no
11757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11759 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11760 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11761 if test $ac_cv_type_mode_t = yes; then
11765 cat >>confdefs.h
<<_ACEOF
11771 { echo "$as_me:$LINENO: checking for off_t" >&5
11772 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11773 if test "${ac_cv_type_off_t+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 cat >conftest.
$ac_ext <<_ACEOF
11779 cat confdefs.h
>>conftest.
$ac_ext
11780 cat >>conftest.
$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 typedef off_t ac__type_new_;
11787 if ((ac__type_new_ *) 0)
11789 if (sizeof (ac__type_new_))
11795 rm -f conftest.
$ac_objext
11796 if { (ac_try
="$ac_compile"
11797 case "(($ac_try" in
11798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_compile") 2>conftest.er1
11804 grep -v '^ *+' conftest.er1 >conftest.err
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest.$ac_objext; then
11812 ac_cv_type_off_t=yes
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 ac_cv_type_off_t=no
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11823 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11824 if test $ac_cv_type_off_t = yes; then
11828 cat >>confdefs.h <<_ACEOF
11829 #define off_t long int
11834 { echo "$as_me:$LINENO: checking for pid_t" >&5
11835 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11836 if test "${ac_cv_type_pid_t+set}" = set; then
11837 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 cat >conftest.$ac_ext <<_ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 typedef pid_t ac__type_new_;
11850 if ((ac__type_new_ *) 0)
11852 if (sizeof (ac__type_new_))
11858 rm -f conftest.$ac_objext
11859 if { (ac_try="$ac_compile"
11860 case "(($ac_try" in
11861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11862 *) ac_try_echo
=$ac_try;;
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_compile") 2>conftest.er1
11867 grep -v '^ *+' conftest.er1
>conftest.err
11869 cat conftest.err
>&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } && {
11872 test -z "$ac_c_werror_flag" ||
11873 test ! -s conftest.err
11874 } && test -s conftest.
$ac_objext; then
11875 ac_cv_type_pid_t
=yes
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.
$ac_ext >&5
11880 ac_cv_type_pid_t
=no
11883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11885 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11886 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11887 if test $ac_cv_type_pid_t = yes; then
11891 cat >>confdefs.h
<<_ACEOF
11897 { echo "$as_me:$LINENO: checking for size_t" >&5
11898 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11899 if test "${ac_cv_type_size_t+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 cat >conftest.
$ac_ext <<_ACEOF
11905 cat confdefs.h
>>conftest.
$ac_ext
11906 cat >>conftest.
$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 typedef size_t ac__type_new_;
11913 if ((ac__type_new_ *) 0)
11915 if (sizeof (ac__type_new_))
11921 rm -f conftest.
$ac_objext
11922 if { (ac_try
="$ac_compile"
11923 case "(($ac_try" in
11924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_compile") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest.$ac_objext; then
11938 ac_cv_type_size_t=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_type_size_t=no
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11949 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11950 if test $ac_cv_type_size_t = yes; then
11954 cat >>confdefs.h <<_ACEOF
11955 #define size_t unsigned int
11960 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11961 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11962 if test "${ac_cv_type_uid_t+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 cat >conftest.$ac_ext <<_ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 #include <sys/types.h>
11974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11975 $EGREP "uid_t" >/dev/null 2>&1; then
11976 ac_cv_type_uid_t=yes
11978 ac_cv_type_uid_t=no
11983 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11984 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
11985 if test $ac_cv_type_uid_t = no; then
11987 cat >>confdefs.h <<\_ACEOF
11992 cat >>confdefs.h <<\_ACEOF
11998 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11999 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12000 if test "${ac_cv_header_time+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <sys/types.h>
12010 #include <sys/time.h>
12016 if ((struct tm *) 0)
12022 rm -f conftest.$ac_objext
12023 if { (ac_try="$ac_compile"
12024 case "(($ac_try" in
12025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12026 *) ac_try_echo
=$ac_try;;
12028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12031 grep -v '^ *+' conftest.er1
>conftest.err
12033 cat conftest.err
>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.
$ac_objext; then
12039 ac_cv_header_time
=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.
$ac_ext >&5
12044 ac_cv_header_time
=no
12047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12050 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12051 if test $ac_cv_header_time = yes; then
12053 cat >>confdefs.h
<<\_ACEOF
12054 #define TIME_WITH_SYS_TIME 1
12059 { echo "$as_me:$LINENO: checking for ino_t" >&5
12060 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12061 if test "${ac_cv_type_ino_t+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 cat >conftest.
$ac_ext <<_ACEOF
12067 cat confdefs.h
>>conftest.
$ac_ext
12068 cat >>conftest.
$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12071 typedef ino_t ac__type_new_;
12075 if ((ac__type_new_ *) 0)
12077 if (sizeof (ac__type_new_))
12083 rm -f conftest.
$ac_objext
12084 if { (ac_try
="$ac_compile"
12085 case "(($ac_try" in
12086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12087 *) ac_try_echo=$ac_try;;
12089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12090 (eval "$ac_compile") 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } && {
12097 test -z "$ac_c_werror_flag" ||
12098 test ! -s conftest.err
12099 } && test -s conftest.$ac_objext; then
12100 ac_cv_type_ino_t=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_cv_type_ino_t=no
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12110 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12111 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12112 if test $ac_cv_type_ino_t = yes; then
12116 cat >>confdefs.h <<_ACEOF
12122 { echo "$as_me:$LINENO: checking for dev_t" >&5
12123 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12124 if test "${ac_cv_type_dev_t+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 cat >conftest.$ac_ext <<_ACEOF
12130 cat confdefs.h >>conftest.$ac_ext
12131 cat >>conftest.$ac_ext <<_ACEOF
12132 /* end confdefs.h. */
12133 $ac_includes_default
12134 typedef dev_t ac__type_new_;
12138 if ((ac__type_new_ *) 0)
12140 if (sizeof (ac__type_new_))
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12150 *) ac_try_echo
=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1
>conftest.err
12157 cat conftest.err
>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.
$ac_objext; then
12163 ac_cv_type_dev_t
=yes
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.
$ac_ext >&5
12168 ac_cv_type_dev_t
=no
12171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12173 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12174 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12175 if test $ac_cv_type_dev_t = yes; then
12179 cat >>confdefs.h
<<_ACEOF
12180 #define dev_t unsigned
12186 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12187 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12188 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12189 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12190 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12192 cat >conftest.
$ac_ext <<_ACEOF
12195 cat confdefs.h
>>conftest.
$ac_ext
12196 cat >>conftest.
$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 #include <sys/types.h>
12201 # include <stdlib.h>
12202 # include <stddef.h>
12204 #ifdef HAVE_SYS_RESOURCE_H
12205 # include <sys/resource.h>
12209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12211 ac_cv_type_rlim_t
=yes
12213 ac_cv_type_rlim_t
=no
12217 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12218 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12220 if test $ac_cv_type_rlim_t = no
; then
12221 cat >> confdefs.h
<<\EOF
12222 #define rlim_t unsigned long
12226 { echo "$as_me:$LINENO: checking for stack_t" >&5
12227 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12228 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12229 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12230 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12232 cat >conftest.
$ac_ext <<_ACEOF
12235 cat confdefs.h
>>conftest.
$ac_ext
12236 cat >>conftest.
$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12239 #include <sys/types.h>
12241 # include <stdlib.h>
12242 # include <stddef.h>
12244 #include <signal.h>
12247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12248 $EGREP "stack_t" >/dev
/null
2>&1; then
12249 ac_cv_type_stack_t
=yes
12251 ac_cv_type_stack_t
=no
12255 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12256 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12258 if test $ac_cv_type_stack_t = no
; then
12259 cat >> confdefs.h
<<\EOF
12260 #define stack_t struct sigaltstack
12264 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12265 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12266 cat >conftest.
$ac_ext <<_ACEOF
12269 cat confdefs.h
>>conftest.
$ac_ext
12270 cat >>conftest.
$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12273 #include <sys/types.h>
12275 # include <stdlib.h>
12276 # include <stddef.h>
12278 #include <signal.h>
12279 #include "confdefs.h"
12284 stack_t sigstk; sigstk.ss_base = 0;
12289 rm -f conftest.
$ac_objext
12290 if { (ac_try
="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.$ac_objext; then
12306 { echo "$as_me:$LINENO: result: yes" >&5
12307 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12308 #define HAVE_SS_BASE 1
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 { echo "$as_me:$LINENO: result: no" >&5
12316 echo "${ECHO_T}no" >&6; }
12319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12323 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12325 # Check whether --with-tlib was given.
12326 if test "${with_tlib+set}" = set; then
12327 withval=$with_tlib;
12330 if test -n "$with_tlib"; then
12331 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12332 echo "${ECHO_T}$with_tlib" >&6; }
12333 LIBS="$LIBS -l$with_tlib"
12334 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12335 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12355 *) ac_try_echo
=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1
>conftest.err
12362 cat conftest.err
>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest
$ac_exeext &&
12368 $as_test_x conftest
$ac_exeext; then
12369 { echo "$as_me:$LINENO: result: OK" >&5
12370 echo "${ECHO_T}OK" >&6; }
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.
$ac_ext >&5
12375 { { echo "$as_me:$LINENO: error: FAILED" >&5
12376 echo "$as_me: error: FAILED" >&2;}
12377 { (exit 1); exit 1; }; }
12380 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12381 conftest
$ac_exeext conftest.
$ac_ext
12384 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12385 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12386 case "`uname -s 2>/dev/null`" in
12387 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12388 *) tlibs
="ncurses termlib termcap curses";;
12390 for libname
in $tlibs; do
12392 as_ac_Lib
=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12393 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12394 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12395 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12398 ac_check_lib_save_LIBS
=$LIBS
12399 LIBS
="-l${libname} $LIBS"
12400 cat >conftest.
$ac_ext <<_ACEOF
12403 cat confdefs.h
>>conftest.
$ac_ext
12404 cat >>conftest.
$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12422 rm -f conftest.
$ac_objext conftest
$ac_exeext
12423 if { (ac_try
="$ac_link"
12424 case "(($ac_try" in
12425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest$ac_exeext &&
12439 $as_test_x conftest$ac_exeext; then
12440 eval "$as_ac_Lib=yes"
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 eval "$as_ac_Lib=no"
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 ac_res=`eval echo '${'$as_ac_Lib'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454 echo "${ECHO_T}$ac_res" >&6; }
12455 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12460 LIBS="-l${libname} $LIBS"
12464 if test "x$olibs" != "x$LIBS"; then
12465 if test "$cross_compiling" = yes; then
12468 cat >conftest.$ac_ext <<_ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12475 #ifdef HAVE_TERMCAP_H
12476 # include <termcap.h>
12479 # include <stdlib.h>
12480 # include <stddef.h>
12482 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12484 rm -f conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12488 *) ac_try_echo
=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12495 { (case "(($ac_try" in
12496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12506 echo "$as_me: program exited with status $ac_status" >&5
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ( exit $ac_status )
12513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12517 if test "$res" = "OK"; then
12520 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12521 echo "${ECHO_T}$libname library is not usable" >&6; }
12525 if test "x$olibs" = "x$LIBS"; then
12526 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12527 echo "${ECHO_T}no terminal library found" >&6; }
12531 if test "x$olibs" = "x$LIBS"; then
12532 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12533 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12544 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12553 *) ac_try_echo
=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1
>conftest.err
12560 cat conftest.err
>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest
$ac_exeext &&
12566 $as_test_x conftest
$ac_exeext; then
12567 { echo "$as_me:$LINENO: result: yes" >&5
12568 echo "${ECHO_T}yes" >&6; }
12570 echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.
$ac_ext >&5
12573 { { echo "$as_me:$LINENO: error: NOT FOUND!
12574 You need to install a terminal library; for example ncurses.
12575 Or specify the name of the library with --with-tlib." >&5
12576 echo "$as_me: error: NOT FOUND!
12577 You need to install a terminal library; for example ncurses.
12578 Or specify the name of the library with --with-tlib." >&2;}
12579 { (exit 1); exit 1; }; }
12582 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12583 conftest
$ac_exeext conftest.
$ac_ext
12586 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12587 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12588 if test "${vim_cv_terminfo+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 if test "$cross_compiling" = yes; then
12594 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12595 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12596 { (exit 1); exit 1; }; }
12599 cat >conftest.
$ac_ext <<_ACEOF
12601 #include "confdefs.h"
12602 #ifdef HAVE_TERMCAP_H
12603 # include <termcap.h>
12605 #ifdef HAVE_STRING_H
12606 # include <string.h>
12609 # include <stdlib.h>
12610 # include <stddef.h>
12613 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12616 rm -f conftest
$ac_exeext
12617 if { (ac_try
="$ac_link"
12618 case "(($ac_try" in
12619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12627 { (case "(($ac_try" in
12628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12629 *) ac_try_echo
=$ac_try;;
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632 (eval "$ac_try") 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12640 echo "$as_me: program exited with status $ac_status" >&5
12641 echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.
$ac_ext >&5
12644 ( exit $ac_status )
12646 vim_cv_terminfo
=yes
12649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12655 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12656 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12658 if test "x$vim_cv_terminfo" = "xyes" ; then
12659 cat >>confdefs.h
<<\_ACEOF
12665 if test "x$olibs" != "x$LIBS"; then
12666 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12667 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12668 if test "${vim_cv_tgent+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 if test "$cross_compiling" = yes; then
12674 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12675 echo "$as_me: error: failed to compile test program." >&2;}
12676 { (exit 1); exit 1; }; }
12679 cat >conftest.
$ac_ext <<_ACEOF
12681 #include "confdefs.h"
12682 #ifdef HAVE_TERMCAP_H
12683 # include <termcap.h>
12686 # include <stdlib.h>
12687 # include <stddef.h>
12690 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12693 rm -f conftest
$ac_exeext
12694 if { (ac_try
="$ac_link"
12695 case "(($ac_try" in
12696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_link") 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12704 { (case "(($ac_try" in
12705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12706 *) ac_try_echo
=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_try") 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12717 echo "$as_me: program exited with status $ac_status" >&5
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.
$ac_ext >&5
12721 ( exit $ac_status )
12723 vim_cv_tgent
=non-zero
12726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12732 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12733 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12735 if test "x$vim_cv_tgent" = "xzero" ; then
12736 cat >>confdefs.h
<<\_ACEOF
12737 #define TGETENT_ZERO_ERR 0
12743 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12744 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12745 cat >conftest.
$ac_ext <<_ACEOF
12748 cat confdefs.h
>>conftest.
$ac_ext
12749 cat >>conftest.
$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12752 #ifdef HAVE_TERMCAP_H
12753 # include <termcap.h>
12764 rm -f conftest.
$ac_objext conftest
$ac_exeext
12765 if { (ac_try
="$ac_link"
12766 case "(($ac_try" in
12767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_link") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest$ac_exeext &&
12781 $as_test_x conftest$ac_exeext; then
12782 { echo "$as_me:$LINENO: result: yes" >&5
12783 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12784 #define HAVE_OSPEED 1
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 { echo "$as_me:$LINENO: result: no" >&5
12792 echo "${ECHO_T}no" >&6; }
12793 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12794 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12802 #ifdef HAVE_TERMCAP_H
12803 # include <termcap.h>
12805 extern short ospeed;
12815 rm -f conftest.$ac_objext conftest$ac_exeext
12816 if { (ac_try="$ac_link"
12817 case "(($ac_try" in
12818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12819 *) ac_try_echo
=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_link") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1
>conftest.err
12826 cat conftest.err
>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest
$ac_exeext &&
12832 $as_test_x conftest
$ac_exeext; then
12833 { echo "$as_me:$LINENO: result: yes" >&5
12834 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12835 #define OSPEED_EXTERN 1
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.
$ac_ext >&5
12842 { echo "$as_me:$LINENO: result: no" >&5
12843 echo "${ECHO_T}no" >&6; }
12846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12847 conftest
$ac_exeext conftest.
$ac_ext
12851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12852 conftest
$ac_exeext conftest.
$ac_ext
12854 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12855 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12856 cat >conftest.
$ac_ext <<_ACEOF
12859 cat confdefs.h
>>conftest.
$ac_ext
12860 cat >>conftest.
$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12863 #ifdef HAVE_TERMCAP_H
12864 # include <termcap.h>
12870 if (UP == 0 && BC == 0) PC = 1
12875 rm -f conftest.
$ac_objext conftest
$ac_exeext
12876 if { (ac_try
="$ac_link"
12877 case "(($ac_try" in
12878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12879 *) ac_try_echo=$ac_try;;
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882 (eval "$ac_link") 2>conftest.er1
12884 grep -v '^ *+' conftest.er1 >conftest.err
12886 cat conftest.err >&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); } && {
12889 test -z "$ac_c_werror_flag" ||
12890 test ! -s conftest.err
12891 } && test -s conftest$ac_exeext &&
12892 $as_test_x conftest$ac_exeext; then
12893 { echo "$as_me:$LINENO: result: yes" >&5
12894 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12895 #define HAVE_UP_BC_PC 1
12899 echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12902 { echo "$as_me:$LINENO: result: no" >&5
12903 echo "${ECHO_T}no" >&6; }
12904 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12905 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12906 cat >conftest.$ac_ext <<_ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 #ifdef HAVE_TERMCAP_H
12914 # include <termcap.h>
12916 extern char *UP, *BC, PC;
12921 if (UP == 0 && BC == 0) PC = 1
12926 rm -f conftest.$ac_objext conftest$ac_exeext
12927 if { (ac_try="$ac_link"
12928 case "(($ac_try" in
12929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12930 *) ac_try_echo
=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1
>conftest.err
12937 cat conftest.err
>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && {
12940 test -z "$ac_c_werror_flag" ||
12941 test ! -s conftest.err
12942 } && test -s conftest
$ac_exeext &&
12943 $as_test_x conftest
$ac_exeext; then
12944 { echo "$as_me:$LINENO: result: yes" >&5
12945 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12946 #define UP_BC_PC_EXTERN 1
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.
$ac_ext >&5
12953 { echo "$as_me:$LINENO: result: no" >&5
12954 echo "${ECHO_T}no" >&6; }
12957 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12958 conftest
$ac_exeext conftest.
$ac_ext
12962 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12963 conftest
$ac_exeext conftest.
$ac_ext
12965 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12966 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
12967 cat >conftest.
$ac_ext <<_ACEOF
12970 cat confdefs.h
>>conftest.
$ac_ext
12971 cat >>conftest.
$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12974 #ifdef HAVE_TERMCAP_H
12975 # include <termcap.h>
12981 extern int xx(); tputs("test", 1, (outfuntype)xx)
12986 rm -f conftest.
$ac_objext
12987 if { (ac_try
="$ac_compile"
12988 case "(($ac_try" in
12989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_compile") 2>conftest.er1
12995 grep -v '^ *+' conftest.er1 >conftest.err
12997 cat conftest.err >&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } && {
13000 test -z "$ac_c_werror_flag" ||
13001 test ! -s conftest.err
13002 } && test -s conftest.$ac_objext; then
13003 { echo "$as_me:$LINENO: result: yes" >&5
13004 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13005 #define HAVE_OUTFUNTYPE 1
13009 echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13012 { echo "$as_me:$LINENO: result: no" >&5
13013 echo "${ECHO_T}no" >&6; }
13016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13019 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13027 #include <sys/types.h>
13028 #include <sys/time.h>
13029 #include <sys/select.h>
13038 rm -f conftest.$ac_objext
13039 if { (ac_try="$ac_compile"
13040 case "(($ac_try" in
13041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13042 *) ac_try_echo
=$ac_try;;
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045 (eval "$ac_compile") 2>conftest.er1
13047 grep -v '^ *+' conftest.er1
>conftest.err
13049 cat conftest.err
>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && {
13052 test -z "$ac_c_werror_flag" ||
13053 test ! -s conftest.err
13054 } && test -s conftest.
$ac_objext; then
13055 { echo "$as_me:$LINENO: result: yes" >&5
13056 echo "${ECHO_T}yes" >&6; }
13057 cat >>confdefs.h
<<\_ACEOF
13058 #define SYS_SELECT_WITH_SYS_TIME 1
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.
$ac_ext >&5
13065 { echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6; }
13069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13072 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13073 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13074 if test -r /dev
/ptc
; then
13075 cat >>confdefs.h
<<\_ACEOF
13076 #define HAVE_DEV_PTC 1
13079 { echo "$as_me:$LINENO: result: yes" >&5
13080 echo "${ECHO_T}yes" >&6; }
13082 { echo "$as_me:$LINENO: result: no" >&5
13083 echo "${ECHO_T}no" >&6; }
13086 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13087 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13088 if test -c /dev
/ptmx
; then
13089 cat >conftest.
$ac_ext <<_ACEOF
13092 cat confdefs.h
>>conftest.
$ac_ext
13093 cat >>conftest.
$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13099 ptsname(0);grantpt(0);unlockpt(0);
13104 rm -f conftest.
$ac_objext conftest
$ac_exeext
13105 if { (ac_try
="$ac_link"
13106 case "(($ac_try" in
13107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } && {
13118 test -z "$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 } && test -s conftest$ac_exeext &&
13121 $as_test_x conftest$ac_exeext; then
13122 { echo "$as_me:$LINENO: result: yes" >&5
13123 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13124 #define HAVE_SVR4_PTYS 1
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 { echo "$as_me:$LINENO: result: no" >&5
13132 echo "${ECHO_T}no" >&6; }
13135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13136 conftest$ac_exeext conftest.$ac_ext
13138 { echo "$as_me:$LINENO: result: no" >&5
13139 echo "${ECHO_T}no" >&6; }
13142 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13143 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13144 if test -d /dev/ptym ; then
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "yes" >/dev/null 2>&1; then
13162 ptys=`echo /dev
/ptyp??
`
13164 ptys=`echo $pdir/pty??
`
13168 if test "$ptys" != "$pdir/pty??" ; then
13169 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13170 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13171 cat >>confdefs.h <<_ACEOF
13172 #define PTYRANGE0 "$p0"
13175 cat >>confdefs.h <<_ACEOF
13176 #define PTYRANGE1 "$p1"
13179 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13180 echo "${ECHO_T}$p0 / $p1" >&6; }
13182 { echo "$as_me:$LINENO: result: don't know" >&5
13183 echo "${ECHO_T}don't know" >&6; }
13187 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13188 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13189 if test "${vim_cv_tty_group+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 if test "$cross_compiling" = yes; then
13195 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13196 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13197 { (exit 1); exit 1; }; }
13200 cat >conftest.$ac_ext <<_ACEOF
13202 #include "confdefs.h"
13203 #include <sys/types.h>
13205 # include <stdlib.h>
13206 # include <stddef.h>
13208 #ifdef HAVE_UNISTD_H
13209 #include <unistd.h>
13211 #include <sys/stat.h>
13216 char *x,*ttyname();
13220 if (!(x = ttyname(0))) exit(1);
13221 if (stat(x, &sb)) exit(1);
13223 if (om & 002) exit(0);
13224 m = system("mesg y");
13225 if (m == -1 || m == 127) exit(1);
13226 if (stat(x, &sb)) exit(1);
13228 if (chmod(x, om)) exit(1);
13229 if (m & 002) exit(0);
13230 if (sb.st_gid == getgid()) exit(1);
13231 if (!(fp=fopen("conftest_grp", "w")))
13233 fprintf(fp, "%d\n", sb.st_gid);
13239 rm -f conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13243 *) ac_try_echo
=$ac_try;;
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_link") 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13250 { (case "(($ac_try" in
13251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13260 if test -f conftest_grp; then
13261 vim_cv_tty_group=`cat conftest_grp
`
13262 if test "x$vim_cv_tty_mode" = "x" ; then
13263 vim_cv_tty_mode=0620
13265 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13266 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13268 vim_cv_tty_group=world
13269 { echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13270 echo "${ECHO_T}ptys are world accessable" >&6; }
13274 echo "$as_me: program exited with status $ac_status" >&5
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ( exit $ac_status )
13280 vim_cv_tty_group=world
13281 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13282 echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6; }
13285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13291 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13292 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13295 if test "x$vim_cv_tty_group" != "xworld" ; then
13296 cat >>confdefs.h <<_ACEOF
13297 #define PTYGROUP $vim_cv_tty_group
13300 if test "x$vim_cv_tty_mode" = "x" ; then
13301 { { 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
13302 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;}
13303 { (exit 1); exit 1; }; }
13305 cat >>confdefs.h <<\_ACEOF
13306 #define PTYMODE 0620
13313 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13314 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13315 if test "${ac_cv_type_signal+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13318 cat >conftest.$ac_ext <<_ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 #include <sys/types.h>
13325 #include <signal.h>
13330 return *(signal (0, 0)) (0) == 1;
13335 rm -f conftest.$ac_objext
13336 if { (ac_try="$ac_compile"
13337 case "(($ac_try" in
13338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13339 *) ac_try_echo
=$ac_try;;
13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_compile") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1
>conftest.err
13346 cat conftest.err
>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && {
13349 test -z "$ac_c_werror_flag" ||
13350 test ! -s conftest.err
13351 } && test -s conftest.
$ac_objext; then
13352 ac_cv_type_signal
=int
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.
$ac_ext >&5
13357 ac_cv_type_signal
=void
13360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13362 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13363 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13365 cat >>confdefs.h
<<_ACEOF
13366 #define RETSIGTYPE $ac_cv_type_signal
13371 if test $ac_cv_type_signal = void
; then
13372 cat >>confdefs.h
<<\_ACEOF
13373 #define SIGRETURN return
13377 cat >>confdefs.h
<<\_ACEOF
13378 #define SIGRETURN return 0
13383 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13384 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13385 cat >conftest.
$ac_ext <<_ACEOF
13388 cat confdefs.h
>>conftest.
$ac_ext
13389 cat >>conftest.
$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 #include <signal.h>
13395 struct sigcontext *scont;
13396 scont = (struct sigcontext *)0;
13407 rm -f conftest.
$ac_objext
13408 if { (ac_try
="$ac_compile"
13409 case "(($ac_try" in
13410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_compile") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest.$ac_objext; then
13424 { echo "$as_me:$LINENO: result: yes" >&5
13425 echo "${ECHO_T}yes" >&6; }
13426 cat >>confdefs.h <<\_ACEOF
13427 #define HAVE_SIGCONTEXT 1
13431 echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13434 { echo "$as_me:$LINENO: result: no" >&5
13435 echo "${ECHO_T}no" >&6; }
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13440 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13441 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13442 if test "${vim_cv_getcwd_broken+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 if test "$cross_compiling" = yes; then
13448 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13449 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13450 { (exit 1); exit 1; }; }
13453 cat >conftest.$ac_ext <<_ACEOF
13455 #include "confdefs.h"
13456 #ifdef HAVE_UNISTD_H
13457 #include <unistd.h>
13459 char *dagger[] = { "IFS=pwd", 0 };
13463 extern char **environ;
13465 return getcwd(buffer, 500) ? 0 : 1;
13469 rm -f conftest$ac_exeext
13470 if { (ac_try="$ac_link"
13471 case "(($ac_try" in
13472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13473 *) ac_try_echo
=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>&5
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13480 { (case "(($ac_try" in
13481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13490 vim_cv_getcwd_broken=no
13493 echo "$as_me: program exited with status $ac_status" >&5
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ( exit $ac_status )
13499 vim_cv_getcwd_broken=yes
13502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13508 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13509 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13511 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13512 cat >>confdefs.h <<\_ACEOF
13513 #define BAD_GETCWD 1
13564 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13565 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13566 memset nanosleep opendir putenv qsort readlink select setenv \
13567 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13568 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13569 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13570 usleep utime utimes
13572 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 cat >conftest.$ac_ext <<_ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13586 #define $ac_func innocuous_$ac_func
13588 /* System header to define __stub macros and hopefully few prototypes,
13589 which can conflict with char $ac_func (); below.
13590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13591 <limits.h> exists even on freestanding compilers. */
13594 # include <limits.h>
13596 # include <assert.h>
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13608 /* The GNU C library defines this for functions which it implements
13609 to always fail with ENOSYS. Some functions are actually named
13610 something starting with __ and the normal name is an alias. */
13611 #if defined __stub_$ac_func || defined __stub___$ac_func
13618 return $ac_func ();
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13627 *) ac_try_echo
=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13632 grep -v '^ *+' conftest.er1
>conftest.err
13634 cat conftest.err
>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest
$ac_exeext &&
13640 $as_test_x conftest
$ac_exeext; then
13641 eval "$as_ac_var=yes"
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.
$ac_ext >&5
13646 eval "$as_ac_var=no"
13649 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13650 conftest
$ac_exeext conftest.
$ac_ext
13652 ac_res
=`eval echo '${'$as_ac_var'}'`
13653 { echo "$as_me:$LINENO: result: $ac_res" >&5
13654 echo "${ECHO_T}$ac_res" >&6; }
13655 if test `eval echo '${'$as_ac_var'}'` = yes; then
13656 cat >>confdefs.h
<<_ACEOF
13657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13664 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13665 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13666 cat >conftest.
$ac_ext <<_ACEOF
13669 cat confdefs.h
>>conftest.
$ac_ext
13670 cat >>conftest.
$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <sys/types.h>
13673 #include <sys/stat.h>
13681 n = (int)st.st_blksize;
13686 rm -f conftest.
$ac_objext
13687 if { (ac_try
="$ac_compile"
13688 case "(($ac_try" in
13689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_compile") 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && {
13700 test -z "$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13702 } && test -s conftest.$ac_objext; then
13703 { echo "$as_me:$LINENO: result: yes" >&5
13704 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13705 #define HAVE_ST_BLKSIZE 1
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 { echo "$as_me:$LINENO: result: no" >&5
13713 echo "${ECHO_T}no" >&6; }
13716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13719 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13720 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 if test "$cross_compiling" = yes; then
13726 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13727 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13728 { (exit 1); exit 1; }; }
13731 cat >conftest.$ac_ext <<_ACEOF
13733 #include "confdefs.h"
13735 # include <stdlib.h>
13736 # include <stddef.h>
13738 #include <sys/types.h>
13739 #include <sys/stat.h>
13740 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13743 rm -f conftest$ac_exeext
13744 if { (ac_try="$ac_link"
13745 case "(($ac_try" in
13746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13747 *) ac_try_echo
=$ac_try;;
13749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_link") 2>&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13754 { (case "(($ac_try" in
13755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13764 vim_cv_stat_ignores_slash=yes
13767 echo "$as_me: program exited with status $ac_status" >&5
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ( exit $ac_status )
13773 vim_cv_stat_ignores_slash=no
13776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13782 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13783 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13785 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13786 cat >>confdefs.h <<\_ACEOF
13787 #define STAT_IGNORES_SLASH 1
13792 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13793 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13795 LIBS="$LIBS -liconv"
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13803 #ifdef HAVE_ICONV_H
13804 # include <iconv.h>
13810 iconv_open("fr", "to");
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (ac_try="$ac_link"
13817 case "(($ac_try" in
13818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13819 *) ac_try_echo
=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_link") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1
>conftest.err
13826 cat conftest.err
>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && {
13829 test -z "$ac_c_werror_flag" ||
13830 test ! -s conftest.err
13831 } && test -s conftest
$ac_exeext &&
13832 $as_test_x conftest
$ac_exeext; then
13833 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13834 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
13835 #define HAVE_ICONV 1
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.
$ac_ext >&5
13843 cat >conftest.
$ac_ext <<_ACEOF
13846 cat confdefs.h
>>conftest.
$ac_ext
13847 cat >>conftest.
$ac_ext <<_ACEOF
13848 /* end confdefs.h. */
13850 #ifdef HAVE_ICONV_H
13851 # include <iconv.h>
13857 iconv_open("fr", "to");
13862 rm -f conftest.
$ac_objext conftest
$ac_exeext
13863 if { (ac_try
="$ac_link"
13864 case "(($ac_try" in
13865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13871 grep -v '^ *+' conftest.er1 >conftest.err
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest$ac_exeext &&
13879 $as_test_x conftest$ac_exeext; then
13880 { echo "$as_me:$LINENO: result: yes" >&5
13881 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_ICONV 1
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 { echo "$as_me:$LINENO: result: no" >&5
13890 echo "${ECHO_T}no" >&6; }
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894 conftest$ac_exeext conftest.$ac_ext
13897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13898 conftest$ac_exeext conftest.$ac_ext
13901 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13902 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13910 #ifdef HAVE_LANGINFO_H
13911 # include <langinfo.h>
13917 char *cs = nl_langinfo(CODESET);
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13926 *) ac_try_echo
=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1
>conftest.err
13933 cat conftest.err
>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest
$ac_exeext &&
13939 $as_test_x conftest
$ac_exeext; then
13940 { echo "$as_me:$LINENO: result: yes" >&5
13941 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13942 #define HAVE_NL_LANGINFO_CODESET 1
13946 echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.
$ac_ext >&5
13949 { echo "$as_me:$LINENO: result: no" >&5
13950 echo "${ECHO_T}no" >&6; }
13953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13954 conftest
$ac_exeext conftest.
$ac_ext
13957 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
13958 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
13959 if test "${ac_cv_lib_m_strtod+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 ac_check_lib_save_LIBS
=$LIBS
13964 cat >conftest.
$ac_ext <<_ACEOF
13967 cat confdefs.h
>>conftest.
$ac_ext
13968 cat >>conftest.
$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13986 rm -f conftest.
$ac_objext conftest
$ac_exeext
13987 if { (ac_try
="$ac_link"
13988 case "(($ac_try" in
13989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_m_strtod=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14009 ac_cv_lib_m_strtod=no
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14017 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14018 if test $ac_cv_lib_m_strtod = yes; then
14019 cat >>confdefs.h <<_ACEOF
14020 #define HAVE_LIBM 1
14027 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14028 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14040 # include <stdlib.h>
14041 # include <stddef.h>
14048 d = strtod("1.1", &s);
14053 d = pow(1.11, 2.22);
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (ac_try="$ac_link"
14065 case "(($ac_try" in
14066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14067 *) ac_try_echo
=$ac_try;;
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_link") 2>conftest.er1
14072 grep -v '^ *+' conftest.er1
>conftest.err
14074 cat conftest.err
>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && {
14077 test -z "$ac_c_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest
$ac_exeext &&
14080 $as_test_x conftest
$ac_exeext; then
14081 { echo "$as_me:$LINENO: result: yes" >&5
14082 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14083 #define HAVE_FLOAT_FUNCS 1
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.
$ac_ext >&5
14090 { echo "$as_me:$LINENO: result: no" >&5
14091 echo "${ECHO_T}no" >&6; }
14094 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14095 conftest
$ac_exeext conftest.
$ac_ext
14097 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14098 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14099 # Check whether --enable-acl was given.
14100 if test "${enable_acl+set}" = set; then
14101 enableval
=$enable_acl;
14106 if test "$enable_acl" = "yes"; then
14107 { echo "$as_me:$LINENO: result: no" >&5
14108 echo "${ECHO_T}no" >&6; }
14109 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14110 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14111 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_check_lib_save_LIBS
=$LIBS
14115 LIBS
="-lposix1e $LIBS"
14116 cat >conftest.
$ac_ext <<_ACEOF
14119 cat confdefs.h
>>conftest.
$ac_ext
14120 cat >>conftest.
$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14123 /* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14129 char acl_get_file ();
14133 return acl_get_file ();
14138 rm -f conftest.
$ac_objext conftest
$ac_exeext
14139 if { (ac_try
="$ac_link"
14140 case "(($ac_try" in
14141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_link") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest$ac_exeext &&
14155 $as_test_x conftest$ac_exeext; then
14156 ac_cv_lib_posix1e_acl_get_file=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_posix1e_acl_get_file=no
14164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14169 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14170 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14171 LIBS="$LIBS -lposix1e"
14173 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14174 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14175 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
14178 ac_check_lib_save_LIBS=$LIBS
14180 cat >conftest.$ac_ext <<_ACEOF
14183 cat confdefs.h >>conftest.$ac_ext
14184 cat >>conftest.$ac_ext <<_ACEOF
14185 /* end confdefs.h. */
14187 /* Override any GCC internal prototype to avoid an error.
14188 Use char because int might match the return type of a GCC
14189 builtin and then its argument prototype would still apply. */
14193 char acl_get_file ();
14197 return acl_get_file ();
14202 rm -f conftest.$ac_objext conftest$ac_exeext
14203 if { (ac_try="$ac_link"
14204 case "(($ac_try" in
14205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14206 *) ac_try_echo
=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1
>conftest.err
14213 cat conftest.err
>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest
$ac_exeext &&
14219 $as_test_x conftest
$ac_exeext; then
14220 ac_cv_lib_acl_acl_get_file
=yes
14222 echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.
$ac_ext >&5
14225 ac_cv_lib_acl_acl_get_file
=no
14228 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14229 conftest
$ac_exeext conftest.
$ac_ext
14230 LIBS
=$ac_check_lib_save_LIBS
14232 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14233 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14234 if test $ac_cv_lib_acl_acl_get_file = yes; then
14236 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14237 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14238 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 ac_check_lib_save_LIBS
=$LIBS
14242 LIBS
="-lattr $LIBS"
14243 cat >conftest.
$ac_ext <<_ACEOF
14246 cat confdefs.h
>>conftest.
$ac_ext
14247 cat >>conftest.
$ac_ext <<_ACEOF
14248 /* end confdefs.h. */
14250 /* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14260 return fgetxattr ();
14265 rm -f conftest.
$ac_objext conftest
$ac_exeext
14266 if { (ac_try
="$ac_link"
14267 case "(($ac_try" in
14268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_link") 2>conftest.er1
14274 grep -v '^ *+' conftest.er1 >conftest.err
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } && {
14279 test -z "$ac_c_werror_flag" ||
14280 test ! -s conftest.err
14281 } && test -s conftest$ac_exeext &&
14282 $as_test_x conftest$ac_exeext; then
14283 ac_cv_lib_attr_fgetxattr=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14288 ac_cv_lib_attr_fgetxattr=no
14291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14292 conftest$ac_exeext conftest.$ac_ext
14293 LIBS=$ac_check_lib_save_LIBS
14295 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14296 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14297 if test $ac_cv_lib_attr_fgetxattr = yes; then
14298 LIBS="$LIBS -lattr"
14306 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14307 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14308 cat >conftest.$ac_ext <<_ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14315 #include <sys/types.h>
14316 #ifdef HAVE_SYS_ACL_H
14317 # include <sys/acl.h>
14323 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14324 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14334 *) ac_try_echo
=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_link") 2>conftest.er1
14339 grep -v '^ *+' conftest.er1
>conftest.err
14341 cat conftest.err
>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } && {
14344 test -z "$ac_c_werror_flag" ||
14345 test ! -s conftest.err
14346 } && test -s conftest
$ac_exeext &&
14347 $as_test_x conftest
$ac_exeext; then
14348 { echo "$as_me:$LINENO: result: yes" >&5
14349 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14350 #define HAVE_POSIX_ACL 1
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.
$ac_ext >&5
14357 { echo "$as_me:$LINENO: result: no" >&5
14358 echo "${ECHO_T}no" >&6; }
14361 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14362 conftest
$ac_exeext conftest.
$ac_ext
14364 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14365 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14366 cat >conftest.
$ac_ext <<_ACEOF
14369 cat confdefs.h
>>conftest.
$ac_ext
14370 cat >>conftest.
$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14373 #ifdef HAVE_SYS_ACL_H
14374 # include <sys/acl.h>
14379 acl("foo", GETACLCNT, 0, NULL);
14385 rm -f conftest.
$ac_objext conftest
$ac_exeext
14386 if { (ac_try
="$ac_link"
14387 case "(($ac_try" in
14388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_link") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && {
14399 test -z "$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14401 } && test -s conftest$ac_exeext &&
14402 $as_test_x conftest$ac_exeext; then
14403 { echo "$as_me:$LINENO: result: yes" >&5
14404 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_SOLARIS_ACL 1
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 { echo "$as_me:$LINENO: result: no" >&5
14413 echo "${ECHO_T}no" >&6; }
14416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14417 conftest$ac_exeext conftest.$ac_ext
14419 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14420 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14421 cat >conftest.$ac_ext <<_ACEOF
14424 cat confdefs.h >>conftest.$ac_ext
14425 cat >>conftest.$ac_ext <<_ACEOF
14426 /* end confdefs.h. */
14429 # include <stdlib.h>
14430 # include <stddef.h>
14432 #ifdef HAVE_SYS_ACL_H
14433 # include <sys/acl.h>
14435 #ifdef HAVE_SYS_ACCESS_H
14436 # include <sys/access.h>
14438 #define _ALL_SOURCE
14440 #include <sys/stat.h>
14443 struct acl *aclent;
14447 aclsize = sizeof(struct acl);
14448 aclent = (void *)malloc(aclsize);
14449 statacl("foo", STX_NORMAL, aclent, aclsize);
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14459 *) ac_try_echo
=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1
>conftest.err
14466 cat conftest.err
>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest
$ac_exeext &&
14472 $as_test_x conftest
$ac_exeext; then
14473 { echo "$as_me:$LINENO: result: yes" >&5
14474 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14475 #define HAVE_AIX_ACL 1
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.
$ac_ext >&5
14482 { echo "$as_me:$LINENO: result: no" >&5
14483 echo "${ECHO_T}no" >&6; }
14486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14487 conftest
$ac_exeext conftest.
$ac_ext
14489 { echo "$as_me:$LINENO: result: yes" >&5
14490 echo "${ECHO_T}yes" >&6; }
14493 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14494 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14495 # Check whether --enable-gpm was given.
14496 if test "${enable_gpm+set}" = set; then
14497 enableval
=$enable_gpm;
14503 if test "$enable_gpm" = "yes"; then
14504 { echo "$as_me:$LINENO: result: no" >&5
14505 echo "${ECHO_T}no" >&6; }
14506 { echo "$as_me:$LINENO: checking for gpm" >&5
14507 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14508 if test "${vi_cv_have_gpm+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 olibs
="$LIBS" ; LIBS
="-lgpm"
14512 cat >conftest.
$ac_ext <<_ACEOF
14515 cat confdefs.h
>>conftest.
$ac_ext
14516 cat >>conftest.
$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 #include <linux/keyboard.h>
14523 Gpm_GetLibVersion(NULL);
14528 rm -f conftest.
$ac_objext conftest
$ac_exeext
14529 if { (ac_try
="$ac_link"
14530 case "(($ac_try" in
14531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_link") 2>conftest.er1
14537 grep -v '^ *+' conftest.er1 >conftest.err
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest$ac_exeext &&
14545 $as_test_x conftest$ac_exeext; then
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14555 conftest$ac_exeext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14560 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14561 if test $vi_cv_have_gpm = yes; then
14563 cat >>confdefs.h <<\_ACEOF
14569 { echo "$as_me:$LINENO: result: yes" >&5
14570 echo "${ECHO_T}yes" >&6; }
14573 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14574 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14575 # Check whether --enable-sysmouse was given.
14576 if test "${enable_sysmouse+set}" = set; then
14577 enableval=$enable_sysmouse;
14579 enable_sysmouse="yes"
14583 if test "$enable_sysmouse" = "yes"; then
14584 { echo "$as_me:$LINENO: result: no" >&5
14585 echo "${ECHO_T}no" >&6; }
14586 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14587 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14588 if test "${vi_cv_have_sysmouse+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #include <sys/consio.h>
14598 #include <signal.h>
14599 #include <sys/fbio.h>
14603 struct mouse_info mouse;
14604 mouse.operation = MOUSE_MODE;
14605 mouse.operation = MOUSE_SHOW;
14606 mouse.u.mode.mode = 0;
14607 mouse.u.mode.signal = SIGUSR2;
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (ac_try="$ac_link"
14614 case "(($ac_try" in
14615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14616 *) ac_try_echo
=$ac_try;;
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_link") 2>conftest.er1
14621 grep -v '^ *+' conftest.er1
>conftest.err
14623 cat conftest.err
>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest
$ac_exeext &&
14629 $as_test_x conftest
$ac_exeext; then
14630 vi_cv_have_sysmouse
=yes
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.
$ac_ext >&5
14635 vi_cv_have_sysmouse
=no
14638 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14639 conftest
$ac_exeext conftest.
$ac_ext
14642 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14643 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14644 if test $vi_cv_have_sysmouse = yes; then
14645 cat >>confdefs.h
<<\_ACEOF
14646 #define HAVE_SYSMOUSE 1
14651 { echo "$as_me:$LINENO: result: yes" >&5
14652 echo "${ECHO_T}yes" >&6; }
14655 { echo "$as_me:$LINENO: checking for rename" >&5
14656 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14657 cat >conftest.
$ac_ext <<_ACEOF
14660 cat confdefs.h
>>conftest.
$ac_ext
14661 cat >>conftest.
$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14667 rename("this", "that")
14672 rm -f conftest.
$ac_objext conftest
$ac_exeext
14673 if { (ac_try
="$ac_link"
14674 case "(($ac_try" in
14675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_link") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } && {
14686 test -z "$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14688 } && test -s conftest$ac_exeext &&
14689 $as_test_x conftest$ac_exeext; then
14690 { echo "$as_me:$LINENO: result: yes" >&5
14691 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14692 #define HAVE_RENAME 1
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 { echo "$as_me:$LINENO: result: no" >&5
14700 echo "${ECHO_T}no" >&6; }
14703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14704 conftest$ac_exeext conftest.$ac_ext
14706 { echo "$as_me:$LINENO: checking for sysctl" >&5
14707 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 #include <sys/types.h>
14715 #include <sys/sysctl.h>
14723 mib[1] = HW_USERMEM;
14725 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14731 rm -f conftest.$ac_objext
14732 if { (ac_try="$ac_compile"
14733 case "(($ac_try" in
14734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14735 *) ac_try_echo
=$ac_try;;
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_compile") 2>conftest.er1
14740 grep -v '^ *+' conftest.er1
>conftest.err
14742 cat conftest.err
>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } && {
14745 test -z "$ac_c_werror_flag" ||
14746 test ! -s conftest.err
14747 } && test -s conftest.
$ac_objext; then
14748 { echo "$as_me:$LINENO: result: yes" >&5
14749 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14750 #define HAVE_SYSCTL 1
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.
$ac_ext >&5
14757 { echo "$as_me:$LINENO: result: not usable" >&5
14758 echo "${ECHO_T}not usable" >&6; }
14761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14763 { echo "$as_me:$LINENO: checking for sysinfo" >&5
14764 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
14765 cat >conftest.
$ac_ext <<_ACEOF
14768 cat confdefs.h
>>conftest.
$ac_ext
14769 cat >>conftest.
$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 #include <sys/types.h>
14772 #include <sys/sysinfo.h>
14776 struct sysinfo sinfo;
14779 (void)sysinfo(&sinfo);
14780 t = sinfo.totalram;
14786 rm -f conftest.
$ac_objext
14787 if { (ac_try
="$ac_compile"
14788 case "(($ac_try" in
14789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14793 (eval "$ac_compile") 2>conftest.er1
14795 grep -v '^ *+' conftest.er1 >conftest.err
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } && {
14800 test -z "$ac_c_werror_flag" ||
14801 test ! -s conftest.err
14802 } && test -s conftest.$ac_objext; then
14803 { echo "$as_me:$LINENO: result: yes" >&5
14804 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14805 #define HAVE_SYSINFO 1
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 { echo "$as_me:$LINENO: result: not usable" >&5
14813 echo "${ECHO_T}not usable" >&6; }
14816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
14819 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14826 #include <sys/types.h>
14827 #include <sys/sysinfo.h>
14831 struct sysinfo sinfo;
14832 sinfo.mem_unit = 1;
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14842 *) ac_try_echo
=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1
>conftest.err
14849 cat conftest.err
>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.
$ac_objext; then
14855 { echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14857 #define HAVE_SYSINFO_MEM_UNIT 1
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.
$ac_ext >&5
14864 { echo "$as_me:$LINENO: result: no" >&5
14865 echo "${ECHO_T}no" >&6; }
14868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14870 { echo "$as_me:$LINENO: checking for sysconf" >&5
14871 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
14872 cat >conftest.
$ac_ext <<_ACEOF
14875 cat confdefs.h
>>conftest.
$ac_ext
14876 cat >>conftest.
$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 #include <unistd.h>
14882 (void)sysconf(_SC_PAGESIZE);
14883 (void)sysconf(_SC_PHYS_PAGES);
14889 rm -f conftest.
$ac_objext
14890 if { (ac_try
="$ac_compile"
14891 case "(($ac_try" in
14892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_compile") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1 >conftest.err
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && {
14903 test -z "$ac_c_werror_flag" ||
14904 test ! -s conftest.err
14905 } && test -s conftest.$ac_objext; then
14906 { echo "$as_me:$LINENO: result: yes" >&5
14907 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_SYSCONF 1
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 { echo "$as_me:$LINENO: result: not usable" >&5
14916 echo "${ECHO_T}not usable" >&6; }
14919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 { echo "$as_me:$LINENO: checking size of int" >&5
14923 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14924 if test "${ac_cv_sizeof_int+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14927 if test "$cross_compiling" = yes; then
14928 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14929 echo "$as_me: error: failed to compile test program" >&2;}
14930 { (exit 1); exit 1; }; }
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14941 # include <stdlib.h>
14942 # include <stddef.h>
14946 FILE *f=fopen("conftestval", "w");
14948 fprintf(f, "%d\n", (int)sizeof(int));
14952 rm -f conftest$ac_exeext
14953 if { (ac_try="$ac_link"
14954 case "(($ac_try" in
14955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14956 *) ac_try_echo
=$ac_try;;
14958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14959 (eval "$ac_link") 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14963 { (case "(($ac_try" in
14964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 ac_cv_sizeof_int=`cat conftestval
`
14974 echo "$as_me: program exited with status $ac_status" >&5
14975 echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14978 ( exit $ac_status )
14981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14987 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14988 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14989 cat >>confdefs.h <<_ACEOF
14990 #define SIZEOF_INT $ac_cv_sizeof_int
14996 #include "confdefs.h"
14997 #ifdef HAVE_STRING_H
14998 # include <string.h>
15001 # include <stdlib.h>
15002 # include <stddef.h>
15006 strcpy(buf, "abcdefghi");
15007 mch_memmove(buf, buf + 2, 3);
15008 if (strncmp(buf, "ababcf", 6))
15010 strcpy(buf, "abcdefghi");
15011 mch_memmove(buf + 2, buf, 3);
15012 if (strncmp(buf, "cdedef", 6))
15014 exit(0); /* libc version works properly. */
15017 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15018 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15019 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 if test "$cross_compiling" = yes; then
15025 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15026 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15027 { (exit 1); exit 1; }; }
15030 cat >conftest.$ac_ext <<_ACEOF
15031 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15033 rm -f conftest$ac_exeext
15034 if { (ac_try="$ac_link"
15035 case "(($ac_try" in
15036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15037 *) ac_try_echo
=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15044 { (case "(($ac_try" in
15045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15046 *) ac_try_echo=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_try") 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15054 vim_cv_memmove_handles_overlap=yes
15057 echo "$as_me: program exited with status $ac_status" >&5
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15061 ( exit $ac_status )
15063 vim_cv_memmove_handles_overlap=no
15066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15073 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15075 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15076 cat >>confdefs.h <<\_ACEOF
15077 #define USEMEMMOVE 1
15081 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15082 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15083 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 if test "$cross_compiling" = yes; then
15089 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15090 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15091 { (exit 1); exit 1; }; }
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15097 rm -f conftest$ac_exeext
15098 if { (ac_try="$ac_link"
15099 case "(($ac_try" in
15100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15101 *) ac_try_echo
=$ac_try;;
15103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104 (eval "$ac_link") 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15108 { (case "(($ac_try" in
15109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_try") 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
15118 vim_cv_bcopy_handles_overlap=yes
15121 echo "$as_me: program exited with status $ac_status" >&5
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 ( exit $ac_status )
15127 vim_cv_bcopy_handles_overlap=no
15130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15136 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15137 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15139 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15140 cat >>confdefs.h <<\_ACEOF
15145 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15146 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15147 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 if test "$cross_compiling" = yes; then
15153 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15154 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15155 { (exit 1); exit 1; }; }
15158 cat >conftest.$ac_ext <<_ACEOF
15159 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15161 rm -f conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15165 *) ac_try_echo
=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_link") 2>&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15172 { (case "(($ac_try" in
15173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_try") 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15182 vim_cv_memcpy_handles_overlap=yes
15185 echo "$as_me: program exited with status $ac_status" >&5
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ( exit $ac_status )
15191 vim_cv_memcpy_handles_overlap=no
15194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15200 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15201 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15203 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15204 cat >>confdefs.h <<\_ACEOF
15205 #define USEMEMCPY 1
15214 if test "$enable_multibyte" = "yes"; then
15215 cflags_save=$CFLAGS
15216 ldflags_save=$LDFLAGS
15217 if test "x$x_includes" != "xNONE" ; then
15218 CFLAGS="$CFLAGS -I$x_includes"
15219 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15220 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15221 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15222 cat >conftest.$ac_ext <<_ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15228 #include <X11/Xlocale.h>
15237 rm -f conftest.$ac_objext
15238 if { (ac_try="$ac_compile"
15239 case "(($ac_try" in
15240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15241 *) ac_try_echo
=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_compile") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1
>conftest.err
15248 cat conftest.err
>&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest.
$ac_objext; then
15254 cat >conftest.
$ac_ext <<_ACEOF
15257 cat confdefs.h
>>conftest.
$ac_ext
15258 cat >>conftest.
$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 /* Override any GCC internal prototype to avoid an error.
15262 Use char because int might match the return type of a GCC
15263 builtin and then its argument prototype would still apply. */
15267 char _Xsetlocale ();
15271 return _Xsetlocale ();
15276 rm -f conftest.
$ac_objext conftest
$ac_exeext
15277 if { (ac_try
="$ac_link"
15278 case "(($ac_try" in
15279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15285 grep -v '^ *+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 { echo "$as_me:$LINENO: result: yes" >&5
15295 echo "${ECHO_T}yes" >&6; }
15296 cat >>confdefs.h <<\_ACEOF
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 { echo "$as_me:$LINENO: result: no" >&5
15305 echo "${ECHO_T}no" >&6; }
15308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15309 conftest$ac_exeext conftest.$ac_ext
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 { echo "$as_me:$LINENO: result: no" >&5
15315 echo "${ECHO_T}no" >&6; }
15318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15320 CFLAGS=$cflags_save
15321 LDFLAGS=$ldflags_save
15324 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15325 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15326 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 ac_check_lib_save_LIBS=$LIBS
15330 LIBS="-lxpg4 $LIBS"
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15338 /* Override any GCC internal prototype to avoid an error.
15339 Use char because int might match the return type of a GCC
15340 builtin and then its argument prototype would still apply. */
15344 char _xpg4_setrunelocale ();
15348 return _xpg4_setrunelocale ();
15353 rm -f conftest.$ac_objext conftest$ac_exeext
15354 if { (ac_try="$ac_link"
15355 case "(($ac_try" in
15356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15357 *) ac_try_echo
=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_link") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1
>conftest.err
15364 cat conftest.err
>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } && {
15367 test -z "$ac_c_werror_flag" ||
15368 test ! -s conftest.err
15369 } && test -s conftest
$ac_exeext &&
15370 $as_test_x conftest
$ac_exeext; then
15371 ac_cv_lib_xpg4__xpg4_setrunelocale
=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.
$ac_ext >&5
15376 ac_cv_lib_xpg4__xpg4_setrunelocale
=no
15379 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15380 conftest
$ac_exeext conftest.
$ac_ext
15381 LIBS
=$ac_check_lib_save_LIBS
15383 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15384 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15385 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15386 LIBS
="$LIBS -lxpg4"
15390 { echo "$as_me:$LINENO: checking how to create tags" >&5
15391 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15392 test -f tags
&& mv tags tags.save
15393 if (eval ctags
--version /dev
/null |
grep Exuberant
) < /dev
/null
1>&5 2>&1; then
15394 TAGPRG
="ctags -I INIT+ --fields=+S"
15397 (eval etags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags"
15398 (eval etags
-c /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags -c"
15399 (eval ctags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags"
15400 (eval ctags
-t /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -t"
15401 (eval ctags
-ts /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -ts"
15402 (eval ctags
-tvs /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -tvs"
15403 (eval ctags
-i+m
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -i+m"
15405 test -f tags.save
&& mv tags.save tags
15406 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15407 echo "${ECHO_T}$TAGPRG" >&6; }
15409 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15410 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15412 (eval MANPAGER
=cat PAGER
=cat man
-s 2 read) < /dev
/null
> /dev
/null
2>&5 && MANDEF
="man -s"
15413 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15414 echo "${ECHO_T}$MANDEF" >&6; }
15415 if test "$MANDEF" = "man -s"; then
15416 cat >>confdefs.h
<<\_ACEOF
15422 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15423 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15424 # Check whether --enable-nls was given.
15425 if test "${enable_nls+set}" = set; then
15426 enableval
=$enable_nls;
15432 if test "$enable_nls" = "yes"; then
15433 { echo "$as_me:$LINENO: result: no" >&5
15434 echo "${ECHO_T}no" >&6; }
15436 INSTALL_LANGS
=install-languages
15438 INSTALL_TOOL_LANGS
=install-tool-languages
15441 # Extract the first word of "msgfmt", so it can be a program name with args.
15442 set dummy msgfmt
; ac_word
=$2
15443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15445 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 if test -n "$MSGFMT"; then
15449 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
15451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15452 for as_dir
in $PATH
15455 test -z "$as_dir" && as_dir
=.
15456 for ac_exec_ext
in '' $ac_executable_extensions; do
15457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15458 ac_cv_prog_MSGFMT
="msgfmt"
15459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15468 MSGFMT
=$ac_cv_prog_MSGFMT
15469 if test -n "$MSGFMT"; then
15470 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15471 echo "${ECHO_T}$MSGFMT" >&6; }
15473 { echo "$as_me:$LINENO: result: no" >&5
15474 echo "${ECHO_T}no" >&6; }
15478 { echo "$as_me:$LINENO: checking for NLS" >&5
15479 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15480 if test -f po
/Makefile
; then
15482 if test -n "$MSGFMT"; then
15483 cat >conftest.
$ac_ext <<_ACEOF
15486 cat confdefs.h
>>conftest.
$ac_ext
15487 cat >>conftest.
$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 #include <libintl.h>
15498 rm -f conftest.
$ac_objext conftest
$ac_exeext
15499 if { (ac_try
="$ac_link"
15500 case "(($ac_try" in
15501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15507 grep -v '^ *+' conftest.er1 >conftest.err
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_c_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest$ac_exeext &&
15515 $as_test_x conftest$ac_exeext; then
15516 { echo "$as_me:$LINENO: result: gettext() works" >&5
15517 echo "${ECHO_T}gettext() works" >&6; }; have_gettext="yes"
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15523 LIBS="$LIBS -lintl"
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <libintl.h>
15539 rm -f conftest.$ac_objext conftest$ac_exeext
15540 if { (ac_try="$ac_link"
15541 case "(($ac_try" in
15542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15543 *) ac_try_echo
=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_link") 2>conftest.er1
15548 grep -v '^ *+' conftest.er1
>conftest.err
15550 cat conftest.err
>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } && {
15553 test -z "$ac_c_werror_flag" ||
15554 test ! -s conftest.err
15555 } && test -s conftest
$ac_exeext &&
15556 $as_test_x conftest
$ac_exeext; then
15557 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15558 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext
="yes"
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.
$ac_ext >&5
15563 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15564 echo "${ECHO_T}gettext() doesn't work" >&6; };
15568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15569 conftest
$ac_exeext conftest.
$ac_ext
15572 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15573 conftest
$ac_exeext conftest.
$ac_ext
15575 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15576 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15578 if test $have_gettext = "yes"; then
15579 cat >>confdefs.h
<<\_ACEOF
15580 #define HAVE_GETTEXT 1
15586 for ac_func
in bind_textdomain_codeset
15588 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15591 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15594 cat >conftest.
$ac_ext <<_ACEOF
15597 cat confdefs.h
>>conftest.
$ac_ext
15598 cat >>conftest.
$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15602 #define $ac_func innocuous_$ac_func
15604 /* System header to define __stub macros and hopefully few prototypes,
15605 which can conflict with char $ac_func (); below.
15606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15607 <limits.h> exists even on freestanding compilers. */
15610 # include <limits.h>
15612 # include <assert.h>
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15624 /* The GNU C library defines this for functions which it implements
15625 to always fail with ENOSYS. Some functions are actually named
15626 something starting with __ and the normal name is an alias. */
15627 #if defined __stub_$ac_func || defined __stub___$ac_func
15634 return $ac_func ();
15639 rm -f conftest.
$ac_objext conftest
$ac_exeext
15640 if { (ac_try
="$ac_link"
15641 case "(($ac_try" in
15642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_link") 2>conftest.er1
15648 grep -v '^ *+' conftest.er1 >conftest.err
15650 cat conftest.err >&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } && {
15653 test -z "$ac_c_werror_flag" ||
15654 test ! -s conftest.err
15655 } && test -s conftest$ac_exeext &&
15656 $as_test_x conftest$ac_exeext; then
15657 eval "$as_ac_var=yes"
15659 echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 eval "$as_ac_var=no"
15665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15666 conftest$ac_exeext conftest.$ac_ext
15668 ac_res=`eval echo '${'$as_ac_var'}'`
15669 { echo "$as_me:$LINENO: result: $ac_res" >&5
15670 echo "${ECHO_T}$ac_res" >&6; }
15671 if test `eval echo '${'$as_ac_var'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15679 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15680 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <libintl.h>
15688 extern int _nl_msg_cat_cntr;
15692 ++_nl_msg_cat_cntr;
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (ac_try="$ac_link"
15699 case "(($ac_try" in
15700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15701 *) ac_try_echo
=$ac_try;;
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_link") 2>conftest.er1
15706 grep -v '^ *+' conftest.er1
>conftest.err
15708 cat conftest.err
>&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && {
15711 test -z "$ac_c_werror_flag" ||
15712 test ! -s conftest.err
15713 } && test -s conftest
$ac_exeext &&
15714 $as_test_x conftest
$ac_exeext; then
15715 { echo "$as_me:$LINENO: result: yes" >&5
15716 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15717 #define HAVE_NL_MSG_CAT_CNTR 1
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.
$ac_ext >&5
15724 { echo "$as_me:$LINENO: result: no" >&5
15725 echo "${ECHO_T}no" >&6; }
15728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15729 conftest
$ac_exeext conftest.
$ac_ext
15732 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15733 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15736 { echo "$as_me:$LINENO: result: yes" >&5
15737 echo "${ECHO_T}yes" >&6; }
15740 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15741 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15742 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15743 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15747 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15749 # Is the header compilable?
15750 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15751 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
15752 cat >conftest.
$ac_ext <<_ACEOF
15755 cat confdefs.h
>>conftest.
$ac_ext
15756 cat >>conftest.
$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 $ac_includes_default
15761 rm -f conftest.
$ac_objext
15762 if { (ac_try
="$ac_compile"
15763 case "(($ac_try" in
15764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_compile") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest.$ac_objext; then
15778 ac_header_compiler=yes
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_compiler=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15788 echo "${ECHO_T}$ac_header_compiler" >&6; }
15790 # Is the header present?
15791 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15792 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
15793 cat >conftest.$ac_ext <<_ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15801 if { (ac_try="$ac_cpp conftest.$ac_ext"
15802 case "(($ac_try" in
15803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15804 *) ac_try_echo
=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1
>conftest.err
15811 cat conftest.err
>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } >/dev
/null
&& {
15814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15817 ac_header_preproc
=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.
$ac_ext >&5
15822 ac_header_preproc
=no
15825 rm -f conftest.err conftest.
$ac_ext
15826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15827 echo "${ECHO_T}$ac_header_preproc" >&6; }
15829 # So? What about this header?
15830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15832 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
15833 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
15835 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
15836 ac_header_preproc
=yes
15839 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
15840 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
15842 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
15844 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
15845 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
15846 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
15848 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
15850 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
15854 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15855 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15856 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 ac_cv_header_dlfcn_h
=$ac_header_preproc
15861 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15862 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15865 if test $ac_cv_header_dlfcn_h = yes; then
15868 if test "${ac_cv_header_dl_h+set}" = set; then
15869 { echo "$as_me:$LINENO: checking for dl.h" >&5
15870 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15871 if test "${ac_cv_header_dl_h+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15875 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15877 # Is the header compilable?
15878 { echo "$as_me:$LINENO: checking dl.h usability" >&5
15879 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
15880 cat >conftest.
$ac_ext <<_ACEOF
15883 cat confdefs.h
>>conftest.
$ac_ext
15884 cat >>conftest.
$ac_ext <<_ACEOF
15885 /* end confdefs.h. */
15886 $ac_includes_default
15889 rm -f conftest.
$ac_objext
15890 if { (ac_try
="$ac_compile"
15891 case "(($ac_try" in
15892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15893 *) ac_try_echo=$ac_try;;
15895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15896 (eval "$ac_compile") 2>conftest.er1
15898 grep -v '^ *+' conftest.er1 >conftest.err
15900 cat conftest.err >&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
15905 } && test -s conftest.$ac_objext; then
15906 ac_header_compiler=yes
15908 echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 ac_header_compiler=no
15914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15916 echo "${ECHO_T}$ac_header_compiler" >&6; }
15918 # Is the header present?
15919 { echo "$as_me:$LINENO: checking dl.h presence" >&5
15920 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15929 if { (ac_try="$ac_cpp conftest.$ac_ext"
15930 case "(($ac_try" in
15931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15932 *) ac_try_echo
=$ac_try;;
15934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15937 grep -v '^ *+' conftest.er1
>conftest.err
15939 cat conftest.err
>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } >/dev
/null
&& {
15942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15943 test ! -s conftest.err
15945 ac_header_preproc
=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.
$ac_ext >&5
15950 ac_header_preproc
=no
15953 rm -f conftest.err conftest.
$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955 echo "${ECHO_T}$ac_header_preproc" >&6; }
15957 # So? What about this header?
15958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15960 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15961 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
15963 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc
=yes
15967 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
15968 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
15970 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
15972 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
15974 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
15976 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
15978 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
15982 { echo "$as_me:$LINENO: checking for dl.h" >&5
15983 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
15984 if test "${ac_cv_header_dl_h+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 ac_cv_header_dl_h
=$ac_header_preproc
15989 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15990 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
15993 if test $ac_cv_header_dl_h = yes; then
16001 if test x
${DLL} = xdlfcn.h
; then
16003 cat >>confdefs.h
<<\_ACEOF
16004 #define HAVE_DLFCN_H 1
16007 { echo "$as_me:$LINENO: checking for dlopen()" >&5
16008 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
16009 cat >conftest.
$ac_ext <<_ACEOF
16012 cat confdefs.h
>>conftest.
$ac_ext
16013 cat >>conftest.
$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16020 extern void* dlopen();
16027 rm -f conftest.
$ac_objext conftest
$ac_exeext
16028 if { (ac_try
="$ac_link"
16029 case "(($ac_try" in
16030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
16036 grep -v '^ *+' conftest.er1 >conftest.err
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } && {
16041 test -z "$ac_c_werror_flag" ||
16042 test ! -s conftest.err
16043 } && test -s conftest$ac_exeext &&
16044 $as_test_x conftest$ac_exeext; then
16045 { echo "$as_me:$LINENO: result: yes" >&5
16046 echo "${ECHO_T}yes" >&6; };
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE_DLOPEN 1
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 { echo "$as_me:$LINENO: result: no" >&5
16057 echo "${ECHO_T}no" >&6; };
16058 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16059 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16073 extern void* dlopen();
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16084 *) ac_try_echo
=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_link") 2>conftest.er1
16089 grep -v '^ *+' conftest.er1
>conftest.err
16091 cat conftest.err
>&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } && {
16094 test -z "$ac_c_werror_flag" ||
16095 test ! -s conftest.err
16096 } && test -s conftest
$ac_exeext &&
16097 $as_test_x conftest
$ac_exeext; then
16098 { echo "$as_me:$LINENO: result: yes" >&5
16099 echo "${ECHO_T}yes" >&6; };
16101 cat >>confdefs.h
<<\_ACEOF
16102 #define HAVE_DLOPEN 1
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16109 { echo "$as_me:$LINENO: result: no" >&5
16110 echo "${ECHO_T}no" >&6; };
16114 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16115 conftest
$ac_exeext conftest.
$ac_ext
16118 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16119 conftest
$ac_exeext conftest.
$ac_ext
16120 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16121 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16122 cat >conftest.
$ac_ext <<_ACEOF
16125 cat confdefs.h
>>conftest.
$ac_ext
16126 cat >>conftest.
$ac_ext <<_ACEOF
16127 /* end confdefs.h. */
16133 extern void* dlsym();
16140 rm -f conftest.
$ac_objext conftest
$ac_exeext
16141 if { (ac_try
="$ac_link"
16142 case "(($ac_try" in
16143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16144 *) ac_try_echo=$ac_try;;
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147 (eval "$ac_link") 2>conftest.er1
16149 grep -v '^ *+' conftest.er1 >conftest.err
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } && {
16154 test -z "$ac_c_werror_flag" ||
16155 test ! -s conftest.err
16156 } && test -s conftest$ac_exeext &&
16157 $as_test_x conftest$ac_exeext; then
16158 { echo "$as_me:$LINENO: result: yes" >&5
16159 echo "${ECHO_T}yes" >&6; };
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_DLSYM 1
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 { echo "$as_me:$LINENO: result: no" >&5
16170 echo "${ECHO_T}no" >&6; };
16171 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16172 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16186 extern void* dlsym();
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (ac_try="$ac_link"
16195 case "(($ac_try" in
16196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16197 *) ac_try_echo
=$ac_try;;
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_link") 2>conftest.er1
16202 grep -v '^ *+' conftest.er1
>conftest.err
16204 cat conftest.err
>&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && {
16207 test -z "$ac_c_werror_flag" ||
16208 test ! -s conftest.err
16209 } && test -s conftest
$ac_exeext &&
16210 $as_test_x conftest
$ac_exeext; then
16211 { echo "$as_me:$LINENO: result: yes" >&5
16212 echo "${ECHO_T}yes" >&6; };
16214 cat >>confdefs.h
<<\_ACEOF
16215 #define HAVE_DLSYM 1
16219 echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.
$ac_ext >&5
16222 { echo "$as_me:$LINENO: result: no" >&5
16223 echo "${ECHO_T}no" >&6; };
16227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16228 conftest
$ac_exeext conftest.
$ac_ext
16231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16232 conftest
$ac_exeext conftest.
$ac_ext
16233 elif test x
${DLL} = xdl.h
; then
16235 cat >>confdefs.h
<<\_ACEOF
16236 #define HAVE_DL_H 1
16239 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16240 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
16241 cat >conftest.
$ac_ext <<_ACEOF
16244 cat confdefs.h
>>conftest.
$ac_ext
16245 cat >>conftest.
$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16252 extern void* shl_load();
16259 rm -f conftest.
$ac_objext conftest
$ac_exeext
16260 if { (ac_try
="$ac_link"
16261 case "(($ac_try" in
16262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_link") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } && {
16273 test -z "$ac_c_werror_flag" ||
16274 test ! -s conftest.err
16275 } && test -s conftest$ac_exeext &&
16276 $as_test_x conftest$ac_exeext; then
16277 { echo "$as_me:$LINENO: result: yes" >&5
16278 echo "${ECHO_T}yes" >&6; };
16280 cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_SHL_LOAD 1
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16288 { echo "$as_me:$LINENO: result: no" >&5
16289 echo "${ECHO_T}no" >&6; };
16290 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16291 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16305 extern void* shl_load();
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16316 *) ac_try_echo
=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1
>conftest.err
16323 cat conftest.err
>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest
$ac_exeext &&
16329 $as_test_x conftest
$ac_exeext; then
16330 { echo "$as_me:$LINENO: result: yes" >&5
16331 echo "${ECHO_T}yes" >&6; };
16333 cat >>confdefs.h
<<\_ACEOF
16334 #define HAVE_SHL_LOAD 1
16338 echo "$as_me: failed program was:" >&5
16339 sed 's/^/| /' conftest.
$ac_ext >&5
16341 { echo "$as_me:$LINENO: result: no" >&5
16342 echo "${ECHO_T}no" >&6; };
16346 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16347 conftest
$ac_exeext conftest.
$ac_ext
16350 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16351 conftest
$ac_exeext conftest.
$ac_ext
16354 for ac_header
in setjmp.h
16356 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16357 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16360 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 ac_res
=`eval echo '${'$as_ac_Header'}'`
16364 { echo "$as_me:$LINENO: result: $ac_res" >&5
16365 echo "${ECHO_T}$ac_res" >&6; }
16367 # Is the header compilable?
16368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16370 cat >conftest.
$ac_ext <<_ACEOF
16373 cat confdefs.h
>>conftest.
$ac_ext
16374 cat >>conftest.
$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 $ac_includes_default
16377 #include <$ac_header>
16379 rm -f conftest.
$ac_objext
16380 if { (ac_try
="$ac_compile"
16381 case "(($ac_try" in
16382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16388 grep -v '^ *+' conftest.er1 >conftest.err
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 ac_header_compiler=yes
16398 echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_header_compiler=no
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16406 echo "${ECHO_T}$ac_header_compiler" >&6; }
16408 # Is the header present?
16409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16411 cat >conftest.$ac_ext <<_ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 #include <$ac_header>
16419 if { (ac_try="$ac_cpp conftest.$ac_ext"
16420 case "(($ac_try" in
16421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16422 *) ac_try_echo
=$ac_try;;
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1
>conftest.err
16429 cat conftest.err
>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } >/dev
/null
&& {
16432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16435 ac_header_preproc
=yes
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.
$ac_ext >&5
16440 ac_header_preproc
=no
16443 rm -f conftest.err conftest.
$ac_ext
16444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16445 echo "${ECHO_T}$ac_header_preproc" >&6; }
16447 # So? What about this header?
16448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16454 ac_header_preproc
=yes
16457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16474 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 eval "$as_ac_Header=\$ac_header_preproc"
16479 ac_res
=`eval echo '${'$as_ac_Header'}'`
16480 { echo "$as_me:$LINENO: result: $ac_res" >&5
16481 echo "${ECHO_T}$ac_res" >&6; }
16484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16485 cat >>confdefs.h
<<_ACEOF
16486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16494 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16495 if echo $LIBS |
grep -e '-ldl' >/dev
/null
; then
16496 LIBS
=`echo $LIBS | sed s/-ldl//`
16497 PERL_LIBS
="$PERL_LIBS -ldl"
16501 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16502 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16503 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16504 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16505 if test "x$enable_multibyte" = "xyes" ||
test "x$features" = "xbig" \
16506 ||
test "x$features" = "xhuge"; then
16507 LIBS
="$LIBS -framework Carbon"
16508 { echo "$as_me:$LINENO: result: yes" >&5
16509 echo "${ECHO_T}yes" >&6; }
16511 { echo "$as_me:$LINENO: result: no" >&5
16512 echo "${ECHO_T}no" >&6; }
16516 if test "x$MACOSX" = "xyes"; then
16517 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16518 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16520 # Check whether --with-xcodecfg was given.
16521 if test "${with_xcodecfg+set}" = set; then
16522 withval
=$with_xcodecfg; XCODEFLAGS
="$XCODEFLAGS -configuration $withval"
16523 { echo "$as_me:$LINENO: result: $withval" >&5
16524 echo "${ECHO_T}$withval" >&6; }
16526 { echo "$as_me:$LINENO: result: using default" >&5
16527 echo "${ECHO_T}using default" >&6; }
16535 DEPEND_CFLAGS_FILTER
=
16536 if test "$GCC" = yes; then
16537 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16538 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16539 gccmajor
=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
16540 if test "$gccmajor" -gt "2"; then
16541 DEPEND_CFLAGS_FILTER
="| sed 's+-I */+-isystem /+g'"
16542 { echo "$as_me:$LINENO: result: yes" >&5
16543 echo "${ECHO_T}yes" >&6; }
16545 { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16548 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16549 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16550 if test "$gccmajor" -gt "3"; then
16551 CFLAGS
=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
16552 { echo "$as_me:$LINENO: result: yes" >&5
16553 echo "${ECHO_T}yes" >&6; }
16555 { echo "$as_me:$LINENO: result: no" >&5
16556 echo "${ECHO_T}no" >&6; }
16561 ac_config_files
="$ac_config_files auto/config.mk:config.mk.in"
16563 cat >confcache
<<\_ACEOF
16564 # This file is a shell script that caches the results of configure
16565 # tests run on this system so they can be shared between configure
16566 # scripts and configure runs, see configure's option --config-cache.
16567 # It is not useful on other systems. If it contains results you don't
16568 # want to keep, you may remove or edit it.
16570 # config.status only pays attention to the cache file if you give it
16571 # the --recheck option to rerun configure.
16573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16575 # following values.
16579 # The following way of writing the cache mishandles newlines in values,
16580 # but we know of no workaround that is simple, portable, and efficient.
16581 # So, we kill variables containing newlines.
16582 # Ultrix sh set writes to stderr and can't be redirected directly,
16583 # and sets the high bit in the cache file unless we assign to the vars.
16585 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16586 eval ac_val
=\$
$ac_var
16590 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16594 _ | IFS | as_nl
) ;; #(
16595 *) $as_unset $ac_var ;;
16601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16602 *${as_nl}ac_space
=\
*)
16603 # `set' does not quote correctly, so add quotes (double-quote
16604 # substitution turns \\\\ into \\, and sed turns \\ into \).
16607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16610 # `set' quotes correctly as required by POSIX, so do not add quotes.
16611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16624 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16625 if test -w "$cache_file"; then
16626 test "x$cache_file" != "x/dev/null" &&
16627 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16628 echo "$as_me: updating cache $cache_file" >&6;}
16629 cat confcache
>$cache_file
16631 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16632 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16637 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16638 # Let make expand exec_prefix.
16639 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16641 DEFS
=-DHAVE_CONFIG_H
16645 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16646 # 1. Remove the extension, and $U if already installed.
16647 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16648 ac_i
=`echo "$ac_i" | sed "$ac_script"`
16649 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16650 # will be set to the directory where LIBOBJS objects are built.
16651 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16652 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16654 LIBOBJS
=$ac_libobjs
16656 LTLIBOBJS
=$ac_ltlibobjs
16660 : ${CONFIG_STATUS=./config.status}
16661 ac_clean_files_save
=$ac_clean_files
16662 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16663 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16664 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16665 cat >$CONFIG_STATUS <<_ACEOF
16667 # Generated by $as_me.
16668 # Run this file to recreate the current configuration.
16669 # Compiler output produced by configure, useful for debugging
16670 # configure, is in config.log if it exists.
16673 ac_cs_recheck=false
16675 SHELL=\${CONFIG_SHELL-$SHELL}
16678 cat >>$CONFIG_STATUS <<\_ACEOF
16679 ## --------------------- ##
16680 ## M4sh Initialization. ##
16681 ## --------------------- ##
16683 # Be more Bourne compatible
16684 DUALCASE
=1; export DUALCASE
# for MKS sh
16685 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16688 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16689 # is contrary to our usage. Disable this feature.
16690 alias -g '${1+"$@"}'='"$@"'
16691 setopt NO_GLOB_SUBST
16693 case `(set -o) 2>/dev/null` in
16694 *posix
*) set -o posix
;;
16703 # Avoid depending upon Character Ranges.
16704 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16705 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16706 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16707 as_cr_digits
='0123456789'
16708 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16710 # The user is always right.
16711 if test "${PATH_SEPARATOR+set}" != set; then
16712 echo "#! /bin/sh" >conf$$.sh
16713 echo "exit 0" >>conf$$.sh
16715 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16723 # Support unset when possible.
16724 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16732 # We need space, tab and new line, in precisely that order. Quoting is
16733 # there to prevent editors from complaining about space-tab.
16734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16735 # splitting by setting IFS to empty value.)
16740 # Find who we are. Look in the path if we contain no directory separator.
16742 *[\\/]* ) as_myself
=$0 ;;
16743 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16744 for as_dir
in $PATH
16747 test -z "$as_dir" && as_dir
=.
16748 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16754 # We did not find ourselves, most probably we were run as `sh COMMAND'
16755 # in which case we are not to be found in the path.
16756 if test "x$as_myself" = x
; then
16759 if test ! -f "$as_myself"; then
16760 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16761 { (exit 1); exit 1; }
16764 # Work around bugs in pre-3.0 UWIN ksh.
16765 for as_var
in ENV MAIL MAILPATH
16766 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
16774 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16775 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16776 LC_TELEPHONE LC_TIME
16778 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16779 eval $as_var=C
; export $as_var
16781 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
16785 # Required to use basename.
16786 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16787 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16793 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16794 as_basename
=basename
16800 # Name of the executable.
16801 as_me
=`$as_basename -- "$0" ||
16802 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16803 X"$0" : 'X\(//\)$' \| \
16804 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16806 sed '/^.*\/\([^/][^/]*\)\/*$/{
16825 as_lineno_1
=$LINENO
16826 as_lineno_2
=$LINENO
16827 test "x$as_lineno_1" != "x$as_lineno_2" &&
16828 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
16830 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16831 # uniformly replaced by the line number. The first 'sed' inserts a
16832 # line-number line after each line using $LINENO; the second 'sed'
16833 # does the real work. The second script uses 'N' to pair each
16834 # line-number line with the line containing $LINENO, and appends
16835 # trailing '-' during substitution so that $LINENO is not a special
16836 # case at line end.
16837 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16838 # scripts with optimization help from Paolo Bonzini. Blame Lee
16839 # E. McMahon (1931-1989) for sed's syntax. :-)
16851 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16854 ' >$as_me.lineno
&&
16855 chmod +x
"$as_me.lineno" ||
16856 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16857 { (exit 1); exit 1; }; }
16859 # Don't try to exec as it changes $[0], causing all sort of problems
16860 # (the dirname of $[0] is not the place where we might find the
16861 # original and so on. Autoconf is especially sensitive to this).
16862 .
"./$as_me.lineno"
16863 # Exit status is that of the last command.
16868 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16874 ECHO_C
= ECHO_N
= ECHO_T
=
16875 case `echo -n x` in
16877 case `echo 'x\c'` in
16878 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16885 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16886 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16892 rm -f conf$$ conf$$.exe conf$$.
file
16893 if test -d conf$$.dir
; then
16894 rm -f conf$$.dir
/conf$$.
file
16900 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16902 # ... but there are two gotchas:
16903 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16904 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16905 # In both cases, we have to default to `cp -p'.
16906 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16908 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16913 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16914 rmdir conf$$.dir
2>/dev
/null
16916 if mkdir
-p .
2>/dev
/null
; then
16919 test -d .
/-p && rmdir .
/-p
16923 if test -x / >/dev
/null
2>&1; then
16924 as_test_x
='test -x'
16926 if ls -dL / >/dev
/null
2>&1; then
16933 if test -d "$1"; then
16939 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16940 ???[sx]*):;;*)false;;esac;fi
16944 as_executable_p
=$as_test_x
16946 # Sed expression to map a string onto a valid CPP name.
16947 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16949 # Sed expression to map a string onto a valid variable name.
16950 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16955 # Save the log message, to keep $[0] and so on meaningful, and to
16956 # report actual input values of CONFIG_FILES etc. instead of their
16957 # values after options handling.
16959 This file was extended by $as_me, which was
16960 generated by GNU Autoconf 2.61. Invocation command line was
16962 CONFIG_FILES = $CONFIG_FILES
16963 CONFIG_HEADERS = $CONFIG_HEADERS
16964 CONFIG_LINKS = $CONFIG_LINKS
16965 CONFIG_COMMANDS = $CONFIG_COMMANDS
16968 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16973 cat >>$CONFIG_STATUS <<_ACEOF
16974 # Files that config.status was made for.
16975 config_files="$ac_config_files"
16976 config_headers="$ac_config_headers"
16980 cat >>$CONFIG_STATUS <<\_ACEOF
16982 \`$as_me' instantiates files from templates according to the
16983 current configuration.
16985 Usage: $0 [OPTIONS] [FILE]...
16987 -h, --help print this help, then exit
16988 -V, --version print version number and configuration settings, then exit
16989 -q, --quiet do not print progress messages
16990 -d, --debug don't remove temporary files
16991 --recheck update $as_me by reconfiguring in the same conditions
16992 --file=FILE[:TEMPLATE]
16993 instantiate the configuration file FILE
16994 --header=FILE[:TEMPLATE]
16995 instantiate the configuration header FILE
16997 Configuration files:
17000 Configuration headers:
17003 Report bugs to <bug-autoconf@gnu.org>."
17006 cat >>$CONFIG_STATUS <<_ACEOF
17009 configured by $0, generated by GNU Autoconf 2.61,
17010 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17012 Copyright (C) 2006 Free Software Foundation, Inc.
17013 This config.status script is free software; the Free Software Foundation
17014 gives unlimited permission to copy, distribute and modify it."
17020 cat >>$CONFIG_STATUS <<\_ACEOF
17021 # If no file are specified by the user, then we need to provide default
17022 # value. By we need to know if files were specified by the user.
17028 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17029 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17040 # Handling of the options.
17041 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17043 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17044 echo "$ac_cs_version"; exit ;;
17045 --debug |
--debu |
--deb |
--de |
--d |
-d )
17047 --file |
--fil |
--fi |
--f )
17049 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17050 ac_need_defaults
=false
;;
17051 --header |
--heade |
--head |
--hea )
17053 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17054 ac_need_defaults
=false
;;
17056 # Conflict between --help and --header
17057 { echo "$as_me: error: ambiguous option: $1
17058 Try \`$0 --help' for more information." >&2
17059 { (exit 1); exit 1; }; };;
17060 --help |
--hel |
-h )
17061 echo "$ac_cs_usage"; exit ;;
17062 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17063 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17066 # This is an error.
17067 -*) { echo "$as_me: error: unrecognized option: $1
17068 Try \`$0 --help' for more information." >&2
17069 { (exit 1); exit 1; }; } ;;
17071 *) ac_config_targets
="$ac_config_targets $1"
17072 ac_need_defaults
=false
;;
17078 ac_configure_extra_args
=
17080 if $ac_cs_silent; then
17082 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17086 cat >>$CONFIG_STATUS <<_ACEOF
17087 if \$ac_cs_recheck; then
17088 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17089 CONFIG_SHELL=$SHELL
17090 export CONFIG_SHELL
17091 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17095 cat >>$CONFIG_STATUS <<\_ACEOF
17099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17100 ## Running $as_me. ##
17106 cat >>$CONFIG_STATUS <<_ACEOF
17109 cat >>$CONFIG_STATUS <<\_ACEOF
17111 # Handling of arguments.
17112 for ac_config_target
in $ac_config_targets
17114 case $ac_config_target in
17115 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17116 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17118 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17119 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17120 { (exit 1); exit 1; }; };;
17125 # If the user did not use the arguments to specify the items to instantiate,
17126 # then the envvar interface is used. Set only those that are not.
17127 # We use the long form for the default assignment because of an extremely
17128 # bizarre bug on SunOS 4.1.3.
17129 if $ac_need_defaults; then
17130 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17131 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17134 # Have a temporary directory for convenience. Make it in the build tree
17135 # simply because there is no reason against having it here, and in addition,
17136 # creating and moving files from /tmp can sometimes cause problems.
17137 # Hook for its removal unless debugging.
17138 # Note that there is a small window in which the directory will not be cleaned:
17139 # after its creation but before its name has been assigned to `$tmp'.
17143 trap 'exit_status=$?
17144 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17146 trap '{ (exit 1); exit 1; }' 1 2 13 15
17148 # Create a (secure) tmp directory for tmp files.
17151 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17152 test -n "$tmp" && test -d "$tmp"
17155 tmp
=.
/conf$$
-$RANDOM
17156 (umask 077 && mkdir
"$tmp")
17159 echo "$me: cannot create a temporary directory in ." >&2
17160 { (exit 1); exit 1; }
17164 # Set up the sed scripts for CONFIG_FILES section.
17167 # No need to generate the scripts if there are no CONFIG_FILES.
17168 # This happens for instance when ./config.status config.h
17169 if test -n "$CONFIG_FILES"; then
17176 for ac_last_try
in false false false false false
:; do
17177 cat >conf$
$subs.
sed <<_ACEOF
17178 SHELL!$SHELL$ac_delim
17179 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17180 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17181 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17182 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17183 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17184 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17185 exec_prefix!$exec_prefix$ac_delim
17186 prefix!$prefix$ac_delim
17187 program_transform_name!$program_transform_name$ac_delim
17188 bindir!$bindir$ac_delim
17189 sbindir!$sbindir$ac_delim
17190 libexecdir!$libexecdir$ac_delim
17191 datarootdir!$datarootdir$ac_delim
17192 datadir!$datadir$ac_delim
17193 sysconfdir!$sysconfdir$ac_delim
17194 sharedstatedir!$sharedstatedir$ac_delim
17195 localstatedir!$localstatedir$ac_delim
17196 includedir!$includedir$ac_delim
17197 oldincludedir!$oldincludedir$ac_delim
17198 docdir!$docdir$ac_delim
17199 infodir!$infodir$ac_delim
17200 htmldir!$htmldir$ac_delim
17201 dvidir!$dvidir$ac_delim
17202 pdfdir!$pdfdir$ac_delim
17203 psdir!$psdir$ac_delim
17204 libdir!$libdir$ac_delim
17205 localedir!$localedir$ac_delim
17206 mandir!$mandir$ac_delim
17207 DEFS!$DEFS$ac_delim
17208 ECHO_C!$ECHO_C$ac_delim
17209 ECHO_N!$ECHO_N$ac_delim
17210 ECHO_T!$ECHO_T$ac_delim
17211 LIBS!$LIBS$ac_delim
17212 build_alias!$build_alias$ac_delim
17213 host_alias!$host_alias$ac_delim
17214 target_alias!$target_alias$ac_delim
17215 SET_MAKE!$SET_MAKE$ac_delim
17217 CFLAGS!$CFLAGS$ac_delim
17218 LDFLAGS!$LDFLAGS$ac_delim
17219 CPPFLAGS!$CPPFLAGS$ac_delim
17220 ac_ct_CC!$ac_ct_CC$ac_delim
17221 EXEEXT!$EXEEXT$ac_delim
17222 OBJEXT!$OBJEXT$ac_delim
17224 GREP!$GREP$ac_delim
17225 EGREP!$EGREP$ac_delim
17227 STRIP!$STRIP$ac_delim
17228 CPP_MM!$CPP_MM$ac_delim
17229 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17230 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17231 VIMNAME!$VIMNAME$ac_delim
17232 EXNAME!$EXNAME$ac_delim
17233 VIEWNAME!$VIEWNAME$ac_delim
17234 line_break!$line_break$ac_delim
17235 dovimdiff!$dovimdiff$ac_delim
17236 dogvimdiff!$dogvimdiff$ac_delim
17237 compiledby!$compiledby$ac_delim
17238 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17239 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17240 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17241 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17242 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17243 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17244 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17245 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17246 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17247 vi_cv_perllib!$vi_cv_perllib$ac_delim
17248 shrpenv!$shrpenv$ac_delim
17249 PERL_SRC!$PERL_SRC$ac_delim
17250 PERL_OBJ!$PERL_OBJ$ac_delim
17251 PERL_PRO!$PERL_PRO$ac_delim
17252 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17253 PERL_LIBS!$PERL_LIBS$ac_delim
17254 vi_cv_path_python!$vi_cv_path_python$ac_delim
17255 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17256 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17257 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17258 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17259 PYTHON_SRC!$PYTHON_SRC$ac_delim
17260 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17261 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17262 TCL_SRC!$TCL_SRC$ac_delim
17263 TCL_OBJ!$TCL_OBJ$ac_delim
17264 TCL_PRO!$TCL_PRO$ac_delim
17265 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17266 TCL_LIBS!$TCL_LIBS$ac_delim
17267 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17268 RUBY_SRC!$RUBY_SRC$ac_delim
17269 RUBY_OBJ!$RUBY_OBJ$ac_delim
17270 RUBY_PRO!$RUBY_PRO$ac_delim
17271 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17272 RUBY_LIBS!$RUBY_LIBS$ac_delim
17273 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17274 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17277 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17279 elif $ac_last_try; then
17280 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17281 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17282 { (exit 1); exit 1; }; }
17284 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
17288 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17289 if test -n "$ac_eof"; then
17290 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
17291 ac_eof
=`expr $ac_eof + 1`
17294 cat >>$CONFIG_STATUS <<_ACEOF
17295 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17296 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17299 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17300 s/^/s,@/; s/!/@,|#_!!_#|/
17303 s/'"$ac_delim"'$/,g/; t
17305 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17306 ' >>$CONFIG_STATUS <conf$
$subs.
sed
17307 rm -f conf$
$subs.
sed
17308 cat >>$CONFIG_STATUS <<_ACEOF
17314 for ac_last_try
in false false false false false
:; do
17315 cat >conf$
$subs.
sed <<_ACEOF
17316 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17317 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17318 SNIFF_SRC!$SNIFF_SRC$ac_delim
17319 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17320 xmkmfpath!$xmkmfpath$ac_delim
17321 XMKMF!$XMKMF$ac_delim
17322 X_CFLAGS!$X_CFLAGS$ac_delim
17323 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17324 X_LIBS!$X_LIBS$ac_delim
17325 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17326 X_LIB!$X_LIB$ac_delim
17327 GTK_CONFIG!$GTK_CONFIG$ac_delim
17328 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17329 PKG_CONFIG!$PKG_CONFIG$ac_delim
17330 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17331 GTK_LIBS!$GTK_LIBS$ac_delim
17332 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17333 GNOME_LIBS!$GNOME_LIBS$ac_delim
17334 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17335 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17336 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17337 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17338 NARROW_PROTO!$NARROW_PROTO$ac_delim
17339 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17340 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17341 GUITYPE!$GUITYPE$ac_delim
17342 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17343 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17344 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17345 TAGPRG!$TAGPRG$ac_delim
17346 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17347 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17348 MSGFMT!$MSGFMT$ac_delim
17349 MAKEMO!$MAKEMO$ac_delim
17350 XCODEFLAGS!$XCODEFLAGS$ac_delim
17351 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17352 LIBOBJS!$LIBOBJS$ac_delim
17353 LTLIBOBJS!$LTLIBOBJS$ac_delim
17356 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
17358 elif $ac_last_try; then
17359 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17360 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17361 { (exit 1); exit 1; }; }
17363 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
17367 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17368 if test -n "$ac_eof"; then
17369 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
17370 ac_eof
=`expr $ac_eof + 1`
17373 cat >>$CONFIG_STATUS <<_ACEOF
17374 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17378 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17379 s/^/s,@/; s/!/@,|#_!!_#|/
17382 s/'"$ac_delim"'$/,g/; t
17384 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17385 ' >>$CONFIG_STATUS <conf$
$subs.
sed
17386 rm -f conf$
$subs.
sed
17387 cat >>$CONFIG_STATUS <<_ACEOF
17394 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17395 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17396 # trailing colons and then remove the whole line if VPATH becomes empty
17397 # (actually we leave an empty line to preserve line numbers).
17398 if test "x$srcdir" = x.
; then
17399 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17400 s/:*\$(srcdir):*/:/
17401 s/:*\${srcdir}:*/:/
17403 s/^\([^=]*=[ ]*\):*/\1/
17409 cat >>$CONFIG_STATUS <<\_ACEOF
17410 fi # test -n "$CONFIG_FILES"
17413 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
17416 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17418 case $ac_mode$ac_tag in
17420 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17421 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17422 { (exit 1); exit 1; }; };;
17423 :[FH
]-) ac_tag
=-:-;;
17424 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17441 -) ac_f
="$tmp/stdin";;
17442 *) # Look for the file first in the build tree, then in the source tree
17443 # (if the path is not absolute). The absolute path cannot be DOS-style,
17444 # because $ac_f cannot contain `:'.
17448 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17450 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17451 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17452 { (exit 1); exit 1; }; };;
17454 ac_file_inputs
="$ac_file_inputs $ac_f"
17457 # Let's still pretend it is `configure' which instantiates (i.e., don't
17458 # use $as_me), people would be surprised to read:
17459 # /* config.h. Generated by config.status. */
17460 configure_input
="Generated from "`IFS=:
17461 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17462 if test x
"$ac_file" != x-
; then
17463 configure_input
="$ac_file. $configure_input"
17464 { echo "$as_me:$LINENO: creating $ac_file" >&5
17465 echo "$as_me: creating $ac_file" >&6;}
17469 *:-:* |
*:-) cat >"$tmp/stdin";;
17474 ac_dir
=`$as_dirname -- "$ac_file" ||
17475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17476 X"$ac_file" : 'X\(//\)[^/]' \| \
17477 X"$ac_file" : 'X\(//\)$' \| \
17478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17484 /^X\(\/\/\)[^/].*/{
17499 -*) as_dir
=.
/$as_dir;;
17501 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17505 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17506 *) as_qdir
=$as_dir;;
17508 as_dirs
="'$as_qdir' $as_dirs"
17509 as_dir
=`$as_dirname -- "$as_dir" ||
17510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17511 X"$as_dir" : 'X\(//\)[^/]' \| \
17512 X"$as_dir" : 'X\(//\)$' \| \
17513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17519 /^X\(\/\/\)[^/].*/{
17532 test -d "$as_dir" && break
17534 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17535 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17536 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17537 { (exit 1); exit 1; }; }; }
17541 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17543 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17544 # A ".." for each directory in $ac_dir_suffix.
17545 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17546 case $ac_top_builddir_sub in
17547 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17548 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17551 ac_abs_top_builddir
=$ac_pwd
17552 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17553 # for backward compatibility:
17554 ac_top_builddir
=$ac_top_build_prefix
17557 .
) # We are building in place.
17559 ac_top_srcdir
=$ac_top_builddir_sub
17560 ac_abs_top_srcdir
=$ac_pwd ;;
17561 [\\/]* | ?
:[\\/]* ) # Absolute name.
17562 ac_srcdir
=$srcdir$ac_dir_suffix;
17563 ac_top_srcdir
=$srcdir
17564 ac_abs_top_srcdir
=$srcdir ;;
17565 *) # Relative name.
17566 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17567 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17568 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17570 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17581 cat >>$CONFIG_STATUS <<\_ACEOF
17582 # If the template does not know about datarootdir, expand it.
17583 # FIXME: This hack should be removed a few years after 2.60.
17584 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17586 case `sed -n '/datarootdir/ {
17595 ' $ac_file_inputs` in
17596 *datarootdir
*) ac_datarootdir_seen
=yes;;
17597 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17598 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17599 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17601 cat >>$CONFIG_STATUS <<_ACEOF
17602 ac_datarootdir_hack='
17603 s&@datadir@&$datadir&g
17604 s&@docdir@&$docdir&g
17605 s&@infodir@&$infodir&g
17606 s&@localedir@&$localedir&g
17607 s&@mandir@&$mandir&g
17608 s&\\\${datarootdir}&$datarootdir&g' ;;
17612 # Neutralize VPATH when `$srcdir' = `.'.
17613 # Shell code in configure.ac might set extrasub.
17614 # FIXME: do we really want to maintain this feature?
17615 cat >>$CONFIG_STATUS <<_ACEOF
17619 cat >>$CONFIG_STATUS <<\_ACEOF
17621 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17622 s
&@configure_input@
&$configure_input&;t t
17623 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17624 s
&@srcdir@
&$ac_srcdir&;t t
17625 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17626 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17627 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17628 s
&@builddir@
&$ac_builddir&;t t
17629 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17630 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17631 $ac_datarootdir_hack
17632 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
17634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17637 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17638 which seems to be undefined. Please make sure it is defined." >&5
17639 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17640 which seems to be undefined. Please make sure it is defined." >&2;}
17644 -) cat "$tmp/out"; rm -f "$tmp/out";;
17645 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17654 # Transform confdefs.h into a sed script `conftest.defines', that
17655 # substitutes the proper values into config.h.in to produce config.h.
17656 rm -f conftest.defines conftest.
tail
17657 # First, append a space to every undef/define line, to ease matching.
17658 echo 's/$/ /' >conftest.defines
17659 # Then, protect against being on the right side of a sed subst, or in
17660 # an unquoted here document, in config.status. If some macros were
17661 # called several times there might be several #defines for the same
17662 # symbol, which is useless. But do not sort them, since the last
17663 # AC_DEFINE must be honored.
17664 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
17665 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17666 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17667 # PARAMS is the parameter list in the macro definition--in most cases, it's
17668 # just an empty string.
17669 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17670 ac_dB
='\\)[ (].*,\\1define\\2'
17678 s/^[ ]*#[ ]*define[ ][ ]*//
17683 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17684 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17685 ' >>conftest.defines
17687 # Remove the space that was appended to ease matching.
17688 # Then replace #undef with comments. This is necessary, for
17689 # example, in the case of _POSIX_SOURCE, which is predefined and required
17690 # on some systems where configure will not decide to define it.
17691 # (The regexp can be short, since the line contains either #define or #undef.)
17693 s,^[ #]*u.*,/* & */,' >>conftest.defines
17695 # Break up conftest.defines:
17696 ac_max_sed_lines
=50
17698 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17699 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17700 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17702 ac_in
='$ac_file_inputs'
17703 ac_out
='"$tmp/out1"'
17704 ac_nxt
='"$tmp/out2"'
17708 # Write a here document:
17709 cat >>$CONFIG_STATUS <<_ACEOF
17710 # First, check the format of the line:
17711 cat >"\$tmp/defines.sed" <<\\CEOF
17712 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17713 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17717 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
17719 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17720 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
17721 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
17722 grep . conftest.
tail >/dev
/null ||
break
17723 rm -f conftest.defines
17724 mv conftest.
tail conftest.defines
17726 rm -f conftest.defines conftest.
tail
17728 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17729 cat >>$CONFIG_STATUS <<\_ACEOF
17730 if test x
"$ac_file" != x-
; then
17731 echo "/* $configure_input */" >"$tmp/config.h"
17732 cat "$ac_result" >>"$tmp/config.h"
17733 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
17734 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17735 echo "$as_me: $ac_file is unchanged" >&6;}
17738 mv "$tmp/config.h" $ac_file
17741 echo "/* $configure_input */"
17753 { (exit 0); exit 0; }
17755 chmod +x
$CONFIG_STATUS
17756 ac_clean_files
=$ac_clean_files_save
17759 # configure is writing to config.log, and then calls config.status.
17760 # config.status does its own redirection, appending to config.log.
17761 # Unfortunately, on DOS this fails, as config.log is still kept open
17762 # by configure, so config.status won't be able to write to it; its
17763 # output is simply discarded. So we exec the FD to /dev/null,
17764 # effectively closing config.log, so it can be properly (re)opened and
17765 # appended to by config.status. When coming back to configure, we
17766 # need to make the FD available again.
17767 if test "$no_create" != yes; then
17769 ac_config_status_args
=
17770 test "$silent" = yes &&
17771 ac_config_status_args
="$ac_config_status_args --quiet"
17773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17776 # would make configure fail if this is the last instruction.
17777 $ac_cs_success ||
{ (exit 1); exit 1; }