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-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1384 --with-x use the X Window System
1385 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1386 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1387 --with-gnome-includes=DIR Specify location of GNOME headers
1388 --with-gnome-libs=DIR Specify location of GNOME libs
1389 --with-gnome Specify prefix
for GNOME files
1390 --with-motif-lib=STRING Library
for Motif
1391 --with-tlib=library terminal library to be used
1392 --with-xcodecfg=CFG Debug
, Release
(default
: Release
)
1394 Some influential environment variables
:
1395 CC C compiler
command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1398 nonstandard directory
<lib dir
>
1399 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1400 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1401 you have headers
in a nonstandard directory
<include dir
>
1403 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1405 Use these variables to override the choices made by
`configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1412 if test "$ac_init_help" = "recursive"; then
1413 # If there are subdirs, report their specific --help.
1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415 test -d "$ac_dir" || continue
1419 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1422 # A ".." for each directory in $ac_dir_suffix.
1423 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1424 case $ac_top_builddir_sub in
1425 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429 ac_abs_top_builddir=$ac_pwd
1430 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431 # for backward compatibility:
1432 ac_top_builddir=$ac_top_build_prefix
1435 .) # We are building in place.
1437 ac_top_srcdir=$ac_top_builddir_sub
1438 ac_abs_top_srcdir=$ac_pwd ;;
1439 [\\/]* | ?:[\\/]* ) # Absolute name.
1440 ac_srcdir=$srcdir$ac_dir_suffix;
1441 ac_top_srcdir=$srcdir
1442 ac_abs_top_srcdir=$srcdir ;;
1444 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445 ac_top_srcdir=$ac_top_build_prefix$srcdir
1446 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1450 cd "$ac_dir" || { ac_status=$?; continue; }
1451 # Check for guested configure.
1452 if test -f "$ac_srcdir/configure.gnu"; then
1454 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455 elif test -f "$ac_srcdir/configure"; then
1457 $SHELL "$ac_srcdir/configure" --help=recursive
1459 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 cd "$ac_pwd" || { ac_status=$?; break; }
1465 test -n "$ac_init_help" && exit $ac_status
1466 if $ac_init_version; then
1469 generated by GNU Autoconf 2.61
1471 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1472 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1478 cat >auto/config.log <<_ACEOF
1479 This file contains any messages produced by compilers while
1480 running configure, to aid debugging if configure makes a mistake.
1482 It was created by $as_me, which was
1483 generated by GNU Autoconf 2.61. Invocation command line was
1488 exec 5>>auto/config.log
1495 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1496 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1497 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1498 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1499 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1501 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1502 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1504 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1505 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1506 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1507 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1508 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1509 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1510 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 test -z "$as_dir" && as_dir=.
1519 echo "PATH: $as_dir"
1535 # Keep a trace of the command line.
1536 # Strip out --no-create and --no-recursion so they do not pile up.
1537 # Strip out --silent because we don't want to record it for future runs.
1538 # Also quote any args containing shell meta-characters.
1539 # Make two passes to allow for proper duplicate-argument suppression.
1543 ac_must_keep_next=false
1549 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1550 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1551 | -silent | --silent | --silen | --sile | --sil)
1554 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1557 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1559 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1560 if test $ac_must_keep_next = true; then
1561 ac_must_keep_next=false # Got value, back to normal.
1564 *=* | --config-cache | -C | -disable-* | --disable-* \
1565 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1566 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1567 | -with-* | --with-* | -without-* | --without-* | --x)
1568 case "$ac_configure_args0 " in
1569 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1572 -* ) ac_must_keep_next=true ;;
1575 ac_configure_args="$ac_configure_args '$ac_arg'"
1580 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1581 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1583 # When interrupted or exit'd, cleanup temporary files, and complete
1584 # config.log. We remove comments because anyway the quotes in there
1585 # would cause problems or look ugly.
1586 # WARNING: Use '\'' to represent an apostrophe within the trap.
1587 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1588 trap 'exit_status=$?
1589 # Save into config.log some information that might help in debugging.
1594 ## ---------------- ##
1595 ## Cache variables. ##
1596 ## ---------------- ##
1599 # The following way of writing the cache mishandles newlines in values,
1601 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1602 eval ac_val=\$$ac_var
1606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1607 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1610 _ | IFS | as_nl) ;; #(
1611 *) $as_unset $ac_var ;;
1616 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1617 *${as_nl}ac_space=\ *)
1619 "s/'\''/'\''\\\\'\'''\''/g;
1620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631 ## ----------------- ##
1632 ## Output variables. ##
1633 ## ----------------- ##
1636 for ac_var in $ac_subst_vars
1638 eval ac_val=\$$ac_var
1640 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 echo "$ac_var='\''$ac_val'\''"
1646 if test -n "$ac_subst_files"; then
1648 ## ------------------- ##
1649 ## File substitutions. ##
1650 ## ------------------- ##
1653 for ac_var in $ac_subst_files
1655 eval ac_val=\$$ac_var
1657 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 echo "$ac_var='\''$ac_val'\''"
1664 if test -s confdefs.h; then
1674 test "$ac_signal" != 0 &&
1675 echo "$as_me: caught signal $ac_signal"
1676 echo "$as_me: exit $exit_status"
1678 rm -f core *.core core.conftest.* &&
1679 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1682 for ac_signal in 1 2 13 15; do
1683 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1687 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1688 rm -f -r conftest* confdefs.h
1690 # Predefined preprocessor variables.
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_NAME "$PACKAGE_NAME"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_STRING "$PACKAGE_STRING"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1717 # Let the site file select an alternate cache file if it wants to.
1718 # Prefer explicitly selected file to automatically selected ones.
1719 if test -n "$CONFIG_SITE"; then
1720 set x "$CONFIG_SITE"
1721 elif test "x$prefix" != xNONE; then
1722 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1724 set x "$ac_default_prefix/share/config.site" \
1725 "$ac_default_prefix/etc/config.site"
1730 if test -r "$ac_site_file"; then
1731 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1732 echo "$as_me: loading site script $ac_site_file" >&6;}
1733 sed 's/^/| /' "$ac_site_file" >&5
1738 if test -r "$cache_file"; then
1739 # Some versions of bash will fail to source /dev/null (special
1740 # files actually), so we avoid doing that.
1741 if test -f "$cache_file"; then
1742 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1743 echo "$as_me: loading cache $cache_file" >&6;}
1745 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1746 *) . "./$cache_file";;
1750 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1751 echo "$as_me: creating cache $cache_file" >&6;}
1755 # Check that the precious variables saved in the cache have kept the same
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1766 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1770 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1777 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1778 echo "$as_me: former value
: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1780 echo "$as_me: current value
: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1798 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1799 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1830 cat >>confdefs.h <<\_ACEOF
1834 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1836 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1837 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 cat >conftest.make <<\_ACEOF
1843 @echo '@@@%%%=$(MAKE)=@@@%%%'
1845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1846 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1848 eval ac_cv_prog_make_${ac_make}_set=yes;;
1850 eval ac_cv_prog_make_${ac_make}_set=no;;
1854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1855 { echo "$as_me:$LINENO: result: yes" >&5
1856 echo "${ECHO_T}yes" >&6; }
1859 { echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6; }
1861 SET_MAKE="MAKE=${MAKE-make}"
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 { echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6; }
1903 { echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6; }
1909 if test -z "$ac_cv_prog_CC"; then
1911 # Extract the first word of "gcc", so it can be a program name with args.
1912 set dummy gcc; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_ac_ct_CC="gcc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6; }
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1947 if test "x$ac_ct_CC" = x; then
1950 case $cross_compiling:$ac_tool_warned in
1952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1953 whose name does not start with the host triplet. If you think this
1954 configuration is useful to you, please write to autoconf@gnu.org." >&5
1955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1956 whose name does not start with the host triplet. If you think this
1957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1958 ac_tool_warned=yes ;;
1966 if test -z "$CC"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1969 set dummy ${ac_tool_prefix}cc; ac_word=$2
1970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1972 if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir=.
1983 for ac_exec_ext in '' $ac_executable_extensions; do
1984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1985 ac_cv_prog_CC="${ac_tool_prefix}cc"
1986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test -n "$CC"; then
1997 { echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6; }
2000 { echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6; }
2007 if test -z "$CC"; then
2008 # Extract the first word of "cc", so it can be a program name with args.
2009 set dummy cc; ac_word=$2
2010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2027 ac_prog_rejected=yes
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 if test $ac_prog_rejected = yes; then
2039 # We found a bogon in the path, so make sure we never use it.
2040 set dummy $ac_cv_prog_CC
2042 if test $# != 0; then
2043 # We chose a different compiler from the bogus one.
2044 # However, it has the same basename, so the bogon will be chosen
2045 # first if we set CC to just the basename; use the full file name.
2047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2053 if test -n "$CC"; then
2054 { echo "$as_me:$LINENO: result: $CC" >&5
2055 echo "${ECHO_T}$CC" >&6; }
2057 { echo "$as_me:$LINENO: result: no" >&5
2058 echo "${ECHO_T}no" >&6; }
2063 if test -z "$CC"; then
2064 if test -n "$ac_tool_prefix"; then
2065 for ac_prog in cl.exe
2067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2104 test -n "$CC" && break
2107 if test -z "$CC"; then
2109 for ac_prog in cl.exe
2111 # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$ac_ct_CC"; then
2119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_ac_ct_CC="$ac_prog"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2148 test -n "$ac_ct_CC" && break
2151 if test "x$ac_ct_CC" = x; then
2154 case $cross_compiling:$ac_tool_warned in
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet. If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet. If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2171 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2172 See \`config.log
' for more details." >&5
2173 echo "$as_me: error: no acceptable C compiler found in \$PATH
2174 See \`config.log' for more details.
" >&2;}
2175 { (exit 1); exit 1; }; }
2177 # Provide some information about the compiler.
2178 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2179 ac_compiler=`set X $ac_compile; echo $2`
2180 { (ac_try="$ac_compiler --version >&5"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2186 (eval "$ac_compiler --version >&5") 2>&5
2188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2189 (exit $ac_status); }
2190 { (ac_try="$ac_compiler -v >&5"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2196 (eval "$ac_compiler -v >&5") 2>&5
2198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2199 (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2206 (eval "$ac_compiler -V >&5") 2>&5
2208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2209 (exit $ac_status); }
2211 cat >conftest.$ac_ext <<_ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2226 ac_clean_files_save=$ac_clean_files
2227 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2228 # Try to create an executable without -o first, disregard a.out.
2229 # It will help us diagnose broken compilers, and finding out an intuition
2231 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2232 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2233 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2235 # List of possible output files, starting from the most likely.
2236 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2237 # only as a last resort. b.out is created by i960 compilers.
2238 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2240 # The IRIX 6 linker writes into existing files which may not be
2241 # executable, retaining their permissions. Remove them first so a
2242 # subsequent execution test works.
2244 for ac_file in $ac_files
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2248 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2253 if { (ac_try="$ac_link_default"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2259 (eval "$ac_link_default") 2>&5
2261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2262 (exit $ac_status); }; then
2263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2266 # so that the user can short-circuit this test for compilers unknown to
2268 for ac_file in $ac_files ''
2270 test -f "$ac_file" || continue
2272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2275 # We found the default executable, but exeext='' is most
2279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 # We set ac_cv_exeext here because the later test for it is not
2284 # safe: cross compilers may not add the suffix if given an `-o'
2285 # argument, so we may need to know it at that point already.
2286 # Even if this section looks crufty: it has the advantage of
2293 test "$ac_cv_exeext" = no && ac_cv_exeext=
2299 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2300 echo "${ECHO_T}$ac_file" >&6; }
2301 if test -z "$ac_file"; then
2302 echo "$as_me: failed program was
:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2306 See \
`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log
' for more details." >&2;}
2309 { (exit 77); exit 77; }; }
2312 ac_exeext=$ac_cv_exeext
2314 # Check that the compiler produces executables we can run. If not, either
2315 # the compiler is broken, or we cross compile.
2316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2319 # If not cross compiling, check that we can run a simple program.
2320 if test "$cross_compiling" != yes; then
2321 if { ac_try='.
/$ac_file'
2322 { (case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_try") 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \
`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details.
" >&2;}
2342 { (exit 1); exit 1; }; }
2346 { echo "$as_me:$LINENO: result
: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check that the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2354 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2355 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6; }
2358 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2359 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2360 if { (ac_try="$ac_link"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_link") 2>&5
2368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2372 # work properly (i.e., refer to `conftest.exe'), while it won't with
2374 for ac_file in conftest.exe conftest conftest.*; do
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2385 See \
`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log
' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2391 rm -f conftest$ac_cv_exeext
2392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2400 if test "${ac_cv_objext+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.o conftest.obj
2419 if { (ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compile") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 for ac_file in conftest.o conftest.obj conftest.*; do
2430 test -f "$ac_file" || continue;
2432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2433 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2438 echo "$as_me: failed program was:" >&5
2439 sed 's
/^
/|
/' conftest.$ac_ext >&5
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details.
" >&5
2443 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2444 See \
`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2451 echo "${ECHO_T}$ac_cv_objext" >&6; }
2452 OBJEXT=$ac_cv_objext
2454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2481 *) ac_try_echo
=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2486 grep -v '^ *+' conftest.er1
>conftest.err
2488 cat conftest.err
>&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } && {
2491 test -z "$ac_c_werror_flag" ||
2492 test ! -s conftest.err
2493 } && test -s conftest.
$ac_objext; then
2496 echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.
$ac_ext >&5
2502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2503 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2506 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2508 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CFLAGS
=${CFLAGS+set}
2510 ac_save_CFLAGS
=$CFLAGS
2511 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2512 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2513 if test "${ac_cv_prog_cc_g+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 ac_save_c_werror_flag
=$ac_c_werror_flag
2517 ac_c_werror_flag
=yes
2520 cat >conftest.
$ac_ext <<_ACEOF
2523 cat confdefs.h
>>conftest.
$ac_ext
2524 cat >>conftest.
$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.
$ac_objext
2536 if { (ac_try
="$ac_compile"
2538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.$ac_objext; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2558 cat >conftest.$ac_ext <<_ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.$ac_objext
2574 if { (ac_try="$ac_compile"
2576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2577 *) ac_try_echo
=$ac_try;;
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580 (eval "$ac_compile") 2>conftest.er1
2582 grep -v '^ *+' conftest.er1
>conftest.err
2584 cat conftest.err
>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } && {
2587 test -z "$ac_c_werror_flag" ||
2588 test ! -s conftest.err
2589 } && test -s conftest.
$ac_objext; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.
$ac_ext >&5
2595 ac_c_werror_flag
=$ac_save_c_werror_flag
2597 cat >conftest.
$ac_ext <<_ACEOF
2600 cat confdefs.h
>>conftest.
$ac_ext
2601 cat >>conftest.
$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2612 rm -f conftest.
$ac_objext
2613 if { (ac_try
="$ac_compile"
2615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_compile") 2>conftest.er1
2621 grep -v '^ *+' conftest.er1 >conftest.err
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } && {
2626 test -z "$ac_c_werror_flag" ||
2627 test ! -s conftest.err
2628 } && test -s conftest.$ac_objext; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 ac_c_werror_flag=$ac_save_c_werror_flag
2646 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2657 if test "$GCC" = yes; then
2663 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2664 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_cc_c89+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 ac_cv_prog_cc_c89=no
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2694 s = g (p, va_arg (v,int));
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2709 inside strings and character constants. */
2711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2713 int test (int i, double x);
2714 struct s1 {int (*f) (int a);};
2715 struct s2 {int (*f) (double a);};
2716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 CC="$ac_save_CC $ac_arg"
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2735 *) ac_try_echo
=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1
>conftest.err
2742 cat conftest.err
>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.
$ac_objext; then
2748 ac_cv_prog_cc_c89
=$ac_arg
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.
$ac_ext >&5
2756 rm -f core conftest.err conftest.
$ac_objext
2757 test "x$ac_cv_prog_cc_c89" != "xno" && break
2759 rm -f conftest.
$ac_ext
2764 case "x$ac_cv_prog_cc_c89" in
2766 { echo "$as_me:$LINENO: result: none needed" >&5
2767 echo "${ECHO_T}none needed" >&6; } ;;
2769 { echo "$as_me:$LINENO: result: unsupported" >&5
2770 echo "${ECHO_T}unsupported" >&6; } ;;
2772 CC
="$CC $ac_cv_prog_cc_c89"
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2779 ac_cpp
='$CPP $CPPFLAGS'
2780 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2781 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2782 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2784 ac_cpp
='$CPP $CPPFLAGS'
2785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2788 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2790 # On Suns, sometimes $CPP names a directory.
2791 if test -n "$CPP" && test -d "$CPP"; then
2794 if test -z "$CPP"; then
2795 if test "${ac_cv_prog_CPP+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 # Double quotes because CPP needs to be expanded
2799 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2802 for ac_c_preproc_warn_flag
in '' yes
2804 # Use a header file that comes with gcc, so configuring glibc
2805 # with a fresh cross-compiler works.
2806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2807 # <limits.h> exists even on freestanding compilers.
2808 # On the NeXT, cc -E runs the code through the compiler's parser,
2809 # not just through cpp. "Syntax error" is here to catch this case.
2810 cat >conftest.
$ac_ext <<_ACEOF
2813 cat confdefs.h
>>conftest.
$ac_ext
2814 cat >>conftest.
$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2817 # include <limits.h>
2819 # include <assert.h>
2823 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2831 grep -v '^ *+' conftest.er1 >conftest.err
2833 cat conftest.err >&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } >/dev/null && {
2836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Broken: fails on valid input.
2848 rm -f conftest.err conftest.$ac_ext
2850 # OK, works on sane cases. Now check whether nonexistent headers
2851 # can be detected and how.
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 #include <ac_nonexistent.h>
2860 if { (ac_try="$ac_cpp conftest.$ac_ext"
2862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2863 *) ac_try_echo
=$ac_try;;
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2868 grep -v '^ *+' conftest.er1
>conftest.err
2870 cat conftest.err
>&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } >/dev
/null
&& {
2873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2874 test ! -s conftest.err
2876 # Broken: success on invalid input.
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.
$ac_ext >&5
2882 # Passes both tests.
2887 rm -f conftest.err conftest.
$ac_ext
2890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2891 rm -f conftest.err conftest.
$ac_ext
2892 if $ac_preproc_ok; then
2904 { echo "$as_me:$LINENO: result: $CPP" >&5
2905 echo "${ECHO_T}$CPP" >&6; }
2907 for ac_c_preproc_warn_flag
in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.
$ac_ext <<_ACEOF
2918 cat confdefs.h
>>conftest.
$ac_ext
2919 cat >>conftest.
$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2922 # include <limits.h>
2924 # include <assert.h>
2928 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null && {
2941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2949 # Broken: fails on valid input.
2953 rm -f conftest.err conftest.$ac_ext
2955 # OK, works on sane cases. Now check whether nonexistent headers
2956 # can be detected and how.
2957 cat >conftest.$ac_ext <<_ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #include <ac_nonexistent.h>
2965 if { (ac_try="$ac_cpp conftest.$ac_ext"
2967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2968 *) ac_try_echo
=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2973 grep -v '^ *+' conftest.er1
>conftest.err
2975 cat conftest.err
>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } >/dev
/null
&& {
2978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2979 test ! -s conftest.err
2981 # Broken: success on invalid input.
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2987 # Passes both tests.
2992 rm -f conftest.err conftest.
$ac_ext
2995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2996 rm -f conftest.err conftest.
$ac_ext
2997 if $ac_preproc_ok; then
3000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3001 See \`config.log' for more details." >&5
3002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3003 See \`config.log' for more details." >&2;}
3004 { (exit 1); exit 1; }; }
3008 ac_cpp
='$CPP $CPPFLAGS'
3009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3014 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3015 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3016 if test "${ac_cv_path_GREP+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 # Extract the first word of "grep ggrep" to use in msg output
3020 if test -z "$GREP"; then
3021 set dummy
grep ggrep
; ac_prog_name
=$2
3022 if test "${ac_cv_path_GREP+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 ac_path_GREP_found
=false
3026 # Loop through the user's path and test for each of PROGNAME-LIST
3027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3028 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3031 test -z "$as_dir" && as_dir
=.
3032 for ac_prog
in grep ggrep
; do
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3036 # Check for GNU ac_path_GREP and select it if it is found.
3037 # Check for GNU $ac_path_GREP
3038 case `"$ac_path_GREP" --version 2>&1` in
3040 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3043 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3046 cat "conftest.in" "conftest.in" >"conftest.tmp"
3047 mv "conftest.tmp" "conftest.in"
3048 cp "conftest.in" "conftest.nl"
3049 echo 'GREP' >> "conftest.nl"
3050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3051 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3052 ac_count
=`expr $ac_count + 1`
3053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3054 # Best one so far, save it but keep looking for a better one
3055 ac_cv_path_GREP
="$ac_path_GREP"
3056 ac_path_GREP_max
=$ac_count
3058 # 10*(2^10) chars as input seems more than enough
3059 test $ac_count -gt 10 && break
3061 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3065 $ac_path_GREP_found && break 3
3075 GREP
="$ac_cv_path_GREP"
3076 if test -z "$GREP"; then
3077 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3078 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3079 { (exit 1); exit 1; }; }
3083 ac_cv_path_GREP
=$GREP
3088 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3089 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3090 GREP
="$ac_cv_path_GREP"
3093 { echo "$as_me:$LINENO: checking for egrep" >&5
3094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3095 if test "${ac_cv_path_EGREP+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3099 then ac_cv_path_EGREP
="$GREP -E"
3101 # Extract the first word of "egrep" to use in msg output
3102 if test -z "$EGREP"; then
3103 set dummy
egrep; ac_prog_name
=$2
3104 if test "${ac_cv_path_EGREP+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 ac_path_EGREP_found
=false
3108 # Loop through the user's path and test for each of PROGNAME-LIST
3109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3110 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3113 test -z "$as_dir" && as_dir
=.
3114 for ac_prog
in egrep; do
3115 for ac_exec_ext
in '' $ac_executable_extensions; do
3116 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3117 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3118 # Check for GNU ac_path_EGREP and select it if it is found.
3119 # Check for GNU $ac_path_EGREP
3120 case `"$ac_path_EGREP" --version 2>&1` in
3122 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3125 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3128 cat "conftest.in" "conftest.in" >"conftest.tmp"
3129 mv "conftest.tmp" "conftest.in"
3130 cp "conftest.in" "conftest.nl"
3131 echo 'EGREP' >> "conftest.nl"
3132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3133 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3134 ac_count
=`expr $ac_count + 1`
3135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3136 # Best one so far, save it but keep looking for a better one
3137 ac_cv_path_EGREP
="$ac_path_EGREP"
3138 ac_path_EGREP_max
=$ac_count
3140 # 10*(2^10) chars as input seems more than enough
3141 test $ac_count -gt 10 && break
3143 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3147 $ac_path_EGREP_found && break 3
3157 EGREP
="$ac_cv_path_EGREP"
3158 if test -z "$EGREP"; then
3159 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3160 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3161 { (exit 1); exit 1; }; }
3165 ac_cv_path_EGREP
=$EGREP
3171 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3172 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3173 EGREP
="$ac_cv_path_EGREP"
3176 cat >conftest.
$ac_ext <<_ACEOF
3179 cat confdefs.h
>>conftest.
$ac_ext
3180 cat >>conftest.
$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3185 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3186 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3187 if test "${ac_cv_search_strerror+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3190 ac_func_search_save_LIBS
=$LIBS
3191 cat >conftest.
$ac_ext <<_ACEOF
3194 cat confdefs.h
>>conftest.
$ac_ext
3195 cat >>conftest.
$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3198 /* Override any GCC internal prototype to avoid an error.
3199 Use char because int might match the return type of a GCC
3200 builtin and then its argument prototype would still apply. */
3213 for ac_lib
in '' cposix
; do
3214 if test -z "$ac_lib"; then
3215 ac_res
="none required"
3218 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3220 rm -f conftest.
$ac_objext conftest
$ac_exeext
3221 if { (ac_try
="$ac_link"
3223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_link") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest$ac_exeext &&
3237 $as_test_x conftest$ac_exeext; then
3238 ac_cv_search_strerror=$ac_res
3240 echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3248 if test "${ac_cv_search_strerror+set}" = set; then
3252 if test "${ac_cv_search_strerror+set}" = set; then
3255 ac_cv_search_strerror=no
3258 LIBS=$ac_func_search_save_LIBS
3260 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3261 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3262 ac_res=$ac_cv_search_strerror
3263 if test "$ac_res" != no; then
3264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3267 for ac_prog in gawk mawk nawk awk
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_AWK+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 if test -n "$AWK"; then
3277 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_AWK="$ac_prog"
3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 if test -n "$AWK"; then
3298 { echo "$as_me:$LINENO: result: $AWK" >&5
3299 echo "${ECHO_T}$AWK" >&6; }
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 test -n "$AWK" && break
3309 # Extract the first word of "strip", so it can be a program name with args.
3310 set dummy strip; ac_word=$2
3311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3313 if test "${ac_cv_prog_STRIP+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$STRIP"; then
3317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_STRIP="strip"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339 { echo "$as_me:$LINENO: result: $STRIP" >&5
3340 echo "${ECHO_T}$STRIP" >&6; }
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3352 if test "${ac_cv_header_stdc+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3378 *) ac_try_echo
=$ac_try;;
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3383 grep -v '^ *+' conftest.er1
>conftest.err
3385 cat conftest.err
>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.
$ac_objext; then
3391 ac_cv_header_stdc
=yes
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.
$ac_ext >&5
3396 ac_cv_header_stdc
=no
3399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3401 if test $ac_cv_header_stdc = yes; then
3402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3403 cat >conftest.
$ac_ext <<_ACEOF
3406 cat confdefs.h
>>conftest.
$ac_ext
3407 cat >>conftest.
$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 $EGREP "memchr" >/dev
/null
2>&1; then
3416 ac_cv_header_stdc
=no
3422 if test $ac_cv_header_stdc = yes; then
3423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3424 cat >conftest.
$ac_ext <<_ACEOF
3427 cat confdefs.h
>>conftest.
$ac_ext
3428 cat >>conftest.
$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 $EGREP "free" >/dev
/null
2>&1; then
3437 ac_cv_header_stdc
=no
3443 if test $ac_cv_header_stdc = yes; then
3444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3445 if test "$cross_compiling" = yes; then
3448 cat >conftest.
$ac_ext <<_ACEOF
3451 cat confdefs.h
>>conftest.
$ac_ext
3452 cat >>conftest.
$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3456 #if ((' ' & 0x0FF) == 0x020)
3457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3460 # define ISLOWER(c) \
3461 (('a' <= (c) && (c) <= 'i') \
3462 || ('j' <= (c) && (c) <= 'r') \
3463 || ('s' <= (c) && (c) <= 'z'))
3464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3472 for (i = 0; i < 256; i++)
3473 if (XOR (islower (i), ISLOWER (i))
3474 || toupper (i) != TOUPPER (i))
3479 rm -f conftest
$ac_exeext
3480 if { (ac_try
="$ac_link"
3482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_link") 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3490 { (case "(($ac_try" in
3491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3492 *) ac_try_echo
=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_try") 2>&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; }; then
3501 echo "$as_me: program exited with status $ac_status" >&5
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.
$ac_ext >&5
3506 ac_cv_header_stdc
=no
3508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3516 if test $ac_cv_header_stdc = yes; then
3518 cat >>confdefs.h
<<\_ACEOF
3519 #define STDC_HEADERS 1
3524 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3525 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3526 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3529 cat >conftest.
$ac_ext <<_ACEOF
3532 cat confdefs.h
>>conftest.
$ac_ext
3533 cat >>conftest.
$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <sys/types.h>
3536 #include <sys/wait.h>
3538 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3541 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3549 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3554 rm -f conftest.
$ac_objext
3555 if { (ac_try
="$ac_compile"
3557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_header_sys_wait_h=yes
3573 echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 ac_cv_header_sys_wait_h=no
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3582 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3583 if test $ac_cv_header_sys_wait_h = yes; then
3585 cat >>confdefs.h <<\_ACEOF
3586 #define HAVE_SYS_WAIT_H 1
3592 if test -z "$CFLAGS"; then
3594 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3596 if test "$GCC" = yes; then
3597 gccversion=`"$CC" -dumpversion`
3598 if test "x$gccversion" = "x"; then
3599 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3601 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3602 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3603 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3605 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3606 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3607 CFLAGS="$CFLAGS -fno-strength-reduce"
3612 if test "$cross_compiling" = yes; then
3613 { echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3614 echo "${ECHO_T}cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3617 test "$GCC" = yes && CPP_MM=M;
3619 if test -f ./toolcheck; then
3620 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
3621 echo "$as_me: checking for buggy tools..." >&6;}
3625 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3627 { echo "$as_me:$LINENO: checking for BeOS" >&5
3628 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
3630 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3631 BEOS=yes; { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; };;
3633 *) BEOS=no; { echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6; };;
3637 { echo "$as_me:$LINENO: checking for QNX" >&5
3638 echo $ECHO_N "checking for QNX... $ECHO_C" >&6; }
3640 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3641 test -z "$with_x" && with_x=no
3642 QNX=yes; { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; };;
3644 *) QNX=no; { echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6; };;
3648 { echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3649 echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6; }
3650 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3651 { echo "$as_me:$LINENO: result: yes" >&5
3652 echo "${ECHO_T}yes" >&6; }
3654 { echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3655 echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6; }
3656 # Check whether --enable-darwin was given.
3657 if test "${enable_darwin+set}" = set; then
3658 enableval=$enable_darwin;
3663 if test "$enable_darwin" = "yes"; then
3664 { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3666 { echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3667 echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6; }
3668 if test -f os_macosx.c; then
3669 { echo "$as_me:$LINENO: result: yes" >&5
3670 echo "${ECHO_T}yes" >&6; }
3672 { echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3673 echo "${ECHO_T}no, Darwin support disabled" >&6; }
3677 { echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3678 echo "${ECHO_T}yes, Darwin support excluded" >&6; }
3682 { echo "$as_me:$LINENO: checking --with-macsdk argument" >&5
3683 echo $ECHO_N "checking --with-macsdk argument... $ECHO_C" >&6; }
3685 # Check whether --with-macsdk was given.
3686 if test "${with_macsdk+set}" = set; then
3687 withval=$with_macsdk; MACSDK="$withval"; { echo "$as_me:$LINENO: result: $MACSDK" >&5
3688 echo "${ECHO_T}$MACSDK" >&6; }
3690 MACSDK=""; { echo "$as_me:$LINENO: result: using default" >&5
3691 echo "${ECHO_T}using default" >&6; }
3695 if test -n "$MACSDK"; then
3696 { echo "$as_me:$LINENO: checking if SDK is supported" >&5
3697 echo $ECHO_N "checking if SDK is supported... $ECHO_C" >&6; }
3698 save_cflags="$CFLAGS"
3699 save_ldflags="$LDFLAGS"
3700 sdkflags="/Developer/SDKs/MacOSX$MACSDK"
3701 if test "x$MACSDK" = "x10.4"; then
3702 sdkflags="$sdkflags""u"
3704 sdkflags="$sdkflags.sdk -mmacosx-version-min=$MACSDK"
3705 CFLAGS="$CFLAGS -isysroot $sdkflags"
3706 LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags"
3707 cat >conftest.$ac_ext <<_ACEOF
3710 cat confdefs.h >>conftest.$ac_ext
3711 cat >>conftest.$ac_ext <<_ACEOF
3712 /* end confdefs.h. */
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (ac_try="$ac_link"
3725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3726 *) ac_try_echo
=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_link") 2>conftest.er1
3731 grep -v '^ *+' conftest.er1
>conftest.err
3733 cat conftest.err
>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } && {
3736 test -z "$ac_c_werror_flag" ||
3737 test ! -s conftest.err
3738 } && test -s conftest
$ac_exeext &&
3739 $as_test_x conftest
$ac_exeext; then
3740 { echo "$as_me:$LINENO: result: yes" >&5
3741 echo "${ECHO_T}yes" >&6; }
3742 XCODEFLAGS
="$XCODEFLAGS -sdk macosx$MACSDK MACOSX_DEPLOYMENT_TARGET=$MACSDK"
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 { echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6; }
3750 CFLAGS
="$save_cflags"
3751 LDFLAGS
="$save_ldflags"
3754 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3755 conftest
$ac_exeext conftest.
$ac_ext
3759 { echo "$as_me:$LINENO: checking --with-macarchs argument" >&5
3760 echo $ECHO_N "checking --with-macarchs argument... $ECHO_C" >&6; }
3762 # Check whether --with-macarchs was given.
3763 if test "${with_macarchs+set}" = set; then
3764 withval
=$with_macarchs; ARCHS
="$withval"; { echo "$as_me:$LINENO: result: $ARCHS" >&5
3765 echo "${ECHO_T}$ARCHS" >&6; }
3767 ARCHS
=""; { echo "$as_me:$LINENO: result: defaulting to native arch" >&5
3768 echo "${ECHO_T}defaulting to native arch" >&6; }
3772 if test -n "$ARCHS"; then
3773 { echo "$as_me:$LINENO: checking if architectures are supported" >&5
3774 echo $ECHO_N "checking if architectures are supported... $ECHO_C" >&6; }
3775 save_cflags
="$CFLAGS"
3776 save_ldflags
="$LDFLAGS"
3777 archflags
=`echo "$ARCHS" | sed -e 's/[[:<:]]/-arch /g'`
3778 CFLAGS
="$CFLAGS $archflags"
3779 LDFLAGS
="$LDFLAGS $archflags"
3780 cat >conftest.
$ac_ext <<_ACEOF
3783 cat confdefs.h
>>conftest.
$ac_ext
3784 cat >>conftest.
$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3795 rm -f conftest.
$ac_objext conftest
$ac_exeext
3796 if { (ac_try
="$ac_link"
3798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802 (eval "$ac_link") 2>conftest.er1
3804 grep -v '^ *+' conftest.er1 >conftest.err
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } && {
3809 test -z "$ac_c_werror_flag" ||
3810 test ! -s conftest.err
3811 } && test -s conftest$ac_exeext &&
3812 $as_test_x conftest$ac_exeext; then
3813 { echo "$as_me:$LINENO: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6; }
3815 XCODEFLAGS="$XCODEFLAGS ARCHS=\"$ARCHS\" ONLY_ACTIVE_ARCH=\"NO\""
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3820 { echo "$as_me:$LINENO: result: no, will build for native arch only" >&5
3821 echo "${ECHO_T}no, will build for native arch only" >&6; }
3823 CFLAGS="$save_cflags"
3824 LDFLAGS="$save_ldflags"
3827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3828 conftest$ac_exeext conftest.$ac_ext
3832 if test "$enable_darwin" = "yes"; then
3834 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3835 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3836 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3838 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3849 inttypes.h stdint.h unistd.h
3851 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 $ac_includes_default
3865 #include <$ac_header>
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3871 *) ac_try_echo
=$ac_try;;
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_compile") 2>conftest.er1
3876 grep -v '^ *+' conftest.er1
>conftest.err
3878 cat conftest.err
>&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); } && {
3881 test -z "$ac_c_werror_flag" ||
3882 test ! -s conftest.err
3883 } && test -s conftest.
$ac_objext; then
3884 eval "$as_ac_Header=yes"
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.
$ac_ext >&5
3889 eval "$as_ac_Header=no"
3892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3894 ac_res
=`eval echo '${'$as_ac_Header'}'`
3895 { echo "$as_me:$LINENO: result: $ac_res" >&5
3896 echo "${ECHO_T}$ac_res" >&6; }
3897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3898 cat >>confdefs.h
<<_ACEOF
3899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3907 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3908 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3909 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
3910 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3914 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
3916 # Is the header compilable?
3917 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3918 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
3919 cat >conftest.
$ac_ext <<_ACEOF
3922 cat confdefs.h
>>conftest.
$ac_ext
3923 cat >>conftest.
$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 $ac_includes_default
3926 #include <Carbon/Carbon.h>
3928 rm -f conftest.
$ac_objext
3929 if { (ac_try
="$ac_compile"
3931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_compile") 2>conftest.er1
3937 grep -v '^ *+' conftest.er1 >conftest.err
3939 cat conftest.err >&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && {
3942 test -z "$ac_c_werror_flag" ||
3943 test ! -s conftest.err
3944 } && test -s conftest.$ac_objext; then
3945 ac_header_compiler=yes
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 ac_header_compiler=no
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3955 echo "${ECHO_T}$ac_header_compiler" >&6; }
3957 # Is the header present?
3958 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3959 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3966 #include <Carbon/Carbon.h>
3968 if { (ac_try="$ac_cpp conftest.$ac_ext"
3970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3971 *) ac_try_echo
=$ac_try;;
3973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3976 grep -v '^ *+' conftest.er1
>conftest.err
3978 cat conftest.err
>&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } >/dev
/null
&& {
3981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3984 ac_header_preproc
=yes
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.
$ac_ext >&5
3989 ac_header_preproc
=no
3992 rm -f conftest.err conftest.
$ac_ext
3993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3994 echo "${ECHO_T}$ac_header_preproc" >&6; }
3996 # So? What about this header?
3997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3999 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4000 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4002 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4003 ac_header_preproc
=yes
4006 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4007 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4008 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4009 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4010 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4011 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4012 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4013 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4014 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4015 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4016 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4017 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4021 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4022 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
4023 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4024 echo $ECHO_N "(cached) $ECHO_C" >&6
4026 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4028 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4029 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
4032 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4038 SAVE_CPPFLAGS
=$CPPFLAGS
4040 CPPFLAGS
="$CPPFLAGS -ObjC"
4041 CFLAGS
="$CFLAGS -ObjC"
4042 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4043 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4044 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4045 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4049 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4051 # Is the header compilable?
4052 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
4053 echo $ECHO_N "checking Cocoa/Cocoa.h usability... $ECHO_C" >&6; }
4054 cat >conftest.
$ac_ext <<_ACEOF
4057 cat confdefs.h
>>conftest.
$ac_ext
4058 cat >>conftest.
$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 $ac_includes_default
4061 #include <Cocoa/Cocoa.h>
4063 rm -f conftest.
$ac_objext
4064 if { (ac_try
="$ac_compile"
4066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_header_compiler=yes
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_header_compiler=no
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090 echo "${ECHO_T}$ac_header_compiler" >&6; }
4092 # Is the header present?
4093 { echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
4094 echo $ECHO_N "checking Cocoa/Cocoa.h presence... $ECHO_C" >&6; }
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #include <Cocoa/Cocoa.h>
4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4106 *) ac_try_echo
=$ac_try;;
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1
>conftest.err
4113 cat conftest.err
>&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } >/dev
/null
&& {
4116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4119 ac_header_preproc
=yes
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.
$ac_ext >&5
4124 ac_header_preproc
=no
4127 rm -f conftest.err conftest.
$ac_ext
4128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4129 echo "${ECHO_T}$ac_header_preproc" >&6; }
4131 # So? What about this header?
4132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4134 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
4135 echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4136 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
4137 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
4138 ac_header_preproc
=yes
4141 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
4142 echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
4143 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
4144 echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
4145 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
4146 echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
4148 echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
4150 echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
4152 echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
4156 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
4157 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
4158 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_cv_header_Cocoa_Cocoa_h
=$ac_header_preproc
4163 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
4164 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
4167 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
4172 CPPFLAGS
=$SAVE_CPPFLAGS
4175 if test "x$CARBON" = "xyes" -o "x$COCOA" = "xyes"; then
4176 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
4182 { echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6; }
4189 if test "$cross_compiling" = no
; then
4190 { echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4191 echo $ECHO_N "checking --with-local-dir argument... $ECHO_C" >&6; }
4192 have_local_include
=''
4195 # Check whether --with-local-dir was given.
4196 if test "${with_local_dir+set}" = set; then
4197 withval
=$with_local_dir;
4198 local_dir
="$withval"
4202 # avoid adding local dir to LDFLAGS and CPPFLAGS
4206 *) { { echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4207 echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4208 { (exit 1); exit 1; }; } ;;
4210 { echo "$as_me:$LINENO: result: $local_dir" >&5
4211 echo "${ECHO_T}$local_dir" >&6; }
4215 local_dir
=/usr
/local
4216 { echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4217 echo "${ECHO_T}Defaulting to $local_dir" >&6; }
4221 if test "$GCC" = yes -a "$local_dir" != no
; then
4222 echo 'void f(){}' > conftest.c
4223 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4224 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4225 rm -f conftest.c conftest.o
4227 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4228 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4229 if test "$tt" = "$LDFLAGS"; then
4230 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4233 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4234 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4235 if test "$tt" = "$CPPFLAGS"; then
4236 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4241 { echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4242 echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6; }
4244 # Check whether --with-vim-name was given.
4245 if test "${with_vim_name+set}" = set; then
4246 withval
=$with_vim_name; VIMNAME
="$withval"; { echo "$as_me:$LINENO: result: $VIMNAME" >&5
4247 echo "${ECHO_T}$VIMNAME" >&6; }
4249 VIMNAME
="vim"; { echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4250 echo "${ECHO_T}Defaulting to $VIMNAME" >&6; }
4254 { echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4255 echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6; }
4257 # Check whether --with-ex-name was given.
4258 if test "${with_ex_name+set}" = set; then
4259 withval
=$with_ex_name; EXNAME
="$withval"; { echo "$as_me:$LINENO: result: $EXNAME" >&5
4260 echo "${ECHO_T}$EXNAME" >&6; }
4262 EXNAME
="ex"; { echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4263 echo "${ECHO_T}Defaulting to ex" >&6; }
4267 { echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4268 echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6; }
4270 # Check whether --with-view-name was given.
4271 if test "${with_view_name+set}" = set; then
4272 withval
=$with_view_name; VIEWNAME
="$withval"; { echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4273 echo "${ECHO_T}$VIEWNAME" >&6; }
4275 VIEWNAME
="view"; { echo "$as_me:$LINENO: result: Defaulting to view" >&5
4276 echo "${ECHO_T}Defaulting to view" >&6; }
4281 { echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4282 echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6; }
4284 # Check whether --with-global-runtime was given.
4285 if test "${with_global_runtime+set}" = set; then
4286 withval
=$with_global_runtime; { echo "$as_me:$LINENO: result: $withval" >&5
4287 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4288 #define RUNTIME_GLOBAL "$withval"
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4297 { echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4298 echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6; }
4300 # Check whether --with-modified-by was given.
4301 if test "${with_modified_by+set}" = set; then
4302 withval
=$with_modified_by; { echo "$as_me:$LINENO: result: $withval" >&5
4303 echo "${ECHO_T}$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4304 #define MODIFIED_BY "$withval"
4308 { echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6; }
4313 { echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4314 echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6; }
4315 cat >conftest.
$ac_ext <<_ACEOF
4318 cat confdefs.h
>>conftest.
$ac_ext
4319 cat >>conftest.
$ac_ext <<_ACEOF
4320 /* end confdefs.h. */
4325 /* TryCompile function for CharSet.
4326 Treat any failure as ASCII for compatibility with existing art.
4327 Use compile-time rather than run-time tests for cross-compiler
4330 make an error "Character set is not EBCDIC"
4336 rm -f conftest.
$ac_objext
4337 if { (ac_try
="$ac_compile"
4339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && {
4350 test -z "$ac_c_werror_flag" ||
4351 test ! -s conftest.err
4352 } && test -s conftest.$ac_objext; then
4353 # TryCompile action if true
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 # TryCompile action if false
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 # end of TryCompile ])
4365 # end of CacheVal CvEbcdic
4366 { echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4367 echo "${ECHO_T}$cf_cv_ebcdic" >&6; }
4368 case "$cf_cv_ebcdic" in #(vi
4369 yes) cat >>confdefs.h <<\_ACEOF
4375 *) line_break='"\\012"';;
4379 if test "$cf_cv_ebcdic" = "yes"; then
4380 { echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4381 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6; }
4383 OS/390) OS390Unix="yes";
4384 if test "$CC" = "cc"; then
4388 if test "$CC" = "c89"; then
4395 if test "$ccm" != "1"; then
4397 echo "------------------------------------------"
4398 echo " On OS/390 Unix, the environment variable"
4399 echo " __CC_${ccn}MODE must be set to \"1\"!"
4401 echo " export _CC_${ccn}MODE=1"
4402 echo " and then call configure again."
4403 echo "------------------------------------------"
4406 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4407 { echo "$as_me:$LINENO: result: yes" >&5
4408 echo "${ECHO_T}yes" >&6; }
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4417 { echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4418 echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6; }
4419 # Check whether --enable-selinux was given.
4420 if test "${enable_selinux+set}" = set; then
4421 enableval=$enable_selinux;
4423 enable_selinux="yes"
4426 if test "$enable_selinux" = "yes"; then
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4429 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4430 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
4431 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-lselinux $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4443 /* Override any GCC internal prototype to avoid an error.
4444 Use char because int might match the return type of a GCC
4445 builtin and then its argument prototype would still apply. */
4449 char is_selinux_enabled ();
4453 return is_selinux_enabled ();
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (ac_try="$ac_link"
4461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4462 *) ac_try_echo
=$ac_try;;
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_link") 2>conftest.er1
4467 grep -v '^ *+' conftest.er1
>conftest.err
4469 cat conftest.err
>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest
$ac_exeext &&
4475 $as_test_x conftest
$ac_exeext; then
4476 ac_cv_lib_selinux_is_selinux_enabled
=yes
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.
$ac_ext >&5
4481 ac_cv_lib_selinux_is_selinux_enabled
=no
4484 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4485 conftest
$ac_exeext conftest.
$ac_ext
4486 LIBS
=$ac_check_lib_save_LIBS
4488 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4489 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4490 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4491 LIBS
="$LIBS -lselinux"
4492 cat >>confdefs.h
<<\_ACEOF
4493 #define HAVE_SELINUX 1
4499 { echo "$as_me:$LINENO: result: yes" >&5
4500 echo "${ECHO_T}yes" >&6; }
4504 { echo "$as_me:$LINENO: checking --with-features argument" >&5
4505 echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6; }
4507 # Check whether --with-features was given.
4508 if test "${with_features+set}" = set; then
4509 withval
=$with_features; features
="$withval"; { echo "$as_me:$LINENO: result: $features" >&5
4510 echo "${ECHO_T}$features" >&6; }
4512 features
="normal"; { echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4513 echo "${ECHO_T}Defaulting to normal" >&6; }
4520 tiny
) cat >>confdefs.h
<<\_ACEOF
4524 small
) cat >>confdefs.h
<<\_ACEOF
4525 #define FEAT_SMALL 1
4528 normal
) cat >>confdefs.h
<<\_ACEOF
4529 #define FEAT_NORMAL 1
4531 dovimdiff
="installvimdiff";
4532 dogvimdiff
="installgvimdiff" ;;
4533 big
) cat >>confdefs.h
<<\_ACEOF
4536 dovimdiff
="installvimdiff";
4537 dogvimdiff
="installgvimdiff" ;;
4538 huge
) cat >>confdefs.h
<<\_ACEOF
4541 dovimdiff
="installvimdiff";
4542 dogvimdiff
="installgvimdiff" ;;
4543 *) { echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4544 echo "${ECHO_T}Sorry, $features is not supported" >&6; } ;;
4550 { echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4551 echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6; }
4553 # Check whether --with-compiledby was given.
4554 if test "${with_compiledby+set}" = set; then
4555 withval
=$with_compiledby; compiledby
="$withval"; { echo "$as_me:$LINENO: result: $withval" >&5
4556 echo "${ECHO_T}$withval" >&6; }
4558 compiledby
=""; { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4564 { echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4565 echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6; }
4566 # Check whether --enable-xsmp was given.
4567 if test "${enable_xsmp+set}" = set; then
4568 enableval
=$enable_xsmp;
4574 if test "$enable_xsmp" = "yes"; then
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4577 { echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4578 echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6; }
4579 # Check whether --enable-xsmp-interact was given.
4580 if test "${enable_xsmp_interact+set}" = set; then
4581 enableval
=$enable_xsmp_interact;
4583 enable_xsmp_interact
="yes"
4586 if test "$enable_xsmp_interact" = "yes"; then
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 cat >>confdefs.h
<<\_ACEOF
4590 #define USE_XSMP_INTERACT 1
4594 { echo "$as_me:$LINENO: result: yes" >&5
4595 echo "${ECHO_T}yes" >&6; }
4598 { echo "$as_me:$LINENO: result: yes" >&5
4599 echo "${ECHO_T}yes" >&6; }
4602 { echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4603 echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6; }
4604 # Check whether --enable-mzschemeinterp was given.
4605 if test "${enable_mzschemeinterp+set}" = set; then
4606 enableval
=$enable_mzschemeinterp;
4608 enable_mzschemeinterp
="no"
4611 { echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4612 echo "${ECHO_T}$enable_mzschemeinterp" >&6; }
4614 if test "$enable_mzschemeinterp" = "yes"; then
4617 { echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4618 echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6; }
4620 # Check whether --with-plthome was given.
4621 if test "${with_plthome+set}" = set; then
4622 withval
=$with_plthome; with_plthome
="$withval"; { echo "$as_me:$LINENO: result: $with_plthome" >&5
4623 echo "${ECHO_T}$with_plthome" >&6; }
4625 with_plthome
="";{ echo "$as_me:$LINENO: result: \"no\"" >&5
4626 echo "${ECHO_T}\"no\"" >&6; }
4630 if test "X$with_plthome" != "X"; then
4631 vi_cv_path_mzscheme_pfx
="$with_plthome"
4633 { echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4634 echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6; }
4635 if test "X$PLTHOME" != "X"; then
4636 { echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4637 echo "${ECHO_T}\"$PLTHOME\"" >&6; }
4638 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4640 { echo "$as_me:$LINENO: result: not set" >&5
4641 echo "${ECHO_T}not set" >&6; }
4642 # Extract the first word of "mzscheme", so it can be a program name with args.
4643 set dummy mzscheme
; ac_word
=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 case $vi_cv_path_mzscheme in
4651 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir
=.
4659 for ac_exec_ext
in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4673 if test -n "$vi_cv_path_mzscheme"; then
4674 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4675 echo "${ECHO_T}$vi_cv_path_mzscheme" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4683 if test "X$vi_cv_path_mzscheme" != "X"; then
4684 lsout
=`ls -l $vi_cv_path_mzscheme`
4685 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4686 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4690 if test "X$vi_cv_path_mzscheme" != "X"; then
4691 { echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4692 echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6; }
4693 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 echo "(display (simplify-path \
4697 (build-path (call-with-values \
4698 (lambda () (split-path (find-system-path (quote exec-file)))) \
4699 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4700 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4703 { echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4704 echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6; }
4711 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4712 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4713 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6; }
4714 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4715 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 { echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4722 echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... $ECHO_C" >&6; }
4723 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4724 { echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6; }
4726 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 { echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4731 echo $ECHO_N "checking if scheme.h can be found in /usr/include/plt/... $ECHO_C" >&6; }
4732 if test -f /usr
/include
/plt
/scheme.h
; then
4733 { echo "$as_me:$LINENO: result: yes" >&5
4734 echo "${ECHO_T}yes" >&6; }
4735 SCHEME_INC
=/usr
/include
/plt
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 vi_cv_path_mzscheme_pfx
=
4745 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4746 if test "x$MACOSX" = "xyes"; then
4747 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4748 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4749 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4750 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4751 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4752 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4754 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4755 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4756 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4758 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4760 if test "$GCC" = yes; then
4761 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4762 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4763 uname
-r |
grep '^5' >/dev
/null
; then
4764 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4767 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4768 SCHEME_COLLECTS
=lib
/plt
/
4770 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4771 MZSCHEME_EXTRA
="mzscheme_base.c"
4772 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4773 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4775 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4776 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4777 MZSCHEME_SRC
="if_mzsch.c"
4778 MZSCHEME_OBJ
="objects/if_mzsch.o"
4779 MZSCHEME_PRO
="if_mzsch.pro"
4780 cat >>confdefs.h
<<\_ACEOF
4781 #define FEAT_MZSCHEME 1
4795 { echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4796 echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6; }
4797 # Check whether --enable-perlinterp was given.
4798 if test "${enable_perlinterp+set}" = set; then
4799 enableval
=$enable_perlinterp;
4801 enable_perlinterp
="no"
4804 { echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4805 echo "${ECHO_T}$enable_perlinterp" >&6; }
4806 if test "$enable_perlinterp" = "yes"; then
4808 # Extract the first word of "perl", so it can be a program name with args.
4809 set dummy perl
; ac_word
=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 case $vi_cv_path_perl in
4817 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir
=.
4825 for ac_exec_ext
in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4839 if test -n "$vi_cv_path_perl"; then
4840 { echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4841 echo "${ECHO_T}$vi_cv_path_perl" >&6; }
4843 { echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6; }
4848 if test "X$vi_cv_path_perl" != "X"; then
4849 { echo "$as_me:$LINENO: checking Perl version" >&5
4850 echo $ECHO_N "checking Perl version... $ECHO_C" >&6; }
4851 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4852 eval `$vi_cv_path_perl -V:usethreads`
4853 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4856 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4857 eval `$vi_cv_path_perl -V:use5005threads`
4858 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4862 { echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4863 echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4867 { echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4868 echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6; }
4871 if test $badthreads = no
; then
4872 { echo "$as_me:$LINENO: result: OK" >&5
4873 echo "${ECHO_T}OK" >&6; }
4874 eval `$vi_cv_path_perl -V:shrpenv`
4875 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4878 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4880 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4881 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4882 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4883 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4884 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4885 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4886 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4888 if test "x$MACOSX" = "xyes"; then
4889 perllibs
=`echo "$perllibs" | sed -e 's/-arch[^-]*//g'`
4890 perlcppflags
=`echo "$perlcppflags" | sed -e 's/-arch[^-]*//g'`
4893 { echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4894 echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6; }
4897 ldflags_save
=$LDFLAGS
4898 CFLAGS
="$CFLAGS $perlcppflags"
4899 LIBS
="$LIBS $perllibs"
4900 LDFLAGS
="$perlldflags $LDFLAGS"
4901 cat >conftest.
$ac_ext <<_ACEOF
4904 cat confdefs.h
>>conftest.
$ac_ext
4905 cat >>conftest.
$ac_ext <<_ACEOF
4906 /* end confdefs.h. */
4916 rm -f conftest.
$ac_objext conftest
$ac_exeext
4917 if { (ac_try
="$ac_link"
4919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_link") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest$ac_exeext &&
4933 $as_test_x conftest$ac_exeext; then
4934 { echo "$as_me:$LINENO: result: yes" >&5
4935 echo "${ECHO_T}yes" >&6; }; perl_ok=yes
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 { echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4941 echo "${ECHO_T}no: PERL DISABLED" >&6; }; perl_ok=no
4944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4945 conftest$ac_exeext conftest.$ac_ext
4948 LDFLAGS=$ldflags_save
4949 if test $perl_ok = yes; then
4950 if test "X$perlcppflags" != "X"; then
4951 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4953 if test "X$perlldflags" != "X"; then
4954 LDFLAGS="$perlldflags $LDFLAGS"
4957 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4958 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4959 PERL_PRO="if_perl.pro if_perlsfio.pro"
4960 cat >>confdefs.h <<\_ACEOF
4967 { echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4968 echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4972 if test "x$MACOSX" = "xyes"; then
4973 dir=/System/Library/Perl
4974 darwindir=$dir/darwin
4975 if test -d $darwindir; then
4978 dir=/System/Library/Perl/5.8.1
4979 darwindir=$dir/darwin-thread-multi-2level
4980 if test -d $darwindir; then
4984 if test -n "$PERL"; then
4986 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4987 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4988 PERL_LIBS="-L$darwindir/CORE -lperl"
4999 { echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5000 echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6; }
5001 # Check whether --enable-pythoninterp was given.
5002 if test "${enable_pythoninterp+set}" = set; then
5003 enableval=$enable_pythoninterp;
5005 enable_pythoninterp="no"
5008 { echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5009 echo "${ECHO_T}$enable_pythoninterp" >&6; }
5010 if test "$enable_pythoninterp" = "yes"; then
5011 # Extract the first word of "python", so it can be a program name with args.
5012 set dummy python; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 case $vi_cv_path_python in
5020 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5042 if test -n "$vi_cv_path_python"; then
5043 { echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5044 echo "${ECHO_T}$vi_cv_path_python" >&6; }
5046 { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5051 if test "X$vi_cv_path_python" != "X"; then
5053 { echo "$as_me:$LINENO: checking Python version" >&5
5054 echo $ECHO_N "checking Python version... $ECHO_C" >&6; }
5055 if test "${vi_cv_var_python_version+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 vi_cv_var_python_version=`
5059 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5062 { echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5063 echo "${ECHO_T}$vi_cv_var_python_version" >&6; }
5065 { echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5066 echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6; }
5067 if ${vi_cv_path_python} -c \
5068 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5070 { echo "$as_me:$LINENO: result: yep" >&5
5071 echo "${ECHO_T}yep" >&6; }
5073 { echo "$as_me:$LINENO: checking Python's install prefix" >&5
5074 echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6; }
5075 if test "${vi_cv_path_python_pfx+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 vi_cv_path_python_pfx=`
5079 ${vi_cv_path_python} -c \
5080 "import sys; print sys.prefix"`
5082 { echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5083 echo "${ECHO_T}$vi_cv_path_python_pfx" >&6; }
5085 { echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5086 echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6; }
5087 if test "${vi_cv_path_python_epfx+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 vi_cv_path_python_epfx=`
5091 ${vi_cv_path_python} -c \
5092 "import sys; print sys.exec_prefix"`
5094 { echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5095 echo "${ECHO_T}$vi_cv_path_python_epfx" >&6; }
5098 if test "${vi_cv_path_pythonpath+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 vi_cv_path_pythonpath=`
5103 ${vi_cv_path_python} -c \
5104 "import sys, string; print string.join(sys.path,':')"`
5110 # Check whether --with-python-config-dir was given.
5111 if test "${with_python_config_dir+set}" = set; then
5112 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5116 { echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5117 echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6; }
5118 if test "${vi_cv_path_python_conf+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 vi_cv_path_python_conf=
5123 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5124 for subdir in lib64 lib share; do
5125 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5126 if test -d "$d" && test -f "$d/config.c"; then
5127 vi_cv_path_python_conf="$d"
5133 { echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5134 echo "${ECHO_T}$vi_cv_path_python_conf" >&6; }
5136 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5138 if test "X$PYTHON_CONFDIR" = "X"; then
5139 { echo "$as_me:$LINENO: result: can't find it!" >&5
5140 echo "${ECHO_T}can't find it!" >&6; }
5143 if test "${vi_cv_path_python_plibs+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 tmp_mkf="$pwd/config-PyMake$$"
5149 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5151 @echo "python_MODLIBS='$(MODLIBS)'"
5152 @echo "python_LIBS='$(LIBS)'"
5153 @echo "python_SYSLIBS='$(SYSLIBS)'"
5154 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5156 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5157 rm -f -- "${tmp_mkf}"
5158 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5159 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5160 vi_cv_path_python_plibs="-framework Python"
5162 if test "${vi_cv_var_python_version}" = "1.4"; then
5163 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5165 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5167 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5168 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5174 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5175 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5176 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5178 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}"
5180 PYTHON_SRC="if_python.c"
5181 if test "x$MACOSX" = "xyes"; then
5182 PYTHON_OBJ="objects/if_python.o"
5184 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5186 if test "${vi_cv_var_python_version}" = "1.4"; then
5187 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5189 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5191 { echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5192 echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6; }
5195 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5196 test "$GCC" = yes && threadsafe_flag="-pthread"
5197 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5198 threadsafe_flag="-D_THREAD_SAFE"
5199 thread_lib="-pthread"
5203 if test -n "$threadsafe_flag"; then
5205 CFLAGS="$CFLAGS $threadsafe_flag"
5206 LIBS="$LIBS $thread_lib"
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (ac_try="$ac_link"
5225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5226 *) ac_try_echo
=$ac_try;;
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_link") 2>conftest.er1
5231 grep -v '^ *+' conftest.er1
>conftest.err
5233 cat conftest.err
>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest
$ac_exeext &&
5239 $as_test_x conftest
$ac_exeext; then
5240 { echo "$as_me:$LINENO: result: yes" >&5
5241 echo "${ECHO_T}yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.
$ac_ext >&5
5246 { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }; LIBS
=$libs_save_old
5251 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5252 conftest
$ac_exeext conftest.
$ac_ext
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5259 if test -n "$MACSDK"; then
5261 PYTHON_LIBS
=-framework Python
5263 PYTHON_GETPATH_CFLAGS
=
5266 { echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5267 echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6; }
5270 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5271 LIBS
="$LIBS $PYTHON_LIBS"
5272 cat >conftest.
$ac_ext <<_ACEOF
5275 cat confdefs.h
>>conftest.
$ac_ext
5276 cat >>conftest.
$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5287 rm -f conftest.
$ac_objext conftest
$ac_exeext
5288 if { (ac_try
="$ac_link"
5290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest$ac_exeext &&
5304 $as_test_x conftest$ac_exeext; then
5305 { echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6; }; python_ok=yes
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 { echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5312 echo "${ECHO_T}no: PYTHON DISABLED" >&6; }; python_ok=no
5315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5316 conftest$ac_exeext conftest.$ac_ext
5319 if test $python_ok = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define FEAT_PYTHON 1
5334 { echo "$as_me:$LINENO: result: too old" >&5
5335 echo "${ECHO_T}too old" >&6; }
5346 { echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5347 echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6; }
5348 # Check whether --enable-tclinterp was given.
5349 if test "${enable_tclinterp+set}" = set; then
5350 enableval=$enable_tclinterp;
5352 enable_tclinterp="no"
5355 { echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5356 echo "${ECHO_T}$enable_tclinterp" >&6; }
5358 if test "$enable_tclinterp" = "yes"; then
5360 { echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5361 echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6; }
5363 # Check whether --with-tclsh was given.
5364 if test "${with_tclsh+set}" = set; then
5365 withval=$with_tclsh; tclsh_name="$withval"; { echo "$as_me:$LINENO: result: $tclsh_name" >&5
5366 echo "${ECHO_T}$tclsh_name" >&6; }
5368 tclsh_name="tclsh8.5"; { echo "$as_me:$LINENO: result: no" >&5
5369 echo "${ECHO_T}no" >&6; }
5372 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5373 set dummy $tclsh_name; ac_word=$2
5374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5376 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 case $vi_cv_path_tcl in
5381 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5403 if test -n "$vi_cv_path_tcl"; then
5404 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5405 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5407 { echo "$as_me:$LINENO: result: no" >&5
5408 echo "${ECHO_T}no" >&6; }
5414 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5415 tclsh_name="tclsh8.4"
5416 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5417 set dummy $tclsh_name; ac_word=$2
5418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5420 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 case $vi_cv_path_tcl in
5425 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5447 if test -n "$vi_cv_path_tcl"; then
5448 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5449 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5451 { echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6; }
5457 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5458 tclsh_name="tclsh8.2"
5459 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5460 set dummy $tclsh_name; ac_word=$2
5461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5463 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 case $vi_cv_path_tcl in
5468 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5490 if test -n "$vi_cv_path_tcl"; then
5491 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5492 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5494 { echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6; }
5500 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5501 tclsh_name="tclsh8.0"
5502 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5503 set dummy $tclsh_name; ac_word=$2
5504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5506 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 case $vi_cv_path_tcl in
5511 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5533 if test -n "$vi_cv_path_tcl"; then
5534 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5535 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5537 { echo "$as_me:$LINENO: result: no" >&5
5538 echo "${ECHO_T}no" >&6; }
5543 if test "X$vi_cv_path_tcl" = "X"; then
5545 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5546 set dummy $tclsh_name; ac_word=$2
5547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5549 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 case $vi_cv_path_tcl in
5554 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5576 if test -n "$vi_cv_path_tcl"; then
5577 { echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5578 echo "${ECHO_T}$vi_cv_path_tcl" >&6; }
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5586 if test "X$vi_cv_path_tcl" != "X"; then
5587 { echo "$as_me:$LINENO: checking Tcl version" >&5
5588 echo $ECHO_N "checking Tcl version... $ECHO_C" >&6; }
5589 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5590 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5591 { echo "$as_me:$LINENO: result: $tclver - OK" >&5
5592 echo "${ECHO_T}$tclver - OK" >&6; };
5593 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 -`
5595 { echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5596 echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6; }
5597 if test "x$MACOSX" != "xyes"; then
5598 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5600 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5603 for try in $tclinc; do
5604 if test -f "$try/tcl.h"; then
5605 { echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5606 echo "${ECHO_T}$try/tcl.h" >&6; }
5611 if test -z "$TCL_INC"; then
5612 { echo "$as_me:$LINENO: result: <not found>" >&5
5613 echo "${ECHO_T}<not found>" >&6; }
5616 if test -z "$SKIP_TCL"; then
5617 { echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5618 echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6; }
5619 if test "x$MACOSX" != "xyes"; then
5620 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5621 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5623 tclcnf="/System/Library/Frameworks/Tcl.framework"
5625 for try in $tclcnf; do
5626 if test -f $try/tclConfig.sh; then
5627 { echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5628 echo "${ECHO_T}$try/tclConfig.sh" >&6; }
5630 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5631 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'`
5635 if test -z "$TCL_LIBS"; then
5636 { echo "$as_me:$LINENO: result: <not found>" >&5
5637 echo "${ECHO_T}<not found>" >&6; }
5638 { echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5639 echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6; }
5640 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5641 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5642 for ext in .so .a ; do
5643 for ver in "" $tclver ; do
5644 for try in $tcllib ; do
5646 if test -f $try/lib$trylib ; then
5647 { echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5648 echo "${ECHO_T}$try/lib$trylib" >&6; }
5649 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5650 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5651 uname -r | grep '^5' >/dev/null; then
5652 TCL_LIBS="$TCL_LIBS -R $try"
5659 if test -z "$TCL_LIBS"; then
5660 { echo "$as_me:$LINENO: result: <not found>" >&5
5661 echo "${ECHO_T}<not found>" >&6; }
5665 if test -z "$SKIP_TCL"; then
5666 cat >>confdefs.h <<\_ACEOF
5671 TCL_OBJ=objects/if_tcl.o
5673 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5677 { echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5678 echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6; }
5688 { echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5689 echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6; }
5690 # Check whether --enable-rubyinterp was given.
5691 if test "${enable_rubyinterp+set}" = set; then
5692 enableval=$enable_rubyinterp;
5694 enable_rubyinterp="no"
5697 { echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5698 echo "${ECHO_T}$enable_rubyinterp" >&6; }
5699 if test "$enable_rubyinterp" = "yes"; then
5700 { echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5701 echo $ECHO_N "checking --with-ruby-command argument... $ECHO_C" >&6; }
5703 # Check whether --with-ruby-command was given.
5704 if test "${with_ruby_command+set}" = set; then
5705 withval=$with_ruby_command; RUBY_CMD="$withval"; { echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5706 echo "${ECHO_T}$RUBY_CMD" >&6; }
5708 RUBY_CMD="ruby"; { echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5709 echo "${ECHO_T}defaulting to $RUBY_CMD" >&6; }
5713 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5714 set dummy $RUBY_CMD; ac_word=$2
5715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5717 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 case $vi_cv_path_ruby in
5722 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5744 if test -n "$vi_cv_path_ruby"; then
5745 { echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5746 echo "${ECHO_T}$vi_cv_path_ruby" >&6; }
5748 { echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6; }
5753 if test "X$vi_cv_path_ruby" != "X"; then
5754 { echo "$as_me:$LINENO: checking Ruby version" >&5
5755 echo $ECHO_N "checking Ruby version... $ECHO_C" >&6; }
5756 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5757 { echo "$as_me:$LINENO: result: OK" >&5
5758 echo "${ECHO_T}OK" >&6; }
5759 { echo "$as_me:$LINENO: checking Ruby header files" >&5
5760 echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6; }
5761 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5762 if test "X$rubyhdrdir" != "X"; then
5763 { echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5764 echo "${ECHO_T}$rubyhdrdir" >&6; }
5765 RUBY_CFLAGS="-I$rubyhdrdir"
5766 rubyarch=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["arch"]'`
5767 if test -d "$rubyhdrdir/$rubyarch"; then
5768 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5770 rubyversion=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5771 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5772 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5773 if test "X$rubylibs" != "X"; then
5774 RUBY_LIBS="$rubylibs"
5776 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5777 if test -f "$rubyhdrdir/$librubyarg"; then
5778 librubyarg="$rubyhdrdir/$librubyarg"
5780 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5781 if test -d "/System/Library/Frameworks/Ruby.framework"; then
5782 RUBY_LIBS="-framework Ruby"
5785 elif test -f "$rubylibdir/$librubyarg"; then
5786 librubyarg="$rubylibdir/$librubyarg"
5787 elif test "$librubyarg" = "libruby.a"; then
5790 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5794 if test "X$librubyarg" != "X"; then
5795 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5797 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5798 if test "x$MACOSX" = "xyes"; then
5799 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch[^-]*//g'`
5801 if test "X$rubyldflags" != "X"; then
5802 LDFLAGS="$rubyldflags $LDFLAGS"
5804 RUBY_SRC="if_ruby.c"
5805 RUBY_OBJ="objects/if_ruby.o"
5806 RUBY_PRO="if_ruby.pro"
5808 cat >>confdefs.h <<\_ACEOF
5813 { echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5814 echo "${ECHO_T}not found; disabling Ruby" >&6; }
5817 { echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5818 echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6; }
5828 { echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5829 echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6; }
5830 # Check whether --enable-cscope was given.
5831 if test "${enable_cscope+set}" = set; then
5832 enableval=$enable_cscope;
5837 { echo "$as_me:$LINENO: result: $enable_cscope" >&5
5838 echo "${ECHO_T}$enable_cscope" >&6; }
5839 if test "$enable_cscope" = "yes"; then
5840 cat >>confdefs.h <<\_ACEOF
5841 #define FEAT_CSCOPE 1
5846 { echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5847 echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6; }
5848 # Check whether --enable-workshop was given.
5849 if test "${enable_workshop+set}" = set; then
5850 enableval=$enable_workshop;
5852 enable_workshop="no"
5855 { echo "$as_me:$LINENO: result: $enable_workshop" >&5
5856 echo "${ECHO_T}$enable_workshop" >&6; }
5857 if test "$enable_workshop" = "yes"; then
5858 cat >>confdefs.h <<\_ACEOF
5859 #define FEAT_SUN_WORKSHOP 1
5862 WORKSHOP_SRC="workshop.c integration.c"
5864 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5866 if test "${enable_gui-xxx}" = xxx; then
5871 { echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5872 echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6; }
5873 # Check whether --enable-netbeans was given.
5874 if test "${enable_netbeans+set}" = set; then
5875 enableval=$enable_netbeans;
5877 enable_netbeans="yes"
5880 if test "$enable_netbeans" = "yes"; then
5881 { echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6; }
5884 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5885 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
5886 if test "${ac_cv_lib_socket_socket+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_check_lib_save_LIBS=$LIBS
5890 LIBS="-lsocket $LIBS"
5891 cat >conftest.$ac_ext <<_ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5898 /* Override any GCC internal prototype to avoid an error.
5899 Use char because int might match the return type of a GCC
5900 builtin and then its argument prototype would still apply. */
5913 rm -f conftest.$ac_objext conftest$ac_exeext
5914 if { (ac_try="$ac_link"
5916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5917 *) ac_try_echo
=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_link") 2>conftest.er1
5922 grep -v '^ *+' conftest.er1
>conftest.err
5924 cat conftest.err
>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } && {
5927 test -z "$ac_c_werror_flag" ||
5928 test ! -s conftest.err
5929 } && test -s conftest
$ac_exeext &&
5930 $as_test_x conftest
$ac_exeext; then
5931 ac_cv_lib_socket_socket
=yes
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.
$ac_ext >&5
5936 ac_cv_lib_socket_socket
=no
5939 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5940 conftest
$ac_exeext conftest.
$ac_ext
5941 LIBS
=$ac_check_lib_save_LIBS
5943 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5944 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
5945 if test $ac_cv_lib_socket_socket = yes; then
5946 cat >>confdefs.h
<<_ACEOF
5947 #define HAVE_LIBSOCKET 1
5950 LIBS
="-lsocket $LIBS"
5955 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5956 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5957 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_check_lib_save_LIBS
=$LIBS
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5969 /* Override any GCC internal prototype to avoid an error.
5970 Use char because int might match the return type of a GCC
5971 builtin and then its argument prototype would still apply. */
5975 char gethostbyname ();
5979 return gethostbyname ();
5984 rm -f conftest.
$ac_objext conftest
$ac_exeext
5985 if { (ac_try
="$ac_link"
5987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5991 (eval "$ac_link") 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest$ac_exeext &&
6001 $as_test_x conftest$ac_exeext; then
6002 ac_cv_lib_nsl_gethostbyname=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_lib_nsl_gethostbyname=no
6010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6011 conftest$ac_exeext conftest.$ac_ext
6012 LIBS=$ac_check_lib_save_LIBS
6014 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6015 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6016 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_LIBNSL 1
6025 { echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6026 echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6; }
6027 cat >conftest.$ac_ext <<_ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6039 #include <netinet/in.h>
6041 #include <sys/types.h>
6042 #include <sys/socket.h>
6043 /* Check bitfields */
6045 unsigned int initDone:1;
6053 /* Check creating a socket. */
6054 struct sockaddr_in server;
6055 (void)socket(AF_INET, SOCK_STREAM, 0);
6057 (void)gethostbyname("microsoft.com");
6058 if (errno == ECONNREFUSED)
6059 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (ac_try="$ac_link"
6068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6069 *) ac_try_echo
=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_link") 2>conftest.er1
6074 grep -v '^ *+' conftest.er1
>conftest.err
6076 cat conftest.err
>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest
$ac_exeext &&
6082 $as_test_x conftest
$ac_exeext; then
6083 { echo "$as_me:$LINENO: result: yes" >&5
6084 echo "${ECHO_T}yes" >&6; }
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.
$ac_ext >&5
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }; enable_netbeans
="no"
6093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6094 conftest
$ac_exeext conftest.
$ac_ext
6096 { echo "$as_me:$LINENO: result: yes" >&5
6097 echo "${ECHO_T}yes" >&6; }
6099 if test "$enable_netbeans" = "yes"; then
6100 cat >>confdefs.h
<<\_ACEOF
6101 #define FEAT_NETBEANS_INTG 1
6104 NETBEANS_SRC
="netbeans.c"
6106 NETBEANS_OBJ
="objects/netbeans.o"
6110 { echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6111 echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6; }
6112 # Check whether --enable-sniff was given.
6113 if test "${enable_sniff+set}" = set; then
6114 enableval
=$enable_sniff;
6119 { echo "$as_me:$LINENO: result: $enable_sniff" >&5
6120 echo "${ECHO_T}$enable_sniff" >&6; }
6121 if test "$enable_sniff" = "yes"; then
6122 cat >>confdefs.h
<<\_ACEOF
6123 #define FEAT_SNIFF 1
6126 SNIFF_SRC
="if_sniff.c"
6128 SNIFF_OBJ
="objects/if_sniff.o"
6132 { echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6133 echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6; }
6134 # Check whether --enable-multibyte was given.
6135 if test "${enable_multibyte+set}" = set; then
6136 enableval
=$enable_multibyte;
6138 enable_multibyte
="no"
6141 { echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6142 echo "${ECHO_T}$enable_multibyte" >&6; }
6143 if test "$enable_multibyte" = "yes"; then
6144 cat >>confdefs.h
<<\_ACEOF
6145 #define FEAT_MBYTE 1
6150 { echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6151 echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6; }
6152 # Check whether --enable-hangulinput was given.
6153 if test "${enable_hangulinput+set}" = set; then
6154 enableval
=$enable_hangulinput;
6156 enable_hangulinput
="no"
6159 { echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6160 echo "${ECHO_T}$enable_hangulinput" >&6; }
6162 { echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6163 echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6; }
6164 # Check whether --enable-xim was given.
6165 if test "${enable_xim+set}" = set; then
6166 enableval
=$enable_xim; { echo "$as_me:$LINENO: result: $enable_xim" >&5
6167 echo "${ECHO_T}$enable_xim" >&6; }
6169 enable_xim
="auto"; { echo "$as_me:$LINENO: result: defaulting to auto" >&5
6170 echo "${ECHO_T}defaulting to auto" >&6; }
6174 { echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6175 echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6; }
6176 # Check whether --enable-fontset was given.
6177 if test "${enable_fontset+set}" = set; then
6178 enableval
=$enable_fontset;
6183 { echo "$as_me:$LINENO: result: $enable_fontset" >&5
6184 echo "${ECHO_T}$enable_fontset" >&6; }
6186 test -z "$with_x" && with_x
=yes
6187 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6188 if test "$with_x" = no
; then
6189 { echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6190 echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6; }
6193 # Extract the first word of "xmkmf", so it can be a program name with args.
6194 set dummy xmkmf
; ac_word
=$2
6195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6197 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir
=.
6210 for ac_exec_ext
in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 xmkmfpath
=$ac_cv_path_xmkmfpath
6224 if test -n "$xmkmfpath"; then
6225 { echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6226 echo "${ECHO_T}$xmkmfpath" >&6; }
6228 { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6234 { echo "$as_me:$LINENO: checking for X" >&5
6235 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6238 # Check whether --with-x was given.
6239 if test "${with_x+set}" = set; then
6243 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6244 if test "x$with_x" = xno
; then
6245 # The user explicitly disabled X.
6248 case $x_includes,$x_libraries in #(
6249 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6250 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6251 { (exit 1); exit 1; }; };; #(
6252 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 # One or both of the vars are not set, and there is no cached value.
6256 ac_x_includes
=no ac_x_libraries
=no
6257 rm -f -r conftest.dir
6258 if mkdir conftest.dir
; then
6260 cat >Imakefile
<<'_ACEOF'
6262 @echo incroot='${INCROOT}'
6264 @echo usrlibdir='${USRLIBDIR}'
6266 @echo libdir='${LIBDIR}'
6268 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6269 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6270 for ac_var
in incroot usrlibdir libdir
; do
6271 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6273 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6274 for ac_extension
in a so sl dylib la dll
; do
6275 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6276 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6277 ac_im_usrlibdir
=$ac_im_libdir; break
6280 # Screen out bogus values from the imake configuration. They are
6281 # bogus both because they are the default anyway, and because
6282 # using them would break gcc on systems where it needs fixed includes.
6283 case $ac_im_incroot in
6284 /usr
/include
) ac_x_includes
= ;;
6285 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6287 case $ac_im_usrlibdir in
6289 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6293 rm -f -r conftest.dir
6296 # Standard set of common directories for X headers.
6297 # Check X11 before X11Rn because it is often a symlink to the current release.
6309 /usr/local/X11/include
6310 /usr/local/X11R6/include
6311 /usr/local/X11R5/include
6312 /usr/local/X11R4/include
6314 /usr/local/include/X11
6315 /usr/local/include/X11R6
6316 /usr/local/include/X11R5
6317 /usr/local/include/X11R4
6321 /usr/XFree86/include/X11
6325 /usr/unsupported/include
6327 /usr/local/x11r5/include
6328 /usr/lpp/Xamples/include
6330 /usr/openwin/include
6331 /usr/openwin/share/include'
6333 if test "$ac_x_includes" = no
; then
6334 # Guess where to find include files, by looking for Xlib.h.
6335 # First, try using that file with no special directory specified.
6336 cat >conftest.
$ac_ext <<_ACEOF
6339 cat confdefs.h
>>conftest.
$ac_ext
6340 cat >>conftest.
$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <X11/Xlib.h>
6344 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1 >conftest.err
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null && {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6360 # We can compile using X headers with no special include directory.
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 for ac_dir in $ac_x_header_dirs; do
6367 if test -r "$ac_dir/X11/Xlib.h"; then
6368 ac_x_includes=$ac_dir
6374 rm -f conftest.err conftest.$ac_ext
6375 fi # $ac_x_includes = no
6377 if test "$ac_x_libraries" = no; then
6378 # Check for the libraries.
6379 # See if we find them without any special options.
6380 # Don't add to $LIBS permanently.
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6389 #include <X11/Xlib.h>
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (ac_try="$ac_link"
6401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6402 *) ac_try_echo
=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_link") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest
$ac_exeext &&
6415 $as_test_x conftest
$ac_exeext; then
6417 # We can link X programs with no special library path.
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.
$ac_ext >&5
6424 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6426 # Don't even attempt the hair of trying to link an X program!
6427 for ac_extension
in a so sl dylib la dll
; do
6428 if test -r "$ac_dir/libX11.$ac_extension"; then
6429 ac_x_libraries
=$ac_dir
6436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6437 conftest
$ac_exeext conftest.
$ac_ext
6438 fi # $ac_x_libraries = no
6440 case $ac_x_includes,$ac_x_libraries in #(
6442 # Didn't find X, or a directory has "'" in its name.
6443 ac_cv_have_x
="have_x=no";; #(
6445 # Record where we found X for the cache.
6446 ac_cv_have_x
="have_x=yes\
6447 ac_x_includes='$ac_x_includes'\
6448 ac_x_libraries='$ac_x_libraries'"
6454 eval "$ac_cv_have_x"
6457 if test "$have_x" != yes; then
6458 { echo "$as_me:$LINENO: result: $have_x" >&5
6459 echo "${ECHO_T}$have_x" >&6; }
6462 # If each of the values was on the command line, it overrides each guess.
6463 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6464 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6465 # Update the cache value to reflect the command line values.
6466 ac_cv_have_x
="have_x=yes\
6467 ac_x_includes='$x_includes'\
6468 ac_x_libraries='$x_libraries'"
6469 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6470 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6473 if test "$no_x" = yes; then
6474 # Not all programs may use this symbol, but it does not hurt to define it.
6476 cat >>confdefs.h
<<\_ACEOF
6477 #define X_DISPLAY_MISSING 1
6480 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6482 if test -n "$x_includes"; then
6483 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6486 # It would also be nice to do this for all -L options, not just this one.
6487 if test -n "$x_libraries"; then
6488 X_LIBS
="$X_LIBS -L$x_libraries"
6489 # For Solaris; some versions of Sun CC require a space after -R and
6490 # others require no space. Words are not sufficient . . . .
6491 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6492 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6493 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6494 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6495 ac_c_werror_flag
=yes
6496 cat >conftest.
$ac_ext <<_ACEOF
6499 cat confdefs.h
>>conftest.
$ac_ext
6500 cat >>conftest.
$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6511 rm -f conftest.
$ac_objext conftest
$ac_exeext
6512 if { (ac_try
="$ac_link"
6514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_link") 2>conftest.er1
6520 grep -v '^ *+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest$ac_exeext &&
6528 $as_test_x conftest$ac_exeext; then
6529 { echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6; }
6531 X_LIBS="$X_LIBS -R$x_libraries"
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 LIBS="$ac_xsave_LIBS -R $x_libraries"
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6556 *) ac_try_echo
=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_link") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1
>conftest.err
6563 cat conftest.err
>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest
$ac_exeext &&
6569 $as_test_x conftest
$ac_exeext; then
6570 { echo "$as_me:$LINENO: result: yes" >&5
6571 echo "${ECHO_T}yes" >&6; }
6572 X_LIBS
="$X_LIBS -R $x_libraries"
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.
$ac_ext >&5
6577 { echo "$as_me:$LINENO: result: neither works" >&5
6578 echo "${ECHO_T}neither works" >&6; }
6581 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6582 conftest
$ac_exeext conftest.
$ac_ext
6585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6586 conftest
$ac_exeext conftest.
$ac_ext
6587 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6591 # Check for system-dependent libraries X programs must link with.
6592 # Do this before checking for the system-independent R6 libraries
6593 # (-lICE), since we may need -lsocket or whatever for X linking.
6595 if test "$ISC" = yes; then
6596 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6598 # Martyn Johnson says this is needed for Ultrix, if the X
6599 # libraries were built with DECnet support. And Karl Berry says
6600 # the Alpha needs dnet_stub (dnet does not exist).
6601 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6602 cat >conftest.
$ac_ext <<_ACEOF
6605 cat confdefs.h
>>conftest.
$ac_ext
6606 cat >>conftest.
$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6609 /* Override any GCC internal prototype to avoid an error.
6610 Use char because int might match the return type of a GCC
6611 builtin and then its argument prototype would still apply. */
6615 char XOpenDisplay ();
6619 return XOpenDisplay ();
6624 rm -f conftest.
$ac_objext conftest
$ac_exeext
6625 if { (ac_try
="$ac_link"
6627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_link") 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest$ac_exeext &&
6641 $as_test_x conftest$ac_exeext; then
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6648 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6649 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 ac_check_lib_save_LIBS=$LIBS
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6661 /* Override any GCC internal prototype to avoid an error.
6662 Use char because int might match the return type of a GCC
6663 builtin and then its argument prototype would still apply. */
6671 return dnet_ntoa ();
6676 rm -f conftest.$ac_objext conftest$ac_exeext
6677 if { (ac_try="$ac_link"
6679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6680 *) ac_try_echo
=$ac_try;;
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_link") 2>conftest.er1
6685 grep -v '^ *+' conftest.er1
>conftest.err
6687 cat conftest.err
>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest
$ac_exeext &&
6693 $as_test_x conftest
$ac_exeext; then
6694 ac_cv_lib_dnet_dnet_ntoa
=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.
$ac_ext >&5
6699 ac_cv_lib_dnet_dnet_ntoa
=no
6702 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6703 conftest
$ac_exeext conftest.
$ac_ext
6704 LIBS
=$ac_check_lib_save_LIBS
6706 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6707 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6708 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6709 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6712 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6713 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6714 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6715 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_check_lib_save_LIBS
=$LIBS
6719 LIBS
="-ldnet_stub $LIBS"
6720 cat >conftest.
$ac_ext <<_ACEOF
6723 cat confdefs.h
>>conftest.
$ac_ext
6724 cat >>conftest.
$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6727 /* Override any GCC internal prototype to avoid an error.
6728 Use char because int might match the return type of a GCC
6729 builtin and then its argument prototype would still apply. */
6737 return dnet_ntoa ();
6742 rm -f conftest.
$ac_objext conftest
$ac_exeext
6743 if { (ac_try
="$ac_link"
6745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_link") 2>conftest.er1
6751 grep -v '^ *+' conftest.er1 >conftest.err
6753 cat conftest.err >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } && {
6756 test -z "$ac_c_werror_flag" ||
6757 test ! -s conftest.err
6758 } && test -s conftest$ac_exeext &&
6759 $as_test_x conftest$ac_exeext; then
6760 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6765 ac_cv_lib_dnet_stub_dnet_ntoa=no
6768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6769 conftest$ac_exeext conftest.$ac_ext
6770 LIBS=$ac_check_lib_save_LIBS
6772 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6773 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6774 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6775 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6782 conftest$ac_exeext conftest.$ac_ext
6783 LIBS="$ac_xsave_LIBS"
6785 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6786 # to get the SysV transport functions.
6787 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6789 # The nsl library prevents programs from opening the X display
6790 # on Irix 5.2, according to T.E. Dickey.
6791 # The functions gethostbyname, getservbyname, and inet_addr are
6792 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6793 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6794 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6795 if test "${ac_cv_func_gethostbyname+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 cat >conftest.$ac_ext <<_ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6806 #define gethostbyname innocuous_gethostbyname
6808 /* System header to define __stub macros and hopefully few prototypes,
6809 which can conflict with char gethostbyname (); below.
6810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6811 <limits.h> exists even on freestanding compilers. */
6814 # include <limits.h>
6816 # include <assert.h>
6819 #undef gethostbyname
6821 /* Override any GCC internal prototype to avoid an error.
6822 Use char because int might match the return type of a GCC
6823 builtin and then its argument prototype would still apply. */
6827 char gethostbyname ();
6828 /* The GNU C library defines this for functions which it implements
6829 to always fail with ENOSYS. Some functions are actually named
6830 something starting with __ and the normal name is an alias. */
6831 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6838 return gethostbyname ();
6843 rm -f conftest.$ac_objext conftest$ac_exeext
6844 if { (ac_try="$ac_link"
6846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6847 *) ac_try_echo
=$ac_try;;
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_link") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1
>conftest.err
6854 cat conftest.err
>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest
$ac_exeext &&
6860 $as_test_x conftest
$ac_exeext; then
6861 ac_cv_func_gethostbyname
=yes
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.
$ac_ext >&5
6866 ac_cv_func_gethostbyname
=no
6869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6870 conftest
$ac_exeext conftest.
$ac_ext
6872 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6873 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6875 if test $ac_cv_func_gethostbyname = no
; then
6876 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6877 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6878 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_check_lib_save_LIBS
=$LIBS
6883 cat >conftest.
$ac_ext <<_ACEOF
6886 cat confdefs.h
>>conftest.
$ac_ext
6887 cat >>conftest.
$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6890 /* Override any GCC internal prototype to avoid an error.
6891 Use char because int might match the return type of a GCC
6892 builtin and then its argument prototype would still apply. */
6896 char gethostbyname ();
6900 return gethostbyname ();
6905 rm -f conftest.
$ac_objext conftest
$ac_exeext
6906 if { (ac_try
="$ac_link"
6908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6909 *) ac_try_echo=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>conftest.er1
6914 grep -v '^ *+' conftest.er1 >conftest.err
6916 cat conftest.err >&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } && {
6919 test -z "$ac_c_werror_flag" ||
6920 test ! -s conftest.err
6921 } && test -s conftest$ac_exeext &&
6922 $as_test_x conftest$ac_exeext; then
6923 ac_cv_lib_nsl_gethostbyname=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_cv_lib_nsl_gethostbyname=no
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932 conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6936 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6937 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6941 if test $ac_cv_lib_nsl_gethostbyname = no; then
6942 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6943 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6944 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6947 ac_check_lib_save_LIBS=$LIBS
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 /* Override any GCC internal prototype to avoid an error.
6957 Use char because int might match the return type of a GCC
6958 builtin and then its argument prototype would still apply. */
6962 char gethostbyname ();
6966 return gethostbyname ();
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (ac_try="$ac_link"
6974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6975 *) ac_try_echo
=$ac_try;;
6977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6978 (eval "$ac_link") 2>conftest.er1
6980 grep -v '^ *+' conftest.er1
>conftest.err
6982 cat conftest.err
>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } && {
6985 test -z "$ac_c_werror_flag" ||
6986 test ! -s conftest.err
6987 } && test -s conftest
$ac_exeext &&
6988 $as_test_x conftest
$ac_exeext; then
6989 ac_cv_lib_bsd_gethostbyname
=yes
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.
$ac_ext >&5
6994 ac_cv_lib_bsd_gethostbyname
=no
6997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6998 conftest
$ac_exeext conftest.
$ac_ext
6999 LIBS
=$ac_check_lib_save_LIBS
7001 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7002 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
7003 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7004 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7010 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7011 # socket/setsockopt and other routines are undefined under SCO ODT
7012 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7013 # on later versions), says Simon Leinen: it contains gethostby*
7014 # variants that don't use the name server (or something). -lsocket
7015 # must be given before -lnsl if both are needed. We assume that
7016 # if connect needs -lnsl, so does gethostbyname.
7017 { echo "$as_me:$LINENO: checking for connect" >&5
7018 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
7019 if test "${ac_cv_func_connect+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.
$ac_ext <<_ACEOF
7025 cat confdefs.h
>>conftest.
$ac_ext
7026 cat >>conftest.
$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7030 #define connect innocuous_connect
7032 /* System header to define __stub macros and hopefully few prototypes,
7033 which can conflict with char connect (); below.
7034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035 <limits.h> exists even on freestanding compilers. */
7038 # include <limits.h>
7040 # include <assert.h>
7045 /* Override any GCC internal prototype to avoid an error.
7046 Use char because int might match the return type of a GCC
7047 builtin and then its argument prototype would still apply. */
7052 /* The GNU C library defines this for functions which it implements
7053 to always fail with ENOSYS. Some functions are actually named
7054 something starting with __ and the normal name is an alias. */
7055 #if defined __stub_connect || defined __stub___connect
7067 rm -f conftest.
$ac_objext conftest
$ac_exeext
7068 if { (ac_try
="$ac_link"
7070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_link") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest$ac_exeext &&
7084 $as_test_x conftest$ac_exeext; then
7085 ac_cv_func_connect=yes
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_func_connect=no
7093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7094 conftest$ac_exeext conftest.$ac_ext
7096 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7097 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
7099 if test $ac_cv_func_connect = no; then
7100 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7101 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
7102 if test "${ac_cv_lib_socket_connect+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_check_lib_save_LIBS=$LIBS
7106 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7114 /* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7133 *) ac_try_echo
=$ac_try;;
7135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_link") 2>conftest.er1
7138 grep -v '^ *+' conftest.er1
>conftest.err
7140 cat conftest.err
>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } && {
7143 test -z "$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 } && test -s conftest
$ac_exeext &&
7146 $as_test_x conftest
$ac_exeext; then
7147 ac_cv_lib_socket_connect
=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.
$ac_ext >&5
7152 ac_cv_lib_socket_connect
=no
7155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7156 conftest
$ac_exeext conftest.
$ac_ext
7157 LIBS
=$ac_check_lib_save_LIBS
7159 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7160 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7161 if test $ac_cv_lib_socket_connect = yes; then
7162 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7167 # Guillermo Gomez says -lposix is necessary on A/UX.
7168 { echo "$as_me:$LINENO: checking for remove" >&5
7169 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7170 if test "${ac_cv_func_remove+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 cat >conftest.
$ac_ext <<_ACEOF
7176 cat confdefs.h
>>conftest.
$ac_ext
7177 cat >>conftest.
$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7181 #define remove innocuous_remove
7183 /* System header to define __stub macros and hopefully few prototypes,
7184 which can conflict with char remove (); below.
7185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7186 <limits.h> exists even on freestanding compilers. */
7189 # include <limits.h>
7191 # include <assert.h>
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined __stub_remove || defined __stub___remove
7218 rm -f conftest.
$ac_objext conftest
$ac_exeext
7219 if { (ac_try
="$ac_link"
7221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225 (eval "$ac_link") 2>conftest.er1
7227 grep -v '^ *+' conftest.er1 >conftest.err
7229 cat conftest.err >&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && {
7232 test -z "$ac_c_werror_flag" ||
7233 test ! -s conftest.err
7234 } && test -s conftest$ac_exeext &&
7235 $as_test_x conftest$ac_exeext; then
7236 ac_cv_func_remove=yes
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 ac_cv_func_remove=no
7244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7245 conftest$ac_exeext conftest.$ac_ext
7247 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7248 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7250 if test $ac_cv_func_remove = no; then
7251 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7252 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7253 if test "${ac_cv_lib_posix_remove+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_check_lib_save_LIBS=$LIBS
7257 LIBS="-lposix $LIBS"
7258 cat >conftest.$ac_ext <<_ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7265 /* Override any GCC internal prototype to avoid an error.
7266 Use char because int might match the return type of a GCC
7267 builtin and then its argument prototype would still apply. */
7280 rm -f conftest.$ac_objext conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7284 *) ac_try_echo
=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1
>conftest.err
7291 cat conftest.err
>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest
$ac_exeext &&
7297 $as_test_x conftest
$ac_exeext; then
7298 ac_cv_lib_posix_remove
=yes
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.
$ac_ext >&5
7303 ac_cv_lib_posix_remove
=no
7306 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7307 conftest
$ac_exeext conftest.
$ac_ext
7308 LIBS
=$ac_check_lib_save_LIBS
7310 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7311 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7312 if test $ac_cv_lib_posix_remove = yes; then
7313 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7318 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7319 { echo "$as_me:$LINENO: checking for shmat" >&5
7320 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7321 if test "${ac_cv_func_shmat+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 cat >conftest.
$ac_ext <<_ACEOF
7327 cat confdefs.h
>>conftest.
$ac_ext
7328 cat >>conftest.
$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7332 #define shmat innocuous_shmat
7334 /* System header to define __stub macros and hopefully few prototypes,
7335 which can conflict with char shmat (); below.
7336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7337 <limits.h> exists even on freestanding compilers. */
7340 # include <limits.h>
7342 # include <assert.h>
7347 /* Override any GCC internal prototype to avoid an error.
7348 Use char because int might match the return type of a GCC
7349 builtin and then its argument prototype would still apply. */
7354 /* The GNU C library defines this for functions which it implements
7355 to always fail with ENOSYS. Some functions are actually named
7356 something starting with __ and the normal name is an alias. */
7357 #if defined __stub_shmat || defined __stub___shmat
7369 rm -f conftest.
$ac_objext conftest
$ac_exeext
7370 if { (ac_try
="$ac_link"
7372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7373 *) ac_try_echo=$ac_try;;
7375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7376 (eval "$ac_link") 2>conftest.er1
7378 grep -v '^ *+' conftest.er1 >conftest.err
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } && {
7383 test -z "$ac_c_werror_flag" ||
7384 test ! -s conftest.err
7385 } && test -s conftest$ac_exeext &&
7386 $as_test_x conftest$ac_exeext; then
7387 ac_cv_func_shmat=yes
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7396 conftest$ac_exeext conftest.$ac_ext
7398 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7399 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7401 if test $ac_cv_func_shmat = no; then
7402 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7403 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7404 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 ac_check_lib_save_LIBS=$LIBS
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7416 /* Override any GCC internal prototype to avoid an error.
7417 Use char because int might match the return type of a GCC
7418 builtin and then its argument prototype would still apply. */
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7435 *) ac_try_echo
=$ac_try;;
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>conftest.er1
7440 grep -v '^ *+' conftest.er1
>conftest.err
7442 cat conftest.err
>&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } && {
7445 test -z "$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7447 } && test -s conftest
$ac_exeext &&
7448 $as_test_x conftest
$ac_exeext; then
7449 ac_cv_lib_ipc_shmat
=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7454 ac_cv_lib_ipc_shmat
=no
7457 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7458 conftest
$ac_exeext conftest.
$ac_ext
7459 LIBS
=$ac_check_lib_save_LIBS
7461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7462 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7463 if test $ac_cv_lib_ipc_shmat = yes; then
7464 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7470 # Check for libraries that X11R6 Xt/Xaw programs need.
7471 ac_save_LDFLAGS
=$LDFLAGS
7472 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7473 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7474 # check for ICE first), but we must link in the order -lSM -lICE or
7475 # we get undefined symbols. So assume we have SM if we have ICE.
7476 # These have to be linked with before -lX11, unlike the other
7477 # libraries we check for below, so use a different variable.
7478 # John Interrante, Karl Berry
7479 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7480 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7481 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 ac_check_lib_save_LIBS
=$LIBS
7485 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7486 cat >conftest.
$ac_ext <<_ACEOF
7489 cat confdefs.h
>>conftest.
$ac_ext
7490 cat >>conftest.
$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7493 /* Override any GCC internal prototype to avoid an error.
7494 Use char because int might match the return type of a GCC
7495 builtin and then its argument prototype would still apply. */
7499 char IceConnectionNumber ();
7503 return IceConnectionNumber ();
7508 rm -f conftest.
$ac_objext conftest
$ac_exeext
7509 if { (ac_try
="$ac_link"
7511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7512 *) ac_try_echo=$ac_try;;
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515 (eval "$ac_link") 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest$ac_exeext &&
7525 $as_test_x conftest$ac_exeext; then
7526 ac_cv_lib_ICE_IceConnectionNumber=yes
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7531 ac_cv_lib_ICE_IceConnectionNumber=no
7534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7535 conftest$ac_exeext conftest.$ac_ext
7536 LIBS=$ac_check_lib_save_LIBS
7538 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7539 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7540 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7541 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7544 LDFLAGS=$ac_save_LDFLAGS
7549 if test "$OS390Unix" = "yes"; then
7550 CFLAGS="$CFLAGS -W c,dll"
7551 LDFLAGS="$LDFLAGS -W l,dll"
7552 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7556 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7557 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7558 { echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7559 echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6; }
7560 X_LIBS="$X_LIBS -L$x_libraries"
7561 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7562 uname -r | grep '^5' >/dev/null; then
7563 X_LIBS="$X_LIBS -R $x_libraries"
7567 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7568 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7569 { echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7570 echo "${ECHO_T}Corrected X includes to $x_includes" >&6; }
7571 X_CFLAGS="$X_CFLAGS -I$x_includes"
7574 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7575 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7576 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7579 { echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7580 echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6; }
7582 CFLAGS="$CFLAGS $X_CFLAGS"
7583 cat >conftest.$ac_ext <<_ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <X11/Xlib.h>
7590 #include <X11/Intrinsic.h>
7599 rm -f conftest.$ac_objext
7600 if { (ac_try="$ac_compile"
7602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7603 *) ac_try_echo
=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_compile") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1
>conftest.err
7610 cat conftest.err
>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.
$ac_objext; then
7616 { echo "$as_me:$LINENO: result: yes" >&5
7617 echo "${ECHO_T}yes" >&6; }
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.
$ac_ext >&5
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }; no_x
=yes
7626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7629 if test "${no_x-no}" = yes; then
7632 cat >>confdefs.h
<<\_ACEOF
7639 ac_save_LDFLAGS
="$LDFLAGS"
7640 LDFLAGS
="-L$x_libraries $LDFLAGS"
7642 { echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7643 echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6; }
7644 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_check_lib_save_LIBS
=$LIBS
7648 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7649 cat >conftest.
$ac_ext <<_ACEOF
7652 cat confdefs.h
>>conftest.
$ac_ext
7653 cat >>conftest.
$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7656 /* Override any GCC internal prototype to avoid an error.
7657 Use char because int might match the return type of a GCC
7658 builtin and then its argument prototype would still apply. */
7662 char _XdmcpAuthDoIt ();
7666 return _XdmcpAuthDoIt ();
7671 rm -f conftest.
$ac_objext conftest
$ac_exeext
7672 if { (ac_try
="$ac_link"
7674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_link") 2>conftest.er1
7680 grep -v '^ *+' conftest.er1 >conftest.err
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest$ac_exeext &&
7688 $as_test_x conftest$ac_exeext; then
7689 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7698 conftest$ac_exeext conftest.$ac_ext
7699 LIBS=$ac_check_lib_save_LIBS
7701 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7702 echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7703 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7708 { echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7709 echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6; }
7710 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7728 char IceOpenConnection ();
7732 return IceOpenConnection ();
7737 rm -f conftest.$ac_objext conftest$ac_exeext
7738 if { (ac_try="$ac_link"
7740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7741 *) ac_try_echo
=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>conftest.er1
7746 grep -v '^ *+' conftest.er1
>conftest.err
7748 cat conftest.err
>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest
$ac_exeext &&
7754 $as_test_x conftest
$ac_exeext; then
7755 ac_cv_lib_ICE_IceOpenConnection
=yes
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.
$ac_ext >&5
7760 ac_cv_lib_ICE_IceOpenConnection
=no
7763 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7764 conftest
$ac_exeext conftest.
$ac_ext
7765 LIBS
=$ac_check_lib_save_LIBS
7767 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7768 echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7769 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7770 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7774 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7775 { echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7776 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6; }
7777 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 ac_check_lib_save_LIBS
=$LIBS
7781 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7782 cat >conftest.
$ac_ext <<_ACEOF
7785 cat confdefs.h
>>conftest.
$ac_ext
7786 cat >>conftest.
$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7789 /* Override any GCC internal prototype to avoid an error.
7790 Use char because int might match the return type of a GCC
7791 builtin and then its argument prototype would still apply. */
7795 char XpmCreatePixmapFromData ();
7799 return XpmCreatePixmapFromData ();
7804 rm -f conftest.
$ac_objext conftest
$ac_exeext
7805 if { (ac_try
="$ac_link"
7807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_link") 2>conftest.er1
7813 grep -v '^ *+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest$ac_exeext &&
7821 $as_test_x conftest$ac_exeext; then
7822 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7831 conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7834 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7835 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7836 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7837 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7841 { echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7842 echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6; }
7844 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 #include <X11/Xlib.h>
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7864 *) ac_try_echo
=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1
>conftest.err
7871 cat conftest.err
>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.
$ac_objext; then
7877 { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7880 echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.
$ac_ext >&5
7883 CFLAGS
="$CFLAGS -Wno-implicit-int"
7884 cat >conftest.
$ac_ext <<_ACEOF
7887 cat confdefs.h
>>conftest.
$ac_ext
7888 cat >>conftest.
$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 #include <X11/Xlib.h>
7899 rm -f conftest.
$ac_objext
7900 if { (ac_try
="$ac_compile"
7902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_compile") 2>conftest.er1
7908 grep -v '^ *+' conftest.er1 >conftest.err
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } && {
7913 test -z "$ac_c_werror_flag" ||
7914 test ! -s conftest.err
7915 } && test -s conftest.$ac_objext; then
7916 { echo "$as_me:$LINENO: result: yes" >&5
7917 echo "${ECHO_T}yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 { echo "$as_me:$LINENO: result: test failed" >&5
7923 echo "${ECHO_T}test failed" >&6; }
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 LDFLAGS="$ac_save_LDFLAGS"
7936 { echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
7937 echo $ECHO_N "checking size of wchar_t is 2 bytes... $ECHO_C" >&6; }
7938 if test "${ac_cv_small_wchar_t+set}" = set; then
7939 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 if test "$cross_compiling" = yes; then
7942 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
7943 echo "$as_me: error: failed to compile test program" >&2;}
7944 { (exit 1); exit 1; }; }
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7953 #include <X11/Xlib.h>
7955 # include <stdlib.h>
7956 # include <stddef.h>
7960 if (sizeof(wchar_t) <= 2)
7965 rm -f conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7969 *) ac_try_echo
=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7976 { (case "(($ac_try" in
7977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_try") 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_small_wchar_t="no"
7987 echo "$as_me: program exited with status $ac_status" >&5
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7992 ac_cv_small_wchar_t="yes"
7994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8000 { echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8001 echo "${ECHO_T}$ac_cv_small_wchar_t" >&6; }
8002 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8003 cat >>confdefs.h <<\_ACEOF
8004 #define SMALL_WCHAR_T 1
8012 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8014 { echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8015 echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6; }
8016 # Check whether --enable-gui was given.
8017 if test "${enable_gui+set}" = set; then
8018 enableval=$enable_gui;
8024 enable_gui_canon=`echo "_$enable_gui" | \
8025 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8038 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8040 case "$enable_gui_canon" in
8041 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8042 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 photon) { echo "$as_me:$LINENO: result: Photon GUI support" >&5
8049 echo "${ECHO_T}Photon GUI support" >&6; } ;;
8050 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8051 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8055 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8058 case "$enable_gui_canon" in
8059 no) { echo "$as_me:$LINENO: result: no GUI support" >&5
8060 echo "${ECHO_T}no GUI support" >&6; }
8063 yes|"") { echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8064 echo "${ECHO_T}yes - automatic GUI support" >&6; } ;;
8065 auto) { echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8066 echo "${ECHO_T}auto - automatic GUI support" >&6; } ;;
8067 carbon) { echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8068 echo "${ECHO_T}Carbon GUI support" >&6; }
8070 macvim) { echo "$as_me:$LINENO: result: MacVim GUI support" >&5
8071 echo "${ECHO_T}MacVim GUI support" >&6; }
8073 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8074 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; }
8081 case "$enable_gui_canon" in
8082 no|none) { echo "$as_me:$LINENO: result: no GUI support" >&5
8083 echo "${ECHO_T}no GUI support" >&6; } ;;
8084 yes|""|auto) { echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8085 echo "${ECHO_T}yes/auto - automatic GUI support" >&6; }
8094 gtk) { echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8095 echo "${ECHO_T}GTK+ 1.x GUI support" >&6; }
8097 gtk2) { echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8098 echo "${ECHO_T}GTK+ 2.x GUI support" >&6; }
8101 gnome) { echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8102 echo "${ECHO_T}GNOME 1.x GUI support" >&6; }
8105 gnome2) { echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8106 echo "${ECHO_T}GNOME 2.x GUI support" >&6; }
8110 motif) { echo "$as_me:$LINENO: result: Motif GUI support" >&5
8111 echo "${ECHO_T}Motif GUI support" >&6; }
8113 athena) { echo "$as_me:$LINENO: result: Athena GUI support" >&5
8114 echo "${ECHO_T}Athena GUI support" >&6; }
8116 nextaw) { echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8117 echo "${ECHO_T}neXtaw GUI support" >&6; }
8119 *) { echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8120 echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6; } ;;
8125 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8126 { echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8127 echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6; }
8128 # Check whether --enable-gtk-check was given.
8129 if test "${enable_gtk_check+set}" = set; then
8130 enableval=$enable_gtk_check;
8132 enable_gtk_check="yes"
8135 { echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8136 echo "${ECHO_T}$enable_gtk_check" >&6; }
8137 if test "x$enable_gtk_check" = "xno"; then
8143 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8144 -a "$enable_gui_canon" != "gnome2"; then
8145 { echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8146 echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6; }
8147 # Check whether --enable-gtk2-check was given.
8148 if test "${enable_gtk2_check+set}" = set; then
8149 enableval=$enable_gtk2_check;
8151 enable_gtk2_check="yes"
8154 { echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8155 echo "${ECHO_T}$enable_gtk2_check" >&6; }
8156 if test "x$enable_gtk2_check" = "xno"; then
8161 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8162 -a "$enable_gui_canon" != "gnome2"; then
8163 { echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8164 echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6; }
8165 # Check whether --enable-gnome-check was given.
8166 if test "${enable_gnome_check+set}" = set; then
8167 enableval=$enable_gnome_check;
8169 enable_gnome_check="no"
8172 { echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8173 echo "${ECHO_T}$enable_gnome_check" >&6; }
8174 if test "x$enable_gnome_check" = "xno"; then
8179 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8180 { echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8181 echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6; }
8182 # Check whether --enable-motif-check was given.
8183 if test "${enable_motif_check+set}" = set; then
8184 enableval=$enable_motif_check;
8186 enable_motif_check="yes"
8189 { echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8190 echo "${ECHO_T}$enable_motif_check" >&6; }
8191 if test "x$enable_motif_check" = "xno"; then
8196 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8197 { echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8198 echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6; }
8199 # Check whether --enable-athena-check was given.
8200 if test "${enable_athena_check+set}" = set; then
8201 enableval=$enable_athena_check;
8203 enable_athena_check="yes"
8206 { echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8207 echo "${ECHO_T}$enable_athena_check" >&6; }
8208 if test "x$enable_athena_check" = "xno"; then
8213 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8214 { echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8215 echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6; }
8216 # Check whether --enable-nextaw-check was given.
8217 if test "${enable_nextaw_check+set}" = set; then
8218 enableval=$enable_nextaw_check;
8220 enable_nextaw_check="yes"
8223 { echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8224 echo "${ECHO_T}$enable_nextaw_check" >&6; };
8225 if test "x$enable_nextaw_check" = "xno"; then
8230 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8231 { echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8232 echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6; }
8233 # Check whether --enable-carbon-check was given.
8234 if test "${enable_carbon_check+set}" = set; then
8235 enableval=$enable_carbon_check;
8237 enable_carbon_check="yes"
8240 { echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8241 echo "${ECHO_T}$enable_carbon_check" >&6; };
8242 if test "x$enable_carbon_check" = "xno"; then
8247 if test "x$SKIP_MACVIM" != "xYES" -a "$enable_gui_canon" != "macvim"; then
8248 { echo "$as_me:$LINENO: checking whether or not to look for MacVim" >&5
8249 echo $ECHO_N "checking whether or not to look for MacVim... $ECHO_C" >&6; }
8250 # Check whether --enable-macvim-check was given.
8251 if test "${enable_macvim_check+set}" = set; then
8252 enableval=$enable_macvim_check;
8254 enable_macvim_check="yes"
8257 { echo "$as_me:$LINENO: result: $enable_macvim_check" >&5
8258 echo "${ECHO_T}$enable_macvim_check" >&6; };
8259 if test "x$enable_macvim_check" = "xno"; then
8264 if test "x$MACOSX" = "xyes"; then
8265 if test x$prefix = xNONE; then
8266 prefix=/Applications
8269 if test -z "$SKIP_MACVIM" -a "x$COCOA" = "xyes"; then
8270 { echo "$as_me:$LINENO: checking for MacVim GUI" >&5
8271 echo $ECHO_N "checking for MacVim GUI... $ECHO_C" >&6; }
8272 { echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6; };
8275 datadir='${prefix}/MacVim.app/Contents/Resources'
8276 elif test -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8277 { echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8278 echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6; }
8279 { echo "$as_me:$LINENO: result: yes" >&5
8280 echo "${ECHO_T}yes" >&6; };
8282 datadir='${prefix}/Vim.app/Contents/Resources'
8284 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
8287 if test "$VIMNAME" = "vim"; then
8310 if test -z "$SKIP_GTK"; then
8312 { echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8313 echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6; }
8315 # Check whether --with-gtk-prefix was given.
8316 if test "${with_gtk_prefix+set}" = set; then
8317 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8318 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8320 gtk_config_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6; }
8325 { echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8326 echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6; }
8328 # Check whether --with-gtk-exec-prefix was given.
8329 if test "${with_gtk_exec_prefix+set}" = set; then
8330 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8331 echo "${ECHO_T}$gtk_config_prefix" >&6; }
8333 gtk_config_exec_prefix=""; { echo "$as_me:$LINENO: result: no" >&5
8334 echo "${ECHO_T}no" >&6; }
8338 { echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8339 echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6; }
8340 # Check whether --enable-gtktest was given.
8341 if test "${enable_gtktest+set}" = set; then
8342 enableval=$enable_gtktest;
8347 if test "x$enable_gtktest" = "xyes" ; then
8348 { echo "$as_me:$LINENO: result: gtk test enabled" >&5
8349 echo "${ECHO_T}gtk test enabled" >&6; }
8351 { echo "$as_me:$LINENO: result: gtk test disabled" >&5
8352 echo "${ECHO_T}gtk test disabled" >&6; }
8355 if test "x$gtk_config_prefix" != "x" ; then
8356 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8357 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8359 if test "x$gtk_config_exec_prefix" != "x" ; then
8360 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8361 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8363 if test "X$GTK_CONFIG" = "X"; then
8364 # Extract the first word of "gtk-config", so it can be a program name with args.
8365 set dummy gtk-config; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8395 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8396 if test -n "$GTK_CONFIG"; then
8397 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8398 echo "${ECHO_T}$GTK_CONFIG" >&6; }
8400 { echo "$as_me:$LINENO: result: no" >&5
8401 echo "${ECHO_T}no" >&6; }
8405 if test "X$GTK_CONFIG" = "Xno"; then
8406 # Extract the first word of "gtk12-config", so it can be a program name with args.
8407 set dummy gtk12-config; ac_word=$2
8408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8410 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 case $GTK12_CONFIG in
8415 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8425 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8437 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8438 if test -n "$GTK12_CONFIG"; then
8439 { echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8440 echo "${ECHO_T}$GTK12_CONFIG" >&6; }
8442 { echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6; }
8447 GTK_CONFIG="$GTK12_CONFIG"
8450 { echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8451 echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6; }
8453 if test "X$PKG_CONFIG" = "X"; then
8454 # Extract the first word of "pkg-config", so it can be a program name with args.
8455 set dummy pkg-config; ac_word=$2
8456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8458 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 test -z "$as_dir" && as_dir=.
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8486 if test -n "$PKG_CONFIG"; then
8487 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8488 echo "${ECHO_T}$PKG_CONFIG" >&6; }
8490 { echo "$as_me:$LINENO: result: no" >&5
8491 echo "${ECHO_T}no" >&6; }
8497 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8498 if test "X$SKIP_GTK2" != "XYES"; then
8500 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8502 min_gtk_version=2.2.0
8503 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8504 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8506 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8507 && $PKG_CONFIG --exists gtk+-2.0; then
8509 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8510 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8511 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8512 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8513 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8514 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8515 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8516 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8517 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8519 elif test "X$GTK_CONFIG" != "Xno"; then
8521 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8523 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8524 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8525 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8526 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8527 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8528 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8529 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8535 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8537 ac_save_CFLAGS="$CFLAGS"
8538 ac_save_LIBS="$LIBS"
8539 CFLAGS="$CFLAGS $GTK_CFLAGS"
8540 LIBS="$LIBS $GTK_LIBS"
8543 if test "$cross_compiling" = yes; then
8544 echo $ac_n "cross compiling; assumed OK... $ac_c"
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 #include <gtk/gtk.h>
8556 # include <stdlib.h>
8557 # include <stddef.h>
8563 int major, minor, micro;
8566 system ("touch conf.gtktest");
8568 /* HP/UX 9 (%@#!) writes to sscanf strings */
8569 tmp_version = g_strdup("$min_gtk_version");
8570 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8571 printf("%s, bad version string\n", "$min_gtk_version");
8575 if ((gtk_major_version > major) ||
8576 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8577 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8578 (gtk_micro_version >= micro)))
8586 rm -f conftest$ac_exeext
8587 if { (ac_try="$ac_link"
8589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8590 *) ac_try_echo
=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_link") 2>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8597 { (case "(($ac_try" in
8598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8608 echo "$as_me: program exited with status $ac_status" >&5
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8619 CFLAGS="$ac_save_CFLAGS"
8620 LIBS="$ac_save_LIBS"
8623 if test "x$no_gtk" = x ; then
8624 if test "x$enable_gtktest" = "xyes"; then
8625 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8626 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8628 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8629 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8631 GUI_LIB_LOC="$GTK_LIBDIR"
8632 GTK_LIBNAME="$GTK_LIBS"
8633 GUI_INC_LOC="$GTK_CFLAGS"
8636 { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8653 if test "x$GTK_CFLAGS" != "x"; then
8662 if test "x$GUITYPE" != "xGTK"; then
8665 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8667 min_gtk_version=1.1.16
8668 { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8669 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
8671 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8672 && $PKG_CONFIG --exists gtk+-2.0; then
8674 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8675 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8676 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8677 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8678 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8679 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8680 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8681 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8682 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8684 elif test "X$GTK_CONFIG" != "Xno"; then
8686 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8688 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8689 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8690 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8691 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8692 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8693 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8694 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8700 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8702 ac_save_CFLAGS="$CFLAGS"
8703 ac_save_LIBS="$LIBS"
8704 CFLAGS="$CFLAGS $GTK_CFLAGS"
8705 LIBS="$LIBS $GTK_LIBS"
8708 if test "$cross_compiling" = yes; then
8709 echo $ac_n "cross compiling; assumed OK... $ac_c"
8711 cat >conftest.$ac_ext <<_ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8718 #include <gtk/gtk.h>
8721 # include <stdlib.h>
8722 # include <stddef.h>
8728 int major, minor, micro;
8731 system ("touch conf.gtktest");
8733 /* HP/UX 9 (%@#!) writes to sscanf strings */
8734 tmp_version = g_strdup("$min_gtk_version");
8735 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8736 printf("%s, bad version string\n", "$min_gtk_version");
8740 if ((gtk_major_version > major) ||
8741 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8742 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8743 (gtk_micro_version >= micro)))
8751 rm -f conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8755 *) ac_try_echo
=$ac_try;;
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758 (eval "$ac_link") 2>&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8762 { (case "(($ac_try" in
8763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_try") 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8773 echo "$as_me: program exited with status $ac_status" >&5
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8784 CFLAGS="$ac_save_CFLAGS"
8785 LIBS="$ac_save_LIBS"
8788 if test "x$no_gtk" = x ; then
8789 if test "x$enable_gtktest" = "xyes"; then
8790 { echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8791 echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8793 { echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8794 echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8796 GTK_LIBNAME="$GTK_LIBS"
8797 GUI_INC_LOC="$GTK_CFLAGS"
8800 { echo "$as_me:$LINENO: result: no" >&5
8801 echo "${ECHO_T}no" >&6; }
8817 if test "x$GTK_CFLAGS" != "x"; then
8826 if test "x$GUITYPE" = "xGTK"; then
8827 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8828 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8829 { echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8830 echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8833 if test "0$gtk_major_version" -ge 2; then
8834 cat >>confdefs.h <<\_ACEOF
8838 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8839 || test "0$gtk_minor_version" -ge 2 \
8840 || test "0$gtk_major_version" -gt 2; then
8841 cat >>confdefs.h <<\_ACEOF
8842 #define HAVE_GTK_MULTIHEAD 1
8847 if test -z "$SKIP_GNOME"; then
8855 # Check whether --with-gnome-includes was given.
8856 if test "${with_gnome_includes+set}" = set; then
8857 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8863 # Check whether --with-gnome-libs was given.
8864 if test "${with_gnome_libs+set}" = set; then
8865 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8871 # Check whether --with-gnome was given.
8872 if test "${with_gnome+set}" = set; then
8873 withval=$with_gnome; if test x$withval = xyes; then
8877 if test "x$withval" = xno; then
8881 LDFLAGS="$LDFLAGS -L$withval/lib"
8882 CFLAGS="$CFLAGS -I$withval/include"
8883 gnome_prefix=$withval/lib
8891 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8893 { echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8894 echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6; }
8895 if $PKG_CONFIG --exists libgnomeui-2.0; then
8896 { echo "$as_me:$LINENO: result: yes" >&5
8897 echo "${ECHO_T}yes" >&6; }
8898 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8899 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8900 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8902 { echo "$as_me:$LINENO: checking for FreeBSD" >&5
8903 echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6; }
8904 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8905 { echo "$as_me:$LINENO: result: yes" >&5
8906 echo "${ECHO_T}yes" >&6; }
8907 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8908 GNOME_LIBS="$GNOME_LIBS -pthread"
8910 { echo "$as_me:$LINENO: result: no" >&5
8911 echo "${ECHO_T}no" >&6; }
8915 { echo "$as_me:$LINENO: result: not found" >&5
8916 echo "${ECHO_T}not found" >&6; }
8917 if test "x" = xfail; then
8918 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8919 echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8920 { (exit 1); exit 1; }; }
8924 elif test "x$want_gnome" = xyes; then
8926 # Extract the first word of "gnome-config", so it can be a program name with args.
8927 set dummy gnome-config; ac_word=$2
8928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8930 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 case $GNOME_CONFIG in
8935 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8945 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8957 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8958 if test -n "$GNOME_CONFIG"; then
8959 { echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8960 echo "${ECHO_T}$GNOME_CONFIG" >&6; }
8962 { echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6; }
8967 if test "$GNOME_CONFIG" = "no"; then
8968 no_gnome_config="yes"
8970 { echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8971 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6; }
8972 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8973 { echo "$as_me:$LINENO: result: yes" >&5
8974 echo "${ECHO_T}yes" >&6; }
8975 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
8976 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
8977 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
8980 { echo "$as_me:$LINENO: result: no" >&5
8981 echo "${ECHO_T}no" >&6; }
8982 no_gnome_config="yes"
8986 if test x$exec_prefix = xNONE; then
8987 if test x$prefix = xNONE; then
8988 gnome_prefix=$ac_default_prefix/lib
8990 gnome_prefix=$prefix/lib
8993 gnome_prefix=`eval echo \
`echo $libdir\``
8996 if test "$no_gnome_config" = "yes"; then
8997 { echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8998 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6; }
8999 if test -f $gnome_prefix/gnomeConf.sh; then
9000 { echo "$as_me:$LINENO: result: found" >&5
9001 echo "${ECHO_T}found" >&6; }
9002 echo "loading gnome configuration from" \
9003 "$gnome_prefix/gnomeConf.sh"
9004 . $gnome_prefix/gnomeConf.sh
9007 { echo "$as_me:$LINENO: result: not found" >&5
9008 echo "${ECHO_T}not found" >&6; }
9009 if test x = xfail; then
9010 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9011 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9012 { (exit 1); exit 1; }; }
9019 if test x$have_gnome = xyes ; then
9020 cat >>confdefs.h <<\_ACEOF
9021 #define FEAT_GUI_GNOME 1
9024 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9025 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9035 if test -z "$SKIP_MOTIF"; then
9036 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"
9037 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9039 { echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9040 echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6; }
9041 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9043 for try in $gui_includes; do
9044 if test -f "$try/Xm/Xm.h"; then
9048 if test -n "$GUI_INC_LOC"; then
9049 if test "$GUI_INC_LOC" = /usr/include; then
9051 { echo "$as_me:$LINENO: result: in default path" >&5
9052 echo "${ECHO_T}in default path" >&6; }
9054 { echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9055 echo "${ECHO_T}$GUI_INC_LOC" >&6; }
9058 { echo "$as_me:$LINENO: result: <not found>" >&5
9059 echo "${ECHO_T}<not found>" >&6; }
9065 if test -z "$SKIP_MOTIF"; then
9066 { echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9067 echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6; }
9069 # Check whether --with-motif-lib was given.
9070 if test "${with_motif_lib+set}" = set; then
9071 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9075 if test -n "$MOTIF_LIBNAME"; then
9076 { echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9077 echo "${ECHO_T}$MOTIF_LIBNAME" >&6; }
9080 { echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6; }
9083 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9085 { echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9086 echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6; }
9087 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"
9089 for try in $gui_libs; do
9090 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9091 if test -f "$libtry"; then
9096 if test -n "$GUI_LIB_LOC"; then
9097 if test "$GUI_LIB_LOC" = /usr/lib; then
9099 { echo "$as_me:$LINENO: result: in default path" >&5
9100 echo "${ECHO_T}in default path" >&6; }
9102 if test -n "$GUI_LIB_LOC"; then
9103 { echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9104 echo "${ECHO_T}$GUI_LIB_LOC" >&6; }
9105 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9106 uname -r | grep '^5' >/dev/null; then
9107 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9113 { echo "$as_me:$LINENO: result: <not found>" >&5
9114 echo "${ECHO_T}<not found>" >&6; }
9120 if test -z "$SKIP_MOTIF"; then
9130 if test -z "$SKIP_ATHENA"; then
9131 { echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9132 echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6; }
9134 CFLAGS="$CFLAGS $X_CFLAGS"
9135 cat >conftest.$ac_ext <<_ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9142 #include <X11/Intrinsic.h>
9143 #include <X11/Xaw/Paned.h>
9152 rm -f conftest.$ac_objext
9153 if { (ac_try="$ac_compile"
9155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9156 *) ac_try_echo
=$ac_try;;
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_compile") 2>conftest.er1
9161 grep -v '^ *+' conftest.er1
>conftest.err
9163 cat conftest.err
>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && {
9166 test -z "$ac_c_werror_flag" ||
9167 test ! -s conftest.err
9168 } && test -s conftest.
$ac_objext; then
9169 { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.
$ac_ext >&5
9175 { echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6; }; SKIP_ATHENA
=YES
9179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9183 if test -z "$SKIP_ATHENA"; then
9187 if test -z "$SKIP_NEXTAW"; then
9188 { echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9189 echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6; }
9191 CFLAGS
="$CFLAGS $X_CFLAGS"
9192 cat >conftest.
$ac_ext <<_ACEOF
9195 cat confdefs.h
>>conftest.
$ac_ext
9196 cat >>conftest.
$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9199 #include <X11/Intrinsic.h>
9200 #include <X11/neXtaw/Paned.h>
9209 rm -f conftest.
$ac_objext
9210 if { (ac_try
="$ac_compile"
9212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_compile") 2>conftest.er1
9218 grep -v '^ *+' conftest.er1 >conftest.err
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
9225 } && test -s conftest.$ac_objext; then
9226 { echo "$as_me:$LINENO: result: yes" >&5
9227 echo "${ECHO_T}yes" >&6; }
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 { echo "$as_me:$LINENO: result: no" >&5
9233 echo "${ECHO_T}no" >&6; }; SKIP_NEXTAW=YES
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 if test -z "$SKIP_NEXTAW"; then
9244 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9245 if test -n "$GUI_INC_LOC"; then
9246 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9248 if test -n "$GUI_LIB_LOC"; then
9249 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9252 ldflags_save=$LDFLAGS
9253 LDFLAGS="$X_LIBS $LDFLAGS"
9254 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9255 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9256 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 ac_check_lib_save_LIBS=$LIBS
9260 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9261 cat >conftest.$ac_ext <<_ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9268 /* Override any GCC internal prototype to avoid an error.
9269 Use char because int might match the return type of a GCC
9270 builtin and then its argument prototype would still apply. */
9274 char XShapeQueryExtension ();
9278 return XShapeQueryExtension ();
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (ac_try="$ac_link"
9286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9287 *) ac_try_echo
=$ac_try;;
9289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_link") 2>conftest.er1
9292 grep -v '^ *+' conftest.er1
>conftest.err
9294 cat conftest.err
>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_c_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest
$ac_exeext &&
9300 $as_test_x conftest
$ac_exeext; then
9301 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.
$ac_ext >&5
9306 ac_cv_lib_Xext_XShapeQueryExtension
=no
9309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9310 conftest
$ac_exeext conftest.
$ac_ext
9311 LIBS
=$ac_check_lib_save_LIBS
9313 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9314 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9315 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9319 { echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9320 echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6; }
9321 if test "${ac_cv_lib_w_wslen+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_check_lib_save_LIBS
=$LIBS
9325 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9326 cat >conftest.
$ac_ext <<_ACEOF
9329 cat confdefs.h
>>conftest.
$ac_ext
9330 cat >>conftest.
$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9333 /* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
9348 rm -f conftest.
$ac_objext conftest
$ac_exeext
9349 if { (ac_try
="$ac_link"
9351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext &&
9365 $as_test_x conftest$ac_exeext; then
9366 ac_cv_lib_w_wslen=yes
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 ac_cv_lib_w_wslen=no
9374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9378 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9379 echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6; }
9380 if test $ac_cv_lib_w_wslen = yes; then
9381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9384 { echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9385 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; }
9386 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 ac_check_lib_save_LIBS=$LIBS
9390 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9391 cat >conftest.$ac_ext <<_ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9417 *) ac_try_echo
=$ac_try;;
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_link") 2>conftest.er1
9422 grep -v '^ *+' conftest.er1
>conftest.err
9424 cat conftest.err
>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } && {
9427 test -z "$ac_c_werror_flag" ||
9428 test ! -s conftest.err
9429 } && test -s conftest
$ac_exeext &&
9430 $as_test_x conftest
$ac_exeext; then
9431 ac_cv_lib_dl_dlsym
=yes
9433 echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.
$ac_ext >&5
9436 ac_cv_lib_dl_dlsym
=no
9439 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9440 conftest
$ac_exeext conftest.
$ac_ext
9441 LIBS
=$ac_check_lib_save_LIBS
9443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9444 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; }
9445 if test $ac_cv_lib_dl_dlsym = yes; then
9446 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9449 { echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9450 echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6; }
9451 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 ac_check_lib_save_LIBS
=$LIBS
9455 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9456 cat >conftest.
$ac_ext <<_ACEOF
9459 cat confdefs.h
>>conftest.
$ac_ext
9460 cat >>conftest.
$ac_ext <<_ACEOF
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9469 char XmuCreateStippledPixmap ();
9473 return XmuCreateStippledPixmap ();
9478 rm -f conftest.
$ac_objext conftest
$ac_exeext
9479 if { (ac_try
="$ac_link"
9481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9508 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9509 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9510 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9511 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9514 if test -z "$SKIP_MOTIF"; then
9515 { echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9516 echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6; }
9517 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 ac_check_lib_save_LIBS=$LIBS
9521 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9544 rm -f conftest.$ac_objext conftest$ac_exeext
9545 if { (ac_try="$ac_link"
9547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9548 *) ac_try_echo
=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9553 grep -v '^ *+' conftest.er1
>conftest.err
9555 cat conftest.err
>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && {
9558 test -z "$ac_c_werror_flag" ||
9559 test ! -s conftest.err
9560 } && test -s conftest
$ac_exeext &&
9561 $as_test_x conftest
$ac_exeext; then
9562 ac_cv_lib_Xp_XpEndJob
=yes
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.
$ac_ext >&5
9567 ac_cv_lib_Xp_XpEndJob
=no
9570 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9571 conftest
$ac_exeext conftest.
$ac_ext
9572 LIBS
=$ac_check_lib_save_LIBS
9574 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9575 echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6; }
9576 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9577 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9581 LDFLAGS
=$ldflags_save
9583 { echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9584 echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6; }
9587 if mkdir conftestdir
; then
9589 cat > Imakefile
<<'EOF'
9591 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9593 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9594 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9599 if test -z "$NARROW_PROTO"; then
9600 { echo "$as_me:$LINENO: result: no" >&5
9601 echo "${ECHO_T}no" >&6; }
9603 { echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9604 echo "${ECHO_T}$NARROW_PROTO" >&6; }
9609 if test "$enable_xsmp" = "yes"; then
9610 cppflags_save
=$CPPFLAGS
9611 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9613 for ac_header
in X11
/SM
/SMlib.h
9615 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 ac_res
=`eval echo '${'$as_ac_Header'}'`
9623 { echo "$as_me:$LINENO: result: $ac_res" >&5
9624 echo "${ECHO_T}$ac_res" >&6; }
9626 # Is the header compilable?
9627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9629 cat >conftest.
$ac_ext <<_ACEOF
9632 cat confdefs.h
>>conftest.
$ac_ext
9633 cat >>conftest.
$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 $ac_includes_default
9636 #include <$ac_header>
9638 rm -f conftest.
$ac_objext
9639 if { (ac_try
="$ac_compile"
9641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_compile") 2>conftest.er1
9647 grep -v '^ *+' conftest.er1 >conftest.err
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest.$ac_objext; then
9655 ac_header_compiler=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_header_compiler=no
9663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9665 echo "${ECHO_T}$ac_header_compiler" >&6; }
9667 # Is the header present?
9668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 #include <$ac_header>
9678 if { (ac_try="$ac_cpp conftest.$ac_ext"
9680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9681 *) ac_try_echo
=$ac_try;;
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9686 grep -v '^ *+' conftest.er1
>conftest.err
9688 cat conftest.err
>&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } >/dev
/null
&& {
9691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9692 test ! -s conftest.err
9694 ac_header_preproc
=yes
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.
$ac_ext >&5
9699 ac_header_preproc
=no
9702 rm -f conftest.err conftest.
$ac_ext
9703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9704 echo "${ECHO_T}$ac_header_preproc" >&6; }
9706 # So? What about this header?
9707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9713 ac_header_preproc
=yes
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9733 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 eval "$as_ac_Header=\$ac_header_preproc"
9738 ac_res
=`eval echo '${'$as_ac_Header'}'`
9739 { echo "$as_me:$LINENO: result: $ac_res" >&5
9740 echo "${ECHO_T}$ac_res" >&6; }
9743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9744 cat >>confdefs.h
<<_ACEOF
9745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9752 CPPFLAGS
=$cppflags_save
9756 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9757 cppflags_save
=$CPPFLAGS
9758 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9761 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9763 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9764 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9767 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_res
=`eval echo '${'$as_ac_Header'}'`
9771 { echo "$as_me:$LINENO: result: $ac_res" >&5
9772 echo "${ECHO_T}$ac_res" >&6; }
9774 # Is the header compilable?
9775 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9777 cat >conftest.
$ac_ext <<_ACEOF
9780 cat confdefs.h
>>conftest.
$ac_ext
9781 cat >>conftest.
$ac_ext <<_ACEOF
9782 /* end confdefs.h. */
9783 $ac_includes_default
9784 #include <$ac_header>
9786 rm -f conftest.
$ac_objext
9787 if { (ac_try
="$ac_compile"
9789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9803 ac_header_compiler=yes
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_header_compiler=no
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9813 echo "${ECHO_T}$ac_header_compiler" >&6; }
9815 # Is the header present?
9816 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9818 cat >conftest.$ac_ext <<_ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 #include <$ac_header>
9826 if { (ac_try="$ac_cpp conftest.$ac_ext"
9828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9829 *) ac_try_echo
=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1
>conftest.err
9836 cat conftest.err
>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } >/dev
/null
&& {
9839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9842 ac_header_preproc
=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.
$ac_ext >&5
9847 ac_header_preproc
=no
9850 rm -f conftest.err conftest.
$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9852 echo "${ECHO_T}$ac_header_preproc" >&6; }
9854 # So? What about this header?
9855 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9861 ac_header_preproc
=yes
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9865 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9867 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9869 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9871 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9873 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9875 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 eval "$as_ac_Header=\$ac_header_preproc"
9886 ac_res
=`eval echo '${'$as_ac_Header'}'`
9887 { echo "$as_me:$LINENO: result: $ac_res" >&5
9888 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9892 cat >>confdefs.h
<<_ACEOF
9893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901 if test ! "$enable_xim" = "no"; then
9902 { echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9903 echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6; }
9904 cat >conftest.
$ac_ext <<_ACEOF
9907 cat confdefs.h
>>conftest.
$ac_ext
9908 cat >>conftest.
$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 #include <X11/Xlib.h>
9912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9913 $EGREP "XIMText" >/dev
/null
2>&1; then
9914 { echo "$as_me:$LINENO: result: yes" >&5
9915 echo "${ECHO_T}yes" >&6; }
9917 { echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9918 echo "${ECHO_T}no; xim has been disabled" >&6; }; enable_xim
= "no"
9923 CPPFLAGS
=$cppflags_save
9925 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9926 -a "x$GUITYPE" != "xNONE" ; then
9927 { echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9928 echo "${ECHO_T}X GUI selected; xim has been enabled" >&6; }
9933 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9934 cppflags_save
=$CPPFLAGS
9935 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9936 { echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9937 echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6; }
9938 cat >conftest.
$ac_ext <<_ACEOF
9941 cat confdefs.h
>>conftest.
$ac_ext
9942 cat >>conftest.
$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 #include <X11/Intrinsic.h>
9946 #include <X11/Xmu/Editres.h>
9955 rm -f conftest.
$ac_objext
9956 if { (ac_try
="$ac_compile"
9958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_compile") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest.$ac_objext; then
9972 { echo "$as_me:$LINENO: result: yes" >&5
9973 echo "${ECHO_T}yes" >&6; }
9974 cat >>confdefs.h <<\_ACEOF
9975 #define HAVE_X11_XMU_EDITRES_H 1
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9982 { echo "$as_me:$LINENO: result: no" >&5
9983 echo "${ECHO_T}no" >&6; }
9986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9987 CPPFLAGS=$cppflags_save
9990 if test -z "$SKIP_MOTIF"; then
9991 cppflags_save=$CPPFLAGS
9992 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10000 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10001 Xm/UnhighlightT.h Xm/Notebook.h
10003 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 ac_res=`eval echo '${'$as_ac_Header'}'`
10011 { echo "$as_me:$LINENO: result: $ac_res" >&5
10012 echo "${ECHO_T}$ac_res" >&6; }
10014 # Is the header compilable?
10015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 $ac_includes_default
10024 #include <$ac_header>
10026 rm -f conftest.$ac_objext
10027 if { (ac_try="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10030 *) ac_try_echo
=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_compile") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1
>conftest.err
10037 cat conftest.err
>&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest.
$ac_objext; then
10043 ac_header_compiler
=yes
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.
$ac_ext >&5
10048 ac_header_compiler
=no
10051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10053 echo "${ECHO_T}$ac_header_compiler" >&6; }
10055 # Is the header present?
10056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10058 cat >conftest.
$ac_ext <<_ACEOF
10061 cat confdefs.h
>>conftest.
$ac_ext
10062 cat >>conftest.
$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 #include <$ac_header>
10066 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10067 case "(($ac_try" in
10068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10074 grep -v '^ *+' conftest.er1 >conftest.err
10076 cat conftest.err >&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } >/dev/null && {
10079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10080 test ! -s conftest.err
10082 ac_header_preproc=yes
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_header_preproc=no
10090 rm -f conftest.err conftest.$ac_ext
10091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10092 echo "${ECHO_T}$ac_header_preproc" >&6; }
10094 # So? What about this header?
10095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10101 ac_header_preproc=yes
10104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10124 eval "$as_ac_Header=\$ac_header_preproc"
10126 ac_res=`eval echo '${'$as_ac_Header'}'`
10127 { echo "$as_me:$LINENO: result: $ac_res" >&5
10128 echo "${ECHO_T}$ac_res" >&6; }
10131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10132 cat >>confdefs.h <<_ACEOF
10133 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10141 if test $ac_cv_header_Xm_XpmP_h = yes; then
10142 { echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10143 echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6; }
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <Xm/XpmP.h>
10154 XpmAttributes_21 attr;
10159 rm -f conftest.$ac_objext
10160 if { (ac_try="$ac_compile"
10161 case "(($ac_try" in
10162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10163 *) ac_try_echo
=$ac_try;;
10165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10166 (eval "$ac_compile") 2>conftest.er1
10168 grep -v '^ *+' conftest.er1
>conftest.err
10170 cat conftest.err
>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest.
$ac_objext; then
10176 { echo "$as_me:$LINENO: result: yes" >&5
10177 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10178 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.
$ac_ext >&5
10185 { echo "$as_me:$LINENO: result: no" >&5
10186 echo "${ECHO_T}no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10187 #define XPMATTRIBUTES_TYPE XpmAttributes
10193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10195 cat >>confdefs.h
<<\_ACEOF
10196 #define XPMATTRIBUTES_TYPE XpmAttributes
10200 CPPFLAGS
=$cppflags_save
10203 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10204 { echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10205 echo "${ECHO_T}no GUI selected; xim has been disabled" >&6; }
10208 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10209 { echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10210 echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6; }
10211 enable_fontset
="no"
10213 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10214 { echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10215 echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10216 enable_fontset
="no"
10219 if test -z "$SKIP_PHOTON"; then
10228 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10229 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10230 echo "$as_me: error: cannot use workshop without Motif" >&2;}
10231 { (exit 1); exit 1; }; }
10234 if test "$enable_xim" = "yes"; then
10235 cat >>confdefs.h
<<\_ACEOF
10240 if test "$enable_fontset" = "yes"; then
10241 cat >>confdefs.h
<<\_ACEOF
10242 #define FEAT_XFONTSET 1
10250 if test "$enable_hangulinput" = "yes"; then
10251 if test "x$GUITYPE" = "xNONE"; then
10252 { echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10253 echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6; }
10254 enable_hangulinput
=no
10256 cat >>confdefs.h
<<\_ACEOF
10257 #define FEAT_HANGULIN 1
10260 HANGULIN_SRC
=hangulin.c
10262 HANGULIN_OBJ
=objects
/hangulin.o
10268 { echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10269 echo $ECHO_N "checking whether toupper is broken... $ECHO_C" >&6; }
10270 if test "${vim_cv_toupper_broken+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 if test "$cross_compiling" = yes; then
10276 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10277 echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10278 { (exit 1); exit 1; }; }
10281 cat >conftest.
$ac_ext <<_ACEOF
10283 #include "confdefs.h"
10286 # include <stdlib.h>
10287 # include <stddef.h>
10289 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10292 rm -f conftest
$ac_exeext
10293 if { (ac_try
="$ac_link"
10294 case "(($ac_try" in
10295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10305 *) ac_try_echo
=$ac_try;;
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10313 vim_cv_toupper_broken
=yes
10316 echo "$as_me: program exited with status $ac_status" >&5
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.
$ac_ext >&5
10320 ( exit $ac_status )
10322 vim_cv_toupper_broken
=no
10325 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10330 { echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10331 echo "${ECHO_T}$vim_cv_toupper_broken" >&6; }
10333 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10334 cat >>confdefs.h
<<\_ACEOF
10335 #define BROKEN_TOUPPER 1
10340 { echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10341 echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6; }
10342 cat >conftest.
$ac_ext <<_ACEOF
10345 cat confdefs.h
>>conftest.
$ac_ext
10346 cat >>conftest.
$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10352 printf("(" __DATE__ " " __TIME__ ")");
10357 rm -f conftest.
$ac_objext
10358 if { (ac_try
="$ac_compile"
10359 case "(($ac_try" in
10360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_compile") 2>conftest.er1
10366 grep -v '^ *+' conftest.er1 >conftest.err
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } && {
10371 test -z "$ac_c_werror_flag" ||
10372 test ! -s conftest.err
10373 } && test -s conftest.$ac_objext; then
10374 { echo "$as_me:$LINENO: result: yes" >&5
10375 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10376 #define HAVE_DATE_TIME 1
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 { echo "$as_me:$LINENO: result: no" >&5
10384 echo "${ECHO_T}no" >&6; }
10387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389 { echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10390 echo $ECHO_N "checking whether __attribute__((unused)) is allowed... $ECHO_C" >&6; }
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10401 int x __attribute__((unused));
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10410 *) ac_try_echo
=$ac_try;;
10412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_compile") 2>conftest.er1
10415 grep -v '^ *+' conftest.er1
>conftest.err
10417 cat conftest.err
>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest.
$ac_objext; then
10423 { echo "$as_me:$LINENO: result: yes" >&5
10424 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10425 #define HAVE_ATTRIBUTE_UNUSED 1
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.
$ac_ext >&5
10432 { echo "$as_me:$LINENO: result: no" >&5
10433 echo "${ECHO_T}no" >&6; }
10436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10438 if test "${ac_cv_header_elf_h+set}" = set; then
10439 { echo "$as_me:$LINENO: checking for elf.h" >&5
10440 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10441 if test "${ac_cv_header_elf_h+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10445 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10447 # Is the header compilable?
10448 { echo "$as_me:$LINENO: checking elf.h usability" >&5
10449 echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6; }
10450 cat >conftest.
$ac_ext <<_ACEOF
10453 cat confdefs.h
>>conftest.
$ac_ext
10454 cat >>conftest.
$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 $ac_includes_default
10459 rm -f conftest.
$ac_objext
10460 if { (ac_try
="$ac_compile"
10461 case "(($ac_try" in
10462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 echo "${ECHO_T}$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { echo "$as_me:$LINENO: checking elf.h presence" >&5
10490 echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10502 *) ac_try_echo
=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1
>conftest.err
10509 cat conftest.err
>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } >/dev
/null
&& {
10512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10515 ac_header_preproc
=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.
$ac_ext >&5
10520 ac_header_preproc
=no
10523 rm -f conftest.err conftest.
$ac_ext
10524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10525 echo "${ECHO_T}$ac_header_preproc" >&6; }
10527 # So? What about this header?
10528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10530 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10531 echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10533 echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10534 ac_header_preproc
=yes
10537 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10538 echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10540 echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10542 echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10544 echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10546 echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10548 echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10552 { echo "$as_me:$LINENO: checking for elf.h" >&5
10553 echo $ECHO_N "checking for elf.h... $ECHO_C" >&6; }
10554 if test "${ac_cv_header_elf_h+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10557 ac_cv_header_elf_h
=$ac_header_preproc
10559 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10560 echo "${ECHO_T}$ac_cv_header_elf_h" >&6; }
10563 if test $ac_cv_header_elf_h = yes; then
10568 if test "$HAS_ELF" = 1; then
10570 { echo "$as_me:$LINENO: checking for main in -lelf" >&5
10571 echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6; }
10572 if test "${ac_cv_lib_elf_main+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_check_lib_save_LIBS
=$LIBS
10577 cat >conftest.
$ac_ext <<_ACEOF
10580 cat confdefs.h
>>conftest.
$ac_ext
10581 cat >>conftest.
$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10593 rm -f conftest.
$ac_objext conftest
$ac_exeext
10594 if { (ac_try
="$ac_link"
10595 case "(($ac_try" in
10596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 ac_cv_lib_elf_main=yes
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_lib_elf_main=no
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10623 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10624 echo "${ECHO_T}$ac_cv_lib_elf_main" >&6; }
10625 if test $ac_cv_lib_elf_main = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627 #define HAVE_LIBELF 1
10641 ac_header_dirent=no
10642 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10643 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10644 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10645 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <sys/types.h>
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10671 *) ac_try_echo
=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_compile") 2>conftest.er1
10676 grep -v '^ *+' conftest.er1
>conftest.err
10678 cat conftest.err
>&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest.
$ac_objext; then
10684 eval "$as_ac_Header=yes"
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.
$ac_ext >&5
10689 eval "$as_ac_Header=no"
10692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10694 ac_res
=`eval echo '${'$as_ac_Header'}'`
10695 { echo "$as_me:$LINENO: result: $ac_res" >&5
10696 echo "${ECHO_T}$ac_res" >&6; }
10697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10698 cat >>confdefs.h
<<_ACEOF
10699 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10702 ac_header_dirent
=$ac_hdr; break
10706 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10707 if test $ac_header_dirent = dirent.h
; then
10708 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10710 if test "${ac_cv_search_opendir+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 ac_func_search_save_LIBS
=$LIBS
10714 cat >conftest.
$ac_ext <<_ACEOF
10717 cat confdefs.h
>>conftest.
$ac_ext
10718 cat >>conftest.
$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10736 for ac_lib
in '' dir
; do
10737 if test -z "$ac_lib"; then
10738 ac_res
="none required"
10741 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10743 rm -f conftest.
$ac_objext conftest
$ac_exeext
10744 if { (ac_try
="$ac_link"
10745 case "(($ac_try" in
10746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_link") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1 >conftest.err
10754 cat conftest.err >&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest$ac_exeext &&
10760 $as_test_x conftest$ac_exeext; then
10761 ac_cv_search_opendir=$ac_res
10763 echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10771 if test "${ac_cv_search_opendir+set}" = set; then
10775 if test "${ac_cv_search_opendir+set}" = set; then
10778 ac_cv_search_opendir=no
10780 rm conftest.$ac_ext
10781 LIBS=$ac_func_search_save_LIBS
10783 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10784 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10785 ac_res=$ac_cv_search_opendir
10786 if test "$ac_res" != no; then
10787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10792 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10793 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10794 if test "${ac_cv_search_opendir+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 ac_func_search_save_LIBS=$LIBS
10798 cat >conftest.$ac_ext <<_ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10805 /* Override any GCC internal prototype to avoid an error.
10806 Use char because int might match the return type of a GCC
10807 builtin and then its argument prototype would still apply. */
10820 for ac_lib in '' x; do
10821 if test -z "$ac_lib"; then
10822 ac_res="none required"
10825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10831 *) ac_try_echo
=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>conftest.er1
10836 grep -v '^ *+' conftest.er1
>conftest.err
10838 cat conftest.err
>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest
$ac_exeext &&
10844 $as_test_x conftest
$ac_exeext; then
10845 ac_cv_search_opendir
=$ac_res
10847 echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.
$ac_ext >&5
10853 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10855 if test "${ac_cv_search_opendir+set}" = set; then
10859 if test "${ac_cv_search_opendir+set}" = set; then
10862 ac_cv_search_opendir
=no
10864 rm conftest.
$ac_ext
10865 LIBS
=$ac_func_search_save_LIBS
10867 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10868 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10869 ac_res
=$ac_cv_search_opendir
10870 if test "$ac_res" != no
; then
10871 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10878 if test $ac_cv_header_sys_wait_h = no
; then
10879 { echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10880 echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6; }
10881 cat >conftest.
$ac_ext <<_ACEOF
10884 cat confdefs.h
>>conftest.
$ac_ext
10885 cat >>conftest.
$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <sys/wait.h>
10891 union wait xx, yy; xx = yy
10896 rm -f conftest.
$ac_objext
10897 if { (ac_try
="$ac_compile"
10898 case "(($ac_try" in
10899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_compile") 2>conftest.er1
10905 grep -v '^ *+' conftest.er1 >conftest.err
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest.$ac_objext; then
10913 { echo "$as_me:$LINENO: result: yes" >&5
10914 echo "${ECHO_T}yes" >&6; }
10915 cat >>confdefs.h <<\_ACEOF
10916 #define HAVE_SYS_WAIT_H 1
10919 cat >>confdefs.h <<\_ACEOF
10920 #define HAVE_UNION_WAIT 1
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 { echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6; }
10931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10974 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
10975 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
10976 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10977 sys/resource.h sys/systeminfo.h locale.h \
10978 sys/stream.h termios.h libc.h sys/statfs.h \
10979 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
10980 libgen.h util/debug.h util/msg18n.h frame.h \
10981 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
10983 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 ac_res=`eval echo '${'$as_ac_Header'}'`
10991 { echo "$as_me:$LINENO: result: $ac_res" >&5
10992 echo "${ECHO_T}$ac_res" >&6; }
10994 # Is the header compilable?
10995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 $ac_includes_default
11004 #include <$ac_header>
11006 rm -f conftest.$ac_objext
11007 if { (ac_try="$ac_compile"
11008 case "(($ac_try" in
11009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11010 *) ac_try_echo
=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_compile") 2>conftest.er1
11015 grep -v '^ *+' conftest.er1
>conftest.err
11017 cat conftest.err
>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest.
$ac_objext; then
11023 ac_header_compiler
=yes
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.
$ac_ext >&5
11028 ac_header_compiler
=no
11031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11033 echo "${ECHO_T}$ac_header_compiler" >&6; }
11035 # Is the header present?
11036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11038 cat >conftest.
$ac_ext <<_ACEOF
11041 cat confdefs.h
>>conftest.
$ac_ext
11042 cat >>conftest.
$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11044 #include <$ac_header>
11046 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11047 case "(($ac_try" in
11048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11054 grep -v '^ *+' conftest.er1 >conftest.err
11056 cat conftest.err >&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } >/dev/null && {
11059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11062 ac_header_preproc=yes
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11067 ac_header_preproc=no
11070 rm -f conftest.err conftest.$ac_ext
11071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11072 echo "${ECHO_T}$ac_header_preproc" >&6; }
11074 # So? What about this header?
11075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11081 ac_header_preproc=yes
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 eval "$as_ac_Header=\$ac_header_preproc"
11106 ac_res=`eval echo '${'$as_ac_Header'}'`
11107 { echo "$as_me:$LINENO: result: $ac_res" >&5
11108 echo "${ECHO_T}$ac_res" >&6; }
11111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11112 cat >>confdefs.h <<_ACEOF
11113 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11122 for ac_header in sys/ptem.h
11124 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 #if defined HAVE_SYS_STREAM_H
11137 # include <sys/stream.h>
11140 #include <$ac_header>
11142 rm -f conftest.$ac_objext
11143 if { (ac_try="$ac_compile"
11144 case "(($ac_try" in
11145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11146 *) ac_try_echo
=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_compile") 2>conftest.er1
11151 grep -v '^ *+' conftest.er1
>conftest.err
11153 cat conftest.err
>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest.
$ac_objext; then
11159 eval "$as_ac_Header=yes"
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.
$ac_ext >&5
11164 eval "$as_ac_Header=no"
11167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11169 ac_res
=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11173 cat >>confdefs.h
<<_ACEOF
11174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11183 for ac_header
in sys
/sysctl.h
11185 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11188 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 cat >conftest.
$ac_ext <<_ACEOF
11194 cat confdefs.h
>>conftest.
$ac_ext
11195 cat >>conftest.
$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 #if defined HAVE_SYS_PARAM_H
11198 # include <sys/param.h>
11201 #include <$ac_header>
11203 rm -f conftest.
$ac_objext
11204 if { (ac_try
="$ac_compile"
11205 case "(($ac_try" in
11206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11212 grep -v '^ *+' conftest.er1 >conftest.err
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11220 eval "$as_ac_Header=yes"
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 eval "$as_ac_Header=no"
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 ac_res=`eval echo '${'$as_ac_Header'}'`
11231 { echo "$as_me:$LINENO: result: $ac_res" >&5
11232 echo "${ECHO_T}$ac_res" >&6; }
11233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11234 cat >>confdefs.h <<_ACEOF
11235 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11244 { echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11245 echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6; }
11246 cat >conftest.$ac_ext <<_ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11253 #include <pthread.h>
11254 #include <pthread_np.h>
11263 rm -f conftest.$ac_objext
11264 if { (ac_try="$ac_compile"
11265 case "(($ac_try" in
11266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11267 *) ac_try_echo
=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_compile") 2>conftest.er1
11272 grep -v '^ *+' conftest.er1
>conftest.err
11274 cat conftest.err
>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } && {
11277 test -z "$ac_c_werror_flag" ||
11278 test ! -s conftest.err
11279 } && test -s conftest.
$ac_objext; then
11280 { echo "$as_me:$LINENO: result: yes" >&5
11281 echo "${ECHO_T}yes" >&6; }
11282 cat >>confdefs.h
<<\_ACEOF
11283 #define HAVE_PTHREAD_NP_H 1
11287 echo "$as_me: failed program was:" >&5
11288 sed 's/^/| /' conftest.
$ac_ext >&5
11290 { echo "$as_me:$LINENO: result: no" >&5
11291 echo "${ECHO_T}no" >&6; }
11294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11297 for ac_header
in strings.h
11299 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11300 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 ac_res
=`eval echo '${'$as_ac_Header'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11313 cat >conftest.
$ac_ext <<_ACEOF
11316 cat confdefs.h
>>conftest.
$ac_ext
11317 cat >>conftest.
$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 #include <$ac_header>
11322 rm -f conftest.
$ac_objext
11323 if { (ac_try
="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 echo "${ECHO_T}$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <$ac_header>
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11365 *) ac_try_echo
=$ac_try;;
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11370 grep -v '^ *+' conftest.er1
>conftest.err
11372 cat conftest.err
>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } >/dev
/null
&& {
11375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11378 ac_header_preproc
=yes
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.
$ac_ext >&5
11383 ac_header_preproc
=no
11386 rm -f conftest.err conftest.
$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11388 echo "${ECHO_T}$ac_header_preproc" >&6; }
11390 # So? What about this header?
11391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11397 ac_header_preproc
=yes
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11417 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 eval "$as_ac_Header=\$ac_header_preproc"
11422 ac_res
=`eval echo '${'$as_ac_Header'}'`
11423 { echo "$as_me:$LINENO: result: $ac_res" >&5
11424 echo "${ECHO_T}$ac_res" >&6; }
11427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11428 cat >>confdefs.h
<<_ACEOF
11429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11436 if test "x$MACOSX" = "xyes"; then
11437 cat >>confdefs.h
<<\_ACEOF
11438 #define NO_STRINGS_WITH_STRING_H 1
11443 { echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11444 echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6; }
11445 cppflags_save
=$CPPFLAGS
11446 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11447 cat >conftest.
$ac_ext <<_ACEOF
11450 cat confdefs.h
>>conftest.
$ac_ext
11451 cat >>conftest.
$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11454 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11455 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11456 /* but don't do it on AIX 5.1 (Uribarri) */
11458 #ifdef HAVE_XM_XM_H
11459 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11461 #ifdef HAVE_STRING_H
11462 # include <string.h>
11464 #if defined(HAVE_STRINGS_H)
11465 # include <strings.h>
11476 rm -f conftest.
$ac_objext
11477 if { (ac_try
="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.$ac_objext; then
11493 { echo "$as_me:$LINENO: result: yes" >&5
11494 echo "${ECHO_T}yes" >&6; }
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 cat >>confdefs.h <<\_ACEOF
11500 #define NO_STRINGS_WITH_STRING_H 1
11503 { echo "$as_me:$LINENO: result: no" >&5
11504 echo "${ECHO_T}no" >&6; }
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11508 CPPFLAGS=$cppflags_save
11511 if test $ac_cv_c_compiler_gnu = yes; then
11512 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11513 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
11514 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 ac_pattern="Autoconf.*'x'"
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.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
11531 ac_cv_prog_gcc_traditional=no
11536 if test $ac_cv_prog_gcc_traditional = no; then
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 #include <termio.h>
11546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11547 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11548 ac_cv_prog_gcc_traditional=yes
11554 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11555 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
11556 if test $ac_cv_prog_gcc_traditional = yes; then
11557 CC="$CC -traditional"
11561 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11563 if test "${ac_cv_c_const+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11576 /* FIXME: Include the comments suggested by Paul. */
11577 #ifndef __cplusplus
11578 /* Ultrix mips cc rejects this. */
11579 typedef int charset[2];
11581 /* SunOS 4.1.1 cc rejects this. */
11582 char const *const *pcpcc;
11584 /* NEC SVR4.0.2 mips cc rejects this. */
11585 struct point {int x, y;};
11586 static struct point const zero = {0,0};
11587 /* AIX XL C 1.02.0.0 rejects this.
11588 It does not let you subtract one const X* pointer from another in
11589 an arm of an if-expression whose if-part is not a constant
11591 const char *g = "string";
11592 pcpcc = &g + (g ? g-g : 0);
11593 /* HPUX 7.0 cc rejects these. */
11595 ppc = (char**) pcpcc;
11596 pcpcc = (char const *const *) ppc;
11597 { /* SCO 3.2v4 cc rejects this. */
11599 char const *s = 0 ? (char *) 0 : (char const *) 0;
11604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11605 int x[] = {25, 17};
11606 const int *foo = &x[0];
11609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11610 typedef const int *iptr;
11614 { /* AIX XL C 1.02.0.0 rejects this saying
11615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11616 struct s { int j; const int *ap[3]; };
11617 struct s *b; b->j = 5;
11619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11620 const int foo = 10;
11621 if (!foo) return 0;
11623 return !cs[0] && !zero.x;
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11634 *) ac_try_echo
=$ac_try;;
11636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_compile") 2>conftest.er1
11639 grep -v '^ *+' conftest.er1
>conftest.err
11641 cat conftest.err
>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } && {
11644 test -z "$ac_c_werror_flag" ||
11645 test ! -s conftest.err
11646 } && test -s conftest.
$ac_objext; then
11649 echo "$as_me: failed program was:" >&5
11650 sed 's/^/| /' conftest.
$ac_ext >&5
11655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11657 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11658 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11659 if test $ac_cv_c_const = no
; then
11661 cat >>confdefs.h
<<\_ACEOF
11667 { echo "$as_me:$LINENO: checking for working volatile" >&5
11668 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
11669 if test "${ac_cv_c_volatile+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 cat >conftest.
$ac_ext <<_ACEOF
11675 cat confdefs.h
>>conftest.
$ac_ext
11676 cat >>conftest.
$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11684 int * volatile y = (int *) 0;
11690 rm -f conftest.
$ac_objext
11691 if { (ac_try
="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11699 grep -v '^ *+' conftest.er1 >conftest.err
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_cv_c_volatile=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_c_volatile=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11718 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
11719 if test $ac_cv_c_volatile = no; then
11721 cat >>confdefs.h <<\_ACEOF
11727 { echo "$as_me:$LINENO: checking for mode_t" >&5
11728 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
11729 if test "${ac_cv_type_mode_t+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 typedef mode_t ac__type_new_;
11743 if ((ac__type_new_ *) 0)
11745 if (sizeof (ac__type_new_))
11751 rm -f conftest.$ac_objext
11752 if { (ac_try="$ac_compile"
11753 case "(($ac_try" in
11754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11755 *) ac_try_echo
=$ac_try;;
11757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11758 (eval "$ac_compile") 2>conftest.er1
11760 grep -v '^ *+' conftest.er1
>conftest.err
11762 cat conftest.err
>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } && {
11765 test -z "$ac_c_werror_flag" ||
11766 test ! -s conftest.err
11767 } && test -s conftest.
$ac_objext; then
11768 ac_cv_type_mode_t
=yes
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.
$ac_ext >&5
11773 ac_cv_type_mode_t
=no
11776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11779 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
11780 if test $ac_cv_type_mode_t = yes; then
11784 cat >>confdefs.h
<<_ACEOF
11790 { echo "$as_me:$LINENO: checking for off_t" >&5
11791 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
11792 if test "${ac_cv_type_off_t+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 cat >conftest.
$ac_ext <<_ACEOF
11798 cat confdefs.h
>>conftest.
$ac_ext
11799 cat >>conftest.
$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 $ac_includes_default
11802 typedef off_t ac__type_new_;
11806 if ((ac__type_new_ *) 0)
11808 if (sizeof (ac__type_new_))
11814 rm -f conftest.
$ac_objext
11815 if { (ac_try
="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
11831 ac_cv_type_off_t=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_type_off_t=no
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11842 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
11843 if test $ac_cv_type_off_t = yes; then
11847 cat >>confdefs.h <<_ACEOF
11848 #define off_t long int
11853 { echo "$as_me:$LINENO: checking for pid_t" >&5
11854 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
11855 if test "${ac_cv_type_pid_t+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 cat >conftest.$ac_ext <<_ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 $ac_includes_default
11865 typedef pid_t ac__type_new_;
11869 if ((ac__type_new_ *) 0)
11871 if (sizeof (ac__type_new_))
11877 rm -f conftest.$ac_objext
11878 if { (ac_try="$ac_compile"
11879 case "(($ac_try" in
11880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11881 *) ac_try_echo
=$ac_try;;
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1
>conftest.err
11888 cat conftest.err
>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.
$ac_objext; then
11894 ac_cv_type_pid_t
=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.
$ac_ext >&5
11899 ac_cv_type_pid_t
=no
11902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11904 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11905 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
11906 if test $ac_cv_type_pid_t = yes; then
11910 cat >>confdefs.h
<<_ACEOF
11916 { echo "$as_me:$LINENO: checking for size_t" >&5
11917 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11918 if test "${ac_cv_type_size_t+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.
$ac_ext <<_ACEOF
11924 cat confdefs.h
>>conftest.
$ac_ext
11925 cat >>conftest.
$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 $ac_includes_default
11928 typedef size_t ac__type_new_;
11932 if ((ac__type_new_ *) 0)
11934 if (sizeof (ac__type_new_))
11940 rm -f conftest.
$ac_objext
11941 if { (ac_try
="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_compile") 2>conftest.er1
11949 grep -v '^ *+' conftest.er1 >conftest.err
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest.$ac_objext; then
11957 ac_cv_type_size_t=yes
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11962 ac_cv_type_size_t=no
11965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11968 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11969 if test $ac_cv_type_size_t = yes; then
11973 cat >>confdefs.h <<_ACEOF
11974 #define size_t unsigned int
11979 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11980 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
11981 if test "${ac_cv_type_uid_t+set}" = set; then
11982 echo $ECHO_N "(cached) $ECHO_C" >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #include <sys/types.h>
11993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11994 $EGREP "uid_t" >/dev/null 2>&1; then
11995 ac_cv_type_uid_t=yes
11997 ac_cv_type_uid_t=no
12002 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12003 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
12004 if test $ac_cv_type_uid_t = no; then
12006 cat >>confdefs.h <<\_ACEOF
12011 cat >>confdefs.h <<\_ACEOF
12017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
12019 if test "${ac_cv_header_time+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 cat >conftest.$ac_ext <<_ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 #include <sys/types.h>
12029 #include <sys/time.h>
12035 if ((struct tm *) 0)
12041 rm -f conftest.$ac_objext
12042 if { (ac_try="$ac_compile"
12043 case "(($ac_try" in
12044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12045 *) ac_try_echo
=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_compile") 2>conftest.er1
12050 grep -v '^ *+' conftest.er1
>conftest.err
12052 cat conftest.err
>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest.
$ac_objext; then
12058 ac_cv_header_time
=yes
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.
$ac_ext >&5
12063 ac_cv_header_time
=no
12066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
12070 if test $ac_cv_header_time = yes; then
12072 cat >>confdefs.h
<<\_ACEOF
12073 #define TIME_WITH_SYS_TIME 1
12078 { echo "$as_me:$LINENO: checking for ino_t" >&5
12079 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
12080 if test "${ac_cv_type_ino_t+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 cat >conftest.
$ac_ext <<_ACEOF
12086 cat confdefs.h
>>conftest.
$ac_ext
12087 cat >>conftest.
$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12090 typedef ino_t ac__type_new_;
12094 if ((ac__type_new_ *) 0)
12096 if (sizeof (ac__type_new_))
12102 rm -f conftest.
$ac_objext
12103 if { (ac_try
="$ac_compile"
12104 case "(($ac_try" in
12105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12111 grep -v '^ *+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 ac_cv_type_ino_t=yes
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_type_ino_t=no
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12130 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
12131 if test $ac_cv_type_ino_t = yes; then
12135 cat >>confdefs.h <<_ACEOF
12141 { echo "$as_me:$LINENO: checking for dev_t" >&5
12142 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
12143 if test "${ac_cv_type_dev_t+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 cat >conftest.$ac_ext <<_ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12153 typedef dev_t ac__type_new_;
12157 if ((ac__type_new_ *) 0)
12159 if (sizeof (ac__type_new_))
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12169 *) ac_try_echo
=$ac_try;;
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12174 grep -v '^ *+' conftest.er1
>conftest.err
12176 cat conftest.err
>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.
$ac_objext; then
12182 ac_cv_type_dev_t
=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.
$ac_ext >&5
12187 ac_cv_type_dev_t
=no
12190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12193 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
12194 if test $ac_cv_type_dev_t = yes; then
12198 cat >>confdefs.h
<<_ACEOF
12199 #define dev_t unsigned
12205 { echo "$as_me:$LINENO: checking for rlim_t" >&5
12206 echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6; }
12207 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12208 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12209 echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6; }
12211 cat >conftest.
$ac_ext <<_ACEOF
12214 cat confdefs.h
>>conftest.
$ac_ext
12215 cat >>conftest.
$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12218 #include <sys/types.h>
12220 # include <stdlib.h>
12221 # include <stddef.h>
12223 #ifdef HAVE_SYS_RESOURCE_H
12224 # include <sys/resource.h>
12228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12229 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12230 ac_cv_type_rlim_t
=yes
12232 ac_cv_type_rlim_t
=no
12236 { echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12237 echo "${ECHO_T}$ac_cv_type_rlim_t" >&6; }
12239 if test $ac_cv_type_rlim_t = no
; then
12240 cat >> confdefs.h
<<\EOF
12241 #define rlim_t unsigned long
12245 { echo "$as_me:$LINENO: checking for stack_t" >&5
12246 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6; }
12247 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12248 { echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12249 echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6; }
12251 cat >conftest.
$ac_ext <<_ACEOF
12254 cat confdefs.h
>>conftest.
$ac_ext
12255 cat >>conftest.
$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 #include <sys/types.h>
12260 # include <stdlib.h>
12261 # include <stddef.h>
12263 #include <signal.h>
12266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12267 $EGREP "stack_t" >/dev
/null
2>&1; then
12268 ac_cv_type_stack_t
=yes
12270 ac_cv_type_stack_t
=no
12274 { echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12275 echo "${ECHO_T}$ac_cv_type_stack_t" >&6; }
12277 if test $ac_cv_type_stack_t = no
; then
12278 cat >> confdefs.h
<<\EOF
12279 #define stack_t struct sigaltstack
12283 { echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12284 echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6; }
12285 cat >conftest.
$ac_ext <<_ACEOF
12288 cat confdefs.h
>>conftest.
$ac_ext
12289 cat >>conftest.
$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12292 #include <sys/types.h>
12294 # include <stdlib.h>
12295 # include <stddef.h>
12297 #include <signal.h>
12298 #include "confdefs.h"
12303 stack_t sigstk; sigstk.ss_base = 0;
12308 rm -f conftest.
$ac_objext
12309 if { (ac_try
="$ac_compile"
12310 case "(($ac_try" in
12311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.$ac_objext; then
12325 { echo "$as_me:$LINENO: result: yes" >&5
12326 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_SS_BASE 1
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 { echo "$as_me:$LINENO: result: no" >&5
12335 echo "${ECHO_T}no" >&6; }
12338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12341 { echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12342 echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6; }
12344 # Check whether --with-tlib was given.
12345 if test "${with_tlib+set}" = set; then
12346 withval=$with_tlib;
12349 if test -n "$with_tlib"; then
12350 { echo "$as_me:$LINENO: result: $with_tlib" >&5
12351 echo "${ECHO_T}$with_tlib" >&6; }
12352 LIBS="$LIBS -l$with_tlib"
12353 { echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12354 echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6; }
12355 cat >conftest.$ac_ext <<_ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (ac_try="$ac_link"
12372 case "(($ac_try" in
12373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12374 *) ac_try_echo
=$ac_try;;
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12379 grep -v '^ *+' conftest.er1
>conftest.err
12381 cat conftest.err
>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } && {
12384 test -z "$ac_c_werror_flag" ||
12385 test ! -s conftest.err
12386 } && test -s conftest
$ac_exeext &&
12387 $as_test_x conftest
$ac_exeext; then
12388 { echo "$as_me:$LINENO: result: OK" >&5
12389 echo "${ECHO_T}OK" >&6; }
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.
$ac_ext >&5
12394 { { echo "$as_me:$LINENO: error: FAILED" >&5
12395 echo "$as_me: error: FAILED" >&2;}
12396 { (exit 1); exit 1; }; }
12399 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12400 conftest
$ac_exeext conftest.
$ac_ext
12403 { echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12404 echo "${ECHO_T}empty: automatic terminal library selection" >&6; }
12405 case "`uname -s 2>/dev/null`" in
12406 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12407 *) tlibs
="ncurses termlib termcap curses";;
12409 for libname
in $tlibs; do
12411 as_ac_Lib
=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12412 { echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12413 echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6; }
12414 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12417 ac_check_lib_save_LIBS
=$LIBS
12418 LIBS
="-l${libname} $LIBS"
12419 cat >conftest.
$ac_ext <<_ACEOF
12422 cat confdefs.h
>>conftest.
$ac_ext
12423 cat >>conftest.
$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12426 /* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12441 rm -f conftest.
$ac_objext conftest
$ac_exeext
12442 if { (ac_try
="$ac_link"
12443 case "(($ac_try" in
12444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } && {
12455 test -z "$ac_c_werror_flag" ||
12456 test ! -s conftest.err
12457 } && test -s conftest$ac_exeext &&
12458 $as_test_x conftest$ac_exeext; then
12459 eval "$as_ac_Lib=yes"
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 eval "$as_ac_Lib=no"
12467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 ac_res=`eval echo '${'$as_ac_Lib'}'`
12472 { echo "$as_me:$LINENO: result: $ac_res" >&5
12473 echo "${ECHO_T}$ac_res" >&6; }
12474 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12475 cat >>confdefs.h <<_ACEOF
12476 #define `echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12479 LIBS="-l${libname} $LIBS"
12483 if test "x$olibs" != "x$LIBS"; then
12484 if test "$cross_compiling" = yes; then
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12494 #ifdef HAVE_TERMCAP_H
12495 # include <termcap.h>
12498 # include <stdlib.h>
12499 # include <stddef.h>
12501 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12503 rm -f conftest$ac_exeext
12504 if { (ac_try="$ac_link"
12505 case "(($ac_try" in
12506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12507 *) ac_try_echo
=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_link") 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12514 { (case "(($ac_try" in
12515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12525 echo "$as_me: program exited with status $ac_status" >&5
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ( exit $ac_status )
12532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12536 if test "$res" = "OK"; then
12539 { echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12540 echo "${ECHO_T}$libname library is not usable" >&6; }
12544 if test "x$olibs" = "x$LIBS"; then
12545 { echo "$as_me:$LINENO: result: no terminal library found" >&5
12546 echo "${ECHO_T}no terminal library found" >&6; }
12550 if test "x$olibs" = "x$LIBS"; then
12551 { echo "$as_me:$LINENO: checking for tgetent()" >&5
12552 echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6; }
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12563 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12572 *) ac_try_echo
=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_link") 2>conftest.er1
12577 grep -v '^ *+' conftest.er1
>conftest.err
12579 cat conftest.err
>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_c_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest
$ac_exeext &&
12585 $as_test_x conftest
$ac_exeext; then
12586 { echo "$as_me:$LINENO: result: yes" >&5
12587 echo "${ECHO_T}yes" >&6; }
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.
$ac_ext >&5
12592 { { echo "$as_me:$LINENO: error: NOT FOUND!
12593 You need to install a terminal library; for example ncurses.
12594 Or specify the name of the library with --with-tlib." >&5
12595 echo "$as_me: error: NOT FOUND!
12596 You need to install a terminal library; for example ncurses.
12597 Or specify the name of the library with --with-tlib." >&2;}
12598 { (exit 1); exit 1; }; }
12601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12602 conftest
$ac_exeext conftest.
$ac_ext
12605 { echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12606 echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6; }
12607 if test "${vim_cv_terminfo+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 if test "$cross_compiling" = yes; then
12613 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12614 echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12615 { (exit 1); exit 1; }; }
12618 cat >conftest.
$ac_ext <<_ACEOF
12620 #include "confdefs.h"
12621 #ifdef HAVE_TERMCAP_H
12622 # include <termcap.h>
12624 #ifdef HAVE_STRING_H
12625 # include <string.h>
12628 # include <stdlib.h>
12629 # include <stddef.h>
12632 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12635 rm -f conftest
$ac_exeext
12636 if { (ac_try
="$ac_link"
12637 case "(($ac_try" in
12638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12639 *) ac_try_echo=$ac_try;;
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642 (eval "$ac_link") 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12646 { (case "(($ac_try" in
12647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12648 *) ac_try_echo
=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_try") 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12659 echo "$as_me: program exited with status $ac_status" >&5
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.
$ac_ext >&5
12663 ( exit $ac_status )
12665 vim_cv_terminfo
=yes
12668 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12674 { echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12675 echo "${ECHO_T}$vim_cv_terminfo" >&6; }
12677 if test "x$vim_cv_terminfo" = "xyes" ; then
12678 cat >>confdefs.h
<<\_ACEOF
12684 if test "x$olibs" != "x$LIBS"; then
12685 { echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12686 echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6; }
12687 if test "${vim_cv_tgent+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 if test "$cross_compiling" = yes; then
12693 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12694 echo "$as_me: error: failed to compile test program." >&2;}
12695 { (exit 1); exit 1; }; }
12698 cat >conftest.
$ac_ext <<_ACEOF
12700 #include "confdefs.h"
12701 #ifdef HAVE_TERMCAP_H
12702 # include <termcap.h>
12705 # include <stdlib.h>
12706 # include <stddef.h>
12709 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12712 rm -f conftest
$ac_exeext
12713 if { (ac_try
="$ac_link"
12714 case "(($ac_try" in
12715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_link") 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12725 *) ac_try_echo
=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12736 echo "$as_me: program exited with status $ac_status" >&5
12737 echo "$as_me: failed program was:" >&5
12738 sed 's/^/| /' conftest.
$ac_ext >&5
12740 ( exit $ac_status )
12742 vim_cv_tgent
=non-zero
12745 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12751 { echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12752 echo "${ECHO_T}$vim_cv_tgent" >&6; }
12754 if test "x$vim_cv_tgent" = "xzero" ; then
12755 cat >>confdefs.h
<<\_ACEOF
12756 #define TGETENT_ZERO_ERR 0
12762 { echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12763 echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6; }
12764 cat >conftest.
$ac_ext <<_ACEOF
12767 cat confdefs.h
>>conftest.
$ac_ext
12768 cat >>conftest.
$ac_ext <<_ACEOF
12769 /* end confdefs.h. */
12771 #ifdef HAVE_TERMCAP_H
12772 # include <termcap.h>
12783 rm -f conftest.
$ac_objext conftest
$ac_exeext
12784 if { (ac_try
="$ac_link"
12785 case "(($ac_try" in
12786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_link") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest$ac_exeext &&
12800 $as_test_x conftest$ac_exeext; then
12801 { echo "$as_me:$LINENO: result: yes" >&5
12802 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12803 #define HAVE_OSPEED 1
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 { echo "$as_me:$LINENO: result: no" >&5
12811 echo "${ECHO_T}no" >&6; }
12812 { echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12813 echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6; }
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12821 #ifdef HAVE_TERMCAP_H
12822 # include <termcap.h>
12824 extern short ospeed;
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (ac_try="$ac_link"
12836 case "(($ac_try" in
12837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12838 *) ac_try_echo
=$ac_try;;
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_link") 2>conftest.er1
12843 grep -v '^ *+' conftest.er1
>conftest.err
12845 cat conftest.err
>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); } && {
12848 test -z "$ac_c_werror_flag" ||
12849 test ! -s conftest.err
12850 } && test -s conftest
$ac_exeext &&
12851 $as_test_x conftest
$ac_exeext; then
12852 { echo "$as_me:$LINENO: result: yes" >&5
12853 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12854 #define OSPEED_EXTERN 1
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.
$ac_ext >&5
12861 { echo "$as_me:$LINENO: result: no" >&5
12862 echo "${ECHO_T}no" >&6; }
12865 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12866 conftest
$ac_exeext conftest.
$ac_ext
12870 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12871 conftest
$ac_exeext conftest.
$ac_ext
12873 { echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12874 echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6; }
12875 cat >conftest.
$ac_ext <<_ACEOF
12878 cat confdefs.h
>>conftest.
$ac_ext
12879 cat >>conftest.
$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 #ifdef HAVE_TERMCAP_H
12883 # include <termcap.h>
12889 if (UP == 0 && BC == 0) PC = 1
12894 rm -f conftest.
$ac_objext conftest
$ac_exeext
12895 if { (ac_try
="$ac_link"
12896 case "(($ac_try" in
12897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_link") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest$ac_exeext &&
12911 $as_test_x conftest$ac_exeext; then
12912 { echo "$as_me:$LINENO: result: yes" >&5
12913 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12914 #define HAVE_UP_BC_PC 1
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 { echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6; }
12923 { echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12924 echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6; }
12925 cat >conftest.$ac_ext <<_ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h. */
12932 #ifdef HAVE_TERMCAP_H
12933 # include <termcap.h>
12935 extern char *UP, *BC, PC;
12940 if (UP == 0 && BC == 0) PC = 1
12945 rm -f conftest.$ac_objext conftest$ac_exeext
12946 if { (ac_try="$ac_link"
12947 case "(($ac_try" in
12948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12949 *) ac_try_echo
=$ac_try;;
12951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>conftest.er1
12954 grep -v '^ *+' conftest.er1
>conftest.err
12956 cat conftest.err
>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && {
12959 test -z "$ac_c_werror_flag" ||
12960 test ! -s conftest.err
12961 } && test -s conftest
$ac_exeext &&
12962 $as_test_x conftest
$ac_exeext; then
12963 { echo "$as_me:$LINENO: result: yes" >&5
12964 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12965 #define UP_BC_PC_EXTERN 1
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.
$ac_ext >&5
12972 { echo "$as_me:$LINENO: result: no" >&5
12973 echo "${ECHO_T}no" >&6; }
12976 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12977 conftest
$ac_exeext conftest.
$ac_ext
12981 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12982 conftest
$ac_exeext conftest.
$ac_ext
12984 { echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12985 echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6; }
12986 cat >conftest.
$ac_ext <<_ACEOF
12989 cat confdefs.h
>>conftest.
$ac_ext
12990 cat >>conftest.
$ac_ext <<_ACEOF
12991 /* end confdefs.h. */
12993 #ifdef HAVE_TERMCAP_H
12994 # include <termcap.h>
13000 extern int xx(); tputs("test", 1, (outfuntype)xx)
13005 rm -f conftest.
$ac_objext
13006 if { (ac_try
="$ac_compile"
13007 case "(($ac_try" in
13008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_compile") 2>conftest.er1
13014 grep -v '^ *+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest.$ac_objext; then
13022 { echo "$as_me:$LINENO: result: yes" >&5
13023 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13024 #define HAVE_OUTFUNTYPE 1
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13031 { echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6; }
13035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13038 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
13039 cat >conftest.$ac_ext <<_ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 #include <sys/types.h>
13047 #include <sys/time.h>
13048 #include <sys/select.h>
13057 rm -f conftest.$ac_objext
13058 if { (ac_try="$ac_compile"
13059 case "(($ac_try" in
13060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13061 *) ac_try_echo
=$ac_try;;
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_compile") 2>conftest.er1
13066 grep -v '^ *+' conftest.er1
>conftest.err
13068 cat conftest.err
>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest.
$ac_objext; then
13074 { echo "$as_me:$LINENO: result: yes" >&5
13075 echo "${ECHO_T}yes" >&6; }
13076 cat >>confdefs.h
<<\_ACEOF
13077 #define SYS_SELECT_WITH_SYS_TIME 1
13081 echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.
$ac_ext >&5
13084 { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13091 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13092 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
13093 if test -r /dev
/ptc
; then
13094 cat >>confdefs.h
<<\_ACEOF
13095 #define HAVE_DEV_PTC 1
13098 { echo "$as_me:$LINENO: result: yes" >&5
13099 echo "${ECHO_T}yes" >&6; }
13101 { echo "$as_me:$LINENO: result: no" >&5
13102 echo "${ECHO_T}no" >&6; }
13105 { echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13106 echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6; }
13107 if test -c /dev
/ptmx
; then
13108 cat >conftest.
$ac_ext <<_ACEOF
13111 cat confdefs.h
>>conftest.
$ac_ext
13112 cat >>conftest.
$ac_ext <<_ACEOF
13113 /* end confdefs.h. */
13118 ptsname(0);grantpt(0);unlockpt(0);
13123 rm -f conftest.
$ac_objext conftest
$ac_exeext
13124 if { (ac_try
="$ac_link"
13125 case "(($ac_try" in
13126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest$ac_exeext &&
13140 $as_test_x conftest$ac_exeext; then
13141 { echo "$as_me:$LINENO: result: yes" >&5
13142 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13143 #define HAVE_SVR4_PTYS 1
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13155 conftest$ac_exeext conftest.$ac_ext
13157 { echo "$as_me:$LINENO: result: no" >&5
13158 echo "${ECHO_T}no" >&6; }
13161 { echo "$as_me:$LINENO: checking for ptyranges" >&5
13162 echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6; }
13163 if test -d /dev/ptym ; then
13168 cat >conftest.$ac_ext <<_ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13180 $EGREP "yes" >/dev/null 2>&1; then
13181 ptys=`echo /dev
/ptyp??
`
13183 ptys=`echo $pdir/pty??
`
13187 if test "$ptys" != "$pdir/pty??" ; then
13188 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13189 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13190 cat >>confdefs.h <<_ACEOF
13191 #define PTYRANGE0 "$p0"
13194 cat >>confdefs.h <<_ACEOF
13195 #define PTYRANGE1 "$p1"
13198 { echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13199 echo "${ECHO_T}$p0 / $p1" >&6; }
13201 { echo "$as_me:$LINENO: result: don't know" >&5
13202 echo "${ECHO_T}don't know" >&6; }
13206 { echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13207 echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6; }
13208 if test "${vim_cv_tty_group+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 if test "$cross_compiling" = yes; then
13214 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13215 echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13216 { (exit 1); exit 1; }; }
13219 cat >conftest.$ac_ext <<_ACEOF
13221 #include "confdefs.h"
13222 #include <sys/types.h>
13224 # include <stdlib.h>
13225 # include <stddef.h>
13227 #ifdef HAVE_UNISTD_H
13228 #include <unistd.h>
13230 #include <sys/stat.h>
13235 char *x,*ttyname();
13239 if (!(x = ttyname(0))) exit(1);
13240 if (stat(x, &sb)) exit(1);
13242 if (om & 002) exit(0);
13243 m = system("mesg y");
13244 if (m == -1 || m == 127) exit(1);
13245 if (stat(x, &sb)) exit(1);
13247 if (chmod(x, om)) exit(1);
13248 if (m & 002) exit(0);
13249 if (sb.st_gid == getgid()) exit(1);
13250 if (!(fp=fopen("conftest_grp", "w")))
13252 fprintf(fp, "%d\n", sb.st_gid);
13258 rm -f conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13262 *) ac_try_echo
=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_link") 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13269 { (case "(($ac_try" in
13270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_try") 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13279 if test -f conftest_grp; then
13280 vim_cv_tty_group=`cat conftest_grp
`
13281 if test "x$vim_cv_tty_mode" = "x" ; then
13282 vim_cv_tty_mode=0620
13284 { echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13285 echo "${ECHO_T}pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13287 vim_cv_tty_group=world
13288 { echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13289 echo "${ECHO_T}ptys are world accessible" >&6; }
13293 echo "$as_me: program exited with status $ac_status" >&5
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13297 ( exit $ac_status )
13299 vim_cv_tty_group=world
13300 { echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13301 echo "${ECHO_T}can't determine - assume ptys are world accessible" >&6; }
13304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13310 { echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13311 echo "${ECHO_T}$vim_cv_tty_group" >&6; }
13314 if test "x$vim_cv_tty_group" != "xworld" ; then
13315 cat >>confdefs.h <<_ACEOF
13316 #define PTYGROUP $vim_cv_tty_group
13319 if test "x$vim_cv_tty_mode" = "x" ; then
13320 { { 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
13321 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;}
13322 { (exit 1); exit 1; }; }
13324 cat >>confdefs.h <<\_ACEOF
13325 #define PTYMODE 0620
13332 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13333 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
13334 if test "${ac_cv_type_signal+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 cat >conftest.$ac_ext <<_ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 #include <sys/types.h>
13344 #include <signal.h>
13349 return *(signal (0, 0)) (0) == 1;
13354 rm -f conftest.$ac_objext
13355 if { (ac_try="$ac_compile"
13356 case "(($ac_try" in
13357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13358 *) ac_try_echo
=$ac_try;;
13360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13361 (eval "$ac_compile") 2>conftest.er1
13363 grep -v '^ *+' conftest.er1
>conftest.err
13365 cat conftest.err
>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); } && {
13368 test -z "$ac_c_werror_flag" ||
13369 test ! -s conftest.err
13370 } && test -s conftest.
$ac_objext; then
13371 ac_cv_type_signal
=int
13373 echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.
$ac_ext >&5
13376 ac_cv_type_signal
=void
13379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13381 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13382 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
13384 cat >>confdefs.h
<<_ACEOF
13385 #define RETSIGTYPE $ac_cv_type_signal
13390 if test $ac_cv_type_signal = void
; then
13391 cat >>confdefs.h
<<\_ACEOF
13392 #define SIGRETURN return
13396 cat >>confdefs.h
<<\_ACEOF
13397 #define SIGRETURN return 0
13402 { echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13403 echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6; }
13404 cat >conftest.
$ac_ext <<_ACEOF
13407 cat confdefs.h
>>conftest.
$ac_ext
13408 cat >>conftest.
$ac_ext <<_ACEOF
13409 /* end confdefs.h. */
13411 #include <signal.h>
13414 struct sigcontext *scont;
13415 scont = (struct sigcontext *)0;
13426 rm -f conftest.
$ac_objext
13427 if { (ac_try
="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 { echo "$as_me:$LINENO: result: yes" >&5
13444 echo "${ECHO_T}yes" >&6; }
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_SIGCONTEXT 1
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 { echo "$as_me:$LINENO: result: no" >&5
13454 echo "${ECHO_T}no" >&6; }
13457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13460 echo $ECHO_N "checking getcwd implementation is broken... $ECHO_C" >&6; }
13461 if test "${vim_cv_getcwd_broken+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 if test "$cross_compiling" = yes; then
13467 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13468 echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13469 { (exit 1); exit 1; }; }
13472 cat >conftest.$ac_ext <<_ACEOF
13474 #include "confdefs.h"
13475 #ifdef HAVE_UNISTD_H
13476 #include <unistd.h>
13478 char *dagger[] = { "IFS=pwd", 0 };
13482 extern char **environ;
13484 return getcwd(buffer, 500) ? 0 : 1;
13488 rm -f conftest$ac_exeext
13489 if { (ac_try="$ac_link"
13490 case "(($ac_try" in
13491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13492 *) ac_try_echo
=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_link") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13509 vim_cv_getcwd_broken=no
13512 echo "$as_me: program exited with status $ac_status" >&5
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 ( exit $ac_status )
13518 vim_cv_getcwd_broken=yes
13521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13527 { echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13528 echo "${ECHO_T}$vim_cv_getcwd_broken" >&6; }
13530 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13531 cat >>confdefs.h <<\_ACEOF
13532 #define BAD_GETCWD 1
13582 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
13583 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13584 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
13585 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13586 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13587 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13588 usleep utime utimes
13590 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13604 #define $ac_func innocuous_$ac_func
13606 /* System header to define __stub macros and hopefully few prototypes,
13607 which can conflict with char $ac_func (); below.
13608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609 <limits.h> exists even on freestanding compilers. */
13612 # include <limits.h>
13614 # include <assert.h>
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13626 /* The GNU C library defines this for functions which it implements
13627 to always fail with ENOSYS. Some functions are actually named
13628 something starting with __ and the normal name is an alias. */
13629 #if defined __stub_$ac_func || defined __stub___$ac_func
13636 return $ac_func ();
13641 rm -f conftest.$ac_objext conftest$ac_exeext
13642 if { (ac_try="$ac_link"
13643 case "(($ac_try" in
13644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13645 *) ac_try_echo
=$ac_try;;
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648 (eval "$ac_link") 2>conftest.er1
13650 grep -v '^ *+' conftest.er1
>conftest.err
13652 cat conftest.err
>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest
$ac_exeext &&
13658 $as_test_x conftest
$ac_exeext; then
13659 eval "$as_ac_var=yes"
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.
$ac_ext >&5
13664 eval "$as_ac_var=no"
13667 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13668 conftest
$ac_exeext conftest.
$ac_ext
13670 ac_res
=`eval echo '${'$as_ac_var'}'`
13671 { echo "$as_me:$LINENO: result: $ac_res" >&5
13672 echo "${ECHO_T}$ac_res" >&6; }
13673 if test `eval echo '${'$as_ac_var'}'` = yes; then
13674 cat >>confdefs.h
<<_ACEOF
13675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13682 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
13683 if test "${ac_cv_sys_largefile_source+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 cat >conftest.
$ac_ext <<_ACEOF
13690 cat confdefs.h
>>conftest.
$ac_ext
13691 cat >>conftest.
$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13697 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13702 rm -f conftest.
$ac_objext conftest
$ac_exeext
13703 if { (ac_try
="$ac_link"
13704 case "(($ac_try" in
13705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest$ac_exeext &&
13719 $as_test_x conftest$ac_exeext; then
13720 ac_cv_sys_largefile_source=no; break
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729 conftest$ac_exeext conftest.$ac_ext
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #define _LARGEFILE_SOURCE 1
13741 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
13746 rm -f conftest.$ac_objext conftest$ac_exeext
13747 if { (ac_try="$ac_link"
13748 case "(($ac_try" in
13749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13750 *) ac_try_echo
=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_link") 2>conftest.er1
13755 grep -v '^ *+' conftest.er1
>conftest.err
13757 cat conftest.err
>&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } && {
13760 test -z "$ac_c_werror_flag" ||
13761 test ! -s conftest.err
13762 } && test -s conftest
$ac_exeext &&
13763 $as_test_x conftest
$ac_exeext; then
13764 ac_cv_sys_largefile_source
=1; break
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.
$ac_ext >&5
13772 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13773 conftest
$ac_exeext conftest.
$ac_ext
13774 ac_cv_sys_largefile_source
=unknown
13778 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13779 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
13780 case $ac_cv_sys_largefile_source in #(
13783 cat >>confdefs.h
<<_ACEOF
13784 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13790 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13791 # in glibc 2.1.3, but that breaks too many other things.
13792 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13793 if test $ac_cv_sys_largefile_source != unknown
; then
13795 cat >>confdefs.h
<<\_ACEOF
13796 #define HAVE_FSEEKO 1
13802 { echo "$as_me:$LINENO: checking for st_blksize" >&5
13803 echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6; }
13804 cat >conftest.
$ac_ext <<_ACEOF
13807 cat confdefs.h
>>conftest.
$ac_ext
13808 cat >>conftest.
$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13810 #include <sys/types.h>
13811 #include <sys/stat.h>
13819 n = (int)st.st_blksize;
13824 rm -f conftest.
$ac_objext
13825 if { (ac_try
="$ac_compile"
13826 case "(($ac_try" in
13827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_compile") 2>conftest.er1
13833 grep -v '^ *+' conftest.er1 >conftest.err
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 } && test -s conftest.$ac_objext; then
13841 { echo "$as_me:$LINENO: result: yes" >&5
13842 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_ST_BLKSIZE 1
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 { echo "$as_me:$LINENO: result: no" >&5
13851 echo "${ECHO_T}no" >&6; }
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 { echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13857 echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6; }
13858 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 if test "$cross_compiling" = yes; then
13864 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13865 echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13866 { (exit 1); exit 1; }; }
13869 cat >conftest.$ac_ext <<_ACEOF
13871 #include "confdefs.h"
13873 # include <stdlib.h>
13874 # include <stddef.h>
13876 #include <sys/types.h>
13877 #include <sys/stat.h>
13878 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13881 rm -f conftest$ac_exeext
13882 if { (ac_try="$ac_link"
13883 case "(($ac_try" in
13884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13885 *) ac_try_echo
=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_link") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13892 { (case "(($ac_try" in
13893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13902 vim_cv_stat_ignores_slash=yes
13905 echo "$as_me: program exited with status $ac_status" >&5
13906 echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 ( exit $ac_status )
13911 vim_cv_stat_ignores_slash=no
13914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13920 { echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13921 echo "${ECHO_T}$vim_cv_stat_ignores_slash" >&6; }
13923 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13924 cat >>confdefs.h <<\_ACEOF
13925 #define STAT_IGNORES_SLASH 1
13930 { echo "$as_me:$LINENO: checking for iconv_open()" >&5
13931 echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6; }
13933 LIBS="$LIBS -liconv"
13934 cat >conftest.$ac_ext <<_ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13941 #ifdef HAVE_ICONV_H
13942 # include <iconv.h>
13948 iconv_open("fr", "to");
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (ac_try="$ac_link"
13955 case "(($ac_try" in
13956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13957 *) ac_try_echo
=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_link") 2>conftest.er1
13962 grep -v '^ *+' conftest.er1
>conftest.err
13964 cat conftest.err
>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } && {
13967 test -z "$ac_c_werror_flag" ||
13968 test ! -s conftest.err
13969 } && test -s conftest
$ac_exeext &&
13970 $as_test_x conftest
$ac_exeext; then
13971 { echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13972 echo "${ECHO_T}yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
13973 #define HAVE_ICONV 1
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.
$ac_ext >&5
13981 cat >conftest.
$ac_ext <<_ACEOF
13984 cat confdefs.h
>>conftest.
$ac_ext
13985 cat >>conftest.
$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13988 #ifdef HAVE_ICONV_H
13989 # include <iconv.h>
13995 iconv_open("fr", "to");
14000 rm -f conftest.
$ac_objext conftest
$ac_exeext
14001 if { (ac_try
="$ac_link"
14002 case "(($ac_try" in
14003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_link") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1 >conftest.err
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } && {
14014 test -z "$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14016 } && test -s conftest$ac_exeext &&
14017 $as_test_x conftest$ac_exeext; then
14018 { echo "$as_me:$LINENO: result: yes" >&5
14019 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_ICONV 1
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14027 { echo "$as_me:$LINENO: result: no" >&5
14028 echo "${ECHO_T}no" >&6; }
14031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14032 conftest$ac_exeext conftest.$ac_ext
14035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14036 conftest$ac_exeext conftest.$ac_ext
14039 { echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14040 echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6; }
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14048 #ifdef HAVE_LANGINFO_H
14049 # include <langinfo.h>
14055 char *cs = nl_langinfo(CODESET);
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (ac_try="$ac_link"
14062 case "(($ac_try" in
14063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14064 *) ac_try_echo
=$ac_try;;
14066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14067 (eval "$ac_link") 2>conftest.er1
14069 grep -v '^ *+' conftest.er1
>conftest.err
14071 cat conftest.err
>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } && {
14074 test -z "$ac_c_werror_flag" ||
14075 test ! -s conftest.err
14076 } && test -s conftest
$ac_exeext &&
14077 $as_test_x conftest
$ac_exeext; then
14078 { echo "$as_me:$LINENO: result: yes" >&5
14079 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14080 #define HAVE_NL_LANGINFO_CODESET 1
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.
$ac_ext >&5
14087 { echo "$as_me:$LINENO: result: no" >&5
14088 echo "${ECHO_T}no" >&6; }
14091 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14092 conftest
$ac_exeext conftest.
$ac_ext
14095 { echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14096 echo $ECHO_N "checking for strtod in -lm... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_m_strtod+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14100 ac_check_lib_save_LIBS
=$LIBS
14102 cat >conftest.
$ac_ext <<_ACEOF
14105 cat confdefs.h
>>conftest.
$ac_ext
14106 cat >>conftest.
$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14109 /* Override any GCC internal prototype to avoid an error.
14110 Use char because int might match the return type of a GCC
14111 builtin and then its argument prototype would still apply. */
14124 rm -f conftest.
$ac_objext conftest
$ac_exeext
14125 if { (ac_try
="$ac_link"
14126 case "(($ac_try" in
14127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_link") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest$ac_exeext &&
14141 $as_test_x conftest$ac_exeext; then
14142 ac_cv_lib_m_strtod=yes
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 ac_cv_lib_m_strtod=no
14150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14151 conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14155 echo "${ECHO_T}$ac_cv_lib_m_strtod" >&6; }
14156 if test $ac_cv_lib_m_strtod = yes; then
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_LIBM 1
14165 { echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14166 echo $ECHO_N "checking for strtod() and other floating point functions... $ECHO_C" >&6; }
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14178 # include <stdlib.h>
14179 # include <stddef.h>
14186 d = strtod("1.1", &s);
14191 d = pow(1.11, 2.22);
14201 rm -f conftest.$ac_objext conftest$ac_exeext
14202 if { (ac_try="$ac_link"
14203 case "(($ac_try" in
14204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14205 *) ac_try_echo
=$ac_try;;
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_link") 2>conftest.er1
14210 grep -v '^ *+' conftest.er1
>conftest.err
14212 cat conftest.err
>&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); } && {
14215 test -z "$ac_c_werror_flag" ||
14216 test ! -s conftest.err
14217 } && test -s conftest
$ac_exeext &&
14218 $as_test_x conftest
$ac_exeext; then
14219 { echo "$as_me:$LINENO: result: yes" >&5
14220 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14221 #define HAVE_FLOAT_FUNCS 1
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.
$ac_ext >&5
14228 { echo "$as_me:$LINENO: result: no" >&5
14229 echo "${ECHO_T}no" >&6; }
14232 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14233 conftest
$ac_exeext conftest.
$ac_ext
14235 { echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14236 echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6; }
14237 # Check whether --enable-acl was given.
14238 if test "${enable_acl+set}" = set; then
14239 enableval
=$enable_acl;
14244 if test "$enable_acl" = "yes"; then
14245 { echo "$as_me:$LINENO: result: no" >&5
14246 echo "${ECHO_T}no" >&6; }
14247 { echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14248 echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6; }
14249 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 ac_check_lib_save_LIBS
=$LIBS
14253 LIBS
="-lposix1e $LIBS"
14254 cat >conftest.
$ac_ext <<_ACEOF
14257 cat confdefs.h
>>conftest.
$ac_ext
14258 cat >>conftest.
$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14267 char acl_get_file ();
14271 return acl_get_file ();
14276 rm -f conftest.
$ac_objext conftest
$ac_exeext
14277 if { (ac_try
="$ac_link"
14278 case "(($ac_try" in
14279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
14285 grep -v '^ *+' conftest.er1 >conftest.err
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest$ac_exeext &&
14293 $as_test_x conftest$ac_exeext; then
14294 ac_cv_lib_posix1e_acl_get_file=yes
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14299 ac_cv_lib_posix1e_acl_get_file=no
14302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14303 conftest$ac_exeext conftest.$ac_ext
14304 LIBS=$ac_check_lib_save_LIBS
14306 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14307 echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6; }
14308 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14309 LIBS="$LIBS -lposix1e"
14311 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14312 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
14313 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 ac_check_lib_save_LIBS=$LIBS
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14325 /* Override any GCC internal prototype to avoid an error.
14326 Use char because int might match the return type of a GCC
14327 builtin and then its argument prototype would still apply. */
14331 char acl_get_file ();
14335 return acl_get_file ();
14340 rm -f conftest.$ac_objext conftest$ac_exeext
14341 if { (ac_try="$ac_link"
14342 case "(($ac_try" in
14343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14344 *) ac_try_echo
=$ac_try;;
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347 (eval "$ac_link") 2>conftest.er1
14349 grep -v '^ *+' conftest.er1
>conftest.err
14351 cat conftest.err
>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } && {
14354 test -z "$ac_c_werror_flag" ||
14355 test ! -s conftest.err
14356 } && test -s conftest
$ac_exeext &&
14357 $as_test_x conftest
$ac_exeext; then
14358 ac_cv_lib_acl_acl_get_file
=yes
14360 echo "$as_me: failed program was:" >&5
14361 sed 's/^/| /' conftest.
$ac_ext >&5
14363 ac_cv_lib_acl_acl_get_file
=no
14366 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14367 conftest
$ac_exeext conftest.
$ac_ext
14368 LIBS
=$ac_check_lib_save_LIBS
14370 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14371 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
14372 if test $ac_cv_lib_acl_acl_get_file = yes; then
14374 { echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14375 echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6; }
14376 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_check_lib_save_LIBS
=$LIBS
14380 LIBS
="-lattr $LIBS"
14381 cat >conftest.
$ac_ext <<_ACEOF
14384 cat confdefs.h
>>conftest.
$ac_ext
14385 cat >>conftest.
$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14388 /* Override any GCC internal prototype to avoid an error.
14389 Use char because int might match the return type of a GCC
14390 builtin and then its argument prototype would still apply. */
14398 return fgetxattr ();
14403 rm -f conftest.
$ac_objext conftest
$ac_exeext
14404 if { (ac_try
="$ac_link"
14405 case "(($ac_try" in
14406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_link") 2>conftest.er1
14412 grep -v '^ *+' conftest.er1 >conftest.err
14414 cat conftest.err >&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } && {
14417 test -z "$ac_c_werror_flag" ||
14418 test ! -s conftest.err
14419 } && test -s conftest$ac_exeext &&
14420 $as_test_x conftest$ac_exeext; then
14421 ac_cv_lib_attr_fgetxattr=yes
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ac_cv_lib_attr_fgetxattr=no
14429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14430 conftest$ac_exeext conftest.$ac_ext
14431 LIBS=$ac_check_lib_save_LIBS
14433 { echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14434 echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6; }
14435 if test $ac_cv_lib_attr_fgetxattr = yes; then
14436 LIBS="$LIBS -lattr"
14444 { echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14445 echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14453 #include <sys/types.h>
14454 #ifdef HAVE_SYS_ACL_H
14455 # include <sys/acl.h>
14461 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14462 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14468 rm -f conftest.$ac_objext conftest$ac_exeext
14469 if { (ac_try="$ac_link"
14470 case "(($ac_try" in
14471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14472 *) ac_try_echo
=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_link") 2>conftest.er1
14477 grep -v '^ *+' conftest.er1
>conftest.err
14479 cat conftest.err
>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest
$ac_exeext &&
14485 $as_test_x conftest
$ac_exeext; then
14486 { echo "$as_me:$LINENO: result: yes" >&5
14487 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14488 #define HAVE_POSIX_ACL 1
14492 echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.
$ac_ext >&5
14495 { echo "$as_me:$LINENO: result: no" >&5
14496 echo "${ECHO_T}no" >&6; }
14499 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14500 conftest
$ac_exeext conftest.
$ac_ext
14502 { echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14503 echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6; }
14504 cat >conftest.
$ac_ext <<_ACEOF
14507 cat confdefs.h
>>conftest.
$ac_ext
14508 cat >>conftest.
$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14511 #ifdef HAVE_SYS_ACL_H
14512 # include <sys/acl.h>
14517 acl("foo", GETACLCNT, 0, NULL);
14523 rm -f conftest.
$ac_objext conftest
$ac_exeext
14524 if { (ac_try
="$ac_link"
14525 case "(($ac_try" in
14526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_link") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest$ac_exeext &&
14540 $as_test_x conftest$ac_exeext; then
14541 { echo "$as_me:$LINENO: result: yes" >&5
14542 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_SOLARIS_ACL 1
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14550 { echo "$as_me:$LINENO: result: no" >&5
14551 echo "${ECHO_T}no" >&6; }
14554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14555 conftest$ac_exeext conftest.$ac_ext
14557 { echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14558 echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6; }
14559 cat >conftest.$ac_ext <<_ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14567 # include <stdlib.h>
14568 # include <stddef.h>
14570 #ifdef HAVE_SYS_ACL_H
14571 # include <sys/acl.h>
14573 #ifdef HAVE_SYS_ACCESS_H
14574 # include <sys/access.h>
14576 #define _ALL_SOURCE
14578 #include <sys/stat.h>
14581 struct acl *aclent;
14585 aclsize = sizeof(struct acl);
14586 aclent = (void *)malloc(aclsize);
14587 statacl("foo", STX_NORMAL, aclent, aclsize);
14593 rm -f conftest.$ac_objext conftest$ac_exeext
14594 if { (ac_try="$ac_link"
14595 case "(($ac_try" in
14596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14597 *) ac_try_echo
=$ac_try;;
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_link") 2>conftest.er1
14602 grep -v '^ *+' conftest.er1
>conftest.err
14604 cat conftest.err
>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } && {
14607 test -z "$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 } && test -s conftest
$ac_exeext &&
14610 $as_test_x conftest
$ac_exeext; then
14611 { echo "$as_me:$LINENO: result: yes" >&5
14612 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14613 #define HAVE_AIX_ACL 1
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.
$ac_ext >&5
14620 { echo "$as_me:$LINENO: result: no" >&5
14621 echo "${ECHO_T}no" >&6; }
14624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14625 conftest
$ac_exeext conftest.
$ac_ext
14627 { echo "$as_me:$LINENO: result: yes" >&5
14628 echo "${ECHO_T}yes" >&6; }
14631 { echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14632 echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6; }
14633 # Check whether --enable-gpm was given.
14634 if test "${enable_gpm+set}" = set; then
14635 enableval
=$enable_gpm;
14641 if test "$enable_gpm" = "yes"; then
14642 { echo "$as_me:$LINENO: result: no" >&5
14643 echo "${ECHO_T}no" >&6; }
14644 { echo "$as_me:$LINENO: checking for gpm" >&5
14645 echo $ECHO_N "checking for gpm... $ECHO_C" >&6; }
14646 if test "${vi_cv_have_gpm+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 olibs
="$LIBS" ; LIBS
="-lgpm"
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14657 #include <linux/keyboard.h>
14661 Gpm_GetLibVersion(NULL);
14666 rm -f conftest.
$ac_objext conftest
$ac_exeext
14667 if { (ac_try
="$ac_link"
14668 case "(($ac_try" in
14669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext &&
14683 $as_test_x conftest$ac_exeext; then
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693 conftest$ac_exeext conftest.$ac_ext
14697 { echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14698 echo "${ECHO_T}$vi_cv_have_gpm" >&6; }
14699 if test $vi_cv_have_gpm = yes; then
14701 cat >>confdefs.h <<\_ACEOF
14707 { echo "$as_me:$LINENO: result: yes" >&5
14708 echo "${ECHO_T}yes" >&6; }
14711 { echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14712 echo $ECHO_N "checking --disable-sysmouse argument... $ECHO_C" >&6; }
14713 # Check whether --enable-sysmouse was given.
14714 if test "${enable_sysmouse+set}" = set; then
14715 enableval=$enable_sysmouse;
14717 enable_sysmouse="yes"
14721 if test "$enable_sysmouse" = "yes"; then
14722 { echo "$as_me:$LINENO: result: no" >&5
14723 echo "${ECHO_T}no" >&6; }
14724 { echo "$as_me:$LINENO: checking for sysmouse" >&5
14725 echo $ECHO_N "checking for sysmouse... $ECHO_C" >&6; }
14726 if test "${vi_cv_have_sysmouse+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 #include <sys/consio.h>
14736 #include <signal.h>
14737 #include <sys/fbio.h>
14741 struct mouse_info mouse;
14742 mouse.operation = MOUSE_MODE;
14743 mouse.operation = MOUSE_SHOW;
14744 mouse.u.mode.mode = 0;
14745 mouse.u.mode.signal = SIGUSR2;
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14754 *) ac_try_echo
=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1
>conftest.err
14761 cat conftest.err
>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest
$ac_exeext &&
14767 $as_test_x conftest
$ac_exeext; then
14768 vi_cv_have_sysmouse
=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.
$ac_ext >&5
14773 vi_cv_have_sysmouse
=no
14776 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14777 conftest
$ac_exeext conftest.
$ac_ext
14780 { echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14781 echo "${ECHO_T}$vi_cv_have_sysmouse" >&6; }
14782 if test $vi_cv_have_sysmouse = yes; then
14783 cat >>confdefs.h
<<\_ACEOF
14784 #define HAVE_SYSMOUSE 1
14789 { echo "$as_me:$LINENO: result: yes" >&5
14790 echo "${ECHO_T}yes" >&6; }
14793 { echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
14794 echo $ECHO_N "checking for FD_CLOEXEC... $ECHO_C" >&6; }
14795 cat >conftest.
$ac_ext <<_ACEOF
14798 cat confdefs.h
>>conftest.
$ac_ext
14799 cat >>conftest.
$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14802 # include <fcntl.h>
14807 int flag = FD_CLOEXEC;
14812 rm -f conftest.
$ac_objext
14813 if { (ac_try
="$ac_compile"
14814 case "(($ac_try" in
14815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_compile") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && {
14826 test -z "$ac_c_werror_flag" ||
14827 test ! -s conftest.err
14828 } && test -s conftest.$ac_objext; then
14829 { echo "$as_me:$LINENO: result: yes" >&5
14830 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14831 #define HAVE_FD_CLOEXEC 1
14835 echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 { echo "$as_me:$LINENO: result: not usable" >&5
14839 echo "${ECHO_T}not usable" >&6; }
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 { echo "$as_me:$LINENO: checking for rename" >&5
14845 echo $ECHO_N "checking for rename... $ECHO_C" >&6; }
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14856 rename("this", "that")
14861 rm -f conftest.$ac_objext conftest$ac_exeext
14862 if { (ac_try="$ac_link"
14863 case "(($ac_try" in
14864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14865 *) ac_try_echo
=$ac_try;;
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868 (eval "$ac_link") 2>conftest.er1
14870 grep -v '^ *+' conftest.er1
>conftest.err
14872 cat conftest.err
>&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } && {
14875 test -z "$ac_c_werror_flag" ||
14876 test ! -s conftest.err
14877 } && test -s conftest
$ac_exeext &&
14878 $as_test_x conftest
$ac_exeext; then
14879 { echo "$as_me:$LINENO: result: yes" >&5
14880 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14881 #define HAVE_RENAME 1
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.
$ac_ext >&5
14888 { echo "$as_me:$LINENO: result: no" >&5
14889 echo "${ECHO_T}no" >&6; }
14892 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14893 conftest
$ac_exeext conftest.
$ac_ext
14895 { echo "$as_me:$LINENO: checking for sysctl" >&5
14896 echo $ECHO_N "checking for sysctl... $ECHO_C" >&6; }
14897 cat >conftest.
$ac_ext <<_ACEOF
14900 cat confdefs.h
>>conftest.
$ac_ext
14901 cat >>conftest.
$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 #include <sys/types.h>
14904 #include <sys/sysctl.h>
14912 mib[1] = HW_USERMEM;
14914 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14920 rm -f conftest.
$ac_objext
14921 if { (ac_try
="$ac_compile"
14922 case "(($ac_try" in
14923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_compile") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest.$ac_objext; then
14937 { echo "$as_me:$LINENO: result: yes" >&5
14938 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_SYSCTL 1
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14946 { echo "$as_me:$LINENO: result: not usable" >&5
14947 echo "${ECHO_T}not usable" >&6; }
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 { echo "$as_me:$LINENO: checking for sysinfo" >&5
14953 echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6; }
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <sys/types.h>
14961 #include <sys/sysinfo.h>
14965 struct sysinfo sinfo;
14968 (void)sysinfo(&sinfo);
14969 t = sinfo.totalram;
14975 rm -f conftest.$ac_objext
14976 if { (ac_try="$ac_compile"
14977 case "(($ac_try" in
14978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14979 *) ac_try_echo
=$ac_try;;
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_compile") 2>conftest.er1
14984 grep -v '^ *+' conftest.er1
>conftest.err
14986 cat conftest.err
>&5
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); } && {
14989 test -z "$ac_c_werror_flag" ||
14990 test ! -s conftest.err
14991 } && test -s conftest.
$ac_objext; then
14992 { echo "$as_me:$LINENO: result: yes" >&5
14993 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14994 #define HAVE_SYSINFO 1
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.
$ac_ext >&5
15001 { echo "$as_me:$LINENO: result: not usable" >&5
15002 echo "${ECHO_T}not usable" >&6; }
15005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15007 { echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15008 echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6; }
15009 cat >conftest.
$ac_ext <<_ACEOF
15012 cat confdefs.h
>>conftest.
$ac_ext
15013 cat >>conftest.
$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <sys/types.h>
15016 #include <sys/sysinfo.h>
15020 struct sysinfo sinfo;
15021 sinfo.mem_unit = 1;
15027 rm -f conftest.
$ac_objext
15028 if { (ac_try
="$ac_compile"
15029 case "(($ac_try" in
15030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_compile") 2>conftest.er1
15036 grep -v '^ *+' conftest.er1 >conftest.err
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest.$ac_objext; then
15044 { echo "$as_me:$LINENO: result: yes" >&5
15045 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_SYSINFO_MEM_UNIT 1
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 { echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6; }
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 { echo "$as_me:$LINENO: checking for sysconf" >&5
15060 echo $ECHO_N "checking for sysconf... $ECHO_C" >&6; }
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <unistd.h>
15071 (void)sysconf(_SC_PAGESIZE);
15072 (void)sysconf(_SC_PHYS_PAGES);
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15082 *) ac_try_echo
=$ac_try;;
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_compile") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1
>conftest.err
15089 cat conftest.err
>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest.
$ac_objext; then
15095 { echo "$as_me:$LINENO: result: yes" >&5
15096 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15097 #define HAVE_SYSCONF 1
15101 echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.
$ac_ext >&5
15104 { echo "$as_me:$LINENO: result: not usable" >&5
15105 echo "${ECHO_T}not usable" >&6; }
15108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15111 { echo "$as_me:$LINENO: checking size of int" >&5
15112 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
15113 if test "${ac_cv_sizeof_int+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 if test "$cross_compiling" = yes; then
15117 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
15118 echo "$as_me: error: failed to compile test program" >&2;}
15119 { (exit 1); exit 1; }; }
15121 cat >conftest.
$ac_ext <<_ACEOF
15124 cat confdefs.h
>>conftest.
$ac_ext
15125 cat >>conftest.
$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15130 # include <stdlib.h>
15131 # include <stddef.h>
15135 FILE *f=fopen("conftestval", "w");
15137 fprintf(f, "%d\n", (int)sizeof(int));
15141 rm -f conftest
$ac_exeext
15142 if { (ac_try
="$ac_link"
15143 case "(($ac_try" in
15144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15152 { (case "(($ac_try" in
15153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15154 *) ac_try_echo
=$ac_try;;
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_try") 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 ac_cv_sizeof_int
=`cat conftestval`
15163 echo "$as_me: program exited with status $ac_status" >&5
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.
$ac_ext >&5
15167 ( exit $ac_status )
15170 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15176 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15177 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
15178 cat >>confdefs.h
<<_ACEOF
15179 #define SIZEOF_INT $ac_cv_sizeof_int
15185 #include "confdefs.h"
15186 #ifdef HAVE_STRING_H
15187 # include <string.h>
15190 # include <stdlib.h>
15191 # include <stddef.h>
15195 strcpy(buf, "abcdefghi");
15196 mch_memmove(buf, buf + 2, 3);
15197 if (strncmp(buf, "ababcf", 6))
15199 strcpy(buf, "abcdefghi");
15200 mch_memmove(buf + 2, buf, 3);
15201 if (strncmp(buf, "cdedef", 6))
15203 exit(0); /* libc version works properly. */
15206 { echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15207 echo $ECHO_N "checking whether memmove handles overlaps... $ECHO_C" >&6; }
15208 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 if test "$cross_compiling" = yes; then
15214 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15215 echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15216 { (exit 1); exit 1; }; }
15219 cat >conftest.
$ac_ext <<_ACEOF
15220 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15222 rm -f conftest
$ac_exeext
15223 if { (ac_try
="$ac_link"
15224 case "(($ac_try" in
15225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_link") 2>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15235 *) ac_try_echo
=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15243 vim_cv_memmove_handles_overlap
=yes
15246 echo "$as_me: program exited with status $ac_status" >&5
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.
$ac_ext >&5
15250 ( exit $ac_status )
15252 vim_cv_memmove_handles_overlap
=no
15255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15261 { echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15262 echo "${ECHO_T}$vim_cv_memmove_handles_overlap" >&6; }
15264 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15265 cat >>confdefs.h
<<\_ACEOF
15266 #define USEMEMMOVE 1
15270 { echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15271 echo $ECHO_N "checking whether bcopy handles overlaps... $ECHO_C" >&6; }
15272 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 if test "$cross_compiling" = yes; then
15278 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15279 echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15280 { (exit 1); exit 1; }; }
15283 cat >conftest.
$ac_ext <<_ACEOF
15284 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15286 rm -f conftest
$ac_exeext
15287 if { (ac_try
="$ac_link"
15288 case "(($ac_try" in
15289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_link") 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15297 { (case "(($ac_try" in
15298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15299 *) ac_try_echo
=$ac_try;;
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_try") 2>&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15307 vim_cv_bcopy_handles_overlap
=yes
15310 echo "$as_me: program exited with status $ac_status" >&5
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.
$ac_ext >&5
15314 ( exit $ac_status )
15316 vim_cv_bcopy_handles_overlap
=no
15319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15325 { echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15326 echo "${ECHO_T}$vim_cv_bcopy_handles_overlap" >&6; }
15328 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15329 cat >>confdefs.h
<<\_ACEOF
15334 { echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15335 echo $ECHO_N "checking whether memcpy handles overlaps... $ECHO_C" >&6; }
15336 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 if test "$cross_compiling" = yes; then
15342 { { echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15343 echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15344 { (exit 1); exit 1; }; }
15347 cat >conftest.
$ac_ext <<_ACEOF
15348 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15350 rm -f conftest
$ac_exeext
15351 if { (ac_try
="$ac_link"
15352 case "(($ac_try" in
15353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15363 *) ac_try_echo
=$ac_try;;
15365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15371 vim_cv_memcpy_handles_overlap
=yes
15374 echo "$as_me: program exited with status $ac_status" >&5
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.
$ac_ext >&5
15378 ( exit $ac_status )
15380 vim_cv_memcpy_handles_overlap
=no
15383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15389 { echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15390 echo "${ECHO_T}$vim_cv_memcpy_handles_overlap" >&6; }
15392 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15393 cat >>confdefs.h
<<\_ACEOF
15394 #define USEMEMCPY 1
15403 if test "$enable_multibyte" = "yes"; then
15404 cflags_save
=$CFLAGS
15405 ldflags_save
=$LDFLAGS
15406 if test "x$x_includes" != "xNONE" ; then
15407 CFLAGS
="$CFLAGS -I$x_includes"
15408 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
15409 { echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15410 echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6; }
15411 cat >conftest.
$ac_ext <<_ACEOF
15414 cat confdefs.h
>>conftest.
$ac_ext
15415 cat >>conftest.
$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <X11/Xlocale.h>
15426 rm -f conftest.
$ac_objext
15427 if { (ac_try
="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_compile") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest.$ac_objext; then
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15456 char _Xsetlocale ();
15460 return _Xsetlocale ();
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15469 *) ac_try_echo
=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1
>conftest.err
15476 cat conftest.err
>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest
$ac_exeext &&
15482 $as_test_x conftest
$ac_exeext; then
15483 { echo "$as_me:$LINENO: result: yes" >&5
15484 echo "${ECHO_T}yes" >&6; }
15485 cat >>confdefs.h
<<\_ACEOF
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.
$ac_ext >&5
15493 { echo "$as_me:$LINENO: result: no" >&5
15494 echo "${ECHO_T}no" >&6; }
15497 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15498 conftest
$ac_exeext conftest.
$ac_ext
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.
$ac_ext >&5
15503 { echo "$as_me:$LINENO: result: no" >&5
15504 echo "${ECHO_T}no" >&6; }
15507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15509 CFLAGS
=$cflags_save
15510 LDFLAGS
=$ldflags_save
15513 { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15514 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
15515 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 ac_check_lib_save_LIBS
=$LIBS
15519 LIBS
="-lxpg4 $LIBS"
15520 cat >conftest.
$ac_ext <<_ACEOF
15523 cat confdefs.h
>>conftest.
$ac_ext
15524 cat >>conftest.
$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15527 /* Override any GCC internal prototype to avoid an error.
15528 Use char because int might match the return type of a GCC
15529 builtin and then its argument prototype would still apply. */
15533 char _xpg4_setrunelocale ();
15537 return _xpg4_setrunelocale ();
15542 rm -f conftest.
$ac_objext conftest
$ac_exeext
15543 if { (ac_try
="$ac_link"
15544 case "(($ac_try" in
15545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest$ac_exeext &&
15559 $as_test_x conftest$ac_exeext; then
15560 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15569 conftest$ac_exeext conftest.$ac_ext
15570 LIBS=$ac_check_lib_save_LIBS
15572 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15573 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15574 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15575 LIBS="$LIBS -lxpg4"
15579 { echo "$as_me:$LINENO: checking how to create tags" >&5
15580 echo $ECHO_N "checking how to create tags... $ECHO_C" >&6; }
15581 test -f tags && mv tags tags.save
15582 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15583 TAGPRG="ctags -I INIT+ --fields=+S"
15586 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15587 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15588 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15589 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15590 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15591 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15592 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15594 test -f tags.save && mv tags.save tags
15595 { echo "$as_me:$LINENO: result: $TAGPRG" >&5
15596 echo "${ECHO_T}$TAGPRG" >&6; }
15598 { echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15599 echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6; }
15601 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15602 { echo "$as_me:$LINENO: result: $MANDEF" >&5
15603 echo "${ECHO_T}$MANDEF" >&6; }
15604 if test "$MANDEF" = "man -s"; then
15605 cat >>confdefs.h <<\_ACEOF
15611 { echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15612 echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6; }
15613 # Check whether --enable-nls was given.
15614 if test "${enable_nls+set}" = set; then
15615 enableval=$enable_nls;
15621 if test "$enable_nls" = "yes"; then
15622 { echo "$as_me:$LINENO: result: no" >&5
15623 echo "${ECHO_T}no" >&6; }
15625 INSTALL_LANGS=install-languages
15627 INSTALL_TOOL_LANGS=install-tool-languages
15630 # Extract the first word of "msgfmt", so it can be a program name with args.
15631 set dummy msgfmt; ac_word=$2
15632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15634 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 if test -n "$MSGFMT"; then
15638 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15641 for as_dir in $PATH
15644 test -z "$as_dir" && as_dir=.
15645 for ac_exec_ext in '' $ac_executable_extensions; do
15646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15647 ac_cv_prog_MSGFMT="msgfmt"
15648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 MSGFMT=$ac_cv_prog_MSGFMT
15658 if test -n "$MSGFMT"; then
15659 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15660 echo "${ECHO_T}$MSGFMT" >&6; }
15662 { echo "$as_me:$LINENO: result: no" >&5
15663 echo "${ECHO_T}no" >&6; }
15667 { echo "$as_me:$LINENO: checking for NLS" >&5
15668 echo $ECHO_N "checking for NLS... $ECHO_C" >&6; }
15669 if test -f po/Makefile; then
15671 if test -n "$MSGFMT"; then
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <libintl.h>
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15691 *) ac_try_echo
=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_link") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1
>conftest.err
15698 cat conftest.err
>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest
$ac_exeext &&
15704 $as_test_x conftest
$ac_exeext; then
15705 { echo "$as_me:$LINENO: result: gettext() works" >&5
15706 echo "${ECHO_T}gettext() works" >&6; }; have_gettext
="yes"
15708 echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.
$ac_ext >&5
15712 LIBS
="$LIBS -lintl"
15713 cat >conftest.
$ac_ext <<_ACEOF
15716 cat confdefs.h
>>conftest.
$ac_ext
15717 cat >>conftest.
$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 #include <libintl.h>
15728 rm -f conftest.
$ac_objext conftest
$ac_exeext
15729 if { (ac_try
="$ac_link"
15730 case "(($ac_try" in
15731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_link") 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && {
15742 test -z "$ac_c_werror_flag" ||
15743 test ! -s conftest.err
15744 } && test -s conftest$ac_exeext &&
15745 $as_test_x conftest$ac_exeext; then
15746 { echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15747 echo "${ECHO_T}gettext() works with -lintl" >&6; }; have_gettext="yes"
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 { echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15753 echo "${ECHO_T}gettext() doesn't work" >&6; };
15757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15758 conftest$ac_exeext conftest.$ac_ext
15761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762 conftest$ac_exeext conftest.$ac_ext
15764 { echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15765 echo "${ECHO_T}msgfmt not found - disabled" >&6; };
15767 if test $have_gettext = "yes"; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_GETTEXT 1
15775 for ac_func in bind_textdomain_codeset
15777 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15778 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15780 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15791 #define $ac_func innocuous_$ac_func
15793 /* System header to define __stub macros and hopefully few prototypes,
15794 which can conflict with char $ac_func (); below.
15795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15796 <limits.h> exists even on freestanding compilers. */
15799 # include <limits.h>
15801 # include <assert.h>
15806 /* Override any GCC internal prototype to avoid an error.
15807 Use char because int might match the return type of a GCC
15808 builtin and then its argument prototype would still apply. */
15813 /* The GNU C library defines this for functions which it implements
15814 to always fail with ENOSYS. Some functions are actually named
15815 something starting with __ and the normal name is an alias. */
15816 #if defined __stub_$ac_func || defined __stub___$ac_func
15823 return $ac_func ();
15828 rm -f conftest.$ac_objext conftest$ac_exeext
15829 if { (ac_try="$ac_link"
15830 case "(($ac_try" in
15831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15832 *) ac_try_echo
=$ac_try;;
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835 (eval "$ac_link") 2>conftest.er1
15837 grep -v '^ *+' conftest.er1
>conftest.err
15839 cat conftest.err
>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } && {
15842 test -z "$ac_c_werror_flag" ||
15843 test ! -s conftest.err
15844 } && test -s conftest
$ac_exeext &&
15845 $as_test_x conftest
$ac_exeext; then
15846 eval "$as_ac_var=yes"
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.
$ac_ext >&5
15851 eval "$as_ac_var=no"
15854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15855 conftest
$ac_exeext conftest.
$ac_ext
15857 ac_res
=`eval echo '${'$as_ac_var'}'`
15858 { echo "$as_me:$LINENO: result: $ac_res" >&5
15859 echo "${ECHO_T}$ac_res" >&6; }
15860 if test `eval echo '${'$as_ac_var'}'` = yes; then
15861 cat >>confdefs.h
<<_ACEOF
15862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15868 { echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15869 echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6; }
15870 cat >conftest.
$ac_ext <<_ACEOF
15873 cat confdefs.h
>>conftest.
$ac_ext
15874 cat >>conftest.
$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 #include <libintl.h>
15877 extern int _nl_msg_cat_cntr;
15881 ++_nl_msg_cat_cntr;
15886 rm -f conftest.
$ac_objext conftest
$ac_exeext
15887 if { (ac_try
="$ac_link"
15888 case "(($ac_try" in
15889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_link") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1 >conftest.err
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } && {
15900 test -z "$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 } && test -s conftest$ac_exeext &&
15903 $as_test_x conftest$ac_exeext; then
15904 { echo "$as_me:$LINENO: result: yes" >&5
15905 echo "${ECHO_T}yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_NL_MSG_CAT_CNTR 1
15910 echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 { echo "$as_me:$LINENO: result: no" >&5
15914 echo "${ECHO_T}no" >&6; }
15917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15918 conftest$ac_exeext conftest.$ac_ext
15921 { echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15922 echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; };
15925 { echo "$as_me:$LINENO: result: yes" >&5
15926 echo "${ECHO_T}yes" >&6; }
15929 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15930 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15931 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
15932 if test "${ac_cv_header_dlfcn_h+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15936 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
15938 # Is the header compilable?
15939 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15940 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 $ac_includes_default
15950 rm -f conftest.$ac_objext
15951 if { (ac_try="$ac_compile"
15952 case "(($ac_try" in
15953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15954 *) ac_try_echo
=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1
>conftest.err
15961 cat conftest.err
>&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest.
$ac_objext; then
15967 ac_header_compiler
=yes
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.
$ac_ext >&5
15972 ac_header_compiler
=no
15975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15977 echo "${ECHO_T}$ac_header_compiler" >&6; }
15979 # Is the header present?
15980 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15981 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
15982 cat >conftest.
$ac_ext <<_ACEOF
15985 cat confdefs.h
>>conftest.
$ac_ext
15986 cat >>conftest.
$ac_ext <<_ACEOF
15987 /* end confdefs.h. */
15990 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15991 case "(($ac_try" in
15992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } >/dev/null && {
16003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16006 ac_header_preproc=yes
16008 echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16011 ac_header_preproc=no
16014 rm -f conftest.err conftest.$ac_ext
16015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16016 echo "${ECHO_T}$ac_header_preproc" >&6; }
16018 # So? What about this header?
16019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16021 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16022 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16024 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16025 ac_header_preproc=yes
16028 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16029 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16030 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16031 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16033 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16034 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16035 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16036 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16037 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16038 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16039 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16043 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16044 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
16045 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_cv_header_dlfcn_h=$ac_header_preproc
16050 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16051 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
16054 if test $ac_cv_header_dlfcn_h = yes; then
16057 if test "${ac_cv_header_dl_h+set}" = set; then
16058 { echo "$as_me:$LINENO: checking for dl.h" >&5
16059 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16060 if test "${ac_cv_header_dl_h+set}" = set; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16063 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16064 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16066 # Is the header compilable?
16067 { echo "$as_me:$LINENO: checking dl.h usability" >&5
16068 echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6; }
16069 cat >conftest.$ac_ext <<_ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 $ac_includes_default
16078 rm -f conftest.$ac_objext
16079 if { (ac_try="$ac_compile"
16080 case "(($ac_try" in
16081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16082 *) ac_try_echo
=$ac_try;;
16084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16085 (eval "$ac_compile") 2>conftest.er1
16087 grep -v '^ *+' conftest.er1
>conftest.err
16089 cat conftest.err
>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); } && {
16092 test -z "$ac_c_werror_flag" ||
16093 test ! -s conftest.err
16094 } && test -s conftest.
$ac_objext; then
16095 ac_header_compiler
=yes
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.
$ac_ext >&5
16100 ac_header_compiler
=no
16103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16105 echo "${ECHO_T}$ac_header_compiler" >&6; }
16107 # Is the header present?
16108 { echo "$as_me:$LINENO: checking dl.h presence" >&5
16109 echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6; }
16110 cat >conftest.
$ac_ext <<_ACEOF
16113 cat confdefs.h
>>conftest.
$ac_ext
16114 cat >>conftest.
$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16118 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16119 case "(($ac_try" in
16120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16126 grep -v '^ *+' conftest.er1 >conftest.err
16128 cat conftest.err >&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); } >/dev/null && {
16131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16132 test ! -s conftest.err
16134 ac_header_preproc=yes
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16139 ac_header_preproc=no
16142 rm -f conftest.err conftest.$ac_ext
16143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16144 echo "${ECHO_T}$ac_header_preproc" >&6; }
16146 # So? What about this header?
16147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16149 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16150 echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16151 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16152 echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16153 ac_header_preproc=yes
16156 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16157 echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16159 echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16161 echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16163 echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16165 echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16167 echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16171 { echo "$as_me:$LINENO: checking for dl.h" >&5
16172 echo $ECHO_N "checking for dl.h... $ECHO_C" >&6; }
16173 if test "${ac_cv_header_dl_h+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 ac_cv_header_dl_h=$ac_header_preproc
16178 { echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16179 echo "${ECHO_T}$ac_cv_header_dl_h" >&6; }
16182 if test $ac_cv_header_dl_h = yes; then
16190 if test x${DLL} = xdlfcn.h; then
16192 cat >>confdefs.h <<\_ACEOF
16193 #define HAVE_DLFCN_H 1
16196 { echo "$as_me:$LINENO: checking for dlopen()" >&5
16197 echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6; }
16198 cat >conftest.$ac_ext <<_ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h. */
16209 extern void* dlopen();
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16220 *) ac_try_echo
=$ac_try;;
16222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_link") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1
>conftest.err
16227 cat conftest.err
>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest
$ac_exeext &&
16233 $as_test_x conftest
$ac_exeext; then
16234 { echo "$as_me:$LINENO: result: yes" >&5
16235 echo "${ECHO_T}yes" >&6; };
16237 cat >>confdefs.h
<<\_ACEOF
16238 #define HAVE_DLOPEN 1
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.
$ac_ext >&5
16245 { echo "$as_me:$LINENO: result: no" >&5
16246 echo "${ECHO_T}no" >&6; };
16247 { echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16248 echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6; }
16251 cat >conftest.
$ac_ext <<_ACEOF
16254 cat confdefs.h
>>conftest.
$ac_ext
16255 cat >>conftest.
$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16262 extern void* dlopen();
16269 rm -f conftest.
$ac_objext conftest
$ac_exeext
16270 if { (ac_try
="$ac_link"
16271 case "(($ac_try" in
16272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16278 grep -v '^ *+' conftest.er1 >conftest.err
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext &&
16286 $as_test_x conftest$ac_exeext; then
16287 { echo "$as_me:$LINENO: result: yes" >&5
16288 echo "${ECHO_T}yes" >&6; };
16290 cat >>confdefs.h <<\_ACEOF
16291 #define HAVE_DLOPEN 1
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 { echo "$as_me:$LINENO: result: no" >&5
16299 echo "${ECHO_T}no" >&6; };
16303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16304 conftest$ac_exeext conftest.$ac_ext
16307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16308 conftest$ac_exeext conftest.$ac_ext
16309 { echo "$as_me:$LINENO: checking for dlsym()" >&5
16310 echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6; }
16311 cat >conftest.$ac_ext <<_ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16322 extern void* dlsym();
16329 rm -f conftest.$ac_objext conftest$ac_exeext
16330 if { (ac_try="$ac_link"
16331 case "(($ac_try" in
16332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16333 *) ac_try_echo
=$ac_try;;
16335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_link") 2>conftest.er1
16338 grep -v '^ *+' conftest.er1
>conftest.err
16340 cat conftest.err
>&5
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); } && {
16343 test -z "$ac_c_werror_flag" ||
16344 test ! -s conftest.err
16345 } && test -s conftest
$ac_exeext &&
16346 $as_test_x conftest
$ac_exeext; then
16347 { echo "$as_me:$LINENO: result: yes" >&5
16348 echo "${ECHO_T}yes" >&6; };
16350 cat >>confdefs.h
<<\_ACEOF
16351 #define HAVE_DLSYM 1
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.
$ac_ext >&5
16358 { echo "$as_me:$LINENO: result: no" >&5
16359 echo "${ECHO_T}no" >&6; };
16360 { echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16361 echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6; }
16364 cat >conftest.
$ac_ext <<_ACEOF
16367 cat confdefs.h
>>conftest.
$ac_ext
16368 cat >>conftest.
$ac_ext <<_ACEOF
16369 /* end confdefs.h. */
16375 extern void* dlsym();
16382 rm -f conftest.
$ac_objext conftest
$ac_exeext
16383 if { (ac_try
="$ac_link"
16384 case "(($ac_try" in
16385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_link") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest$ac_exeext &&
16399 $as_test_x conftest$ac_exeext; then
16400 { echo "$as_me:$LINENO: result: yes" >&5
16401 echo "${ECHO_T}yes" >&6; };
16403 cat >>confdefs.h <<\_ACEOF
16404 #define HAVE_DLSYM 1
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 { echo "$as_me:$LINENO: result: no" >&5
16412 echo "${ECHO_T}no" >&6; };
16416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16417 conftest$ac_exeext conftest.$ac_ext
16420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16421 conftest$ac_exeext conftest.$ac_ext
16422 elif test x${DLL} = xdl.h; then
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_DL_H 1
16428 { echo "$as_me:$LINENO: checking for shl_load()" >&5
16429 echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6; }
16430 cat >conftest.$ac_ext <<_ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h. */
16441 extern void* shl_load();
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (ac_try="$ac_link"
16450 case "(($ac_try" in
16451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16452 *) ac_try_echo
=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_link") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1
>conftest.err
16459 cat conftest.err
>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest
$ac_exeext &&
16465 $as_test_x conftest
$ac_exeext; then
16466 { echo "$as_me:$LINENO: result: yes" >&5
16467 echo "${ECHO_T}yes" >&6; };
16469 cat >>confdefs.h
<<\_ACEOF
16470 #define HAVE_SHL_LOAD 1
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.
$ac_ext >&5
16477 { echo "$as_me:$LINENO: result: no" >&5
16478 echo "${ECHO_T}no" >&6; };
16479 { echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16480 echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6; }
16483 cat >conftest.
$ac_ext <<_ACEOF
16486 cat confdefs.h
>>conftest.
$ac_ext
16487 cat >>conftest.
$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16494 extern void* shl_load();
16501 rm -f conftest.
$ac_objext conftest
$ac_exeext
16502 if { (ac_try
="$ac_link"
16503 case "(($ac_try" in
16504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_link") 2>conftest.er1
16510 grep -v '^ *+' conftest.er1 >conftest.err
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } && {
16515 test -z "$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16517 } && test -s conftest$ac_exeext &&
16518 $as_test_x conftest$ac_exeext; then
16519 { echo "$as_me:$LINENO: result: yes" >&5
16520 echo "${ECHO_T}yes" >&6; };
16522 cat >>confdefs.h <<\_ACEOF
16523 #define HAVE_SHL_LOAD 1
16527 echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16530 { echo "$as_me:$LINENO: result: no" >&5
16531 echo "${ECHO_T}no" >&6; };
16535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16536 conftest$ac_exeext conftest.$ac_ext
16539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16540 conftest$ac_exeext conftest.$ac_ext
16543 for ac_header in setjmp.h
16545 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 ac_res=`eval echo '${'$as_ac_Header'}'`
16553 { echo "$as_me:$LINENO: result: $ac_res" >&5
16554 echo "${ECHO_T}$ac_res" >&6; }
16556 # Is the header compilable?
16557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 $ac_includes_default
16566 #include <$ac_header>
16568 rm -f conftest.$ac_objext
16569 if { (ac_try="$ac_compile"
16570 case "(($ac_try" in
16571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16572 *) ac_try_echo
=$ac_try;;
16574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_compile") 2>conftest.er1
16577 grep -v '^ *+' conftest.er1
>conftest.err
16579 cat conftest.err
>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } && {
16582 test -z "$ac_c_werror_flag" ||
16583 test ! -s conftest.err
16584 } && test -s conftest.
$ac_objext; then
16585 ac_header_compiler
=yes
16587 echo "$as_me: failed program was:" >&5
16588 sed 's/^/| /' conftest.
$ac_ext >&5
16590 ac_header_compiler
=no
16593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16595 echo "${ECHO_T}$ac_header_compiler" >&6; }
16597 # Is the header present?
16598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16600 cat >conftest.
$ac_ext <<_ACEOF
16603 cat confdefs.h
>>conftest.
$ac_ext
16604 cat >>conftest.
$ac_ext <<_ACEOF
16605 /* end confdefs.h. */
16606 #include <$ac_header>
16608 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16609 case "(($ac_try" in
16610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16611 *) ac_try_echo=$ac_try;;
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16616 grep -v '^ *+' conftest.er1 >conftest.err
16618 cat conftest.err >&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } >/dev/null && {
16621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16622 test ! -s conftest.err
16624 ac_header_preproc=yes
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_header_preproc=no
16632 rm -f conftest.err conftest.$ac_ext
16633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16634 echo "${ECHO_T}$ac_header_preproc" >&6; }
16636 # So? What about this header?
16637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16643 ac_header_preproc=yes
16646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 eval "$as_ac_Header=\$ac_header_preproc"
16668 ac_res=`eval echo '${'$as_ac_Header'}'`
16669 { echo "$as_me:$LINENO: result: $ac_res" >&5
16670 echo "${ECHO_T}$ac_res" >&6; }
16673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16674 cat >>confdefs.h <<_ACEOF
16675 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16683 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16684 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16685 LIBS=`echo $LIBS |
sed s
/-ldl//`
16686 PERL_LIBS="$PERL_LIBS -ldl"
16690 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16691 && test "x$GUITYPE" != "xCARBONGUI" && test "x$GUITYPE" != "xMACVIMGUI"; then
16692 { echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16693 echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6; }
16694 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16695 || test "x$features" = "xhuge"; then
16696 LIBS="$LIBS -framework Carbon"
16697 { echo "$as_me:$LINENO: result: yes" >&5
16698 echo "${ECHO_T}yes" >&6; }
16700 { echo "$as_me:$LINENO: result: no" >&5
16701 echo "${ECHO_T}no" >&6; }
16705 if test "x$MACOSX" = "xyes"; then
16706 { echo "$as_me:$LINENO: checking --with-xcodecfg argument" >&5
16707 echo $ECHO_N "checking --with-xcodecfg argument... $ECHO_C" >&6; }
16709 # Check whether --with-xcodecfg was given.
16710 if test "${with_xcodecfg+set}" = set; then
16711 withval=$with_xcodecfg; XCODEFLAGS="$XCODEFLAGS -configuration $withval"
16712 { echo "$as_me:$LINENO: result: $withval" >&5
16713 echo "${ECHO_T}$withval" >&6; }
16715 { echo "$as_me:$LINENO: result: using default" >&5
16716 echo "${ECHO_T}using default" >&6; }
16724 DEPEND_CFLAGS_FILTER=
16725 if test "$GCC" = yes; then
16726 { echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16727 echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6; }
16728 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
16729 if test "$gccmajor" -gt "2"; then
16730 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16731 { echo "$as_me:$LINENO: result: yes" >&5
16732 echo "${ECHO_T}yes" >&6; }
16734 { echo "$as_me:$LINENO: result: no" >&5
16735 echo "${ECHO_T}no" >&6; }
16737 { echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
16738 echo $ECHO_N "checking whether we need -D_FORTIFY_SOURCE=1... $ECHO_C" >&6; }
16739 if test "$gccmajor" -gt "3"; then
16740 CFLAGS=`echo "$CFLAGS" |
sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
16741 { echo "$as_me:$LINENO: result: yes" >&5
16742 echo "${ECHO_T}yes" >&6; }
16744 { echo "$as_me:$LINENO: result: no" >&5
16745 echo "${ECHO_T}no" >&6; }
16750 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16752 cat >confcache <<\_ACEOF
16753 # This file is a shell script that caches the results of configure
16754 # tests run on this system so they can be shared between configure
16755 # scripts and configure runs, see configure's option --config-cache.
16756 # It is not useful on other systems. If it contains results you don't
16757 # want to keep, you may remove or edit it.
16759 # config.status only pays attention to the cache file if you give it
16760 # the --recheck option to rerun configure.
16762 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
16763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16764 # following values.
16768 # The following way of writing the cache mishandles newlines in values,
16769 # but we know of no workaround that is simple, portable, and efficient.
16770 # So, we kill variables containing newlines.
16771 # Ultrix sh set writes to stderr and can't be redirected directly,
16772 # and sets the high bit in the cache file unless we assign to the vars.
16774 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16775 eval ac_val
=\$
$ac_var
16779 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16780 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16783 _ | IFS | as_nl
) ;; #(
16784 *) $as_unset $ac_var ;;
16790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16791 *${as_nl}ac_space
=\
*)
16792 # `set' does not quote correctly, so add quotes (double-quote
16793 # substitution turns \\\\ into \\, and sed turns \\ into \).
16796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16799 # `set' quotes correctly as required by POSIX, so do not add quotes.
16800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16813 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16814 if test -w "$cache_file"; then
16815 test "x$cache_file" != "x/dev/null" &&
16816 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16817 echo "$as_me: updating cache $cache_file" >&6;}
16818 cat confcache
>$cache_file
16820 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16821 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16826 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16827 # Let make expand exec_prefix.
16828 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16830 DEFS
=-DHAVE_CONFIG_H
16834 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16835 # 1. Remove the extension, and $U if already installed.
16836 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16837 ac_i
=`echo "$ac_i" | sed "$ac_script"`
16838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16839 # will be set to the directory where LIBOBJS objects are built.
16840 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16841 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16843 LIBOBJS
=$ac_libobjs
16845 LTLIBOBJS
=$ac_ltlibobjs
16849 : ${CONFIG_STATUS=./config.status}
16850 ac_clean_files_save
=$ac_clean_files
16851 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16852 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16853 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16854 cat >$CONFIG_STATUS <<_ACEOF
16856 # Generated by $as_me.
16857 # Run this file to recreate the current configuration.
16858 # Compiler output produced by configure, useful for debugging
16859 # configure, is in config.log if it exists.
16862 ac_cs_recheck=false
16864 SHELL=\${CONFIG_SHELL-$SHELL}
16867 cat >>$CONFIG_STATUS <<\_ACEOF
16868 ## --------------------- ##
16869 ## M4sh Initialization. ##
16870 ## --------------------- ##
16872 # Be more Bourne compatible
16873 DUALCASE
=1; export DUALCASE
# for MKS sh
16874 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16877 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16878 # is contrary to our usage. Disable this feature.
16879 alias -g '${1+"$@"}'='"$@"'
16880 setopt NO_GLOB_SUBST
16882 case `(set -o) 2>/dev/null` in
16883 *posix
*) set -o posix
;;
16892 # Avoid depending upon Character Ranges.
16893 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16894 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16895 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16896 as_cr_digits
='0123456789'
16897 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16899 # The user is always right.
16900 if test "${PATH_SEPARATOR+set}" != set; then
16901 echo "#! /bin/sh" >conf$$.sh
16902 echo "exit 0" >>conf$$.sh
16904 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16912 # Support unset when possible.
16913 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16921 # We need space, tab and new line, in precisely that order. Quoting is
16922 # there to prevent editors from complaining about space-tab.
16923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16924 # splitting by setting IFS to empty value.)
16929 # Find who we are. Look in the path if we contain no directory separator.
16931 *[\\/]* ) as_myself
=$0 ;;
16932 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16933 for as_dir
in $PATH
16936 test -z "$as_dir" && as_dir
=.
16937 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16943 # We did not find ourselves, most probably we were run as `sh COMMAND'
16944 # in which case we are not to be found in the path.
16945 if test "x$as_myself" = x
; then
16948 if test ! -f "$as_myself"; then
16949 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16950 { (exit 1); exit 1; }
16953 # Work around bugs in pre-3.0 UWIN ksh.
16954 for as_var
in ENV MAIL MAILPATH
16955 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
16963 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16964 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16965 LC_TELEPHONE LC_TIME
16967 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16968 eval $as_var=C
; export $as_var
16970 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
16974 # Required to use basename.
16975 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16976 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16982 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16983 as_basename
=basename
16989 # Name of the executable.
16990 as_me
=`$as_basename -- "$0" ||
16991 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16992 X"$0" : 'X\(//\)$' \| \
16993 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16995 sed '/^.*\/\([^/][^/]*\)\/*$/{
17014 as_lineno_1
=$LINENO
17015 as_lineno_2
=$LINENO
17016 test "x$as_lineno_1" != "x$as_lineno_2" &&
17017 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17019 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17020 # uniformly replaced by the line number. The first 'sed' inserts a
17021 # line-number line after each line using $LINENO; the second 'sed'
17022 # does the real work. The second script uses 'N' to pair each
17023 # line-number line with the line containing $LINENO, and appends
17024 # trailing '-' during substitution so that $LINENO is not a special
17025 # case at line end.
17026 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17027 # scripts with optimization help from Paolo Bonzini. Blame Lee
17028 # E. McMahon (1931-1989) for sed's syntax. :-)
17040 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17043 ' >$as_me.lineno
&&
17044 chmod +x
"$as_me.lineno" ||
17045 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17046 { (exit 1); exit 1; }; }
17048 # Don't try to exec as it changes $[0], causing all sort of problems
17049 # (the dirname of $[0] is not the place where we might find the
17050 # original and so on. Autoconf is especially sensitive to this).
17051 .
"./$as_me.lineno"
17052 # Exit status is that of the last command.
17057 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17063 ECHO_C
= ECHO_N
= ECHO_T
=
17064 case `echo -n x` in
17066 case `echo 'x\c'` in
17067 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17074 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17075 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17081 rm -f conf$$ conf$$.exe conf$$.
file
17082 if test -d conf$$.dir
; then
17083 rm -f conf$$.dir
/conf$$.
file
17089 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17091 # ... but there are two gotchas:
17092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17094 # In both cases, we have to default to `cp -p'.
17095 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17097 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17102 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17103 rmdir conf$$.dir
2>/dev
/null
17105 if mkdir
-p .
2>/dev
/null
; then
17108 test -d .
/-p && rmdir .
/-p
17112 if test -x / >/dev
/null
2>&1; then
17113 as_test_x
='test -x'
17115 if ls -dL / >/dev
/null
2>&1; then
17122 if test -d "$1"; then
17128 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17129 ???[sx]*):;;*)false;;esac;fi
17133 as_executable_p
=$as_test_x
17135 # Sed expression to map a string onto a valid CPP name.
17136 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17138 # Sed expression to map a string onto a valid variable name.
17139 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17144 # Save the log message, to keep $[0] and so on meaningful, and to
17145 # report actual input values of CONFIG_FILES etc. instead of their
17146 # values after options handling.
17148 This file was extended by $as_me, which was
17149 generated by GNU Autoconf 2.61. Invocation command line was
17151 CONFIG_FILES = $CONFIG_FILES
17152 CONFIG_HEADERS = $CONFIG_HEADERS
17153 CONFIG_LINKS = $CONFIG_LINKS
17154 CONFIG_COMMANDS = $CONFIG_COMMANDS
17157 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17162 cat >>$CONFIG_STATUS <<_ACEOF
17163 # Files that config.status was made for.
17164 config_files="$ac_config_files"
17165 config_headers="$ac_config_headers"
17169 cat >>$CONFIG_STATUS <<\_ACEOF
17171 \`$as_me' instantiates files from templates according to the
17172 current configuration.
17174 Usage: $0 [OPTIONS] [FILE]...
17176 -h, --help print this help, then exit
17177 -V, --version print version number and configuration settings, then exit
17178 -q, --quiet do not print progress messages
17179 -d, --debug don't remove temporary files
17180 --recheck update $as_me by reconfiguring in the same conditions
17181 --file=FILE[:TEMPLATE]
17182 instantiate the configuration file FILE
17183 --header=FILE[:TEMPLATE]
17184 instantiate the configuration header FILE
17186 Configuration files:
17189 Configuration headers:
17192 Report bugs to <bug-autoconf@gnu.org>."
17195 cat >>$CONFIG_STATUS <<_ACEOF
17198 configured by $0, generated by GNU Autoconf 2.61,
17199 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17201 Copyright (C) 2006 Free Software Foundation, Inc.
17202 This config.status script is free software; the Free Software Foundation
17203 gives unlimited permission to copy, distribute and modify it."
17209 cat >>$CONFIG_STATUS <<\_ACEOF
17210 # If no file are specified by the user, then we need to provide default
17211 # value. By we need to know if files were specified by the user.
17217 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17218 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17229 # Handling of the options.
17230 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17232 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17233 echo "$ac_cs_version"; exit ;;
17234 --debug |
--debu |
--deb |
--de |
--d |
-d )
17236 --file |
--fil |
--fi |
--f )
17238 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17239 ac_need_defaults
=false
;;
17240 --header |
--heade |
--head |
--hea )
17242 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17243 ac_need_defaults
=false
;;
17245 # Conflict between --help and --header
17246 { echo "$as_me: error: ambiguous option: $1
17247 Try \`$0 --help' for more information." >&2
17248 { (exit 1); exit 1; }; };;
17249 --help |
--hel |
-h )
17250 echo "$ac_cs_usage"; exit ;;
17251 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17252 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17255 # This is an error.
17256 -*) { echo "$as_me: error: unrecognized option: $1
17257 Try \`$0 --help' for more information." >&2
17258 { (exit 1); exit 1; }; } ;;
17260 *) ac_config_targets
="$ac_config_targets $1"
17261 ac_need_defaults
=false
;;
17267 ac_configure_extra_args
=
17269 if $ac_cs_silent; then
17271 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17275 cat >>$CONFIG_STATUS <<_ACEOF
17276 if \$ac_cs_recheck; then
17277 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17278 CONFIG_SHELL=$SHELL
17279 export CONFIG_SHELL
17280 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17284 cat >>$CONFIG_STATUS <<\_ACEOF
17285 exec 5>>auto
/config.log
17288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17289 ## Running $as_me. ##
17295 cat >>$CONFIG_STATUS <<_ACEOF
17298 cat >>$CONFIG_STATUS <<\_ACEOF
17300 # Handling of arguments.
17301 for ac_config_target
in $ac_config_targets
17303 case $ac_config_target in
17304 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17305 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17307 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17308 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17309 { (exit 1); exit 1; }; };;
17314 # If the user did not use the arguments to specify the items to instantiate,
17315 # then the envvar interface is used. Set only those that are not.
17316 # We use the long form for the default assignment because of an extremely
17317 # bizarre bug on SunOS 4.1.3.
17318 if $ac_need_defaults; then
17319 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17320 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17323 # Have a temporary directory for convenience. Make it in the build tree
17324 # simply because there is no reason against having it here, and in addition,
17325 # creating and moving files from /tmp can sometimes cause problems.
17326 # Hook for its removal unless debugging.
17327 # Note that there is a small window in which the directory will not be cleaned:
17328 # after its creation but before its name has been assigned to `$tmp'.
17332 trap 'exit_status=$?
17333 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17335 trap '{ (exit 1); exit 1; }' 1 2 13 15
17337 # Create a (secure) tmp directory for tmp files.
17340 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17341 test -n "$tmp" && test -d "$tmp"
17344 tmp
=.
/conf$$
-$RANDOM
17345 (umask 077 && mkdir
"$tmp")
17348 echo "$me: cannot create a temporary directory in ." >&2
17349 { (exit 1); exit 1; }
17353 # Set up the sed scripts for CONFIG_FILES section.
17356 # No need to generate the scripts if there are no CONFIG_FILES.
17357 # This happens for instance when ./config.status config.h
17358 if test -n "$CONFIG_FILES"; then
17365 for ac_last_try
in false false false false false
:; do
17366 cat >conf$
$subs.
sed <<_ACEOF
17367 SHELL!$SHELL$ac_delim
17368 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17369 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17370 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17371 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17372 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17373 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17374 exec_prefix!$exec_prefix$ac_delim
17375 prefix!$prefix$ac_delim
17376 program_transform_name!$program_transform_name$ac_delim
17377 bindir!$bindir$ac_delim
17378 sbindir!$sbindir$ac_delim
17379 libexecdir!$libexecdir$ac_delim
17380 datarootdir!$datarootdir$ac_delim
17381 datadir!$datadir$ac_delim
17382 sysconfdir!$sysconfdir$ac_delim
17383 sharedstatedir!$sharedstatedir$ac_delim
17384 localstatedir!$localstatedir$ac_delim
17385 includedir!$includedir$ac_delim
17386 oldincludedir!$oldincludedir$ac_delim
17387 docdir!$docdir$ac_delim
17388 infodir!$infodir$ac_delim
17389 htmldir!$htmldir$ac_delim
17390 dvidir!$dvidir$ac_delim
17391 pdfdir!$pdfdir$ac_delim
17392 psdir!$psdir$ac_delim
17393 libdir!$libdir$ac_delim
17394 localedir!$localedir$ac_delim
17395 mandir!$mandir$ac_delim
17396 DEFS!$DEFS$ac_delim
17397 ECHO_C!$ECHO_C$ac_delim
17398 ECHO_N!$ECHO_N$ac_delim
17399 ECHO_T!$ECHO_T$ac_delim
17400 LIBS!$LIBS$ac_delim
17401 build_alias!$build_alias$ac_delim
17402 host_alias!$host_alias$ac_delim
17403 target_alias!$target_alias$ac_delim
17404 SET_MAKE!$SET_MAKE$ac_delim
17406 CFLAGS!$CFLAGS$ac_delim
17407 LDFLAGS!$LDFLAGS$ac_delim
17408 CPPFLAGS!$CPPFLAGS$ac_delim
17409 ac_ct_CC!$ac_ct_CC$ac_delim
17410 EXEEXT!$EXEEXT$ac_delim
17411 OBJEXT!$OBJEXT$ac_delim
17413 GREP!$GREP$ac_delim
17414 EGREP!$EGREP$ac_delim
17416 STRIP!$STRIP$ac_delim
17417 CPP_MM!$CPP_MM$ac_delim
17418 OS_EXTRA_SRC!$OS_EXTRA_SRC$ac_delim
17419 OS_EXTRA_OBJ!$OS_EXTRA_OBJ$ac_delim
17420 VIMNAME!$VIMNAME$ac_delim
17421 EXNAME!$EXNAME$ac_delim
17422 VIEWNAME!$VIEWNAME$ac_delim
17423 line_break!$line_break$ac_delim
17424 dovimdiff!$dovimdiff$ac_delim
17425 dogvimdiff!$dogvimdiff$ac_delim
17426 compiledby!$compiledby$ac_delim
17427 vi_cv_path_mzscheme!$vi_cv_path_mzscheme$ac_delim
17428 MZSCHEME_SRC!$MZSCHEME_SRC$ac_delim
17429 MZSCHEME_OBJ!$MZSCHEME_OBJ$ac_delim
17430 MZSCHEME_PRO!$MZSCHEME_PRO$ac_delim
17431 MZSCHEME_LIBS!$MZSCHEME_LIBS$ac_delim
17432 MZSCHEME_CFLAGS!$MZSCHEME_CFLAGS$ac_delim
17433 MZSCHEME_EXTRA!$MZSCHEME_EXTRA$ac_delim
17434 MZSCHEME_MZC!$MZSCHEME_MZC$ac_delim
17435 vi_cv_path_perl!$vi_cv_path_perl$ac_delim
17436 vi_cv_perllib!$vi_cv_perllib$ac_delim
17437 shrpenv!$shrpenv$ac_delim
17438 PERL_SRC!$PERL_SRC$ac_delim
17439 PERL_OBJ!$PERL_OBJ$ac_delim
17440 PERL_PRO!$PERL_PRO$ac_delim
17441 PERL_CFLAGS!$PERL_CFLAGS$ac_delim
17442 PERL_LIBS!$PERL_LIBS$ac_delim
17443 vi_cv_path_python!$vi_cv_path_python$ac_delim
17444 PYTHON_CONFDIR!$PYTHON_CONFDIR$ac_delim
17445 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
17446 PYTHON_GETPATH_CFLAGS!$PYTHON_GETPATH_CFLAGS$ac_delim
17447 PYTHON_CFLAGS!$PYTHON_CFLAGS$ac_delim
17448 PYTHON_SRC!$PYTHON_SRC$ac_delim
17449 PYTHON_OBJ!$PYTHON_OBJ$ac_delim
17450 vi_cv_path_tcl!$vi_cv_path_tcl$ac_delim
17451 TCL_SRC!$TCL_SRC$ac_delim
17452 TCL_OBJ!$TCL_OBJ$ac_delim
17453 TCL_PRO!$TCL_PRO$ac_delim
17454 TCL_CFLAGS!$TCL_CFLAGS$ac_delim
17455 TCL_LIBS!$TCL_LIBS$ac_delim
17456 vi_cv_path_ruby!$vi_cv_path_ruby$ac_delim
17457 RUBY_SRC!$RUBY_SRC$ac_delim
17458 RUBY_OBJ!$RUBY_OBJ$ac_delim
17459 RUBY_PRO!$RUBY_PRO$ac_delim
17460 RUBY_CFLAGS!$RUBY_CFLAGS$ac_delim
17461 RUBY_LIBS!$RUBY_LIBS$ac_delim
17462 WORKSHOP_SRC!$WORKSHOP_SRC$ac_delim
17463 WORKSHOP_OBJ!$WORKSHOP_OBJ$ac_delim
17466 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17468 elif $ac_last_try; then
17469 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17470 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17471 { (exit 1); exit 1; }; }
17473 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
17477 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17478 if test -n "$ac_eof"; then
17479 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
17480 ac_eof
=`expr $ac_eof + 1`
17483 cat >>$CONFIG_STATUS <<_ACEOF
17484 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17488 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17489 s/^/s,@/; s/!/@,|#_!!_#|/
17492 s/'"$ac_delim"'$/,g/; t
17494 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17495 ' >>$CONFIG_STATUS <conf$
$subs.
sed
17496 rm -f conf$
$subs.
sed
17497 cat >>$CONFIG_STATUS <<_ACEOF
17503 for ac_last_try
in false false false false false
:; do
17504 cat >conf$
$subs.
sed <<_ACEOF
17505 NETBEANS_SRC!$NETBEANS_SRC$ac_delim
17506 NETBEANS_OBJ!$NETBEANS_OBJ$ac_delim
17507 SNIFF_SRC!$SNIFF_SRC$ac_delim
17508 SNIFF_OBJ!$SNIFF_OBJ$ac_delim
17509 xmkmfpath!$xmkmfpath$ac_delim
17510 XMKMF!$XMKMF$ac_delim
17511 X_CFLAGS!$X_CFLAGS$ac_delim
17512 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
17513 X_LIBS!$X_LIBS$ac_delim
17514 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
17515 X_LIB!$X_LIB$ac_delim
17516 GTK_CONFIG!$GTK_CONFIG$ac_delim
17517 GTK12_CONFIG!$GTK12_CONFIG$ac_delim
17518 PKG_CONFIG!$PKG_CONFIG$ac_delim
17519 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
17520 GTK_LIBS!$GTK_LIBS$ac_delim
17521 GTK_LIBNAME!$GTK_LIBNAME$ac_delim
17522 GNOME_LIBS!$GNOME_LIBS$ac_delim
17523 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
17524 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
17525 GNOME_CONFIG!$GNOME_CONFIG$ac_delim
17526 MOTIF_LIBNAME!$MOTIF_LIBNAME$ac_delim
17527 NARROW_PROTO!$NARROW_PROTO$ac_delim
17528 GUI_INC_LOC!$GUI_INC_LOC$ac_delim
17529 GUI_LIB_LOC!$GUI_LIB_LOC$ac_delim
17530 GUITYPE!$GUITYPE$ac_delim
17531 GUI_X_LIBS!$GUI_X_LIBS$ac_delim
17532 HANGULIN_SRC!$HANGULIN_SRC$ac_delim
17533 HANGULIN_OBJ!$HANGULIN_OBJ$ac_delim
17534 TAGPRG!$TAGPRG$ac_delim
17535 INSTALL_LANGS!$INSTALL_LANGS$ac_delim
17536 INSTALL_TOOL_LANGS!$INSTALL_TOOL_LANGS$ac_delim
17537 MSGFMT!$MSGFMT$ac_delim
17538 MAKEMO!$MAKEMO$ac_delim
17539 XCODEFLAGS!$XCODEFLAGS$ac_delim
17540 DEPEND_CFLAGS_FILTER!$DEPEND_CFLAGS_FILTER$ac_delim
17541 LIBOBJS!$LIBOBJS$ac_delim
17542 LTLIBOBJS!$LTLIBOBJS$ac_delim
17545 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
17547 elif $ac_last_try; then
17548 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17549 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17550 { (exit 1); exit 1; }; }
17552 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
17556 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17557 if test -n "$ac_eof"; then
17558 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
17559 ac_eof
=`expr $ac_eof + 1`
17562 cat >>$CONFIG_STATUS <<_ACEOF
17563 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17567 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17568 s/^/s,@/; s/!/@,|#_!!_#|/
17571 s/'"$ac_delim"'$/,g/; t
17573 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17574 ' >>$CONFIG_STATUS <conf$
$subs.
sed
17575 rm -f conf$
$subs.
sed
17576 cat >>$CONFIG_STATUS <<_ACEOF
17583 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17584 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17585 # trailing colons and then remove the whole line if VPATH becomes empty
17586 # (actually we leave an empty line to preserve line numbers).
17587 if test "x$srcdir" = x.
; then
17588 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17589 s/:*\$(srcdir):*/:/
17590 s/:*\${srcdir}:*/:/
17592 s/^\([^=]*=[ ]*\):*/\1/
17598 cat >>$CONFIG_STATUS <<\_ACEOF
17599 fi # test -n "$CONFIG_FILES"
17602 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
17605 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17607 case $ac_mode$ac_tag in
17609 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17610 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17611 { (exit 1); exit 1; }; };;
17612 :[FH
]-) ac_tag
=-:-;;
17613 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17630 -) ac_f
="$tmp/stdin";;
17631 *) # Look for the file first in the build tree, then in the source tree
17632 # (if the path is not absolute). The absolute path cannot be DOS-style,
17633 # because $ac_f cannot contain `:'.
17637 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17639 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17640 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17641 { (exit 1); exit 1; }; };;
17643 ac_file_inputs
="$ac_file_inputs $ac_f"
17646 # Let's still pretend it is `configure' which instantiates (i.e., don't
17647 # use $as_me), people would be surprised to read:
17648 # /* config.h. Generated by config.status. */
17649 configure_input
="Generated from "`IFS=:
17650 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17651 if test x
"$ac_file" != x-
; then
17652 configure_input
="$ac_file. $configure_input"
17653 { echo "$as_me:$LINENO: creating $ac_file" >&5
17654 echo "$as_me: creating $ac_file" >&6;}
17658 *:-:* |
*:-) cat >"$tmp/stdin";;
17663 ac_dir
=`$as_dirname -- "$ac_file" ||
17664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17665 X"$ac_file" : 'X\(//\)[^/]' \| \
17666 X"$ac_file" : 'X\(//\)$' \| \
17667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17673 /^X\(\/\/\)[^/].*/{
17688 -*) as_dir
=.
/$as_dir;;
17690 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17694 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17695 *) as_qdir
=$as_dir;;
17697 as_dirs
="'$as_qdir' $as_dirs"
17698 as_dir
=`$as_dirname -- "$as_dir" ||
17699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17700 X"$as_dir" : 'X\(//\)[^/]' \| \
17701 X"$as_dir" : 'X\(//\)$' \| \
17702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17708 /^X\(\/\/\)[^/].*/{
17721 test -d "$as_dir" && break
17723 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17724 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17725 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17726 { (exit 1); exit 1; }; }; }
17730 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17732 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17733 # A ".." for each directory in $ac_dir_suffix.
17734 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17735 case $ac_top_builddir_sub in
17736 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17737 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17740 ac_abs_top_builddir
=$ac_pwd
17741 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17742 # for backward compatibility:
17743 ac_top_builddir
=$ac_top_build_prefix
17746 .
) # We are building in place.
17748 ac_top_srcdir
=$ac_top_builddir_sub
17749 ac_abs_top_srcdir
=$ac_pwd ;;
17750 [\\/]* | ?
:[\\/]* ) # Absolute name.
17751 ac_srcdir
=$srcdir$ac_dir_suffix;
17752 ac_top_srcdir
=$srcdir
17753 ac_abs_top_srcdir
=$srcdir ;;
17754 *) # Relative name.
17755 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17756 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17757 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17759 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17770 cat >>$CONFIG_STATUS <<\_ACEOF
17771 # If the template does not know about datarootdir, expand it.
17772 # FIXME: This hack should be removed a few years after 2.60.
17773 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17775 case `sed -n '/datarootdir/ {
17784 ' $ac_file_inputs` in
17785 *datarootdir
*) ac_datarootdir_seen
=yes;;
17786 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17787 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17788 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17790 cat >>$CONFIG_STATUS <<_ACEOF
17791 ac_datarootdir_hack='
17792 s&@datadir@&$datadir&g
17793 s&@docdir@&$docdir&g
17794 s&@infodir@&$infodir&g
17795 s&@localedir@&$localedir&g
17796 s&@mandir@&$mandir&g
17797 s&\\\${datarootdir}&$datarootdir&g' ;;
17801 # Neutralize VPATH when `$srcdir' = `.'.
17802 # Shell code in configure.ac might set extrasub.
17803 # FIXME: do we really want to maintain this feature?
17804 cat >>$CONFIG_STATUS <<_ACEOF
17808 cat >>$CONFIG_STATUS <<\_ACEOF
17810 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17811 s
&@configure_input@
&$configure_input&;t t
17812 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17813 s
&@srcdir@
&$ac_srcdir&;t t
17814 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17815 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17816 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17817 s
&@builddir@
&$ac_builddir&;t t
17818 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17819 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17820 $ac_datarootdir_hack
17821 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
17823 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17824 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17825 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17826 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17827 which seems to be undefined. Please make sure it is defined." >&5
17828 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17829 which seems to be undefined. Please make sure it is defined." >&2;}
17833 -) cat "$tmp/out"; rm -f "$tmp/out";;
17834 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17843 # Transform confdefs.h into a sed script `conftest.defines', that
17844 # substitutes the proper values into config.h.in to produce config.h.
17845 rm -f conftest.defines conftest.
tail
17846 # First, append a space to every undef/define line, to ease matching.
17847 echo 's/$/ /' >conftest.defines
17848 # Then, protect against being on the right side of a sed subst, or in
17849 # an unquoted here document, in config.status. If some macros were
17850 # called several times there might be several #defines for the same
17851 # symbol, which is useless. But do not sort them, since the last
17852 # AC_DEFINE must be honored.
17853 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
17854 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17855 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17856 # PARAMS is the parameter list in the macro definition--in most cases, it's
17857 # just an empty string.
17858 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
17859 ac_dB
='\\)[ (].*,\\1define\\2'
17867 s/^[ ]*#[ ]*define[ ][ ]*//
17872 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17873 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17874 ' >>conftest.defines
17876 # Remove the space that was appended to ease matching.
17877 # Then replace #undef with comments. This is necessary, for
17878 # example, in the case of _POSIX_SOURCE, which is predefined and required
17879 # on some systems where configure will not decide to define it.
17880 # (The regexp can be short, since the line contains either #define or #undef.)
17882 s,^[ #]*u.*,/* & */,' >>conftest.defines
17884 # Break up conftest.defines:
17885 ac_max_sed_lines
=50
17887 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17888 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17889 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17891 ac_in
='$ac_file_inputs'
17892 ac_out
='"$tmp/out1"'
17893 ac_nxt
='"$tmp/out2"'
17897 # Write a here document:
17898 cat >>$CONFIG_STATUS <<_ACEOF
17899 # First, check the format of the line:
17900 cat >"\$tmp/defines.sed" <<\\CEOF
17901 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
17902 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
17906 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
17908 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17909 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
17910 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
17911 grep . conftest.
tail >/dev
/null ||
break
17912 rm -f conftest.defines
17913 mv conftest.
tail conftest.defines
17915 rm -f conftest.defines conftest.
tail
17917 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17918 cat >>$CONFIG_STATUS <<\_ACEOF
17919 if test x
"$ac_file" != x-
; then
17920 echo "/* $configure_input */" >"$tmp/config.h"
17921 cat "$ac_result" >>"$tmp/config.h"
17922 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
17923 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17924 echo "$as_me: $ac_file is unchanged" >&6;}
17927 mv "$tmp/config.h" $ac_file
17930 echo "/* $configure_input */"
17942 { (exit 0); exit 0; }
17944 chmod +x
$CONFIG_STATUS
17945 ac_clean_files
=$ac_clean_files_save
17948 # configure is writing to config.log, and then calls config.status.
17949 # config.status does its own redirection, appending to config.log.
17950 # Unfortunately, on DOS this fails, as config.log is still kept open
17951 # by configure, so config.status won't be able to write to it; its
17952 # output is simply discarded. So we exec the FD to /dev/null,
17953 # effectively closing config.log, so it can be properly (re)opened and
17954 # appended to by config.status. When coming back to configure, we
17955 # need to make the FD available again.
17956 if test "$no_create" != yes; then
17958 ac_config_status_args
=
17959 test "$silent" = yes &&
17960 ac_config_status_args
="$ac_config_status_args --quiet"
17962 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17963 exec 5>>auto
/config.log
17964 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17965 # would make configure fail if this is the last instruction.
17966 $ac_cs_success ||
{ (exit 1); exit 1; }