2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
692 PYTHON_GETPATH_CFLAGS
763 program_transform_name
775 enable_option_checking
790 enable_mzschemeinterp
794 with_python_config_dir
829 ac_precious_vars
='build_alias
841 # Initialize some variables set by options.
843 ac_init_version
=false
844 ac_unrecognized_opts
=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
855 program_transform_name
=s
,x
,x
,
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir
='${exec_prefix}/bin'
870 sbindir
='${exec_prefix}/sbin'
871 libexecdir
='${exec_prefix}/libexec'
872 datarootdir
='${prefix}/share'
873 datadir
='${datarootdir}'
874 sysconfdir
='${prefix}/etc'
875 sharedstatedir
='${prefix}/com'
876 localstatedir
='${prefix}/var'
877 includedir
='${prefix}/include'
878 oldincludedir
='/usr/include'
879 docdir
='${datarootdir}/doc/${PACKAGE}'
880 infodir
='${datarootdir}/info'
885 libdir
='${exec_prefix}/lib'
886 localedir
='${datarootdir}/locale'
887 mandir
='${datarootdir}/man'
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\
$ac_option
901 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 # Accept the important Cygnus configure options, so we can diagnose typos.
907 case $ac_dashdash$ac_option in
911 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
913 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
916 -build |
--build |
--buil |
--bui |
--bu)
917 ac_prev
=build_alias
;;
918 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
919 build_alias
=$ac_optarg ;;
921 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
922 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
923 ac_prev
=cache_file
;;
924 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
925 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
926 cache_file
=$ac_optarg ;;
929 cache_file
=config.cache
;;
931 -datadir |
--datadir |
--datadi |
--datad)
933 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
934 datadir
=$ac_optarg ;;
936 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
937 |
--dataroo |
--dataro |
--datar)
938 ac_prev
=datarootdir
;;
939 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
940 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
941 datarootdir
=$ac_optarg ;;
943 -disable-* |
--disable-*)
944 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig
=$ac_useropt
950 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep
=', ';;
958 eval enable_
$ac_useropt=no
;;
960 -docdir |
--docdir |
--docdi |
--doc |
--do)
962 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
965 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
967 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
970 -enable-* |
--enable-*)
971 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig
=$ac_useropt
977 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
982 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep
=', ';;
985 eval enable_
$ac_useropt=\
$ac_optarg ;;
987 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
988 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
989 |
--exec |
--exe |
--ex)
990 ac_prev
=exec_prefix
;;
991 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
992 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
993 |
--exec=* |
--exe=* |
--ex=*)
994 exec_prefix
=$ac_optarg ;;
996 -gas |
--gas |
--ga |
--g)
997 # Obsolete; use --with-gas.
1000 -help |
--help |
--hel |
--he |
-h)
1001 ac_init_help
=long
;;
1002 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1003 ac_init_help
=recursive
;;
1004 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1005 ac_init_help
=short
;;
1007 -host |
--host |
--hos |
--ho)
1008 ac_prev
=host_alias
;;
1009 -host=* |
--host=* |
--hos=* |
--ho=*)
1010 host_alias
=$ac_optarg ;;
1012 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1014 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1016 htmldir
=$ac_optarg ;;
1018 -includedir |
--includedir |
--includedi |
--included |
--include \
1019 |
--includ |
--inclu |
--incl |
--inc)
1020 ac_prev
=includedir
;;
1021 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1022 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1023 includedir
=$ac_optarg ;;
1025 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1027 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1028 infodir
=$ac_optarg ;;
1030 -libdir |
--libdir |
--libdi |
--libd)
1032 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1033 libdir
=$ac_optarg ;;
1035 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1036 |
--libexe |
--libex |
--libe)
1037 ac_prev
=libexecdir
;;
1038 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1039 |
--libexe=* |
--libex=* |
--libe=*)
1040 libexecdir
=$ac_optarg ;;
1042 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1043 ac_prev
=localedir
;;
1044 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1045 localedir
=$ac_optarg ;;
1047 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1048 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1049 ac_prev
=localstatedir
;;
1050 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1051 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1052 localstatedir
=$ac_optarg ;;
1054 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1056 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1057 mandir
=$ac_optarg ;;
1059 -nfp |
--nfp |
--nf)
1060 # Obsolete; use --without-fp.
1063 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1064 |
--no-cr |
--no-c |
-n)
1067 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1068 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1071 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1072 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1073 |
--oldin |
--oldi |
--old |
--ol |
--o)
1074 ac_prev
=oldincludedir
;;
1075 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1076 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1077 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1078 oldincludedir
=$ac_optarg ;;
1080 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1082 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1083 prefix
=$ac_optarg ;;
1085 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1086 |
--program-pre |
--program-pr |
--program-p)
1087 ac_prev
=program_prefix
;;
1088 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1089 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1090 program_prefix
=$ac_optarg ;;
1092 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1093 |
--program-suf |
--program-su |
--program-s)
1094 ac_prev
=program_suffix
;;
1095 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1096 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1097 program_suffix
=$ac_optarg ;;
1099 -program-transform-name |
--program-transform-name \
1100 |
--program-transform-nam |
--program-transform-na \
1101 |
--program-transform-n |
--program-transform- \
1102 |
--program-transform |
--program-transfor \
1103 |
--program-transfo |
--program-transf \
1104 |
--program-trans |
--program-tran \
1105 |
--progr-tra |
--program-tr |
--program-t)
1106 ac_prev
=program_transform_name
;;
1107 -program-transform-name=* |
--program-transform-name=* \
1108 |
--program-transform-nam=* |
--program-transform-na=* \
1109 |
--program-transform-n=* |
--program-transform-=* \
1110 |
--program-transform=* |
--program-transfor=* \
1111 |
--program-transfo=* |
--program-transf=* \
1112 |
--program-trans=* |
--program-tran=* \
1113 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1114 program_transform_name
=$ac_optarg ;;
1116 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1118 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1119 pdfdir
=$ac_optarg ;;
1121 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1123 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1126 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1127 |
-silent |
--silent |
--silen |
--sile |
--sil)
1130 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1132 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1134 sbindir
=$ac_optarg ;;
1136 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1137 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1138 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1140 ac_prev
=sharedstatedir
;;
1141 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1142 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1143 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1145 sharedstatedir
=$ac_optarg ;;
1147 -site |
--site |
--sit)
1149 -site=* |
--site=* |
--sit=*)
1152 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1154 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1155 srcdir
=$ac_optarg ;;
1157 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1158 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1159 ac_prev
=sysconfdir
;;
1160 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1161 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1162 sysconfdir
=$ac_optarg ;;
1164 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1165 ac_prev
=target_alias
;;
1166 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1167 target_alias
=$ac_optarg ;;
1169 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1172 -version |
--version |
--versio |
--versi |
--vers |
-V)
1173 ac_init_version
=: ;;
1176 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=\
$ac_optarg ;;
1192 -without-* |
--without-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1198 ac_useropt_orig
=$ac_useropt
1199 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep
=', ';;
1207 eval with_
$ac_useropt=no
;;
1210 # Obsolete; use --with-x.
1213 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1214 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1215 ac_prev
=x_includes
;;
1216 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1217 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1218 x_includes
=$ac_optarg ;;
1220 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1221 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1222 ac_prev
=x_libraries
;;
1223 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1224 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1225 x_libraries
=$ac_optarg ;;
1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1228 Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1233 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1237 { (exit 1); exit 1; }; }
1238 eval $ac_envvar=\
$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 if test -n "$ac_prev"; then
1253 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 # Check all directory arguments for consistency.
1268 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
1273 eval ac_val
=\$
$ac_var
1274 # Remove trailing slashes.
1277 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\
$ac_val;;
1280 # Be sure to have absolute directory names.
1282 [\\/$
]* | ?
:[\\/]* ) continue;;
1283 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1294 target
=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x
; then
1298 if test "x$build_alias" = x
; then
1299 cross_compiling
=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1308 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1310 test "$silent" = yes && exec 6>/dev
/null
1313 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di
=`ls -di .` &&
1315 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1316 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted
=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir
=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted
=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1362 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var
in $ac_precious_vars; do
1378 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1380 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures this package to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --x-includes=DIR X include files are
in DIR
1450 --x-libraries=DIR X library files are
in DIR
1454 if test -n "$ac_init_help"; then
1459 --disable-option-checking ignore unrecognized
--enable/--with options
1460 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1461 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1462 --disable-darwin Disable Darwin
(Mac OS X
) support.
1463 --disable-selinux Don
't check for SELinux support.
1464 --disable-xsmp Disable XSMP session management
1465 --disable-xsmp-interact Disable XSMP interaction
1466 --enable-mzschemeinterp Include MzScheme interpreter.
1467 --enable-perlinterp Include Perl interpreter.
1468 --enable-pythoninterp Include Python interpreter.
1469 --enable-tclinterp Include Tcl interpreter.
1470 --enable-rubyinterp Include Ruby interpreter.
1471 --enable-cscope Include cscope interface.
1472 --enable-workshop Include Sun Visual Workshop support.
1473 --disable-netbeans Disable NetBeans integration support.
1474 --enable-sniff Include Sniff interface.
1475 --enable-multibyte Include multibyte editing support.
1476 --enable-hangulinput Include Hangul input support.
1477 --enable-xim Include XIM input support.
1478 --enable-fontset Include X fontset output support.
1479 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1480 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1481 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1482 --enable-gnome-check If GTK GUI, check for GNOME default=no
1483 --enable-motif-check If auto-select GUI, check for Motif default=yes
1484 --enable-athena-check If auto-select GUI, check for Athena default=yes
1485 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1486 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1487 --disable-gtktest Do not try to compile and run a test GTK program
1488 --disable-acl Don't check
for ACL support.
1489 --disable-gpm Don
't use gpm (Linux mouse daemon).
1490 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1491 --disable-nls Don
't support NLS (gettext()).
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-mac-arch=ARCH current, intel, ppc or both
1497 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1498 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1499 --without-local-dir do not search /usr/local for local libraries.
1500 --with-vim-name=NAME what to call the Vim executable
1501 --with-ex-name=NAME what to call the Ex executable
1502 --with-view-name=NAME what to call the View executable
1503 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1504 --with-modified-by=NAME name of who modified a release version
1505 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1506 --with-compiledby=NAME name to show in :version message
1507 --with-plthome=PLTHOME Use PLTHOME.
1508 --with-python-config-dir=PATH Python's config directory
1509 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1510 --with-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1511 --with-x use the X Window System
1512 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1513 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1514 --with-gnome-includes=DIR Specify location of GNOME headers
1515 --with-gnome-libs=DIR Specify location of GNOME libs
1516 --with-gnome Specify prefix
for GNOME files
1517 --with-motif-lib=STRING Library
for Motif
1518 --with-tlib=library terminal library to be used
1520 Some influential environment variables
:
1521 CC C compiler
command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1524 nonstandard directory
<lib dir
>
1525 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1526 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1527 you have headers
in a nonstandard directory
<include dir
>
1529 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1531 Use these variables to override the choices made by
`configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1563 .) # We are building in place.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1597 generated by GNU Autoconf 2.63
1599 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1606 cat >auto/config.log <<_ACEOF
1607 This file contains any messages produced by compilers while
1608 running configure, to aid debugging if configure makes a mistake.
1610 It was created by $as_me, which was
1611 generated by GNU Autoconf 2.63. Invocation command line was
1616 exec 5>>auto/config.log
1623 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1624 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1625 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1626 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1627 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1629 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1630 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1632 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1633 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1634 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1635 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1636 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1637 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1638 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 $as_echo "PATH: $as_dir"
1663 # Keep a trace of the command line.
1664 # Strip out --no-create and --no-recursion so they do not pile up.
1665 # Strip out --silent because we don't want to record it for future runs.
1666 # Also quote any args containing shell meta-characters.
1667 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_must_keep_next=false
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1682 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
1689 ac_must_keep_next=false # Got value, back to normal.
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700 -* ) ac_must_keep_next=true ;;
1703 ac_configure_args="$ac_configure_args '$ac_arg'"
1708 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711 # When interrupted or exit'd, cleanup temporary files, and complete
1712 # config.log. We remove comments because anyway the quotes in there
1713 # would cause problems or look ugly.
1714 # WARNING: Use '\'' to represent an apostrophe within the trap.
1715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1722 ## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##
1727 # The following way of writing the cache mishandles newlines in values,
1729 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1730 eval ac_val=\$$ac_var
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) $as_unset $ac_var ;;
1745 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1765 for ac_var in $ac_subst_vars
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 $as_echo "$ac_var='\''$ac_val'\''"
1775 if test -n "$ac_subst_files"; then
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1782 for ac_var in $ac_subst_files
1784 eval ac_val=\$$ac_var
1786 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 $as_echo "$ac_var='\''$ac_val'\''"
1793 if test -s confdefs.h; then
1803 test "$ac_signal" != 0 &&
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1819 # Predefined preprocessor variables.
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 ac_site_file1=$CONFIG_SITE
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1861 test "x$ac_site_file" = xNONE && continue
1862 if test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 $as_echo "$as_me: loading cache $cache_file" >&6;}
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 $as_echo "$as_me: creating cache $cache_file" >&6;}
1887 # Check that the precious variables saved in the cache have kept the same
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1898 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1902 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x
$ac_old_val`
1909 ac_new_val_w=`echo x
$ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1913 ac_cache_corrupted=:
1915 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1916 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937 if $ac_cache_corrupted; then
1938 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1943 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1944 { (exit 1); exit 1; }; }
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 ac_config_headers="$ac_config_headers auto
/config.h
:config.h.
in"
1973 cat >>confdefs.h <<\_ACEOF
1977 { $as_echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
1978 $as_echo_n "checking whether
${MAKE-make} sets \$
(MAKE
)...
" >&6; }
1980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1981 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1982 $as_echo_n "(cached
) " >&6
1984 cat >conftest.make <<\_ACEOF
1987 @echo '@@@%%%=$(MAKE)=@@@%%%'
1989 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
1990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1992 eval ac_cv_prog_make_${ac_make}_set=yes;;
1994 eval ac_cv_prog_make_${ac_make}_set=no;;
1998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1999 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2000 $as_echo "yes" >&6; }
2003 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2004 $as_echo "no
" >&6; }
2005 SET_MAKE="MAKE
=${MAKE-make}"
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2016 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2017 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2018 $as_echo_n "checking
for $ac_word...
" >&6; }
2019 if test "${ac_cv_prog_CC+set}" = set; then
2020 $as_echo_n "(cached
) " >&6
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2032 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2033 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2043 if test -n "$CC"; then
2044 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2045 $as_echo "$CC" >&6; }
2047 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2048 $as_echo "no
" >&6; }
2053 if test -z "$ac_cv_prog_CC"; then
2055 # Extract the first word of "gcc
", so it can be a program name with args.
2056 set dummy gcc; ac_word=$2
2057 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2058 $as_echo_n "checking
for $ac_word...
" >&6; }
2059 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2060 $as_echo_n "(cached
) " >&6
2062 if test -n "$ac_ct_CC"; then
2063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir=.
2070 for ac_exec_ext in '' $ac_executable_extensions; do
2071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2072 ac_cv_prog_ac_ct_CC="gcc
"
2073 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2083 if test -n "$ac_ct_CC"; then
2084 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2085 $as_echo "$ac_ct_CC" >&6; }
2087 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2088 $as_echo "no
" >&6; }
2091 if test "x
$ac_ct_CC" = x; then
2094 case $cross_compiling:$ac_tool_warned in
2096 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2097 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2098 ac_tool_warned=yes ;;
2106 if test -z "$CC"; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}cc; ac_word=$2
2110 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2111 $as_echo_n "checking
for $ac_word...
" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 $as_echo_n "(cached
) " >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2126 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2136 if test -n "$CC"; then
2137 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2138 $as_echo "$CC" >&6; }
2140 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2141 $as_echo "no
" >&6; }
2147 if test -z "$CC"; then
2148 # Extract the first word of "cc
", so it can be a program name with args.
2149 set dummy cc; ac_word=$2
2150 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2151 $as_echo_n "checking
for $ac_word...
" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153 $as_echo_n "(cached
) " >&6
2155 if test -n "$CC"; then
2156 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2167 ac_prog_rejected=yes
2171 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2178 if test $ac_prog_rejected = yes; then
2179 # We found a bogon in the path, so make sure we never use it.
2180 set dummy $ac_cv_prog_CC
2182 if test $# != 0; then
2183 # We chose a different compiler from the bogus one.
2184 # However, it has the same basename, so the bogon will be chosen
2185 # first if we set CC to just the basename; use the full file name.
2187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2193 if test -n "$CC"; then
2194 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2195 $as_echo "$CC" >&6; }
2197 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2198 $as_echo "no
" >&6; }
2203 if test -z "$CC"; then
2204 if test -n "$ac_tool_prefix"; then
2205 for ac_prog in cl.exe
2207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2210 $as_echo_n "checking
for $ac_word...
" >&6; }
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212 $as_echo_n "(cached
) " >&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2235 if test -n "$CC"; then
2236 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2237 $as_echo "$CC" >&6; }
2239 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2240 $as_echo "no
" >&6; }
2244 test -n "$CC" && break
2247 if test -z "$CC"; then
2249 for ac_prog in cl.exe
2251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2254 $as_echo_n "checking
for $ac_word...
" >&6; }
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256 $as_echo_n "(cached
) " >&6
2258 if test -n "$ac_ct_CC"; then
2259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_ac_ct_CC="$ac_prog"
2269 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2281 $as_echo "$ac_ct_CC" >&6; }
2283 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2284 $as_echo "no
" >&6; }
2288 test -n "$ac_ct_CC" && break
2291 if test "x
$ac_ct_CC" = x; then
2294 case $cross_compiling:$ac_tool_warned in
2296 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2297 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2298 ac_tool_warned=yes ;;
2307 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details.
" >&5
2311 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2312 See \
`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }; }
2315 # Provide some information about the compiler.
2316 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2319 { (ac_try="$ac_compiler --version >&5"
2321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2322 *) ac_try_echo
=$ac_try;;
2324 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2325 $as_echo "$ac_try_echo") >&5
2326 (eval "$ac_compiler --version >&5") 2>&5
2328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }
2330 { (ac_try
="$ac_compiler -v >&5"
2332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2333 *) ac_try_echo=$ac_try;;
2335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2336 $as_echo "$ac_try_echo") >&5
2337 (eval "$ac_compiler -v >&5") 2>&5
2339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341 { (ac_try="$ac_compiler -V >&5"
2343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2344 *) ac_try_echo
=$ac_try;;
2346 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2347 $as_echo "$ac_try_echo") >&5
2348 (eval "$ac_compiler -V >&5") 2>&5
2350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }
2353 cat >conftest.
$ac_ext <<_ACEOF
2356 cat confdefs.h
>>conftest.
$ac_ext
2357 cat >>conftest.
$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2368 ac_clean_files_save
=$ac_clean_files
2369 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2370 # Try to create an executable without -o first, disregard a.out.
2371 # It will help us diagnose broken compilers, and finding out an intuition
2373 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2374 $as_echo_n "checking for C compiler default output file name... " >&6; }
2375 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377 # The possible output files:
2378 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2381 for ac_file
in $ac_files
2384 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2385 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2390 if { (ac_try
="$ac_link_default"
2392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2396 $as_echo "$ac_try_echo") >&5
2397 (eval "$ac_link_default") 2>&5
2399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; then
2401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2402 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2403 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2404 # so that the user can short-circuit this test for compilers unknown to
2406 for ac_file in $ac_files ''
2408 test -f "$ac_file" || continue
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2413 # We found the default executable, but exeext='' is most
2417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2421 # We set ac_cv_exeext here because the later test for it is not
2422 # safe: cross compilers may not add the suffix if given an `-o'
2423 # argument, so we may need to know it at that point already.
2424 # Even if this section looks crufty: it has the advantage of
2431 test "$ac_cv_exeext" = no && ac_cv_exeext=
2437 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2438 $as_echo "$ac_file" >&6; }
2439 if test -z "$ac_file"; then
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's
/^
/|
/' conftest.$ac_ext >&5
2443 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2445 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2446 See \`config.log
' for more details." >&5
2447 $as_echo "$as_me: error: C compiler cannot create executables
2448 See \`config.log' for more details.
" >&2;}
2449 { (exit 77); exit 77; }; }; }
2452 ac_exeext=$ac_cv_exeext
2454 # Check that the compiler produces executables we can run. If not, either
2455 # the compiler is broken, or we cross compile.
2456 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2457 $as_echo_n "checking whether the C compiler works...
" >&6; }
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461 if { ac_try='./$ac_file'
2462 { (case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2467 $as_echo "$ac_try_echo") >&5
2468 (eval "$ac_try") 2>&5
2470 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2471 (exit $ac_status); }; }; then
2474 if test "$cross_compiling" = maybe; then
2477 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \
`config.log' for more details." >&5
2482 $as_echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details.
" >&2;}
2485 { (exit 1); exit 1; }; }; }
2489 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2490 $as_echo "yes" >&6; }
2492 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run. If not, either
2495 # the compiler is broken, or we cross compile.
2496 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2497 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2498 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2499 $as_echo "$cross_compiling" >&6; }
2501 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2502 $as_echo_n "checking
for suffix of executables...
" >&6; }
2503 if { (ac_try="$ac_link"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2509 $as_echo "$ac_try_echo") >&5
2510 (eval "$ac_link") 2>&5
2512 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2513 (exit $ac_status); }; then
2514 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2515 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2516 # work properly (i.e., refer to `conftest.exe'), while it won't with
2518 for ac_file in conftest.exe conftest conftest.*; do
2519 test -f "$ac_file" || continue
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2522 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2531 See \`config.log' for more details.
" >&5
2532 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2533 See \
`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }; }
2537 rm -f conftest$ac_cv_exeext
2538 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2539 $as_echo "$ac_cv_exeext" >&6; }
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2544 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2545 $as_echo_n "checking for suffix of object files... " >&6; }
2546 if test "${ac_cv_objext+set}" = set; then
2547 $as_echo_n "(cached) " >&6
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 rm -f conftest.o conftest.obj
2565 if { (ac_try="$ac_compile"
2567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2568 *) ac_try_echo
=$ac_try;;
2570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2571 $as_echo "$ac_try_echo") >&5
2572 (eval "$ac_compile") 2>&5
2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 for ac_file
in conftest.o conftest.obj conftest.
*; do
2577 test -f "$ac_file" ||
continue;
2579 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2580 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2585 $as_echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.
$ac_ext >&5
2588 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2591 See \`config.log' for more details." >&5
2592 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }; }
2597 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2599 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2600 $as_echo "$ac_cv_objext" >&6; }
2601 OBJEXT
=$ac_cv_objext
2603 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2604 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2605 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2608 cat >conftest.
$ac_ext <<_ACEOF
2611 cat confdefs.h
>>conftest.
$ac_ext
2612 cat >>conftest.
$ac_ext <<_ACEOF
2613 /* end confdefs.h. */
2626 rm -f conftest.
$ac_objext
2627 if { (ac_try
="$ac_compile"
2629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2630 *) ac_try_echo=$ac_try;;
2632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2633 $as_echo "$ac_try_echo") >&5
2634 (eval "$ac_compile") 2>conftest.er1
2636 grep -v '^ *+' conftest.er1 >conftest.err
2638 cat conftest.err >&5
2639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } && {
2641 test -z "$ac_c_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest.$ac_objext; then
2646 $as_echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2656 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2657 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2658 if test $ac_compiler_gnu = yes; then
2663 ac_test_CFLAGS=${CFLAGS+set}
2664 ac_save_CFLAGS=$CFLAGS
2665 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2666 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2667 if test "${ac_cv_prog_cc_g+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2670 ac_save_c_werror_flag=$ac_c_werror_flag
2671 ac_c_werror_flag=yes
2674 cat >conftest.$ac_ext <<_ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2689 rm -f conftest.$ac_objext
2690 if { (ac_try="$ac_compile"
2692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2693 *) ac_try_echo
=$ac_try;;
2695 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2696 $as_echo "$ac_try_echo") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2699 grep -v '^ *+' conftest.er1
>conftest.err
2701 cat conftest.err
>&5
2702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.
$ac_objext; then
2709 $as_echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.
$ac_ext >&5
2713 cat >conftest.
$ac_ext <<_ACEOF
2716 cat confdefs.h
>>conftest.
$ac_ext
2717 cat >>conftest.
$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2728 rm -f conftest.
$ac_objext
2729 if { (ac_try
="$ac_compile"
2731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2735 $as_echo "$ac_try_echo") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
2748 $as_echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 ac_c_werror_flag=$ac_save_c_werror_flag
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 rm -f conftest.$ac_objext
2769 if { (ac_try="$ac_compile"
2771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2772 *) ac_try_echo
=$ac_try;;
2774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2775 $as_echo "$ac_try_echo") >&5
2776 (eval "$ac_compile") 2>conftest.er1
2778 grep -v '^ *+' conftest.er1
>conftest.err
2780 cat conftest.err
>&5
2781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } && {
2783 test -z "$ac_c_werror_flag" ||
2784 test ! -s conftest.err
2785 } && test -s conftest.
$ac_objext; then
2788 $as_echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.
$ac_ext >&5
2794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2801 ac_c_werror_flag
=$ac_save_c_werror_flag
2803 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2804 $as_echo "$ac_cv_prog_cc_g" >&6; }
2805 if test "$ac_test_CFLAGS" = set; then
2806 CFLAGS
=$ac_save_CFLAGS
2807 elif test $ac_cv_prog_cc_g = yes; then
2808 if test "$GCC" = yes; then
2814 if test "$GCC" = yes; then
2820 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2821 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2822 if test "${ac_cv_prog_cc_c89+set}" = set; then
2823 $as_echo_n "(cached) " >&6
2825 ac_cv_prog_cc_c89
=no
2827 cat >conftest.
$ac_ext <<_ACEOF
2830 cat confdefs.h
>>conftest.
$ac_ext
2831 cat >>conftest.
$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2835 #include <sys/types.h>
2836 #include <sys/stat.h>
2837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2838 struct buf { int x; };
2839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2840 static char *e (p, i)
2846 static char *f (char * (*g) (char **, int), char **p, ...)
2851 s = g (p, va_arg (v,int));
2856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2857 function prototypes and stuff, but not '\xHH' hex character constants.
2858 These don't provoke an error unfortunately, instead are silently treated
2859 as 'x'. The following induces an error, until -std is added to get
2860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2861 array size at least. It's necessary to write '\x00'==0 to get something
2862 that's true only with -std. */
2863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2866 inside strings and character constants. */
2868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2870 int test (int i, double x);
2871 struct s1 {int (*f) (int a);};
2872 struct s2 {int (*f) (double a);};
2873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2884 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
2885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2887 CC
="$ac_save_CC $ac_arg"
2888 rm -f conftest.
$ac_objext
2889 if { (ac_try
="$ac_compile"
2891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2895 $as_echo "$ac_try_echo") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
2906 ac_cv_prog_cc_c89=$ac_arg
2908 $as_echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f core conftest.err conftest.$ac_objext
2915 test "x$ac_cv_prog_cc_c89" != "xno" && break
2917 rm -f conftest.$ac_ext
2922 case "x$ac_cv_prog_cc_c89" in
2924 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2925 $as_echo "none needed" >&6; } ;;
2927 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2928 $as_echo "unsupported" >&6; } ;;
2930 CC="$CC $ac_cv_prog_cc_c89"
2931 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2947 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2948 # On Suns, sometimes $CPP names a directory.
2949 if test -n "$CPP" && test -d "$CPP"; then
2952 if test -z "$CPP"; then
2953 if test "${ac_cv_prog_CPP+set}" = set; then
2954 $as_echo_n "(cached) " >&6
2956 # Double quotes because CPP needs to be expanded
2957 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960 for ac_c_preproc_warn_flag in '' yes
2962 # Use a header file that comes with gcc, so configuring glibc
2963 # with a fresh cross-compiler works.
2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965 # <limits.h> exists even on freestanding compilers.
2966 # On the NeXT, cc -E runs the code through the compiler's parser,
2967 # not just through cpp. "Syntax error" is here to catch this case.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2975 # include <limits.h>
2977 # include <assert.h>
2981 if { (ac_try="$ac_cpp conftest.$ac_ext"
2983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2984 *) ac_try_echo
=$ac_try;;
2986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2987 $as_echo "$ac_try_echo") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1
>conftest.err
2992 cat conftest.err
>&5
2993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev
/null
&& {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
3000 $as_echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.
$ac_ext >&5
3003 # Broken: fails on valid input.
3007 rm -f conftest.err conftest.
$ac_ext
3009 # OK, works on sane cases. Now check whether nonexistent headers
3010 # can be detected and how.
3011 cat >conftest.
$ac_ext <<_ACEOF
3014 cat confdefs.h
>>conftest.
$ac_ext
3015 cat >>conftest.
$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3019 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025 $as_echo "$ac_try_echo") >&5
3026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } >/dev/null && {
3033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3036 # Broken: success on invalid input.
3039 $as_echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 # Passes both tests.
3047 rm -f conftest.err conftest.$ac_ext
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.
$ac_ext
3052 if $ac_preproc_ok; then
3064 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3065 $as_echo "$CPP" >&6; }
3067 for ac_c_preproc_warn_flag
in '' yes
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat >conftest.
$ac_ext <<_ACEOF
3078 cat confdefs.h
>>conftest.
$ac_ext
3079 cat >>conftest.
$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3082 # include <limits.h>
3084 # include <assert.h>
3088 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094 $as_echo "$ac_try_echo") >&5
3095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null && {
3102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3107 $as_echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 # Broken: fails on valid input.
3114 rm -f conftest.err conftest.$ac_ext
3116 # OK, works on sane cases. Now check whether nonexistent headers
3117 # can be detected and how.
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3124 #include <ac_nonexistent.h>
3126 if { (ac_try="$ac_cpp conftest.$ac_ext"
3128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3129 *) ac_try_echo
=$ac_try;;
3131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1
>conftest.err
3137 cat conftest.err
>&5
3138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev
/null
&& {
3140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141 test ! -s conftest.err
3143 # Broken: success on invalid input.
3146 $as_echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.
$ac_ext >&5
3149 # Passes both tests.
3154 rm -f conftest.err conftest.
$ac_ext
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.
$ac_ext
3159 if $ac_preproc_ok; then
3162 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }; }
3172 ac_cpp
='$CPP $CPPFLAGS'
3173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3178 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3180 if test "${ac_cv_path_GREP+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3183 if test -z "$GREP"; then
3184 ac_path_GREP_found
=false
3185 # Loop through the user's path and test for each of PROGNAME-LIST
3186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3187 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3190 test -z "$as_dir" && as_dir
=.
3191 for ac_prog
in grep ggrep
; do
3192 for ac_exec_ext
in '' $ac_executable_extensions; do
3193 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3195 # Check for GNU ac_path_GREP and select it if it is found.
3196 # Check for GNU $ac_path_GREP
3197 case `"$ac_path_GREP" --version 2>&1` in
3199 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3202 $as_echo_n 0123456789 >"conftest.in"
3205 cat "conftest.in" "conftest.in" >"conftest.tmp"
3206 mv "conftest.tmp" "conftest.in"
3207 cp "conftest.in" "conftest.nl"
3208 $as_echo 'GREP' >> "conftest.nl"
3209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3210 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3211 ac_count
=`expr $ac_count + 1`
3212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3213 # Best one so far, save it but keep looking for a better one
3214 ac_cv_path_GREP
="$ac_path_GREP"
3215 ac_path_GREP_max
=$ac_count
3217 # 10*(2^10) chars as input seems more than enough
3218 test $ac_count -gt 10 && break
3220 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3223 $ac_path_GREP_found && break 3
3228 if test -z "$ac_cv_path_GREP"; then
3229 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3230 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3231 { (exit 1); exit 1; }; }
3234 ac_cv_path_GREP
=$GREP
3238 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3239 $as_echo "$ac_cv_path_GREP" >&6; }
3240 GREP
="$ac_cv_path_GREP"
3243 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3244 $as_echo_n "checking for egrep... " >&6; }
3245 if test "${ac_cv_path_EGREP+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3248 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3249 then ac_cv_path_EGREP
="$GREP -E"
3251 if test -z "$EGREP"; then
3252 ac_path_EGREP_found
=false
3253 # Loop through the user's path and test for each of PROGNAME-LIST
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3255 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_prog
in egrep; do
3260 for ac_exec_ext
in '' $ac_executable_extensions; do
3261 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3262 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3263 # Check for GNU ac_path_EGREP and select it if it is found.
3264 # Check for GNU $ac_path_EGREP
3265 case `"$ac_path_EGREP" --version 2>&1` in
3267 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3270 $as_echo_n 0123456789 >"conftest.in"
3273 cat "conftest.in" "conftest.in" >"conftest.tmp"
3274 mv "conftest.tmp" "conftest.in"
3275 cp "conftest.in" "conftest.nl"
3276 $as_echo 'EGREP' >> "conftest.nl"
3277 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3278 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3279 ac_count
=`expr $ac_count + 1`
3280 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3281 # Best one so far, save it but keep looking for a better one
3282 ac_cv_path_EGREP
="$ac_path_EGREP"
3283 ac_path_EGREP_max
=$ac_count
3285 # 10*(2^10) chars as input seems more than enough
3286 test $ac_count -gt 10 && break
3288 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3291 $ac_path_EGREP_found && break 3
3296 if test -z "$ac_cv_path_EGREP"; then
3297 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3298 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3299 { (exit 1); exit 1; }; }
3302 ac_cv_path_EGREP
=$EGREP
3307 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3308 $as_echo "$ac_cv_path_EGREP" >&6; }
3309 EGREP
="$ac_cv_path_EGREP"
3312 cat >conftest.
$ac_ext <<_ACEOF
3315 cat confdefs.h
>>conftest.
$ac_ext
3316 cat >>conftest.
$ac_ext <<_ACEOF
3317 /* end confdefs.h. */
3321 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3322 $as_echo_n "checking for library containing strerror... " >&6; }
3323 if test "${ac_cv_search_strerror+set}" = set; then
3324 $as_echo_n "(cached) " >&6
3326 ac_func_search_save_LIBS
=$LIBS
3327 cat >conftest.
$ac_ext <<_ACEOF
3330 cat confdefs.h
>>conftest.
$ac_ext
3331 cat >>conftest.
$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 /* Override any GCC internal prototype to avoid an error.
3335 Use char because int might match the return type of a GCC
3336 builtin and then its argument prototype would still apply. */
3349 for ac_lib
in '' cposix
; do
3350 if test -z "$ac_lib"; then
3351 ac_res
="none required"
3354 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3356 rm -f conftest.
$ac_objext conftest
$ac_exeext
3357 if { (ac_try
="$ac_link"
3359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_link") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } && {
3371 test -z "$ac_c_werror_flag" ||
3372 test ! -s conftest.err
3373 } && test -s conftest$ac_exeext && {
3374 test "$cross_compiling" = yes ||
3375 $as_test_x conftest$ac_exeext
3377 ac_cv_search_strerror=$ac_res
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3385 rm -rf conftest.dSYM
3386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3388 if test "${ac_cv_search_strerror+set}" = set; then
3392 if test "${ac_cv_search_strerror+set}" = set; then
3395 ac_cv_search_strerror=no
3398 LIBS=$ac_func_search_save_LIBS
3400 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3401 $as_echo "$ac_cv_search_strerror" >&6; }
3402 ac_res=$ac_cv_search_strerror
3403 if test "$ac_res" != no; then
3404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3407 for ac_prog in gawk mawk nawk awk
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if test "${ac_cv_prog_AWK+set}" = set; then
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$AWK"; then
3417 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_AWK="$ac_prog"
3427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test -n "$AWK"; then
3438 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3439 $as_echo "$AWK" >&6; }
3441 { $as_echo "$as_me:$LINENO: result: no" >&5
3442 $as_echo "no" >&6; }
3446 test -n "$AWK" && break
3449 # Extract the first word of "strip", so it can be a program name with args.
3450 set dummy strip; ac_word=$2
3451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if test "${ac_cv_prog_STRIP+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3456 if test -n "$STRIP"; then
3457 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_STRIP="strip"
3467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3477 STRIP=$ac_cv_prog_STRIP
3478 if test -n "$STRIP"; then
3479 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3480 $as_echo "$STRIP" >&6; }
3482 { $as_echo "$as_me:$LINENO: result: no" >&5
3483 $as_echo "no" >&6; }
3490 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3491 $as_echo_n "checking for ANSI C header files... " >&6; }
3492 if test "${ac_cv_header_stdc+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3518 *) ac_try_echo
=$ac_try;;
3520 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_compile") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && {
3529 test -z "$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3531 } && test -s conftest.
$ac_objext; then
3532 ac_cv_header_stdc
=yes
3534 $as_echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.
$ac_ext >&5
3537 ac_cv_header_stdc
=no
3540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3542 if test $ac_cv_header_stdc = yes; then
3543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3544 cat >conftest.
$ac_ext <<_ACEOF
3547 cat confdefs.h
>>conftest.
$ac_ext
3548 cat >>conftest.
$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554 $EGREP "memchr" >/dev
/null
2>&1; then
3557 ac_cv_header_stdc
=no
3563 if test $ac_cv_header_stdc = yes; then
3564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3565 cat >conftest.
$ac_ext <<_ACEOF
3568 cat confdefs.h
>>conftest.
$ac_ext
3569 cat >>conftest.
$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "free" >/dev
/null
2>&1; then
3578 ac_cv_header_stdc
=no
3584 if test $ac_cv_header_stdc = yes; then
3585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3586 if test "$cross_compiling" = yes; then
3589 cat >conftest.
$ac_ext <<_ACEOF
3592 cat confdefs.h
>>conftest.
$ac_ext
3593 cat >>conftest.
$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3597 #if ((' ' & 0x0FF) == 0x020)
3598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3601 # define ISLOWER(c) \
3602 (('a' <= (c) && (c) <= 'i') \
3603 || ('j' <= (c) && (c) <= 'r') \
3604 || ('s' <= (c) && (c) <= 'z'))
3605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3613 for (i = 0; i < 256; i++)
3614 if (XOR (islower (i), ISLOWER (i))
3615 || toupper (i) != TOUPPER (i))
3620 rm -f conftest
$ac_exeext
3621 if { (ac_try
="$ac_link"
3623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627 $as_echo "$ac_try_echo") >&5
3628 (eval "$ac_link") 2>&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3634 *) ac_try_echo
=$ac_try;;
3636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3637 $as_echo "$ac_try_echo") >&5
3638 (eval "$ac_try") 2>&5
3640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3644 $as_echo "$as_me: program exited with status $ac_status" >&5
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.
$ac_ext >&5
3649 ac_cv_header_stdc
=no
3651 rm -rf conftest.dSYM
3652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3658 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3659 $as_echo "$ac_cv_header_stdc" >&6; }
3660 if test $ac_cv_header_stdc = yes; then
3662 cat >>confdefs.h
<<\_ACEOF
3663 #define STDC_HEADERS 1
3668 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3669 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3670 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3671 $as_echo_n "(cached) " >&6
3673 cat >conftest.
$ac_ext <<_ACEOF
3676 cat confdefs.h
>>conftest.
$ac_ext
3677 cat >>conftest.
$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <sys/types.h>
3680 #include <sys/wait.h>
3682 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3685 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3693 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3698 rm -f conftest.
$ac_objext
3699 if { (ac_try
="$ac_compile"
3701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3705 $as_echo "$ac_try_echo") >&5
3706 (eval "$ac_compile") 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } && {
3713 test -z "$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3715 } && test -s conftest.$ac_objext; then
3716 ac_cv_header_sys_wait_h=yes
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 ac_cv_header_sys_wait_h=no
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3728 if test $ac_cv_header_sys_wait_h = yes; then
3730 cat >>confdefs.h <<\_ACEOF
3731 #define HAVE_SYS_WAIT_H 1
3737 if test -z "$CFLAGS"; then
3739 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3741 if test "$GCC" = yes; then
3742 gccversion=`"$CC" -dumpversion`
3743 if test "x$gccversion" = "x"; then
3744 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3746 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3747 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3748 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3750 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3751 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3752 CFLAGS="$CFLAGS -fno-strength-reduce"
3757 if test "$cross_compiling" = yes; then
3758 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3759 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3762 test "$GCC" = yes && CPP_MM=M;
3764 if test -f ./toolcheck; then
3765 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3766 $as_echo "$as_me: checking for buggy tools..." >&6;}
3770 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3772 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3773 $as_echo_n "checking for BeOS... " >&6; }
3775 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3776 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3777 $as_echo "yes" >&6; };;
3778 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3779 $as_echo "no" >&6; };;
3782 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3783 $as_echo_n "checking for QNX... " >&6; }
3785 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3786 test -z "$with_x" && with_x=no
3787 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3788 $as_echo "yes" >&6; };;
3789 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3790 $as_echo "no" >&6; };;
3793 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3794 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3795 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3796 { $as_echo "$as_me:$LINENO: result: yes" >&5
3797 $as_echo "yes" >&6; }
3799 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3800 $as_echo_n "checking --disable-darwin argument... " >&6; }
3801 # Check whether --enable-darwin was given.
3802 if test "${enable_darwin+set}" = set; then
3803 enableval=$enable_darwin;
3808 if test "$enable_darwin" = "yes"; then
3809 { $as_echo "$as_me:$LINENO: result: no" >&5
3810 $as_echo "no" >&6; }
3811 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3812 $as_echo_n "checking if Darwin files are there... " >&6; }
3813 if test -f os_macosx.c; then
3814 { $as_echo "$as_me:$LINENO: result: yes" >&5
3815 $as_echo "yes" >&6; }
3817 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3818 $as_echo "no, Darwin support disabled" >&6; }
3822 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3823 $as_echo "yes, Darwin support excluded" >&6; }
3826 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3827 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3829 # Check whether --with-mac-arch was given.
3830 if test "${with_mac_arch+set}" = set; then
3831 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3832 $as_echo "$MACARCH" >&6; }
3834 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3835 $as_echo "defaulting to $MACARCH" >&6; }
3839 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3840 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3842 # Check whether --with-developer-dir was given.
3843 if test "${with_developer_dir+set}" = set; then
3844 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3845 $as_echo "$DEVELOPER_DIR" >&6; }
3847 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3848 $as_echo "not present" >&6; }
3852 if test "x$DEVELOPER_DIR" = "x"; then
3853 # Extract the first word of "xcode-select", so it can be a program name with args.
3854 set dummy xcode-select; ac_word=$2
3855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3858 $as_echo_n "(cached) " >&6
3860 case $XCODE_SELECT in
3862 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3884 if test -n "$XCODE_SELECT"; then
3885 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3886 $as_echo "$XCODE_SELECT" >&6; }
3888 { $as_echo "$as_me:$LINENO: result: no" >&5
3889 $as_echo "no" >&6; }
3893 if test "x$XCODE_SELECT" != "x"; then
3894 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3895 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3896 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3897 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3898 $as_echo "$DEVELOPER_DIR" >&6; }
3900 DEVELOPER_DIR=/Developer
3904 if test "x$MACARCH" = "xboth"; then
3905 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3906 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3907 save_cppflags="$CPPFLAGS"
3908 save_cflags="$CFLAGS"
3909 save_ldflags="$LDFLAGS"
3910 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3926 rm -f conftest.$ac_objext conftest$ac_exeext
3927 if { (ac_try="$ac_link"
3929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3930 *) ac_try_echo
=$ac_try;;
3932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934 (eval "$ac_link") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1
>conftest.err
3938 cat conftest.err
>&5
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest
$ac_exeext && {
3944 test "$cross_compiling" = yes ||
3945 $as_test_x conftest
$ac_exeext
3947 { $as_echo "$as_me:$LINENO: result: found" >&5
3948 $as_echo "found" >&6; }
3950 $as_echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.
$ac_ext >&5
3953 { $as_echo "$as_me:$LINENO: result: not found" >&5
3954 $as_echo "not found" >&6; }
3955 CFLAGS
="$save_cflags"
3956 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3957 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3958 CPPFLAGS
="$CPPFLAGS -arch i386"
3959 LDFLAGS
="$save_ldflags -arch i386"
3960 cat >conftest.
$ac_ext <<_ACEOF
3963 cat confdefs.h
>>conftest.
$ac_ext
3964 cat >>conftest.
$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 rm -f conftest.
$ac_objext conftest
$ac_exeext
3976 if { (ac_try
="$ac_link"
3978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3982 $as_echo "$ac_try_echo") >&5
3983 (eval "$ac_link") 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && {
3990 test -z "$ac_c_werror_flag" ||
3991 test ! -s conftest.err
3992 } && test -s conftest$ac_exeext && {
3993 test "$cross_compiling" = yes ||
3994 $as_test_x conftest$ac_exeext
3996 { $as_echo "$as_me:$LINENO: result: yes" >&5
3997 $as_echo "yes" >&6; }; MACARCH="intel"
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 { $as_echo "$as_me:$LINENO: result: no" >&5
4003 $as_echo "no" >&6; }
4005 CPPFLAGS="$save_cppflags -arch ppc"
4006 LDFLAGS="$save_ldflags -arch ppc"
4009 rm -rf conftest.dSYM
4010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4011 conftest$ac_exeext conftest.$ac_ext
4014 rm -rf conftest.dSYM
4015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4016 conftest$ac_exeext conftest.$ac_ext
4017 elif test "x$MACARCH" = "xintel"; then
4018 CPPFLAGS="$CPPFLAGS -arch intel"
4019 LDFLAGS="$LDFLAGS -arch intel"
4020 elif test "x$MACARCH" = "xppc"; then
4021 CPPFLAGS="$CPPFLAGS -arch ppc"
4022 LDFLAGS="$LDFLAGS -arch ppc"
4025 if test "$enable_darwin" = "yes"; then
4027 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4028 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4029 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4030 if test "x$MACARCH" = "xboth"; then
4031 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4033 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047 inttypes.h stdint.h unistd.h
4049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4051 $as_echo_n "checking for $ac_header... " >&6; }
4052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4053 $as_echo_n "(cached) " >&6
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4063 #include <$ac_header>
4065 rm -f conftest.$ac_objext
4066 if { (ac_try="$ac_compile"
4068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4069 *) ac_try_echo
=$ac_try;;
4071 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4072 $as_echo "$ac_try_echo") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4075 grep -v '^ *+' conftest.er1
>conftest.err
4077 cat conftest.err
>&5
4078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest.
$ac_objext; then
4083 eval "$as_ac_Header=yes"
4085 $as_echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.
$ac_ext >&5
4088 eval "$as_ac_Header=no"
4091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4093 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4094 $as_echo "$as_val"'`
4095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4096 $as_echo "$ac_res" >&6; }
4097 as_val
=`eval 'as_val=${'$as_ac_Header'}
4098 $as_echo "$as_val"'`
4099 if test "x$as_val" = x
""yes; then
4100 cat >>confdefs.h
<<_ACEOF
4101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4109 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4110 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4111 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4113 $as_echo_n "(cached) " >&6
4115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4116 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4118 # Is the header compilable?
4119 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4120 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4121 cat >conftest.
$ac_ext <<_ACEOF
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 $ac_includes_default
4128 #include <Carbon/Carbon.h>
4130 rm -f conftest.
$ac_objext
4131 if { (ac_try
="$ac_compile"
4133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4137 $as_echo "$ac_try_echo") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_header_compiler=yes
4150 $as_echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_header_compiler=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4158 $as_echo "$ac_header_compiler" >&6; }
4160 # Is the header present?
4161 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4162 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169 #include <Carbon/Carbon.h>
4171 if { (ac_try="$ac_cpp conftest.$ac_ext"
4173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4174 *) ac_try_echo
=$ac_try;;
4176 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1
>conftest.err
4182 cat conftest.err
>&5
4183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } >/dev
/null
&& {
4185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4188 ac_header_preproc
=yes
4190 $as_echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.
$ac_ext >&5
4193 ac_header_preproc
=no
4196 rm -f conftest.err conftest.
$ac_ext
4197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4198 $as_echo "$ac_header_preproc" >&6; }
4200 # So? What about this header?
4201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4203 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4204 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4205 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4206 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4207 ac_header_preproc
=yes
4210 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4211 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4212 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4213 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4214 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4215 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4216 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4217 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4218 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4219 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4220 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4221 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4225 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4226 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4227 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4230 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4233 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4236 if test "x$ac_cv_header_Carbon_Carbon_h" = x
""yes; then
4241 if test "x$CARBON" = "xyes"; then
4242 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
4248 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4249 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4253 { $as_echo "$as_me:$LINENO: result: no" >&5
4254 $as_echo "no" >&6; }
4260 if test "$cross_compiling" = no
; then
4261 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4262 $as_echo_n "checking --with-local-dir argument... " >&6; }
4263 have_local_include
=''
4266 # Check whether --with-local-dir was given.
4267 if test "${with_local_dir+set}" = set; then
4268 withval
=$with_local_dir;
4269 local_dir
="$withval"
4273 # avoid adding local dir to LDFLAGS and CPPFLAGS
4277 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4278 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4279 { (exit 1); exit 1; }; } ;;
4281 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4282 $as_echo "$local_dir" >&6; }
4286 local_dir
=/usr
/local
4287 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4288 $as_echo "Defaulting to $local_dir" >&6; }
4292 if test "$GCC" = yes -a "$local_dir" != no
; then
4293 echo 'void f(){}' > conftest.c
4294 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4295 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4296 rm -f conftest.c conftest.o
4298 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4299 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4300 if test "$tt" = "$LDFLAGS"; then
4301 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4304 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4305 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4306 if test "$tt" = "$CPPFLAGS"; then
4307 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4312 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4313 $as_echo_n "checking --with-vim-name argument... " >&6; }
4315 # Check whether --with-vim-name was given.
4316 if test "${with_vim_name+set}" = set; then
4317 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4318 $as_echo "$VIMNAME" >&6; }
4320 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4321 $as_echo "Defaulting to $VIMNAME" >&6; }
4325 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4326 $as_echo_n "checking --with-ex-name argument... " >&6; }
4328 # Check whether --with-ex-name was given.
4329 if test "${with_ex_name+set}" = set; then
4330 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4331 $as_echo "$EXNAME" >&6; }
4333 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4334 $as_echo "Defaulting to ex" >&6; }
4338 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4339 $as_echo_n "checking --with-view-name argument... " >&6; }
4341 # Check whether --with-view-name was given.
4342 if test "${with_view_name+set}" = set; then
4343 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4344 $as_echo "$VIEWNAME" >&6; }
4346 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4347 $as_echo "Defaulting to view" >&6; }
4352 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4353 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4355 # Check whether --with-global-runtime was given.
4356 if test "${with_global_runtime+set}" = set; then
4357 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4358 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4359 #define RUNTIME_GLOBAL "$withval"
4363 { $as_echo "$as_me:$LINENO: result: no" >&5
4364 $as_echo "no" >&6; }
4368 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4369 $as_echo_n "checking --with-modified-by argument... " >&6; }
4371 # Check whether --with-modified-by was given.
4372 if test "${with_modified_by+set}" = set; then
4373 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4374 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4375 #define MODIFIED_BY "$withval"
4379 { $as_echo "$as_me:$LINENO: result: no" >&5
4380 $as_echo "no" >&6; }
4384 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4385 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4386 cat >conftest.
$ac_ext <<_ACEOF
4389 cat confdefs.h
>>conftest.
$ac_ext
4390 cat >>conftest.
$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4396 /* TryCompile function for CharSet.
4397 Treat any failure as ASCII for compatibility with existing art.
4398 Use compile-time rather than run-time tests for cross-compiler
4401 make an error "Character set is not EBCDIC"
4407 rm -f conftest.
$ac_objext
4408 if { (ac_try
="$ac_compile"
4410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4414 $as_echo "$ac_try_echo") >&5
4415 (eval "$ac_compile") 2>conftest.er1
4417 grep -v '^ *+' conftest.er1 >conftest.err
4419 cat conftest.err >&5
4420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } && {
4422 test -z "$ac_c_werror_flag" ||
4423 test ! -s conftest.err
4424 } && test -s conftest.$ac_objext; then
4425 # TryCompile action if true
4428 $as_echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4431 # TryCompile action if false
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436 # end of TryCompile ])
4437 # end of CacheVal CvEbcdic
4438 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4439 $as_echo "$cf_cv_ebcdic" >&6; }
4440 case "$cf_cv_ebcdic" in #(vi
4441 yes) cat >>confdefs.h <<\_ACEOF
4447 *) line_break='"\\012"';;
4451 if test "$cf_cv_ebcdic" = "yes"; then
4452 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4453 $as_echo_n "checking for OS/390 Unix... " >&6; }
4455 OS/390) OS390Unix="yes";
4456 if test "$CC" = "cc"; then
4460 if test "$CC" = "c89"; then
4467 if test "$ccm" != "1"; then
4469 echo "------------------------------------------"
4470 echo " On OS/390 Unix, the environment variable"
4471 echo " __CC_${ccn}MODE must be set to \"1\"!"
4473 echo " export _CC_${ccn}MODE=1"
4474 echo " and then call configure again."
4475 echo "------------------------------------------"
4478 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4479 { $as_echo "$as_me:$LINENO: result: yes" >&5
4480 $as_echo "yes" >&6; }
4483 { $as_echo "$as_me:$LINENO: result: no" >&5
4484 $as_echo "no" >&6; }
4489 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4490 $as_echo_n "checking --disable-selinux argument... " >&6; }
4491 # Check whether --enable-selinux was given.
4492 if test "${enable_selinux+set}" = set; then
4493 enableval=$enable_selinux;
4495 enable_selinux="yes"
4498 if test "$enable_selinux" = "yes"; then
4499 { $as_echo "$as_me:$LINENO: result: no" >&5
4500 $as_echo "no" >&6; }
4501 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4502 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4503 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4506 ac_check_lib_save_LIBS=$LIBS
4507 LIBS="-lselinux $LIBS"
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4515 /* Override any GCC internal prototype to avoid an error.
4516 Use char because int might match the return type of a GCC
4517 builtin and then its argument prototype would still apply. */
4521 char is_selinux_enabled ();
4525 return is_selinux_enabled ();
4530 rm -f conftest.$ac_objext conftest$ac_exeext
4531 if { (ac_try="$ac_link"
4533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4534 *) ac_try_echo
=$ac_try;;
4536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4537 $as_echo "$ac_try_echo") >&5
4538 (eval "$ac_link") 2>conftest.er1
4540 grep -v '^ *+' conftest.er1
>conftest.err
4542 cat conftest.err
>&5
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); } && {
4545 test -z "$ac_c_werror_flag" ||
4546 test ! -s conftest.err
4547 } && test -s conftest
$ac_exeext && {
4548 test "$cross_compiling" = yes ||
4549 $as_test_x conftest
$ac_exeext
4551 ac_cv_lib_selinux_is_selinux_enabled
=yes
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.
$ac_ext >&5
4556 ac_cv_lib_selinux_is_selinux_enabled
=no
4559 rm -rf conftest.dSYM
4560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4561 conftest
$ac_exeext conftest.
$ac_ext
4562 LIBS
=$ac_check_lib_save_LIBS
4564 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4565 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4566 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
4567 LIBS
="$LIBS -lselinux"
4568 cat >>confdefs.h
<<\_ACEOF
4569 #define HAVE_SELINUX 1
4575 { $as_echo "$as_me:$LINENO: result: yes" >&5
4576 $as_echo "yes" >&6; }
4580 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4581 $as_echo_n "checking --with-features argument... " >&6; }
4583 # Check whether --with-features was given.
4584 if test "${with_features+set}" = set; then
4585 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4586 $as_echo "$features" >&6; }
4588 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4589 $as_echo "Defaulting to normal" >&6; }
4596 tiny
) cat >>confdefs.h
<<\_ACEOF
4600 small
) cat >>confdefs.h
<<\_ACEOF
4601 #define FEAT_SMALL 1
4604 normal
) cat >>confdefs.h
<<\_ACEOF
4605 #define FEAT_NORMAL 1
4607 dovimdiff
="installvimdiff";
4608 dogvimdiff
="installgvimdiff" ;;
4609 big
) cat >>confdefs.h
<<\_ACEOF
4612 dovimdiff
="installvimdiff";
4613 dogvimdiff
="installgvimdiff" ;;
4614 huge
) cat >>confdefs.h
<<\_ACEOF
4617 dovimdiff
="installvimdiff";
4618 dogvimdiff
="installgvimdiff" ;;
4619 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4620 $as_echo "Sorry, $features is not supported" >&6; } ;;
4626 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4627 $as_echo_n "checking --with-compiledby argument... " >&6; }
4629 # Check whether --with-compiledby was given.
4630 if test "${with_compiledby+set}" = set; then
4631 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4632 $as_echo "$withval" >&6; }
4634 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4635 $as_echo "no" >&6; }
4640 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4641 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4642 # Check whether --enable-xsmp was given.
4643 if test "${enable_xsmp+set}" = set; then
4644 enableval
=$enable_xsmp;
4650 if test "$enable_xsmp" = "yes"; then
4651 { $as_echo "$as_me:$LINENO: result: no" >&5
4652 $as_echo "no" >&6; }
4653 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4654 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4655 # Check whether --enable-xsmp-interact was given.
4656 if test "${enable_xsmp_interact+set}" = set; then
4657 enableval
=$enable_xsmp_interact;
4659 enable_xsmp_interact
="yes"
4662 if test "$enable_xsmp_interact" = "yes"; then
4663 { $as_echo "$as_me:$LINENO: result: no" >&5
4664 $as_echo "no" >&6; }
4665 cat >>confdefs.h
<<\_ACEOF
4666 #define USE_XSMP_INTERACT 1
4670 { $as_echo "$as_me:$LINENO: result: yes" >&5
4671 $as_echo "yes" >&6; }
4674 { $as_echo "$as_me:$LINENO: result: yes" >&5
4675 $as_echo "yes" >&6; }
4678 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4679 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4680 # Check whether --enable-mzschemeinterp was given.
4681 if test "${enable_mzschemeinterp+set}" = set; then
4682 enableval
=$enable_mzschemeinterp;
4684 enable_mzschemeinterp
="no"
4687 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4688 $as_echo "$enable_mzschemeinterp" >&6; }
4690 if test "$enable_mzschemeinterp" = "yes"; then
4693 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4694 $as_echo_n "checking --with-plthome argument... " >&6; }
4696 # Check whether --with-plthome was given.
4697 if test "${with_plthome+set}" = set; then
4698 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4699 $as_echo "$with_plthome" >&6; }
4701 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4702 $as_echo "\"no\"" >&6; }
4706 if test "X$with_plthome" != "X"; then
4707 vi_cv_path_mzscheme_pfx
="$with_plthome"
4709 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4710 $as_echo_n "checking PLTHOME environment var... " >&6; }
4711 if test "X$PLTHOME" != "X"; then
4712 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4713 $as_echo "\"$PLTHOME\"" >&6; }
4714 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4716 { $as_echo "$as_me:$LINENO: result: not set" >&5
4717 $as_echo "not set" >&6; }
4718 # Extract the first word of "mzscheme", so it can be a program name with args.
4719 set dummy mzscheme
; ac_word
=$2
4720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4723 $as_echo_n "(cached) " >&6
4725 case $vi_cv_path_mzscheme in
4727 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir
=.
4735 for ac_exec_ext
in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4749 if test -n "$vi_cv_path_mzscheme"; then
4750 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4751 $as_echo "$vi_cv_path_mzscheme" >&6; }
4753 { $as_echo "$as_me:$LINENO: result: no" >&5
4754 $as_echo "no" >&6; }
4759 if test "X$vi_cv_path_mzscheme" != "X"; then
4760 lsout
=`ls -l $vi_cv_path_mzscheme`
4761 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4762 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4766 if test "X$vi_cv_path_mzscheme" != "X"; then
4767 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4768 $as_echo_n "checking MzScheme install prefix... " >&6; }
4769 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4770 $as_echo_n "(cached) " >&6
4772 echo "(display (simplify-path \
4773 (build-path (call-with-values \
4774 (lambda () (split-path (find-system-path (quote exec-file)))) \
4775 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4776 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4779 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4780 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4787 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4788 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4789 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4790 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4791 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4792 { $as_echo "$as_me:$LINENO: result: yes" >&5
4793 $as_echo "yes" >&6; }
4795 { $as_echo "$as_me:$LINENO: result: no" >&5
4796 $as_echo "no" >&6; }
4797 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4798 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4799 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4800 { $as_echo "$as_me:$LINENO: result: yes" >&5
4801 $as_echo "yes" >&6; }
4802 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4804 { $as_echo "$as_me:$LINENO: result: no" >&5
4805 $as_echo "no" >&6; }
4806 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4807 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4808 if test -f /usr
/include
/plt
/scheme.h
; then
4809 { $as_echo "$as_me:$LINENO: result: yes" >&5
4810 $as_echo "yes" >&6; }
4811 SCHEME_INC
=/usr
/include
/plt
4813 { $as_echo "$as_me:$LINENO: result: no" >&5
4814 $as_echo "no" >&6; }
4815 vi_cv_path_mzscheme_pfx
=
4821 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4822 if test "x$MACOSX" = "xyes"; then
4823 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4824 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4825 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4826 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4827 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4828 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4830 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4831 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4832 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4834 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4836 if test "$GCC" = yes; then
4837 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4838 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4839 uname
-r |
grep '^5' >/dev
/null
; then
4840 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4843 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4844 SCHEME_COLLECTS
=lib
/plt
/
4846 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4847 MZSCHEME_EXTRA
="mzscheme_base.c"
4848 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4849 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4851 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4852 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4853 MZSCHEME_SRC
="if_mzsch.c"
4854 MZSCHEME_OBJ
="objects/if_mzsch.o"
4855 MZSCHEME_PRO
="if_mzsch.pro"
4856 cat >>confdefs.h
<<\_ACEOF
4857 #define FEAT_MZSCHEME 1
4871 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4872 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4873 # Check whether --enable-perlinterp was given.
4874 if test "${enable_perlinterp+set}" = set; then
4875 enableval
=$enable_perlinterp;
4877 enable_perlinterp
="no"
4880 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4881 $as_echo "$enable_perlinterp" >&6; }
4882 if test "$enable_perlinterp" = "yes"; then
4884 # Extract the first word of "perl", so it can be a program name with args.
4885 set dummy perl
; ac_word
=$2
4886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4889 $as_echo_n "(cached) " >&6
4891 case $vi_cv_path_perl in
4893 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir
=.
4901 for ac_exec_ext
in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4915 if test -n "$vi_cv_path_perl"; then
4916 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4917 $as_echo "$vi_cv_path_perl" >&6; }
4919 { $as_echo "$as_me:$LINENO: result: no" >&5
4920 $as_echo "no" >&6; }
4924 if test "X$vi_cv_path_perl" != "X"; then
4925 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4926 $as_echo_n "checking Perl version... " >&6; }
4927 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4928 eval `$vi_cv_path_perl -V:usethreads`
4929 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4932 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4933 eval `$vi_cv_path_perl -V:use5005threads`
4934 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4938 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4939 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4943 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4944 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4947 if test $badthreads = no
; then
4948 { $as_echo "$as_me:$LINENO: result: OK" >&5
4949 $as_echo "OK" >&6; }
4950 eval `$vi_cv_path_perl -V:shrpenv`
4951 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4954 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4956 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4957 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4958 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4959 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4960 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4961 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4962 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4964 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4965 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4968 ldflags_save
=$LDFLAGS
4969 CFLAGS
="$CFLAGS $perlcppflags"
4970 LIBS
="$LIBS $perllibs"
4971 LDFLAGS
="$perlldflags $LDFLAGS"
4972 cat >conftest.
$ac_ext <<_ACEOF
4975 cat confdefs.h
>>conftest.
$ac_ext
4976 cat >>conftest.
$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4987 rm -f conftest.
$ac_objext conftest
$ac_exeext
4988 if { (ac_try
="$ac_link"
4990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4994 $as_echo "$ac_try_echo") >&5
4995 (eval "$ac_link") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest$ac_exeext && {
5005 test "$cross_compiling" = yes ||
5006 $as_test_x conftest$ac_exeext
5008 { $as_echo "$as_me:$LINENO: result: yes" >&5
5009 $as_echo "yes" >&6; }; perl_ok=yes
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5015 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5018 rm -rf conftest.dSYM
5019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5020 conftest$ac_exeext conftest.$ac_ext
5023 LDFLAGS=$ldflags_save
5024 if test $perl_ok = yes; then
5025 if test "X$perlcppflags" != "X"; then
5026 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5028 if test "X$perlldflags" != "X"; then
5029 LDFLAGS="$perlldflags $LDFLAGS"
5032 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5033 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5034 PERL_PRO="if_perl.pro if_perlsfio.pro"
5035 cat >>confdefs.h <<\_ACEOF
5042 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5043 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5047 if test "x$MACOSX" = "xyes"; then
5048 dir=/System/Library/Perl
5049 darwindir=$dir/darwin
5050 if test -d $darwindir; then
5053 dir=/System/Library/Perl/5.8.1
5054 darwindir=$dir/darwin-thread-multi-2level
5055 if test -d $darwindir; then
5059 if test -n "$PERL"; then
5061 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5062 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5063 PERL_LIBS="-L$darwindir/CORE -lperl"
5074 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5075 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5076 # Check whether --enable-pythoninterp was given.
5077 if test "${enable_pythoninterp+set}" = set; then
5078 enableval=$enable_pythoninterp;
5080 enable_pythoninterp="no"
5083 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5084 $as_echo "$enable_pythoninterp" >&6; }
5085 if test "$enable_pythoninterp" = "yes"; then
5086 # Extract the first word of "python", so it can be a program name with args.
5087 set dummy python; ac_word=$2
5088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5091 $as_echo_n "(cached) " >&6
5093 case $vi_cv_path_python in
5095 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5117 if test -n "$vi_cv_path_python"; then
5118 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5119 $as_echo "$vi_cv_path_python" >&6; }
5121 { $as_echo "$as_me:$LINENO: result: no" >&5
5122 $as_echo "no" >&6; }
5126 if test "X$vi_cv_path_python" != "X"; then
5128 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5129 $as_echo_n "checking Python version... " >&6; }
5130 if test "${vi_cv_var_python_version+set}" = set; then
5131 $as_echo_n "(cached) " >&6
5133 vi_cv_var_python_version=`
5134 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5137 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5138 $as_echo "$vi_cv_var_python_version" >&6; }
5140 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5141 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5142 if ${vi_cv_path_python} -c \
5143 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5145 { $as_echo "$as_me:$LINENO: result: yep" >&5
5146 $as_echo "yep" >&6; }
5148 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5149 $as_echo_n "checking Python's install prefix... " >&6; }
5150 if test "${vi_cv_path_python_pfx+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5153 vi_cv_path_python_pfx=`
5154 ${vi_cv_path_python} -c \
5155 "import sys; print sys.prefix"`
5157 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5158 $as_echo "$vi_cv_path_python_pfx" >&6; }
5160 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5161 $as_echo_n "checking Python's execution prefix... " >&6; }
5162 if test "${vi_cv_path_python_epfx+set}" = set; then
5163 $as_echo_n "(cached) " >&6
5165 vi_cv_path_python_epfx=`
5166 ${vi_cv_path_python} -c \
5167 "import sys; print sys.exec_prefix"`
5169 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5170 $as_echo "$vi_cv_path_python_epfx" >&6; }
5173 if test "${vi_cv_path_pythonpath+set}" = set; then
5174 $as_echo_n "(cached) " >&6
5176 vi_cv_path_pythonpath=`
5178 ${vi_cv_path_python} -c \
5179 "import sys, string; print string.join(sys.path,':')"`
5185 # Check whether --with-python-config-dir was given.
5186 if test "${with_python_config_dir+set}" = set; then
5187 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5191 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5192 $as_echo_n "checking Python's configuration directory... " >&6; }
5193 if test "${vi_cv_path_python_conf+set}" = set; then
5194 $as_echo_n "(cached) " >&6
5197 vi_cv_path_python_conf=
5198 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5199 for subdir in lib64 lib share; do
5200 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5201 if test -d "$d" && test -f "$d/config.c"; then
5202 vi_cv_path_python_conf="$d"
5208 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5209 $as_echo "$vi_cv_path_python_conf" >&6; }
5211 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5213 if test "X$PYTHON_CONFDIR" = "X"; then
5214 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5215 $as_echo "can't find it!" >&6; }
5218 if test "${vi_cv_path_python_plibs+set}" = set; then
5219 $as_echo_n "(cached) " >&6
5223 tmp_mkf="$pwd/config-PyMake$$"
5224 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5226 @echo "python_MODLIBS='$(MODLIBS)'"
5227 @echo "python_LIBS='$(LIBS)'"
5228 @echo "python_SYSLIBS='$(SYSLIBS)'"
5229 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5231 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5232 rm -f -- "${tmp_mkf}"
5233 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5234 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5235 vi_cv_path_python_plibs="-framework Python"
5237 if test "${vi_cv_var_python_version}" = "1.4"; then
5238 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5240 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5242 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5243 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5249 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5250 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5251 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5253 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}"
5255 PYTHON_SRC="if_python.c"
5256 if test "x$MACOSX" = "xyes"; then
5257 PYTHON_OBJ="objects/if_python.o"
5259 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5261 if test "${vi_cv_var_python_version}" = "1.4"; then
5262 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5264 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5266 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5267 $as_echo_n "checking if -pthread should be used... " >&6; }
5270 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5271 test "$GCC" = yes && threadsafe_flag="-pthread"
5272 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5273 threadsafe_flag="-D_THREAD_SAFE"
5274 thread_lib="-pthread"
5278 if test -n "$threadsafe_flag"; then
5280 CFLAGS="$CFLAGS $threadsafe_flag"
5281 LIBS="$LIBS $thread_lib"
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5297 rm -f conftest.$ac_objext conftest$ac_exeext
5298 if { (ac_try="$ac_link"
5300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5301 *) ac_try_echo
=$ac_try;;
5303 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5304 $as_echo "$ac_try_echo") >&5
5305 (eval "$ac_link") 2>conftest.er1
5307 grep -v '^ *+' conftest.er1
>conftest.err
5309 cat conftest.err
>&5
5310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_c_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest
$ac_exeext && {
5315 test "$cross_compiling" = yes ||
5316 $as_test_x conftest
$ac_exeext
5318 { $as_echo "$as_me:$LINENO: result: yes" >&5
5319 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5321 $as_echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.
$ac_ext >&5
5324 { $as_echo "$as_me:$LINENO: result: no" >&5
5325 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5329 rm -rf conftest.dSYM
5330 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5331 conftest
$ac_exeext conftest.
$ac_ext
5334 { $as_echo "$as_me:$LINENO: result: no" >&5
5335 $as_echo "no" >&6; }
5338 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5339 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5342 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5343 LIBS
="$LIBS $PYTHON_LIBS"
5344 cat >conftest.
$ac_ext <<_ACEOF
5347 cat confdefs.h
>>conftest.
$ac_ext
5348 cat >>conftest.
$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5359 rm -f conftest.
$ac_objext conftest
$ac_exeext
5360 if { (ac_try
="$ac_link"
5362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5366 $as_echo "$ac_try_echo") >&5
5367 (eval "$ac_link") 2>conftest.er1
5369 grep -v '^ *+' conftest.er1 >conftest.err
5371 cat conftest.err >&5
5372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && {
5374 test -z "$ac_c_werror_flag" ||
5375 test ! -s conftest.err
5376 } && test -s conftest$ac_exeext && {
5377 test "$cross_compiling" = yes ||
5378 $as_test_x conftest$ac_exeext
5380 { $as_echo "$as_me:$LINENO: result: yes" >&5
5381 $as_echo "yes" >&6; }; python_ok=yes
5383 $as_echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5386 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5387 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5390 rm -rf conftest.dSYM
5391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5392 conftest$ac_exeext conftest.$ac_ext
5395 if test $python_ok = yes; then
5396 cat >>confdefs.h <<\_ACEOF
5397 #define FEAT_PYTHON 1
5410 { $as_echo "$as_me:$LINENO: result: too old" >&5
5411 $as_echo "too old" >&6; }
5422 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5423 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5424 # Check whether --enable-tclinterp was given.
5425 if test "${enable_tclinterp+set}" = set; then
5426 enableval=$enable_tclinterp;
5428 enable_tclinterp="no"
5431 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5432 $as_echo "$enable_tclinterp" >&6; }
5434 if test "$enable_tclinterp" = "yes"; then
5436 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5437 $as_echo_n "checking --with-tclsh argument... " >&6; }
5439 # Check whether --with-tclsh was given.
5440 if test "${with_tclsh+set}" = set; then
5441 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5442 $as_echo "$tclsh_name" >&6; }
5444 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5445 $as_echo "no" >&6; }
5448 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5449 set dummy $tclsh_name; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5455 case $vi_cv_path_tcl in
5457 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5479 if test -n "$vi_cv_path_tcl"; then
5480 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5481 $as_echo "$vi_cv_path_tcl" >&6; }
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484 $as_echo "no" >&6; }
5490 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5491 tclsh_name="tclsh8.4"
5492 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5493 set dummy $tclsh_name; ac_word=$2
5494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5497 $as_echo_n "(cached) " >&6
5499 case $vi_cv_path_tcl in
5501 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5523 if test -n "$vi_cv_path_tcl"; then
5524 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5525 $as_echo "$vi_cv_path_tcl" >&6; }
5527 { $as_echo "$as_me:$LINENO: result: no" >&5
5528 $as_echo "no" >&6; }
5533 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5534 tclsh_name="tclsh8.2"
5535 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5536 set dummy $tclsh_name; ac_word=$2
5537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5540 $as_echo_n "(cached) " >&6
5542 case $vi_cv_path_tcl in
5544 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5566 if test -n "$vi_cv_path_tcl"; then
5567 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5568 $as_echo "$vi_cv_path_tcl" >&6; }
5570 { $as_echo "$as_me:$LINENO: result: no" >&5
5571 $as_echo "no" >&6; }
5576 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5577 tclsh_name="tclsh8.0"
5578 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5579 set dummy $tclsh_name; ac_word=$2
5580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5583 $as_echo_n "(cached) " >&6
5585 case $vi_cv_path_tcl in
5587 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5609 if test -n "$vi_cv_path_tcl"; then
5610 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5611 $as_echo "$vi_cv_path_tcl" >&6; }
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5619 if test "X$vi_cv_path_tcl" = "X"; then
5621 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5622 set dummy $tclsh_name; ac_word=$2
5623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5626 $as_echo_n "(cached) " >&6
5628 case $vi_cv_path_tcl in
5630 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5652 if test -n "$vi_cv_path_tcl"; then
5653 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5654 $as_echo "$vi_cv_path_tcl" >&6; }
5656 { $as_echo "$as_me:$LINENO: result: no" >&5
5657 $as_echo "no" >&6; }
5662 if test "X$vi_cv_path_tcl" != "X"; then
5663 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5664 $as_echo_n "checking Tcl version... " >&6; }
5665 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5666 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5667 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5668 $as_echo "$tclver - OK" >&6; };
5669 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 -`
5671 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5672 $as_echo_n "checking for location of Tcl include... " >&6; }
5673 if test "x$MACOSX" != "xyes"; then
5674 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5676 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5679 for try in $tclinc; do
5680 if test -f "$try/tcl.h"; then
5681 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5682 $as_echo "$try/tcl.h" >&6; }
5687 if test -z "$TCL_INC"; then
5688 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5689 $as_echo "<not found>" >&6; }
5692 if test -z "$SKIP_TCL"; then
5693 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5694 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5695 if test "x$MACOSX" != "xyes"; then
5696 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5697 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5699 tclcnf="/System/Library/Frameworks/Tcl.framework"
5701 for try in $tclcnf; do
5702 if test -f $try/tclConfig.sh; then
5703 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5704 $as_echo "$try/tclConfig.sh" >&6; }
5706 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5707 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'`
5711 if test -z "$TCL_LIBS"; then
5712 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5713 $as_echo "<not found>" >&6; }
5714 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5715 $as_echo_n "checking for Tcl library by myself... " >&6; }
5716 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5717 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5718 for ext in .so .a ; do
5719 for ver in "" $tclver ; do
5720 for try in $tcllib ; do
5722 if test -f $try/lib$trylib ; then
5723 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5724 $as_echo "$try/lib$trylib" >&6; }
5725 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5726 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5727 uname -r | grep '^5' >/dev/null; then
5728 TCL_LIBS="$TCL_LIBS -R $try"
5735 if test -z "$TCL_LIBS"; then
5736 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5737 $as_echo "<not found>" >&6; }
5741 if test -z "$SKIP_TCL"; then
5742 cat >>confdefs.h <<\_ACEOF
5747 TCL_OBJ=objects/if_tcl.o
5749 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5753 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5754 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5764 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5765 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5766 # Check whether --enable-rubyinterp was given.
5767 if test "${enable_rubyinterp+set}" = set; then
5768 enableval=$enable_rubyinterp;
5770 enable_rubyinterp="no"
5773 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5774 $as_echo "$enable_rubyinterp" >&6; }
5775 if test "$enable_rubyinterp" = "yes"; then
5776 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5777 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5779 # Check whether --with-ruby-command was given.
5780 if test "${with_ruby_command+set}" = set; then
5781 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5782 $as_echo "$RUBY_CMD" >&6; }
5784 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5785 $as_echo "defaulting to $RUBY_CMD" >&6; }
5789 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5790 set dummy $RUBY_CMD; ac_word=$2
5791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5794 $as_echo_n "(cached) " >&6
5796 case $vi_cv_path_ruby in
5798 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5820 if test -n "$vi_cv_path_ruby"; then
5821 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5822 $as_echo "$vi_cv_path_ruby" >&6; }
5824 { $as_echo "$as_me:$LINENO: result: no" >&5
5825 $as_echo "no" >&6; }
5829 if test "X$vi_cv_path_ruby" != "X"; then
5830 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5831 $as_echo_n "checking Ruby version... " >&6; }
5832 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5833 { $as_echo "$as_me:$LINENO: result: OK" >&5
5834 $as_echo "OK" >&6; }
5835 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5836 $as_echo_n "checking Ruby header files... " >&6; }
5837 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5838 if test "X$rubyhdrdir" != "X"; then
5839 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5840 $as_echo "$rubyhdrdir" >&6; }
5841 RUBY_CFLAGS="-I$rubyhdrdir"
5842 rubyarch=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["arch"]'`
5843 if test -d "$rubyhdrdir/$rubyarch"; then
5844 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5846 rubyversion=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5847 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5848 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5849 if test "X$rubylibs" != "X"; then
5850 RUBY_LIBS="$rubylibs"
5852 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5853 if test -f "$rubyhdrdir/$librubyarg"; then
5854 librubyarg="$rubyhdrdir/$librubyarg"
5856 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5857 if test -f "$rubylibdir/$librubyarg"; then
5858 librubyarg="$rubylibdir/$librubyarg"
5859 elif test "$librubyarg" = "libruby.a"; then
5862 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5866 if test "X$librubyarg" != "X"; then
5867 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5869 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5870 if test "X$rubyldflags" != "X"; then
5871 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5872 if test "X$rubyldflags" != "X"; then
5873 LDFLAGS="$rubyldflags $LDFLAGS"
5876 RUBY_SRC="if_ruby.c"
5877 RUBY_OBJ="objects/if_ruby.o"
5878 RUBY_PRO="if_ruby.pro"
5879 cat >>confdefs.h <<\_ACEOF
5884 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5885 $as_echo "not found; disabling Ruby" >&6; }
5888 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5889 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5899 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5900 $as_echo_n "checking --enable-cscope argument... " >&6; }
5901 # Check whether --enable-cscope was given.
5902 if test "${enable_cscope+set}" = set; then
5903 enableval=$enable_cscope;
5908 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5909 $as_echo "$enable_cscope" >&6; }
5910 if test "$enable_cscope" = "yes"; then
5911 cat >>confdefs.h <<\_ACEOF
5912 #define FEAT_CSCOPE 1
5917 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5918 $as_echo_n "checking --enable-workshop argument... " >&6; }
5919 # Check whether --enable-workshop was given.
5920 if test "${enable_workshop+set}" = set; then
5921 enableval=$enable_workshop;
5923 enable_workshop="no"
5926 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5927 $as_echo "$enable_workshop" >&6; }
5928 if test "$enable_workshop" = "yes"; then
5929 cat >>confdefs.h <<\_ACEOF
5930 #define FEAT_SUN_WORKSHOP 1
5933 WORKSHOP_SRC="workshop.c integration.c"
5935 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5937 if test "${enable_gui-xxx}" = xxx; then
5942 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5943 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5944 # Check whether --enable-netbeans was given.
5945 if test "${enable_netbeans+set}" = set; then
5946 enableval=$enable_netbeans;
5948 enable_netbeans="yes"
5951 if test "$enable_netbeans" = "yes"; then
5952 { $as_echo "$as_me:$LINENO: result: no" >&5
5953 $as_echo "no" >&6; }
5955 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5956 $as_echo_n "checking for socket in -lsocket... " >&6; }
5957 if test "${ac_cv_lib_socket_socket+set}" = set; then
5958 $as_echo_n "(cached) " >&6
5960 ac_check_lib_save_LIBS=$LIBS
5961 LIBS="-lsocket $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. */
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 ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992 (eval "$ac_link") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1
>conftest.err
5996 cat conftest.err
>&5
5997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest
$ac_exeext && {
6002 test "$cross_compiling" = yes ||
6003 $as_test_x conftest
$ac_exeext
6005 ac_cv_lib_socket_socket
=yes
6007 $as_echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.
$ac_ext >&5
6010 ac_cv_lib_socket_socket
=no
6013 rm -rf conftest.dSYM
6014 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6015 conftest
$ac_exeext conftest.
$ac_ext
6016 LIBS
=$ac_check_lib_save_LIBS
6018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6019 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6020 if test "x$ac_cv_lib_socket_socket" = x
""yes; then
6021 cat >>confdefs.h
<<_ACEOF
6022 #define HAVE_LIBSOCKET 1
6025 LIBS
="-lsocket $LIBS"
6030 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6031 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6032 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6033 $as_echo_n "(cached) " >&6
6035 ac_check_lib_save_LIBS
=$LIBS
6037 cat >conftest.
$ac_ext <<_ACEOF
6040 cat confdefs.h
>>conftest.
$ac_ext
6041 cat >>conftest.
$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 /* Override any GCC internal prototype to avoid an error.
6045 Use char because int might match the return type of a GCC
6046 builtin and then its argument prototype would still apply. */
6050 char gethostbyname ();
6054 return gethostbyname ();
6059 rm -f conftest.
$ac_objext conftest
$ac_exeext
6060 if { (ac_try
="$ac_link"
6062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6066 $as_echo "$ac_try_echo") >&5
6067 (eval "$ac_link") 2>conftest.er1
6069 grep -v '^ *+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest$ac_exeext && {
6077 test "$cross_compiling" = yes ||
6078 $as_test_x conftest$ac_exeext
6080 ac_cv_lib_nsl_gethostbyname=yes
6082 $as_echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 ac_cv_lib_nsl_gethostbyname=no
6088 rm -rf conftest.dSYM
6089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6090 conftest$ac_exeext conftest.$ac_ext
6091 LIBS=$ac_check_lib_save_LIBS
6093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6094 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6095 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6096 cat >>confdefs.h <<_ACEOF
6097 #define HAVE_LIBNSL 1
6104 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6105 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6118 #include <netinet/in.h>
6120 #include <sys/types.h>
6121 #include <sys/socket.h>
6122 /* Check bitfields */
6124 unsigned int initDone:1;
6132 /* Check creating a socket. */
6133 struct sockaddr_in server;
6134 (void)socket(AF_INET, SOCK_STREAM, 0);
6136 (void)gethostbyname("microsoft.com");
6137 if (errno == ECONNREFUSED)
6138 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6144 rm -f conftest.$ac_objext conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6148 *) ac_try_echo
=$ac_try;;
6150 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1
>conftest.err
6156 cat conftest.err
>&5
6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && {
6159 test -z "$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6161 } && test -s conftest
$ac_exeext && {
6162 test "$cross_compiling" = yes ||
6163 $as_test_x conftest
$ac_exeext
6165 { $as_echo "$as_me:$LINENO: result: yes" >&5
6166 $as_echo "yes" >&6; }
6168 $as_echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.
$ac_ext >&5
6171 { $as_echo "$as_me:$LINENO: result: no" >&5
6172 $as_echo "no" >&6; }; enable_netbeans
="no"
6175 rm -rf conftest.dSYM
6176 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6177 conftest
$ac_exeext conftest.
$ac_ext
6179 { $as_echo "$as_me:$LINENO: result: yes" >&5
6180 $as_echo "yes" >&6; }
6182 if test "$enable_netbeans" = "yes"; then
6183 cat >>confdefs.h
<<\_ACEOF
6184 #define FEAT_NETBEANS_INTG 1
6187 NETBEANS_SRC
="netbeans.c"
6189 NETBEANS_OBJ
="objects/netbeans.o"
6193 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6194 $as_echo_n "checking --enable-sniff argument... " >&6; }
6195 # Check whether --enable-sniff was given.
6196 if test "${enable_sniff+set}" = set; then
6197 enableval
=$enable_sniff;
6202 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6203 $as_echo "$enable_sniff" >&6; }
6204 if test "$enable_sniff" = "yes"; then
6205 cat >>confdefs.h
<<\_ACEOF
6206 #define FEAT_SNIFF 1
6209 SNIFF_SRC
="if_sniff.c"
6211 SNIFF_OBJ
="objects/if_sniff.o"
6215 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6216 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6217 # Check whether --enable-multibyte was given.
6218 if test "${enable_multibyte+set}" = set; then
6219 enableval
=$enable_multibyte;
6221 enable_multibyte
="no"
6224 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6225 $as_echo "$enable_multibyte" >&6; }
6226 if test "$enable_multibyte" = "yes"; then
6227 cat >>confdefs.h
<<\_ACEOF
6228 #define FEAT_MBYTE 1
6233 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6234 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6235 # Check whether --enable-hangulinput was given.
6236 if test "${enable_hangulinput+set}" = set; then
6237 enableval
=$enable_hangulinput;
6239 enable_hangulinput
="no"
6242 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6243 $as_echo "$enable_hangulinput" >&6; }
6245 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6246 $as_echo_n "checking --enable-xim argument... " >&6; }
6247 # Check whether --enable-xim was given.
6248 if test "${enable_xim+set}" = set; then
6249 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6250 $as_echo "$enable_xim" >&6; }
6252 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6253 $as_echo "defaulting to auto" >&6; }
6257 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6258 $as_echo_n "checking --enable-fontset argument... " >&6; }
6259 # Check whether --enable-fontset was given.
6260 if test "${enable_fontset+set}" = set; then
6261 enableval
=$enable_fontset;
6266 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6267 $as_echo "$enable_fontset" >&6; }
6269 test -z "$with_x" && with_x
=yes
6270 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6271 if test "$with_x" = no
; then
6272 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6273 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6276 # Extract the first word of "xmkmf", so it can be a program name with args.
6277 set dummy xmkmf
; ac_word
=$2
6278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 $as_echo_n "checking for $ac_word... " >&6; }
6280 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6281 $as_echo_n "(cached) " >&6
6285 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir
=.
6293 for ac_exec_ext
in '' $ac_executable_extensions; do
6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 xmkmfpath
=$ac_cv_path_xmkmfpath
6307 if test -n "$xmkmfpath"; then
6308 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6309 $as_echo "$xmkmfpath" >&6; }
6311 { $as_echo "$as_me:$LINENO: result: no" >&5
6312 $as_echo "no" >&6; }
6317 { $as_echo "$as_me:$LINENO: checking for X" >&5
6318 $as_echo_n "checking for X... " >&6; }
6321 # Check whether --with-x was given.
6322 if test "${with_x+set}" = set; then
6326 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6327 if test "x$with_x" = xno
; then
6328 # The user explicitly disabled X.
6331 case $x_includes,$x_libraries in #(
6332 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6333 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6334 { (exit 1); exit 1; }; };; #(
6335 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6336 $as_echo_n "(cached) " >&6
6338 # One or both of the vars are not set, and there is no cached value.
6339 ac_x_includes
=no ac_x_libraries
=no
6340 rm -f -r conftest.dir
6341 if mkdir conftest.dir
; then
6343 cat >Imakefile
<<'_ACEOF'
6345 @echo incroot='${INCROOT}'
6347 @echo usrlibdir='${USRLIBDIR}'
6349 @echo libdir='${LIBDIR}'
6351 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6352 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6353 for ac_var
in incroot usrlibdir libdir
; do
6354 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6356 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6357 for ac_extension
in a so sl dylib la dll
; do
6358 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6359 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6360 ac_im_usrlibdir
=$ac_im_libdir; break
6363 # Screen out bogus values from the imake configuration. They are
6364 # bogus both because they are the default anyway, and because
6365 # using them would break gcc on systems where it needs fixed includes.
6366 case $ac_im_incroot in
6367 /usr
/include
) ac_x_includes
= ;;
6368 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6370 case $ac_im_usrlibdir in
6371 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6372 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6376 rm -f -r conftest.dir
6379 # Standard set of common directories for X headers.
6380 # Check X11 before X11Rn because it is often a symlink to the current release.
6392 /usr/local/X11/include
6393 /usr/local/X11R6/include
6394 /usr/local/X11R5/include
6395 /usr/local/X11R4/include
6397 /usr/local/include/X11
6398 /usr/local/include/X11R6
6399 /usr/local/include/X11R5
6400 /usr/local/include/X11R4
6404 /usr/XFree86/include/X11
6408 /usr/unsupported/include
6410 /usr/local/x11r5/include
6411 /usr/lpp/Xamples/include
6413 /usr/openwin/include
6414 /usr/openwin/share/include'
6416 if test "$ac_x_includes" = no
; then
6417 # Guess where to find include files, by looking for Xlib.h.
6418 # First, try using that file with no special directory specified.
6419 cat >conftest.
$ac_ext <<_ACEOF
6422 cat confdefs.h
>>conftest.
$ac_ext
6423 cat >>conftest.
$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #include <X11/Xlib.h>
6427 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433 $as_echo "$ac_try_echo") >&5
6434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } >/dev/null && {
6441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6444 # We can compile using X headers with no special include directory.
6447 $as_echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 for ac_dir in $ac_x_header_dirs; do
6451 if test -r "$ac_dir/X11/Xlib.h"; then
6452 ac_x_includes=$ac_dir
6458 rm -f conftest.err conftest.$ac_ext
6459 fi # $ac_x_includes = no
6461 if test "$ac_x_libraries" = no; then
6462 # Check for the libraries.
6463 # See if we find them without any special options.
6464 # Don't add to $LIBS permanently.
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <X11/Xlib.h>
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (ac_try="$ac_link"
6485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6486 *) ac_try_echo
=$ac_try;;
6488 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6489 $as_echo "$ac_try_echo") >&5
6490 (eval "$ac_link") 2>conftest.er1
6492 grep -v '^ *+' conftest.er1
>conftest.err
6494 cat conftest.err
>&5
6495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && {
6497 test -z "$ac_c_werror_flag" ||
6498 test ! -s conftest.err
6499 } && test -s conftest
$ac_exeext && {
6500 test "$cross_compiling" = yes ||
6501 $as_test_x conftest
$ac_exeext
6504 # We can link X programs with no special library path.
6507 $as_echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.
$ac_ext >&5
6511 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6513 # Don't even attempt the hair of trying to link an X program!
6514 for ac_extension
in a so sl dylib la dll
; do
6515 if test -r "$ac_dir/libX11.$ac_extension"; then
6516 ac_x_libraries
=$ac_dir
6523 rm -rf conftest.dSYM
6524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6525 conftest
$ac_exeext conftest.
$ac_ext
6526 fi # $ac_x_libraries = no
6528 case $ac_x_includes,$ac_x_libraries in #(
6530 # Didn't find X, or a directory has "'" in its name.
6531 ac_cv_have_x
="have_x=no";; #(
6533 # Record where we found X for the cache.
6534 ac_cv_have_x
="have_x=yes\
6535 ac_x_includes='$ac_x_includes'\
6536 ac_x_libraries='$ac_x_libraries'"
6542 eval "$ac_cv_have_x"
6545 if test "$have_x" != yes; then
6546 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6547 $as_echo "$have_x" >&6; }
6550 # If each of the values was on the command line, it overrides each guess.
6551 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6552 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6553 # Update the cache value to reflect the command line values.
6554 ac_cv_have_x
="have_x=yes\
6555 ac_x_includes='$x_includes'\
6556 ac_x_libraries='$x_libraries'"
6557 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6558 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6561 if test "$no_x" = yes; then
6562 # Not all programs may use this symbol, but it does not hurt to define it.
6564 cat >>confdefs.h
<<\_ACEOF
6565 #define X_DISPLAY_MISSING 1
6568 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6570 if test -n "$x_includes"; then
6571 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6574 # It would also be nice to do this for all -L options, not just this one.
6575 if test -n "$x_libraries"; then
6576 X_LIBS
="$X_LIBS -L$x_libraries"
6577 # For Solaris; some versions of Sun CC require a space after -R and
6578 # others require no space. Words are not sufficient . . . .
6579 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6580 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6581 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6582 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6583 ac_c_werror_flag
=yes
6584 cat >conftest.
$ac_ext <<_ACEOF
6587 cat confdefs.h
>>conftest.
$ac_ext
6588 cat >>conftest.
$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6599 rm -f conftest.
$ac_objext conftest
$ac_exeext
6600 if { (ac_try
="$ac_link"
6602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6606 $as_echo "$ac_try_echo") >&5
6607 (eval "$ac_link") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1 >conftest.err
6611 cat conftest.err >&5
6612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest$ac_exeext && {
6617 test "$cross_compiling" = yes ||
6618 $as_test_x conftest$ac_exeext
6620 { $as_echo "$as_me:$LINENO: result: no" >&5
6621 $as_echo "no" >&6; }
6622 X_LIBS="$X_LIBS -R$x_libraries"
6624 $as_echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6627 LIBS="$ac_xsave_LIBS -R $x_libraries"
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6647 *) ac_try_echo
=$ac_try;;
6649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6650 $as_echo "$ac_try_echo") >&5
6651 (eval "$ac_link") 2>conftest.er1
6653 grep -v '^ *+' conftest.er1
>conftest.err
6655 cat conftest.err
>&5
6656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && {
6658 test -z "$ac_c_werror_flag" ||
6659 test ! -s conftest.err
6660 } && test -s conftest
$ac_exeext && {
6661 test "$cross_compiling" = yes ||
6662 $as_test_x conftest
$ac_exeext
6664 { $as_echo "$as_me:$LINENO: result: yes" >&5
6665 $as_echo "yes" >&6; }
6666 X_LIBS
="$X_LIBS -R $x_libraries"
6668 $as_echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.
$ac_ext >&5
6671 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6672 $as_echo "neither works" >&6; }
6675 rm -rf conftest.dSYM
6676 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6677 conftest
$ac_exeext conftest.
$ac_ext
6680 rm -rf conftest.dSYM
6681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6682 conftest
$ac_exeext conftest.
$ac_ext
6683 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6687 # Check for system-dependent libraries X programs must link with.
6688 # Do this before checking for the system-independent R6 libraries
6689 # (-lICE), since we may need -lsocket or whatever for X linking.
6691 if test "$ISC" = yes; then
6692 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6694 # Martyn Johnson says this is needed for Ultrix, if the X
6695 # libraries were built with DECnet support. And Karl Berry says
6696 # the Alpha needs dnet_stub (dnet does not exist).
6697 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6705 /* Override any GCC internal prototype to avoid an error.
6706 Use char because int might match the return type of a GCC
6707 builtin and then its argument prototype would still apply. */
6711 char XOpenDisplay ();
6715 return XOpenDisplay ();
6720 rm -f conftest.
$ac_objext conftest
$ac_exeext
6721 if { (ac_try
="$ac_link"
6723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6727 $as_echo "$ac_try_echo") >&5
6728 (eval "$ac_link") 2>conftest.er1
6730 grep -v '^ *+' conftest.er1 >conftest.err
6732 cat conftest.err >&5
6733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } && {
6735 test -z "$ac_c_werror_flag" ||
6736 test ! -s conftest.err
6737 } && test -s conftest$ac_exeext && {
6738 test "$cross_compiling" = yes ||
6739 $as_test_x conftest$ac_exeext
6743 $as_echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6747 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6748 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6749 $as_echo_n "(cached) " >&6
6751 ac_check_lib_save_LIBS=$LIBS
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6760 /* Override any GCC internal prototype to avoid an error.
6761 Use char because int might match the return type of a GCC
6762 builtin and then its argument prototype would still apply. */
6770 return dnet_ntoa ();
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6779 *) ac_try_echo
=$ac_try;;
6781 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6782 $as_echo "$ac_try_echo") >&5
6783 (eval "$ac_link") 2>conftest.er1
6785 grep -v '^ *+' conftest.er1
>conftest.err
6787 cat conftest.err
>&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest
$ac_exeext && {
6793 test "$cross_compiling" = yes ||
6794 $as_test_x conftest
$ac_exeext
6796 ac_cv_lib_dnet_dnet_ntoa
=yes
6798 $as_echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.
$ac_ext >&5
6801 ac_cv_lib_dnet_dnet_ntoa
=no
6804 rm -rf conftest.dSYM
6805 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6806 conftest
$ac_exeext conftest.
$ac_ext
6807 LIBS
=$ac_check_lib_save_LIBS
6809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6810 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6811 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
6812 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6815 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6816 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6817 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6818 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6819 $as_echo_n "(cached) " >&6
6821 ac_check_lib_save_LIBS
=$LIBS
6822 LIBS
="-ldnet_stub $LIBS"
6823 cat >conftest.
$ac_ext <<_ACEOF
6826 cat confdefs.h
>>conftest.
$ac_ext
6827 cat >>conftest.
$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6830 /* Override any GCC internal prototype to avoid an error.
6831 Use char because int might match the return type of a GCC
6832 builtin and then its argument prototype would still apply. */
6840 return dnet_ntoa ();
6845 rm -f conftest.
$ac_objext conftest
$ac_exeext
6846 if { (ac_try
="$ac_link"
6848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_link") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest$ac_exeext && {
6863 test "$cross_compiling" = yes ||
6864 $as_test_x conftest$ac_exeext
6866 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6868 $as_echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_cv_lib_dnet_stub_dnet_ntoa=no
6874 rm -rf conftest.dSYM
6875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6876 conftest$ac_exeext conftest.$ac_ext
6877 LIBS=$ac_check_lib_save_LIBS
6879 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6880 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6881 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6882 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6888 rm -rf conftest.dSYM
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890 conftest$ac_exeext conftest.$ac_ext
6891 LIBS="$ac_xsave_LIBS"
6893 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6894 # to get the SysV transport functions.
6895 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6897 # The nsl library prevents programs from opening the X display
6898 # on Irix 5.2, according to T.E. Dickey.
6899 # The functions gethostbyname, getservbyname, and inet_addr are
6900 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6901 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6902 $as_echo_n "checking for gethostbyname... " >&6; }
6903 if test "${ac_cv_func_gethostbyname+set}" = set; then
6904 $as_echo_n "(cached) " >&6
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6914 #define gethostbyname innocuous_gethostbyname
6916 /* System header to define __stub macros and hopefully few prototypes,
6917 which can conflict with char gethostbyname (); below.
6918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6919 <limits.h> exists even on freestanding compilers. */
6922 # include <limits.h>
6924 # include <assert.h>
6927 #undef gethostbyname
6929 /* Override any GCC internal prototype to avoid an error.
6930 Use char because int might match the return type of a GCC
6931 builtin and then its argument prototype would still apply. */
6935 char gethostbyname ();
6936 /* The GNU C library defines this for functions which it implements
6937 to always fail with ENOSYS. Some functions are actually named
6938 something starting with __ and the normal name is an alias. */
6939 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6946 return gethostbyname ();
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (ac_try="$ac_link"
6954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6955 *) ac_try_echo
=$ac_try;;
6957 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6958 $as_echo "$ac_try_echo") >&5
6959 (eval "$ac_link") 2>conftest.er1
6961 grep -v '^ *+' conftest.er1
>conftest.err
6963 cat conftest.err
>&5
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest
$ac_exeext && {
6969 test "$cross_compiling" = yes ||
6970 $as_test_x conftest
$ac_exeext
6972 ac_cv_func_gethostbyname
=yes
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.
$ac_ext >&5
6977 ac_cv_func_gethostbyname
=no
6980 rm -rf conftest.dSYM
6981 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6982 conftest
$ac_exeext conftest.
$ac_ext
6984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6985 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6987 if test $ac_cv_func_gethostbyname = no
; then
6988 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6989 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6990 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6991 $as_echo_n "(cached) " >&6
6993 ac_check_lib_save_LIBS
=$LIBS
6995 cat >conftest.
$ac_ext <<_ACEOF
6998 cat confdefs.h
>>conftest.
$ac_ext
6999 cat >>conftest.
$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7002 /* Override any GCC internal prototype to avoid an error.
7003 Use char because int might match the return type of a GCC
7004 builtin and then its argument prototype would still apply. */
7008 char gethostbyname ();
7012 return gethostbyname ();
7017 rm -f conftest.
$ac_objext conftest
$ac_exeext
7018 if { (ac_try
="$ac_link"
7020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7021 *) ac_try_echo=$ac_try;;
7023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7024 $as_echo "$ac_try_echo") >&5
7025 (eval "$ac_link") 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest$ac_exeext && {
7035 test "$cross_compiling" = yes ||
7036 $as_test_x conftest$ac_exeext
7038 ac_cv_lib_nsl_gethostbyname=yes
7040 $as_echo "$as_me: failed program was:" >&5
7041 sed 's/^/| /' conftest.$ac_ext >&5
7043 ac_cv_lib_nsl_gethostbyname=no
7046 rm -rf conftest.dSYM
7047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7048 conftest$ac_exeext conftest.$ac_ext
7049 LIBS=$ac_check_lib_save_LIBS
7051 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7052 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7053 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7057 if test $ac_cv_lib_nsl_gethostbyname = no; then
7058 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7059 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7060 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7063 ac_check_lib_save_LIBS=$LIBS
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7072 /* Override any GCC internal prototype to avoid an error.
7073 Use char because int might match the return type of a GCC
7074 builtin and then its argument prototype would still apply. */
7078 char gethostbyname ();
7082 return gethostbyname ();
7087 rm -f conftest.$ac_objext conftest$ac_exeext
7088 if { (ac_try="$ac_link"
7090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7091 *) ac_try_echo
=$ac_try;;
7093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7094 $as_echo "$ac_try_echo") >&5
7095 (eval "$ac_link") 2>conftest.er1
7097 grep -v '^ *+' conftest.er1
>conftest.err
7099 cat conftest.err
>&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest
$ac_exeext && {
7105 test "$cross_compiling" = yes ||
7106 $as_test_x conftest
$ac_exeext
7108 ac_cv_lib_bsd_gethostbyname
=yes
7110 $as_echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.
$ac_ext >&5
7113 ac_cv_lib_bsd_gethostbyname
=no
7116 rm -rf conftest.dSYM
7117 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7118 conftest
$ac_exeext conftest.
$ac_ext
7119 LIBS
=$ac_check_lib_save_LIBS
7121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7122 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7123 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then
7124 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7130 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7131 # socket/setsockopt and other routines are undefined under SCO ODT
7132 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7133 # on later versions), says Simon Leinen: it contains gethostby*
7134 # variants that don't use the name server (or something). -lsocket
7135 # must be given before -lnsl if both are needed. We assume that
7136 # if connect needs -lnsl, so does gethostbyname.
7137 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7138 $as_echo_n "checking for connect... " >&6; }
7139 if test "${ac_cv_func_connect+set}" = set; then
7140 $as_echo_n "(cached) " >&6
7142 cat >conftest.
$ac_ext <<_ACEOF
7145 cat confdefs.h
>>conftest.
$ac_ext
7146 cat >>conftest.
$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7150 #define connect innocuous_connect
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char connect (); below.
7154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155 <limits.h> exists even on freestanding compilers. */
7158 # include <limits.h>
7160 # include <assert.h>
7165 /* Override any GCC internal prototype to avoid an error.
7166 Use char because int might match the return type of a GCC
7167 builtin and then its argument prototype would still apply. */
7172 /* The GNU C library defines this for functions which it implements
7173 to always fail with ENOSYS. Some functions are actually named
7174 something starting with __ and the normal name is an alias. */
7175 #if defined __stub_connect || defined __stub___connect
7187 rm -f conftest.
$ac_objext conftest
$ac_exeext
7188 if { (ac_try
="$ac_link"
7190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_link") 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest$ac_exeext && {
7205 test "$cross_compiling" = yes ||
7206 $as_test_x conftest$ac_exeext
7208 ac_cv_func_connect=yes
7210 $as_echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_func_connect=no
7216 rm -rf conftest.dSYM
7217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7218 conftest$ac_exeext conftest.$ac_ext
7220 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7221 $as_echo "$ac_cv_func_connect" >&6; }
7223 if test $ac_cv_func_connect = no; then
7224 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7225 $as_echo_n "checking for connect in -lsocket... " >&6; }
7226 if test "${ac_cv_lib_socket_connect+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7229 ac_check_lib_save_LIBS=$LIBS
7230 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7231 cat >conftest.$ac_ext <<_ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7238 /* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (ac_try="$ac_link"
7256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7257 *) ac_try_echo
=$ac_try;;
7259 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7260 $as_echo "$ac_try_echo") >&5
7261 (eval "$ac_link") 2>conftest.er1
7263 grep -v '^ *+' conftest.er1
>conftest.err
7265 cat conftest.err
>&5
7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest
$ac_exeext && {
7271 test "$cross_compiling" = yes ||
7272 $as_test_x conftest
$ac_exeext
7274 ac_cv_lib_socket_connect
=yes
7276 $as_echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.
$ac_ext >&5
7279 ac_cv_lib_socket_connect
=no
7282 rm -rf conftest.dSYM
7283 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7284 conftest
$ac_exeext conftest.
$ac_ext
7285 LIBS
=$ac_check_lib_save_LIBS
7287 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7288 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7289 if test "x$ac_cv_lib_socket_connect" = x
""yes; then
7290 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7295 # Guillermo Gomez says -lposix is necessary on A/UX.
7296 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7297 $as_echo_n "checking for remove... " >&6; }
7298 if test "${ac_cv_func_remove+set}" = set; then
7299 $as_echo_n "(cached) " >&6
7301 cat >conftest.
$ac_ext <<_ACEOF
7304 cat confdefs.h
>>conftest.
$ac_ext
7305 cat >>conftest.
$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7309 #define remove innocuous_remove
7311 /* System header to define __stub macros and hopefully few prototypes,
7312 which can conflict with char remove (); below.
7313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7314 <limits.h> exists even on freestanding compilers. */
7317 # include <limits.h>
7319 # include <assert.h>
7324 /* Override any GCC internal prototype to avoid an error.
7325 Use char because int might match the return type of a GCC
7326 builtin and then its argument prototype would still apply. */
7331 /* The GNU C library defines this for functions which it implements
7332 to always fail with ENOSYS. Some functions are actually named
7333 something starting with __ and the normal name is an alias. */
7334 #if defined __stub_remove || defined __stub___remove
7346 rm -f conftest.
$ac_objext conftest
$ac_exeext
7347 if { (ac_try
="$ac_link"
7349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_link") 2>conftest.er1
7356 grep -v '^ *+' conftest.er1 >conftest.err
7358 cat conftest.err >&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && {
7361 test -z "$ac_c_werror_flag" ||
7362 test ! -s conftest.err
7363 } && test -s conftest$ac_exeext && {
7364 test "$cross_compiling" = yes ||
7365 $as_test_x conftest$ac_exeext
7367 ac_cv_func_remove=yes
7369 $as_echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_cv_func_remove=no
7375 rm -rf conftest.dSYM
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377 conftest$ac_exeext conftest.$ac_ext
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7380 $as_echo "$ac_cv_func_remove" >&6; }
7382 if test $ac_cv_func_remove = no; then
7383 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7384 $as_echo_n "checking for remove in -lposix... " >&6; }
7385 if test "${ac_cv_lib_posix_remove+set}" = set; then
7386 $as_echo_n "(cached) " >&6
7388 ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-lposix $LIBS"
7390 cat >conftest.$ac_ext <<_ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7397 /* Override any GCC internal prototype to avoid an error.
7398 Use char because int might match the return type of a GCC
7399 builtin and then its argument prototype would still apply. */
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (ac_try="$ac_link"
7415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7416 *) ac_try_echo
=$ac_try;;
7418 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7419 $as_echo "$ac_try_echo") >&5
7420 (eval "$ac_link") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1
>conftest.err
7424 cat conftest.err
>&5
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest
$ac_exeext && {
7430 test "$cross_compiling" = yes ||
7431 $as_test_x conftest
$ac_exeext
7433 ac_cv_lib_posix_remove
=yes
7435 $as_echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.
$ac_ext >&5
7438 ac_cv_lib_posix_remove
=no
7441 rm -rf conftest.dSYM
7442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7443 conftest
$ac_exeext conftest.
$ac_ext
7444 LIBS
=$ac_check_lib_save_LIBS
7446 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7447 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7448 if test "x$ac_cv_lib_posix_remove" = x
""yes; then
7449 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7454 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7455 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7456 $as_echo_n "checking for shmat... " >&6; }
7457 if test "${ac_cv_func_shmat+set}" = set; then
7458 $as_echo_n "(cached) " >&6
7460 cat >conftest.
$ac_ext <<_ACEOF
7463 cat confdefs.h
>>conftest.
$ac_ext
7464 cat >>conftest.
$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7468 #define shmat innocuous_shmat
7470 /* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char shmat (); below.
7472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473 <limits.h> exists even on freestanding compilers. */
7476 # include <limits.h>
7478 # include <assert.h>
7483 /* Override any GCC internal prototype to avoid an error.
7484 Use char because int might match the return type of a GCC
7485 builtin and then its argument prototype would still apply. */
7490 /* The GNU C library defines this for functions which it implements
7491 to always fail with ENOSYS. Some functions are actually named
7492 something starting with __ and the normal name is an alias. */
7493 #if defined __stub_shmat || defined __stub___shmat
7505 rm -f conftest.
$ac_objext conftest
$ac_exeext
7506 if { (ac_try
="$ac_link"
7508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512 $as_echo "$ac_try_echo") >&5
7513 (eval "$ac_link") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest$ac_exeext && {
7523 test "$cross_compiling" = yes ||
7524 $as_test_x conftest$ac_exeext
7526 ac_cv_func_shmat=yes
7528 $as_echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7534 rm -rf conftest.dSYM
7535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7536 conftest$ac_exeext conftest.$ac_ext
7538 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7539 $as_echo "$ac_cv_func_shmat" >&6; }
7541 if test $ac_cv_func_shmat = no; then
7542 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7543 $as_echo_n "checking for shmat in -lipc... " >&6; }
7544 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7545 $as_echo_n "(cached) " >&6
7547 ac_check_lib_save_LIBS=$LIBS
7549 cat >conftest.$ac_ext <<_ACEOF
7552 cat confdefs.h >>conftest.$ac_ext
7553 cat >>conftest.$ac_ext <<_ACEOF
7554 /* end confdefs.h. */
7556 /* Override any GCC internal prototype to avoid an error.
7557 Use char because int might match the return type of a GCC
7558 builtin and then its argument prototype would still apply. */
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (ac_try="$ac_link"
7574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7575 *) ac_try_echo
=$ac_try;;
7577 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7578 $as_echo "$ac_try_echo") >&5
7579 (eval "$ac_link") 2>conftest.er1
7581 grep -v '^ *+' conftest.er1
>conftest.err
7583 cat conftest.err
>&5
7584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest
$ac_exeext && {
7589 test "$cross_compiling" = yes ||
7590 $as_test_x conftest
$ac_exeext
7592 ac_cv_lib_ipc_shmat
=yes
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 ac_cv_lib_ipc_shmat
=no
7600 rm -rf conftest.dSYM
7601 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7602 conftest
$ac_exeext conftest.
$ac_ext
7603 LIBS
=$ac_check_lib_save_LIBS
7605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7606 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7607 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then
7608 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7614 # Check for libraries that X11R6 Xt/Xaw programs need.
7615 ac_save_LDFLAGS
=$LDFLAGS
7616 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7617 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7618 # check for ICE first), but we must link in the order -lSM -lICE or
7619 # we get undefined symbols. So assume we have SM if we have ICE.
7620 # These have to be linked with before -lX11, unlike the other
7621 # libraries we check for below, so use a different variable.
7622 # John Interrante, Karl Berry
7623 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7624 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7625 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7626 $as_echo_n "(cached) " >&6
7628 ac_check_lib_save_LIBS
=$LIBS
7629 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7630 cat >conftest.
$ac_ext <<_ACEOF
7633 cat confdefs.h
>>conftest.
$ac_ext
7634 cat >>conftest.
$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7637 /* Override any GCC internal prototype to avoid an error.
7638 Use char because int might match the return type of a GCC
7639 builtin and then its argument prototype would still apply. */
7643 char IceConnectionNumber ();
7647 return IceConnectionNumber ();
7652 rm -f conftest.
$ac_objext conftest
$ac_exeext
7653 if { (ac_try
="$ac_link"
7655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659 $as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>conftest.er1
7662 grep -v '^ *+' conftest.er1 >conftest.err
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext && {
7670 test "$cross_compiling" = yes ||
7671 $as_test_x conftest$ac_exeext
7673 ac_cv_lib_ICE_IceConnectionNumber=yes
7675 $as_echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7678 ac_cv_lib_ICE_IceConnectionNumber=no
7681 rm -rf conftest.dSYM
7682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7687 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7688 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7689 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7692 LDFLAGS=$ac_save_LDFLAGS
7697 if test "$OS390Unix" = "yes"; then
7698 CFLAGS="$CFLAGS -W c,dll"
7699 LDFLAGS="$LDFLAGS -W l,dll"
7700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7704 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7705 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7706 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7707 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7708 X_LIBS="$X_LIBS -L$x_libraries"
7709 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7710 uname -r | grep '^5' >/dev/null; then
7711 X_LIBS="$X_LIBS -R $x_libraries"
7715 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7716 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7717 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7718 $as_echo "Corrected X includes to $x_includes" >&6; }
7719 X_CFLAGS="$X_CFLAGS -I$x_includes"
7722 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7723 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7724 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7727 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7728 $as_echo_n "checking if X11 header files can be found... " >&6; }
7730 CFLAGS="$CFLAGS $X_CFLAGS"
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #include <X11/Xlib.h>
7738 #include <X11/Intrinsic.h>
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7751 *) ac_try_echo
=$ac_try;;
7753 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7754 $as_echo "$ac_try_echo") >&5
7755 (eval "$ac_compile") 2>conftest.er1
7757 grep -v '^ *+' conftest.er1
>conftest.err
7759 cat conftest.err
>&5
7760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && {
7762 test -z "$ac_c_werror_flag" ||
7763 test ! -s conftest.err
7764 } && test -s conftest.
$ac_objext; then
7765 { $as_echo "$as_me:$LINENO: result: yes" >&5
7766 $as_echo "yes" >&6; }
7768 $as_echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7771 { $as_echo "$as_me:$LINENO: result: no" >&5
7772 $as_echo "no" >&6; }; no_x
=yes
7775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7778 if test "${no_x-no}" = yes; then
7781 cat >>confdefs.h
<<\_ACEOF
7788 ac_save_LDFLAGS
="$LDFLAGS"
7789 LDFLAGS
="-L$x_libraries $LDFLAGS"
7791 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7792 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7793 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7794 $as_echo_n "(cached) " >&6
7796 ac_check_lib_save_LIBS
=$LIBS
7797 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7798 cat >conftest.
$ac_ext <<_ACEOF
7801 cat confdefs.h
>>conftest.
$ac_ext
7802 cat >>conftest.
$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7805 /* Override any GCC internal prototype to avoid an error.
7806 Use char because int might match the return type of a GCC
7807 builtin and then its argument prototype would still apply. */
7811 char _XdmcpAuthDoIt ();
7815 return _XdmcpAuthDoIt ();
7820 rm -f conftest.
$ac_objext conftest
$ac_exeext
7821 if { (ac_try
="$ac_link"
7823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7827 $as_echo "$ac_try_echo") >&5
7828 (eval "$ac_link") 2>conftest.er1
7830 grep -v '^ *+' conftest.er1 >conftest.err
7832 cat conftest.err >&5
7833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest$ac_exeext && {
7838 test "$cross_compiling" = yes ||
7839 $as_test_x conftest$ac_exeext
7841 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7849 rm -rf conftest.dSYM
7850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851 conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7855 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7856 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7857 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7861 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7862 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7863 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7866 ac_check_lib_save_LIBS=$LIBS
7867 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any GCC internal prototype to avoid an error.
7876 Use char because int might match the return type of a GCC
7877 builtin and then its argument prototype would still apply. */
7881 char IceOpenConnection ();
7885 return IceOpenConnection ();
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (ac_try="$ac_link"
7893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7894 *) ac_try_echo
=$ac_try;;
7896 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898 (eval "$ac_link") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1
>conftest.err
7902 cat conftest.err
>&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest
$ac_exeext && {
7908 test "$cross_compiling" = yes ||
7909 $as_test_x conftest
$ac_exeext
7911 ac_cv_lib_ICE_IceOpenConnection
=yes
7913 $as_echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.
$ac_ext >&5
7916 ac_cv_lib_ICE_IceOpenConnection
=no
7919 rm -rf conftest.dSYM
7920 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7921 conftest
$ac_exeext conftest.
$ac_ext
7922 LIBS
=$ac_check_lib_save_LIBS
7924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7925 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7926 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x
""yes; then
7927 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7931 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7932 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7933 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7934 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7935 $as_echo_n "(cached) " >&6
7937 ac_check_lib_save_LIBS
=$LIBS
7938 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7939 cat >conftest.
$ac_ext <<_ACEOF
7942 cat confdefs.h
>>conftest.
$ac_ext
7943 cat >>conftest.
$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7946 /* Override any GCC internal prototype to avoid an error.
7947 Use char because int might match the return type of a GCC
7948 builtin and then its argument prototype would still apply. */
7952 char XpmCreatePixmapFromData ();
7956 return XpmCreatePixmapFromData ();
7961 rm -f conftest.
$ac_objext conftest
$ac_exeext
7962 if { (ac_try
="$ac_link"
7964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7968 $as_echo "$ac_try_echo") >&5
7969 (eval "$ac_link") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest$ac_exeext && {
7979 test "$cross_compiling" = yes ||
7980 $as_test_x conftest$ac_exeext
7982 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7984 $as_echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7987 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7990 rm -rf conftest.dSYM
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7996 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7997 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7998 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8002 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8003 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8005 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <X11/Xlib.h>
8021 rm -f conftest.$ac_objext
8022 if { (ac_try="$ac_compile"
8024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8025 *) ac_try_echo
=$ac_try;;
8027 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1
>conftest.err
8033 cat conftest.err
>&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.
$ac_objext; then
8039 { $as_echo "$as_me:$LINENO: result: no" >&5
8040 $as_echo "no" >&6; }
8042 $as_echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.
$ac_ext >&5
8045 CFLAGS
="$CFLAGS -Wno-implicit-int"
8046 cat >conftest.
$ac_ext <<_ACEOF
8049 cat confdefs.h
>>conftest.
$ac_ext
8050 cat >>conftest.
$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 #include <X11/Xlib.h>
8061 rm -f conftest.
$ac_objext
8062 if { (ac_try
="$ac_compile"
8064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 { $as_echo "$as_me:$LINENO: result: yes" >&5
8080 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8082 $as_echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.$ac_ext >&5
8085 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8086 $as_echo "test failed" >&6; }
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 LDFLAGS="$ac_save_LDFLAGS"
8099 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8100 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8101 if test "${ac_cv_small_wchar_t+set}" = set; then
8102 $as_echo_n "(cached) " >&6
8104 if test "$cross_compiling" = yes; then
8105 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8106 $as_echo "$as_me: error: failed to compile test program" >&2;}
8107 { (exit 1); exit 1; }; }
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 #include <X11/Xlib.h>
8118 # include <stdlib.h>
8119 # include <stddef.h>
8123 if (sizeof(wchar_t) <= 2)
8128 rm -f conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8132 *) ac_try_echo
=$ac_try;;
8134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8135 $as_echo "$ac_try_echo") >&5
8136 (eval "$ac_link") 2>&5
8138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8140 { (case "(($ac_try" in
8141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8145 $as_echo "$ac_try_echo") >&5
8146 (eval "$ac_try") 2>&5
8148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_small_wchar_t="no"
8152 $as_echo "$as_me: program exited with status $ac_status" >&5
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_cv_small_wchar_t="yes"
8159 rm -rf conftest.dSYM
8160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8166 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8167 $as_echo "$ac_cv_small_wchar_t" >&6; }
8168 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8169 cat >>confdefs.h <<\_ACEOF
8170 #define SMALL_WCHAR_T 1
8178 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8180 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8181 $as_echo_n "checking --enable-gui argument... " >&6; }
8182 # Check whether --enable-gui was given.
8183 if test "${enable_gui+set}" = set; then
8184 enableval=$enable_gui;
8190 enable_gui_canon=`echo "_$enable_gui" | \
8191 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8203 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8205 case "$enable_gui_canon" in
8206 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8207 $as_echo "no GUI support" >&6; }
8209 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8210 $as_echo "yes - automatic GUI support" >&6; } ;;
8211 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8212 $as_echo "auto - automatic GUI support" >&6; } ;;
8213 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8214 $as_echo "Photon GUI support" >&6; } ;;
8215 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8216 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8220 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8222 case "$enable_gui_canon" in
8223 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8224 $as_echo "no GUI support" >&6; }
8226 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8227 $as_echo "yes - automatic GUI support" >&6; } ;;
8228 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8229 $as_echo "auto - automatic GUI support" >&6; } ;;
8230 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8231 $as_echo "Carbon GUI support" >&6; } ;;
8232 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8233 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8239 case "$enable_gui_canon" in
8240 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8241 $as_echo "no GUI support" >&6; } ;;
8242 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8243 $as_echo "yes/auto - automatic GUI support" >&6; }
8251 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8252 $as_echo "GTK+ 1.x GUI support" >&6; }
8254 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8255 $as_echo "GTK+ 2.x GUI support" >&6; }
8258 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8259 $as_echo "GNOME 1.x GUI support" >&6; }
8262 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8263 $as_echo "GNOME 2.x GUI support" >&6; }
8267 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8268 $as_echo "Motif GUI support" >&6; }
8270 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8271 $as_echo "Athena GUI support" >&6; }
8273 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8274 $as_echo "neXtaw GUI support" >&6; }
8276 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8277 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8282 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8283 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8284 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8285 # Check whether --enable-gtk-check was given.
8286 if test "${enable_gtk_check+set}" = set; then
8287 enableval=$enable_gtk_check;
8289 enable_gtk_check="yes"
8292 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8293 $as_echo "$enable_gtk_check" >&6; }
8294 if test "x$enable_gtk_check" = "xno"; then
8300 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8301 -a "$enable_gui_canon" != "gnome2"; then
8302 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8303 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8304 # Check whether --enable-gtk2-check was given.
8305 if test "${enable_gtk2_check+set}" = set; then
8306 enableval=$enable_gtk2_check;
8308 enable_gtk2_check="yes"
8311 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8312 $as_echo "$enable_gtk2_check" >&6; }
8313 if test "x$enable_gtk2_check" = "xno"; then
8318 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8319 -a "$enable_gui_canon" != "gnome2"; then
8320 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8321 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8322 # Check whether --enable-gnome-check was given.
8323 if test "${enable_gnome_check+set}" = set; then
8324 enableval=$enable_gnome_check;
8326 enable_gnome_check="no"
8329 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8330 $as_echo "$enable_gnome_check" >&6; }
8331 if test "x$enable_gnome_check" = "xno"; then
8336 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8337 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8338 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8339 # Check whether --enable-motif-check was given.
8340 if test "${enable_motif_check+set}" = set; then
8341 enableval=$enable_motif_check;
8343 enable_motif_check="yes"
8346 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8347 $as_echo "$enable_motif_check" >&6; }
8348 if test "x$enable_motif_check" = "xno"; then
8353 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8354 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8355 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8356 # Check whether --enable-athena-check was given.
8357 if test "${enable_athena_check+set}" = set; then
8358 enableval=$enable_athena_check;
8360 enable_athena_check="yes"
8363 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8364 $as_echo "$enable_athena_check" >&6; }
8365 if test "x$enable_athena_check" = "xno"; then
8370 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8371 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8372 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8373 # Check whether --enable-nextaw-check was given.
8374 if test "${enable_nextaw_check+set}" = set; then
8375 enableval=$enable_nextaw_check;
8377 enable_nextaw_check="yes"
8380 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8381 $as_echo "$enable_nextaw_check" >&6; };
8382 if test "x$enable_nextaw_check" = "xno"; then
8387 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8388 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8389 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8390 # Check whether --enable-carbon-check was given.
8391 if test "${enable_carbon_check+set}" = set; then
8392 enableval=$enable_carbon_check;
8394 enable_carbon_check="yes"
8397 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8398 $as_echo "$enable_carbon_check" >&6; };
8399 if test "x$enable_carbon_check" = "xno"; then
8405 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8406 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8407 $as_echo_n "checking for Carbon GUI... " >&6; }
8408 { $as_echo "$as_me:$LINENO: result: yes" >&5
8409 $as_echo "yes" >&6; };
8411 if test "$VIMNAME" = "vim"; then
8415 if test x$prefix = xNONE; then
8416 prefix=/Applications
8419 datadir='${prefix}/Vim.app/Contents/Resources'
8439 if test -z "$SKIP_GTK"; then
8441 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8442 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8444 # Check whether --with-gtk-prefix was given.
8445 if test "${with_gtk_prefix+set}" = set; then
8446 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8447 $as_echo "$gtk_config_prefix" >&6; }
8449 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8450 $as_echo "no" >&6; }
8454 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8455 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8457 # Check whether --with-gtk-exec-prefix was given.
8458 if test "${with_gtk_exec_prefix+set}" = set; then
8459 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8460 $as_echo "$gtk_config_prefix" >&6; }
8462 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8463 $as_echo "no" >&6; }
8467 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8468 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8469 # Check whether --enable-gtktest was given.
8470 if test "${enable_gtktest+set}" = set; then
8471 enableval=$enable_gtktest;
8476 if test "x$enable_gtktest" = "xyes" ; then
8477 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8478 $as_echo "gtk test enabled" >&6; }
8480 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8481 $as_echo "gtk test disabled" >&6; }
8484 if test "x$gtk_config_prefix" != "x" ; then
8485 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8486 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8488 if test "x$gtk_config_exec_prefix" != "x" ; then
8489 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8490 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8492 if test "X$GTK_CONFIG" = "X"; then
8493 # Extract the first word of "gtk-config", so it can be a program name with args.
8494 set dummy gtk-config; ac_word=$2
8495 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8498 $as_echo_n "(cached) " >&6
8502 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 test -z "$as_dir" && as_dir=.
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8512 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8520 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8524 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8525 if test -n "$GTK_CONFIG"; then
8526 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8527 $as_echo "$GTK_CONFIG" >&6; }
8529 { $as_echo "$as_me:$LINENO: result: no" >&5
8530 $as_echo "no" >&6; }
8534 if test "X$GTK_CONFIG" = "Xno"; then
8535 # Extract the first word of "gtk12-config", so it can be a program name with args.
8536 set dummy gtk12-config; ac_word=$2
8537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8540 $as_echo_n "(cached) " >&6
8542 case $GTK12_CONFIG in
8544 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8566 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8567 if test -n "$GTK12_CONFIG"; then
8568 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8569 $as_echo "$GTK12_CONFIG" >&6; }
8571 { $as_echo "$as_me:$LINENO: result: no" >&5
8572 $as_echo "no" >&6; }
8576 GTK_CONFIG="$GTK12_CONFIG"
8579 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8580 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8582 if test "X$PKG_CONFIG" = "X"; then
8583 # Extract the first word of "pkg-config", so it can be a program name with args.
8584 set dummy pkg-config; ac_word=$2
8585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8588 $as_echo_n "(cached) " >&6
8592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8614 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8615 if test -n "$PKG_CONFIG"; then
8616 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8617 $as_echo "$PKG_CONFIG" >&6; }
8619 { $as_echo "$as_me:$LINENO: result: no" >&5
8620 $as_echo "no" >&6; }
8626 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8627 if test "X$SKIP_GTK2" != "XYES"; then
8629 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8631 min_gtk_version=2.2.0
8632 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8633 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8635 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8636 && $PKG_CONFIG --exists gtk+-2.0; then
8638 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8639 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8640 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8641 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8642 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8643 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8644 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8645 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8648 elif test "X$GTK_CONFIG" != "Xno"; then
8650 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8652 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8653 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8654 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8655 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8656 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8657 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8658 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8664 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8666 ac_save_CFLAGS="$CFLAGS"
8667 ac_save_LIBS="$LIBS"
8668 CFLAGS="$CFLAGS $GTK_CFLAGS"
8669 LIBS="$LIBS $GTK_LIBS"
8672 if test "$cross_compiling" = yes; then
8673 echo $ac_n "cross compiling; assumed OK... $ac_c"
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8682 #include <gtk/gtk.h>
8685 # include <stdlib.h>
8686 # include <stddef.h>
8692 int major, minor, micro;
8695 system ("touch conf.gtktest");
8697 /* HP/UX 9 (%@#!) writes to sscanf strings */
8698 tmp_version = g_strdup("$min_gtk_version");
8699 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8700 printf("%s, bad version string\n", "$min_gtk_version");
8704 if ((gtk_major_version > major) ||
8705 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8706 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8707 (gtk_micro_version >= micro)))
8715 rm -f conftest$ac_exeext
8716 if { (ac_try="$ac_link"
8718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8719 *) ac_try_echo
=$ac_try;;
8721 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723 (eval "$ac_link") 2>&5
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8727 { (case "(($ac_try" in
8728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8732 $as_echo "$ac_try_echo") >&5
8733 (eval "$ac_try") 2>&5
8735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8739 $as_echo "$as_me: program exited with status $ac_status" >&5
8740 $as_echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8746 rm -rf conftest.dSYM
8747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8751 CFLAGS="$ac_save_CFLAGS"
8752 LIBS="$ac_save_LIBS"
8755 if test "x$no_gtk" = x ; then
8756 if test "x$enable_gtktest" = "xyes"; then
8757 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8758 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8760 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8761 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8763 GUI_LIB_LOC="$GTK_LIBDIR"
8764 GTK_LIBNAME="$GTK_LIBS"
8765 GUI_INC_LOC="$GTK_CFLAGS"
8768 { $as_echo "$as_me:$LINENO: result: no" >&5
8769 $as_echo "no" >&6; }
8785 if test "x$GTK_CFLAGS" != "x"; then
8794 if test "x$GUITYPE" != "xGTK"; then
8797 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8799 min_gtk_version=1.1.16
8800 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8801 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8803 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8804 && $PKG_CONFIG --exists gtk+-2.0; then
8806 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8807 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8808 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8809 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8810 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8811 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8812 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8813 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8814 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8816 elif test "X$GTK_CONFIG" != "Xno"; then
8818 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8820 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8821 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8822 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8823 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8824 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8825 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8826 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8832 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8834 ac_save_CFLAGS="$CFLAGS"
8835 ac_save_LIBS="$LIBS"
8836 CFLAGS="$CFLAGS $GTK_CFLAGS"
8837 LIBS="$LIBS $GTK_LIBS"
8840 if test "$cross_compiling" = yes; then
8841 echo $ac_n "cross compiling; assumed OK... $ac_c"
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8850 #include <gtk/gtk.h>
8853 # include <stdlib.h>
8854 # include <stddef.h>
8860 int major, minor, micro;
8863 system ("touch conf.gtktest");
8865 /* HP/UX 9 (%@#!) writes to sscanf strings */
8866 tmp_version = g_strdup("$min_gtk_version");
8867 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8868 printf("%s, bad version string\n", "$min_gtk_version");
8872 if ((gtk_major_version > major) ||
8873 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8874 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8875 (gtk_micro_version >= micro)))
8883 rm -f conftest$ac_exeext
8884 if { (ac_try="$ac_link"
8886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8887 *) ac_try_echo
=$ac_try;;
8889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_link") 2>&5
8893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8895 { (case "(($ac_try" in
8896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8900 $as_echo "$ac_try_echo") >&5
8901 (eval "$ac_try") 2>&5
8903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8907 $as_echo "$as_me: program exited with status $ac_status" >&5
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8914 rm -rf conftest.dSYM
8915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8919 CFLAGS="$ac_save_CFLAGS"
8920 LIBS="$ac_save_LIBS"
8923 if test "x$no_gtk" = x ; then
8924 if test "x$enable_gtktest" = "xyes"; then
8925 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8926 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8928 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8929 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8931 GTK_LIBNAME="$GTK_LIBS"
8932 GUI_INC_LOC="$GTK_CFLAGS"
8935 { $as_echo "$as_me:$LINENO: result: no" >&5
8936 $as_echo "no" >&6; }
8952 if test "x$GTK_CFLAGS" != "x"; then
8961 if test "x$GUITYPE" = "xGTK"; then
8962 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8963 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8964 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8965 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8968 if test "0$gtk_major_version" -ge 2; then
8969 cat >>confdefs.h <<\_ACEOF
8973 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8974 || test "0$gtk_minor_version" -ge 2 \
8975 || test "0$gtk_major_version" -gt 2; then
8976 cat >>confdefs.h <<\_ACEOF
8977 #define HAVE_GTK_MULTIHEAD 1
8982 if test -z "$SKIP_GNOME"; then
8990 # Check whether --with-gnome-includes was given.
8991 if test "${with_gnome_includes+set}" = set; then
8992 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8998 # Check whether --with-gnome-libs was given.
8999 if test "${with_gnome_libs+set}" = set; then
9000 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9006 # Check whether --with-gnome was given.
9007 if test "${with_gnome+set}" = set; then
9008 withval=$with_gnome; if test x$withval = xyes; then
9012 if test "x$withval" = xno; then
9016 LDFLAGS="$LDFLAGS -L$withval/lib"
9017 CFLAGS="$CFLAGS -I$withval/include"
9018 gnome_prefix=$withval/lib
9026 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9028 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9029 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9030 if $PKG_CONFIG --exists libgnomeui-2.0; then
9031 { $as_echo "$as_me:$LINENO: result: yes" >&5
9032 $as_echo "yes" >&6; }
9033 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
9034 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
9035 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
9037 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9038 $as_echo_n "checking for FreeBSD... " >&6; }
9039 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
9040 { $as_echo "$as_me:$LINENO: result: yes" >&5
9041 $as_echo "yes" >&6; }
9042 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9043 GNOME_LIBS="$GNOME_LIBS -pthread"
9045 { $as_echo "$as_me:$LINENO: result: no" >&5
9046 $as_echo "no" >&6; }
9050 { $as_echo "$as_me:$LINENO: result: not found" >&5
9051 $as_echo "not found" >&6; }
9052 if test "x" = xfail; then
9053 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9054 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9055 { (exit 1); exit 1; }; }
9059 elif test "x$want_gnome" = xyes; then
9061 # Extract the first word of "gnome-config", so it can be a program name with args.
9062 set dummy gnome-config; ac_word=$2
9063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9066 $as_echo_n "(cached) " >&6
9068 case $GNOME_CONFIG in
9070 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9092 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9093 if test -n "$GNOME_CONFIG"; then
9094 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9095 $as_echo "$GNOME_CONFIG" >&6; }
9097 { $as_echo "$as_me:$LINENO: result: no" >&5
9098 $as_echo "no" >&6; }
9102 if test "$GNOME_CONFIG" = "no"; then
9103 no_gnome_config="yes"
9105 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9106 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9107 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9108 { $as_echo "$as_me:$LINENO: result: yes" >&5
9109 $as_echo "yes" >&6; }
9110 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9111 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9112 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9115 { $as_echo "$as_me:$LINENO: result: no" >&5
9116 $as_echo "no" >&6; }
9117 no_gnome_config="yes"
9121 if test x$exec_prefix = xNONE; then
9122 if test x$prefix = xNONE; then
9123 gnome_prefix=$ac_default_prefix/lib
9125 gnome_prefix=$prefix/lib
9128 gnome_prefix=`eval echo \
`echo $libdir\``
9131 if test "$no_gnome_config" = "yes"; then
9132 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9133 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9134 if test -f $gnome_prefix/gnomeConf.sh; then
9135 { $as_echo "$as_me:$LINENO: result: found" >&5
9136 $as_echo "found" >&6; }
9137 echo "loading gnome configuration from" \
9138 "$gnome_prefix/gnomeConf.sh"
9139 . $gnome_prefix/gnomeConf.sh
9142 { $as_echo "$as_me:$LINENO: result: not found" >&5
9143 $as_echo "not found" >&6; }
9144 if test x = xfail; then
9145 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9146 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9147 { (exit 1); exit 1; }; }
9154 if test x$have_gnome = xyes ; then
9155 cat >>confdefs.h <<\_ACEOF
9156 #define FEAT_GUI_GNOME 1
9159 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9160 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9170 if test -z "$SKIP_MOTIF"; then
9171 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"
9172 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9174 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9175 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9176 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9178 for try in $gui_includes; do
9179 if test -f "$try/Xm/Xm.h"; then
9183 if test -n "$GUI_INC_LOC"; then
9184 if test "$GUI_INC_LOC" = /usr/include; then
9186 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9187 $as_echo "in default path" >&6; }
9189 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9190 $as_echo "$GUI_INC_LOC" >&6; }
9193 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9194 $as_echo "<not found>" >&6; }
9200 if test -z "$SKIP_MOTIF"; then
9201 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9202 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9204 # Check whether --with-motif-lib was given.
9205 if test "${with_motif_lib+set}" = set; then
9206 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9210 if test -n "$MOTIF_LIBNAME"; then
9211 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9212 $as_echo "$MOTIF_LIBNAME" >&6; }
9215 { $as_echo "$as_me:$LINENO: result: no" >&5
9216 $as_echo "no" >&6; }
9218 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9220 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9221 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9222 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"
9224 for try in $gui_libs; do
9225 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9226 if test -f "$libtry"; then
9231 if test -n "$GUI_LIB_LOC"; then
9232 if test "$GUI_LIB_LOC" = /usr/lib; then
9234 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9235 $as_echo "in default path" >&6; }
9237 if test -n "$GUI_LIB_LOC"; then
9238 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9239 $as_echo "$GUI_LIB_LOC" >&6; }
9240 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9241 uname -r | grep '^5' >/dev/null; then
9242 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9248 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9249 $as_echo "<not found>" >&6; }
9255 if test -z "$SKIP_MOTIF"; then
9265 if test -z "$SKIP_ATHENA"; then
9266 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9267 $as_echo_n "checking if Athena header files can be found... " >&6; }
9269 CFLAGS="$CFLAGS $X_CFLAGS"
9270 cat >conftest.$ac_ext <<_ACEOF
9273 cat confdefs.h >>conftest.$ac_ext
9274 cat >>conftest.$ac_ext <<_ACEOF
9275 /* end confdefs.h. */
9277 #include <X11/Intrinsic.h>
9278 #include <X11/Xaw/Paned.h>
9287 rm -f conftest.$ac_objext
9288 if { (ac_try="$ac_compile"
9290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9291 *) ac_try_echo
=$ac_try;;
9293 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9294 $as_echo "$ac_try_echo") >&5
9295 (eval "$ac_compile") 2>conftest.er1
9297 grep -v '^ *+' conftest.er1
>conftest.err
9299 cat conftest.err
>&5
9300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && {
9302 test -z "$ac_c_werror_flag" ||
9303 test ! -s conftest.err
9304 } && test -s conftest.
$ac_objext; then
9305 { $as_echo "$as_me:$LINENO: result: yes" >&5
9306 $as_echo "yes" >&6; }
9308 $as_echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.
$ac_ext >&5
9311 { $as_echo "$as_me:$LINENO: result: no" >&5
9312 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9319 if test -z "$SKIP_ATHENA"; then
9323 if test -z "$SKIP_NEXTAW"; then
9324 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9325 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9327 CFLAGS
="$CFLAGS $X_CFLAGS"
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9335 #include <X11/Intrinsic.h>
9336 #include <X11/neXtaw/Paned.h>
9345 rm -f conftest.
$ac_objext
9346 if { (ac_try
="$ac_compile"
9348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352 $as_echo "$ac_try_echo") >&5
9353 (eval "$ac_compile") 2>conftest.er1
9355 grep -v '^ *+' conftest.er1 >conftest.err
9357 cat conftest.err >&5
9358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && {
9360 test -z "$ac_c_werror_flag" ||
9361 test ! -s conftest.err
9362 } && test -s conftest.$ac_objext; then
9363 { $as_echo "$as_me:$LINENO: result: yes" >&5
9364 $as_echo "yes" >&6; }
9366 $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 { $as_echo "$as_me:$LINENO: result: no" >&5
9370 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 if test -z "$SKIP_NEXTAW"; then
9381 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9382 if test -n "$GUI_INC_LOC"; then
9383 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9385 if test -n "$GUI_LIB_LOC"; then
9386 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9389 ldflags_save=$LDFLAGS
9390 LDFLAGS="$X_LIBS $LDFLAGS"
9391 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9392 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9393 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9394 $as_echo_n "(cached) " >&6
9396 ac_check_lib_save_LIBS=$LIBS
9397 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9405 /* Override any GCC internal prototype to avoid an error.
9406 Use char because int might match the return type of a GCC
9407 builtin and then its argument prototype would still apply. */
9411 char XShapeQueryExtension ();
9415 return XShapeQueryExtension ();
9420 rm -f conftest.$ac_objext conftest$ac_exeext
9421 if { (ac_try="$ac_link"
9423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9424 *) ac_try_echo
=$ac_try;;
9426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9427 $as_echo "$ac_try_echo") >&5
9428 (eval "$ac_link") 2>conftest.er1
9430 grep -v '^ *+' conftest.er1
>conftest.err
9432 cat conftest.err
>&5
9433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest
$ac_exeext && {
9438 test "$cross_compiling" = yes ||
9439 $as_test_x conftest
$ac_exeext
9441 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9443 $as_echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.
$ac_ext >&5
9446 ac_cv_lib_Xext_XShapeQueryExtension
=no
9449 rm -rf conftest.dSYM
9450 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9451 conftest
$ac_exeext conftest.
$ac_ext
9452 LIBS
=$ac_check_lib_save_LIBS
9454 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9455 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9456 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then
9460 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9461 $as_echo_n "checking for wslen in -lw... " >&6; }
9462 if test "${ac_cv_lib_w_wslen+set}" = set; then
9463 $as_echo_n "(cached) " >&6
9465 ac_check_lib_save_LIBS
=$LIBS
9466 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9467 cat >conftest.
$ac_ext <<_ACEOF
9470 cat confdefs.h
>>conftest.
$ac_ext
9471 cat >>conftest.
$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9474 /* Override any GCC internal prototype to avoid an error.
9475 Use char because int might match the return type of a GCC
9476 builtin and then its argument prototype would still apply. */
9489 rm -f conftest.
$ac_objext conftest
$ac_exeext
9490 if { (ac_try
="$ac_link"
9492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9496 $as_echo "$ac_try_echo") >&5
9497 (eval "$ac_link") 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } && {
9504 test -z "$ac_c_werror_flag" ||
9505 test ! -s conftest.err
9506 } && test -s conftest$ac_exeext && {
9507 test "$cross_compiling" = yes ||
9508 $as_test_x conftest$ac_exeext
9510 ac_cv_lib_w_wslen=yes
9512 $as_echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9515 ac_cv_lib_w_wslen=no
9518 rm -rf conftest.dSYM
9519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9520 conftest$ac_exeext conftest.$ac_ext
9521 LIBS=$ac_check_lib_save_LIBS
9523 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9524 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9525 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9529 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9530 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9531 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9532 $as_echo_n "(cached) " >&6
9534 ac_check_lib_save_LIBS=$LIBS
9535 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9536 cat >conftest.$ac_ext <<_ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (ac_try="$ac_link"
9561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9562 *) ac_try_echo
=$ac_try;;
9564 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9565 $as_echo "$ac_try_echo") >&5
9566 (eval "$ac_link") 2>conftest.er1
9568 grep -v '^ *+' conftest.er1
>conftest.err
9570 cat conftest.err
>&5
9571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && {
9573 test -z "$ac_c_werror_flag" ||
9574 test ! -s conftest.err
9575 } && test -s conftest
$ac_exeext && {
9576 test "$cross_compiling" = yes ||
9577 $as_test_x conftest
$ac_exeext
9579 ac_cv_lib_dl_dlsym
=yes
9581 $as_echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.
$ac_ext >&5
9584 ac_cv_lib_dl_dlsym
=no
9587 rm -rf conftest.dSYM
9588 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9589 conftest
$ac_exeext conftest.
$ac_ext
9590 LIBS
=$ac_check_lib_save_LIBS
9592 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9593 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9594 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then
9595 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9598 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9599 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9600 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9601 $as_echo_n "(cached) " >&6
9603 ac_check_lib_save_LIBS
=$LIBS
9604 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9605 cat >conftest.
$ac_ext <<_ACEOF
9608 cat confdefs.h
>>conftest.
$ac_ext
9609 cat >>conftest.
$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9618 char XmuCreateStippledPixmap ();
9622 return XmuCreateStippledPixmap ();
9627 rm -f conftest.
$ac_objext conftest
$ac_exeext
9628 if { (ac_try
="$ac_link"
9630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635 (eval "$ac_link") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest$ac_exeext && {
9645 test "$cross_compiling" = yes ||
9646 $as_test_x conftest$ac_exeext
9648 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9650 $as_echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9656 rm -rf conftest.dSYM
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9662 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9663 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9664 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9667 if test -z "$SKIP_MOTIF"; then
9668 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9669 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9670 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9671 $as_echo_n "(cached) " >&6
9673 ac_check_lib_save_LIBS=$LIBS
9674 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9682 /* Override any GCC internal prototype to avoid an error.
9683 Use char because int might match the return type of a GCC
9684 builtin and then its argument prototype would still apply. */
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (ac_try="$ac_link"
9700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9701 *) ac_try_echo
=$ac_try;;
9703 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9704 $as_echo "$ac_try_echo") >&5
9705 (eval "$ac_link") 2>conftest.er1
9707 grep -v '^ *+' conftest.er1
>conftest.err
9709 cat conftest.err
>&5
9710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } && {
9712 test -z "$ac_c_werror_flag" ||
9713 test ! -s conftest.err
9714 } && test -s conftest
$ac_exeext && {
9715 test "$cross_compiling" = yes ||
9716 $as_test_x conftest
$ac_exeext
9718 ac_cv_lib_Xp_XpEndJob
=yes
9720 $as_echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.
$ac_ext >&5
9723 ac_cv_lib_Xp_XpEndJob
=no
9726 rm -rf conftest.dSYM
9727 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9728 conftest
$ac_exeext conftest.
$ac_ext
9729 LIBS
=$ac_check_lib_save_LIBS
9731 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9732 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9733 if test "x$ac_cv_lib_Xp_XpEndJob" = x
""yes; then
9734 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9738 LDFLAGS
=$ldflags_save
9740 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9741 $as_echo_n "checking for extra X11 defines... " >&6; }
9744 if mkdir conftestdir
; then
9746 cat > Imakefile
<<'EOF'
9748 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9750 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9751 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9756 if test -z "$NARROW_PROTO"; then
9757 { $as_echo "$as_me:$LINENO: result: no" >&5
9758 $as_echo "no" >&6; }
9760 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9761 $as_echo "$NARROW_PROTO" >&6; }
9766 if test "$enable_xsmp" = "yes"; then
9767 cppflags_save
=$CPPFLAGS
9768 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9770 for ac_header
in X11
/SM
/SMlib.h
9772 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9773 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9775 $as_echo_n "checking for $ac_header... " >&6; }
9776 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9777 $as_echo_n "(cached) " >&6
9779 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9780 $as_echo "$as_val"'`
9781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9782 $as_echo "$ac_res" >&6; }
9784 # Is the header compilable?
9785 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9786 $as_echo_n "checking $ac_header usability... " >&6; }
9787 cat >conftest.
$ac_ext <<_ACEOF
9790 cat confdefs.h
>>conftest.
$ac_ext
9791 cat >>conftest.
$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 $ac_includes_default
9794 #include <$ac_header>
9796 rm -f conftest.
$ac_objext
9797 if { (ac_try
="$ac_compile"
9799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9803 $as_echo "$ac_try_echo") >&5
9804 (eval "$ac_compile") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest.$ac_objext; then
9814 ac_header_compiler=yes
9816 $as_echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 ac_header_compiler=no
9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9824 $as_echo "$ac_header_compiler" >&6; }
9826 # Is the header present?
9827 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9828 $as_echo_n "checking $ac_header presence... " >&6; }
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <$ac_header>
9837 if { (ac_try="$ac_cpp conftest.$ac_ext"
9839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9840 *) ac_try_echo
=$ac_try;;
9842 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9843 $as_echo "$ac_try_echo") >&5
9844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9846 grep -v '^ *+' conftest.er1
>conftest.err
9848 cat conftest.err
>&5
9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } >/dev
/null
&& {
9851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9852 test ! -s conftest.err
9854 ac_header_preproc
=yes
9856 $as_echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.
$ac_ext >&5
9859 ac_header_preproc
=no
9862 rm -f conftest.err conftest.
$ac_ext
9863 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9864 $as_echo "$ac_header_preproc" >&6; }
9866 # So? What about this header?
9867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9870 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9873 ac_header_preproc
=yes
9876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9877 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9891 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9892 $as_echo_n "checking for $ac_header... " >&6; }
9893 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9894 $as_echo_n "(cached) " >&6
9896 eval "$as_ac_Header=\$ac_header_preproc"
9898 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9899 $as_echo "$as_val"'`
9900 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9901 $as_echo "$ac_res" >&6; }
9904 as_val
=`eval 'as_val=${'$as_ac_Header'}
9905 $as_echo "$as_val"'`
9906 if test "x$as_val" = x
""yes; then
9907 cat >>confdefs.h
<<_ACEOF
9908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9915 CPPFLAGS
=$cppflags_save
9919 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9920 cppflags_save
=$CPPFLAGS
9921 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9924 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9926 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9929 $as_echo_n "checking for $ac_header... " >&6; }
9930 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9931 $as_echo_n "(cached) " >&6
9933 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9934 $as_echo "$as_val"'`
9935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9936 $as_echo "$ac_res" >&6; }
9938 # Is the header compilable?
9939 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9940 $as_echo_n "checking $ac_header usability... " >&6; }
9941 cat >conftest.
$ac_ext <<_ACEOF
9944 cat confdefs.h
>>conftest.
$ac_ext
9945 cat >>conftest.
$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947 $ac_includes_default
9948 #include <$ac_header>
9950 rm -f conftest.
$ac_objext
9951 if { (ac_try
="$ac_compile"
9953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9957 $as_echo "$ac_try_echo") >&5
9958 (eval "$ac_compile") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } && {
9965 test -z "$ac_c_werror_flag" ||
9966 test ! -s conftest.err
9967 } && test -s conftest.$ac_objext; then
9968 ac_header_compiler=yes
9970 $as_echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 ac_header_compiler=no
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9978 $as_echo "$ac_header_compiler" >&6; }
9980 # Is the header present?
9981 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9982 $as_echo_n "checking $ac_header presence... " >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 #include <$ac_header>
9991 if { (ac_try="$ac_cpp conftest.$ac_ext"
9993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9994 *) ac_try_echo
=$ac_try;;
9996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9997 $as_echo "$ac_try_echo") >&5
9998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1
>conftest.err
10002 cat conftest.err
>&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } >/dev
/null
&& {
10005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10008 ac_header_preproc
=yes
10010 $as_echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.
$ac_ext >&5
10013 ac_header_preproc
=no
10016 rm -f conftest.err conftest.
$ac_ext
10017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10018 $as_echo "$ac_header_preproc" >&6; }
10020 # So? What about this header?
10021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10024 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10027 ac_header_preproc
=yes
10030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10031 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10041 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10045 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10046 $as_echo_n "checking for $ac_header... " >&6; }
10047 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10048 $as_echo_n "(cached) " >&6
10050 eval "$as_ac_Header=\$ac_header_preproc"
10052 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10053 $as_echo "$as_val"'`
10054 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10055 $as_echo "$ac_res" >&6; }
10058 as_val
=`eval 'as_val=${'$as_ac_Header'}
10059 $as_echo "$as_val"'`
10060 if test "x$as_val" = x
""yes; then
10061 cat >>confdefs.h
<<_ACEOF
10062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070 if test ! "$enable_xim" = "no"; then
10071 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10072 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10073 cat >conftest.
$ac_ext <<_ACEOF
10076 cat confdefs.h
>>conftest.
$ac_ext
10077 cat >>conftest.
$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 #include <X11/Xlib.h>
10081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10082 $EGREP "XIMText" >/dev
/null
2>&1; then
10083 { $as_echo "$as_me:$LINENO: result: yes" >&5
10084 $as_echo "yes" >&6; }
10086 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10087 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
10092 CPPFLAGS
=$cppflags_save
10094 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10095 -a "x$GUITYPE" != "xNONE" ; then
10096 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10097 $as_echo "X GUI selected; xim has been enabled" >&6; }
10102 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10103 cppflags_save
=$CPPFLAGS
10104 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10105 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10106 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10107 cat >conftest.
$ac_ext <<_ACEOF
10110 cat confdefs.h
>>conftest.
$ac_ext
10111 cat >>conftest.
$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 #include <X11/Intrinsic.h>
10115 #include <X11/Xmu/Editres.h>
10124 rm -f conftest.
$ac_objext
10125 if { (ac_try
="$ac_compile"
10126 case "(($ac_try" in
10127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10131 $as_echo "$ac_try_echo") >&5
10132 (eval "$ac_compile") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } && {
10139 test -z "$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10141 } && test -s conftest.$ac_objext; then
10142 { $as_echo "$as_me:$LINENO: result: yes" >&5
10143 $as_echo "yes" >&6; }
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_X11_XMU_EDITRES_H 1
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 { $as_echo "$as_me:$LINENO: result: no" >&5
10153 $as_echo "no" >&6; }
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 CPPFLAGS=$cppflags_save
10160 if test -z "$SKIP_MOTIF"; then
10161 cppflags_save=$CPPFLAGS
10162 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10170 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10171 Xm/UnhighlightT.h Xm/Notebook.h
10173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10176 $as_echo_n "checking for $ac_header... " >&6; }
10177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10178 $as_echo_n "(cached) " >&6
10180 ac_res=`eval 'as_val=${'$as_ac_Header'}
10181 $as_echo "$as_val"'`
10182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10183 $as_echo "$ac_res" >&6; }
10185 # Is the header compilable?
10186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10187 $as_echo_n "checking $ac_header usability... " >&6; }
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 $ac_includes_default
10195 #include <$ac_header>
10197 rm -f conftest.$ac_objext
10198 if { (ac_try="$ac_compile"
10199 case "(($ac_try" in
10200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10201 *) ac_try_echo
=$ac_try;;
10203 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_compile") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1
>conftest.err
10209 cat conftest.err
>&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest.
$ac_objext; then
10215 ac_header_compiler
=yes
10217 $as_echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.
$ac_ext >&5
10220 ac_header_compiler
=no
10223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10225 $as_echo "$ac_header_compiler" >&6; }
10227 # Is the header present?
10228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10229 $as_echo_n "checking $ac_header presence... " >&6; }
10230 cat >conftest.
$ac_ext <<_ACEOF
10233 cat confdefs.h
>>conftest.
$ac_ext
10234 cat >>conftest.
$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 #include <$ac_header>
10238 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10239 case "(($ac_try" in
10240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244 $as_echo "$ac_try_echo") >&5
10245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null && {
10252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10255 ac_header_preproc=yes
10257 $as_echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_header_preproc=no
10263 rm -f conftest.err conftest.$ac_ext
10264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10265 $as_echo "$ac_header_preproc" >&6; }
10267 # So? What about this header?
10268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10274 ac_header_preproc=yes
10277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 $as_echo_n "checking for $ac_header... " >&6; }
10294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10295 $as_echo_n "(cached) " >&6
10297 eval "$as_ac_Header=\$ac_header_preproc"
10299 ac_res=`eval 'as_val=${'$as_ac_Header'}
10300 $as_echo "$as_val"'`
10301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10302 $as_echo "$ac_res" >&6; }
10305 as_val=`eval 'as_val=${'$as_ac_Header'}
10306 $as_echo "$as_val"'`
10307 if test "x$as_val" = x""yes; then
10308 cat >>confdefs.h <<_ACEOF
10309 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10317 if test $ac_cv_header_Xm_XpmP_h = yes; then
10318 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10319 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10320 cat >conftest.$ac_ext <<_ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h. */
10326 #include <Xm/XpmP.h>
10330 XpmAttributes_21 attr;
10335 rm -f conftest.$ac_objext
10336 if { (ac_try="$ac_compile"
10337 case "(($ac_try" in
10338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10339 *) ac_try_echo
=$ac_try;;
10341 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10342 $as_echo "$ac_try_echo") >&5
10343 (eval "$ac_compile") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1
>conftest.err
10347 cat conftest.err
>&5
10348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest.
$ac_objext; then
10353 { $as_echo "$as_me:$LINENO: result: yes" >&5
10354 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10355 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10359 $as_echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.
$ac_ext >&5
10362 { $as_echo "$as_me:$LINENO: result: no" >&5
10363 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10364 #define XPMATTRIBUTES_TYPE XpmAttributes
10370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10372 cat >>confdefs.h
<<\_ACEOF
10373 #define XPMATTRIBUTES_TYPE XpmAttributes
10377 CPPFLAGS
=$cppflags_save
10380 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10381 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10382 $as_echo "no GUI selected; xim has been disabled" >&6; }
10385 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10386 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10387 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10388 enable_fontset
="no"
10390 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10391 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10392 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10393 enable_fontset
="no"
10396 if test -z "$SKIP_PHOTON"; then
10405 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10406 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10407 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10408 { (exit 1); exit 1; }; }
10411 if test "$enable_xim" = "yes"; then
10412 cat >>confdefs.h
<<\_ACEOF
10417 if test "$enable_fontset" = "yes"; then
10418 cat >>confdefs.h
<<\_ACEOF
10419 #define FEAT_XFONTSET 1
10427 if test "$enable_hangulinput" = "yes"; then
10428 if test "x$GUITYPE" = "xNONE"; then
10429 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10430 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10431 enable_hangulinput
=no
10433 cat >>confdefs.h
<<\_ACEOF
10434 #define FEAT_HANGULIN 1
10437 HANGULIN_SRC
=hangulin.c
10439 HANGULIN_OBJ
=objects
/hangulin.o
10445 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10446 $as_echo_n "checking whether toupper is broken... " >&6; }
10447 if test "${vim_cv_toupper_broken+set}" = set; then
10448 $as_echo_n "(cached) " >&6
10451 if test "$cross_compiling" = yes; then
10453 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10454 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10455 { (exit 1); exit 1; }; }
10458 cat >conftest.
$ac_ext <<_ACEOF
10460 #include "confdefs.h"
10463 # include <stdlib.h>
10464 # include <stddef.h>
10466 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10469 rm -f conftest
$ac_exeext
10470 if { (ac_try
="$ac_link"
10471 case "(($ac_try" in
10472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10483 *) ac_try_echo
=$ac_try;;
10485 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10486 $as_echo "$ac_try_echo") >&5
10487 (eval "$ac_try") 2>&5
10489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10492 vim_cv_toupper_broken
=yes
10495 $as_echo "$as_me: program exited with status $ac_status" >&5
10496 $as_echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.
$ac_ext >&5
10499 ( exit $ac_status )
10501 vim_cv_toupper_broken
=no
10504 rm -rf conftest.dSYM
10505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10510 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10511 $as_echo "$vim_cv_toupper_broken" >&6; }
10513 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10514 cat >>confdefs.h
<<\_ACEOF
10515 #define BROKEN_TOUPPER 1
10520 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10521 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10522 cat >conftest.
$ac_ext <<_ACEOF
10525 cat confdefs.h
>>conftest.
$ac_ext
10526 cat >>conftest.
$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10532 printf("(" __DATE__ " " __TIME__ ")");
10537 rm -f conftest.
$ac_objext
10538 if { (ac_try
="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10544 $as_echo "$ac_try_echo") >&5
10545 (eval "$ac_compile") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest.$ac_objext; then
10555 { $as_echo "$as_me:$LINENO: result: yes" >&5
10556 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10557 #define HAVE_DATE_TIME 1
10561 $as_echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10564 { $as_echo "$as_me:$LINENO: result: no" >&5
10565 $as_echo "no" >&6; }
10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10571 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10582 int x __attribute__((unused));
10587 rm -f conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
10589 case "(($ac_try" in
10590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10591 *) ac_try_echo
=$ac_try;;
10593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1
>conftest.err
10599 cat conftest.err
>&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.
$ac_objext; then
10605 { $as_echo "$as_me:$LINENO: result: yes" >&5
10606 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10607 #define HAVE_ATTRIBUTE_UNUSED 1
10611 $as_echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.
$ac_ext >&5
10614 { $as_echo "$as_me:$LINENO: result: no" >&5
10615 $as_echo "no" >&6; }
10618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10620 if test "${ac_cv_header_elf_h+set}" = set; then
10621 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10622 $as_echo_n "checking for elf.h... " >&6; }
10623 if test "${ac_cv_header_elf_h+set}" = set; then
10624 $as_echo_n "(cached) " >&6
10626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10627 $as_echo "$ac_cv_header_elf_h" >&6; }
10629 # Is the header compilable?
10630 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10631 $as_echo_n "checking elf.h usability... " >&6; }
10632 cat >conftest.
$ac_ext <<_ACEOF
10635 cat confdefs.h
>>conftest.
$ac_ext
10636 cat >>conftest.
$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10641 rm -f conftest.
$ac_objext
10642 if { (ac_try
="$ac_compile"
10643 case "(($ac_try" in
10644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10648 $as_echo "$ac_try_echo") >&5
10649 (eval "$ac_compile") 2>conftest.er1
10651 grep -v '^ *+' conftest.er1 >conftest.err
10653 cat conftest.err >&5
10654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } && {
10656 test -z "$ac_c_werror_flag" ||
10657 test ! -s conftest.err
10658 } && test -s conftest.$ac_objext; then
10659 ac_header_compiler=yes
10661 $as_echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_header_compiler=no
10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10669 $as_echo "$ac_header_compiler" >&6; }
10671 # Is the header present?
10672 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10673 $as_echo_n "checking elf.h presence... " >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10682 if { (ac_try="$ac_cpp conftest.$ac_ext"
10683 case "(($ac_try" in
10684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10685 *) ac_try_echo
=$ac_try;;
10687 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10688 $as_echo "$ac_try_echo") >&5
10689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10691 grep -v '^ *+' conftest.er1
>conftest.err
10693 cat conftest.err
>&5
10694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } >/dev
/null
&& {
10696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10699 ac_header_preproc
=yes
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.
$ac_ext >&5
10704 ac_header_preproc
=no
10707 rm -f conftest.err conftest.
$ac_ext
10708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10709 $as_echo "$ac_header_preproc" >&6; }
10711 # So? What about this header?
10712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10714 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10715 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10716 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10717 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10718 ac_header_preproc
=yes
10721 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10722 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10723 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10724 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10725 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10726 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10727 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10728 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10729 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10730 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10732 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10736 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10737 $as_echo_n "checking for elf.h... " >&6; }
10738 if test "${ac_cv_header_elf_h+set}" = set; then
10739 $as_echo_n "(cached) " >&6
10741 ac_cv_header_elf_h
=$ac_header_preproc
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10744 $as_echo "$ac_cv_header_elf_h" >&6; }
10747 if test "x$ac_cv_header_elf_h" = x
""yes; then
10752 if test "$HAS_ELF" = 1; then
10754 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10755 $as_echo_n "checking for main in -lelf... " >&6; }
10756 if test "${ac_cv_lib_elf_main+set}" = set; then
10757 $as_echo_n "(cached) " >&6
10759 ac_check_lib_save_LIBS
=$LIBS
10761 cat >conftest.
$ac_ext <<_ACEOF
10764 cat confdefs.h
>>conftest.
$ac_ext
10765 cat >>conftest.
$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10777 rm -f conftest.
$ac_objext conftest
$ac_exeext
10778 if { (ac_try
="$ac_link"
10779 case "(($ac_try" in
10780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10798 ac_cv_lib_elf_main=yes
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 ac_cv_lib_elf_main=no
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10812 $as_echo "$ac_cv_lib_elf_main" >&6; }
10813 if test "x$ac_cv_lib_elf_main" = x""yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define HAVE_LIBELF 1
10829 ac_header_dirent=no
10830 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10831 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10832 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10833 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835 $as_echo_n "(cached) " >&6
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <sys/types.h>
10855 rm -f conftest.$ac_objext
10856 if { (ac_try="$ac_compile"
10857 case "(($ac_try" in
10858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10859 *) ac_try_echo
=$ac_try;;
10861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10862 $as_echo "$ac_try_echo") >&5
10863 (eval "$ac_compile") 2>conftest.er1
10865 grep -v '^ *+' conftest.er1
>conftest.err
10867 cat conftest.err
>&5
10868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && {
10870 test -z "$ac_c_werror_flag" ||
10871 test ! -s conftest.err
10872 } && test -s conftest.
$ac_objext; then
10873 eval "$as_ac_Header=yes"
10875 $as_echo "$as_me: failed program was:" >&5
10876 sed 's/^/| /' conftest.
$ac_ext >&5
10878 eval "$as_ac_Header=no"
10881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10883 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10884 $as_echo "$as_val"'`
10885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10887 as_val
=`eval 'as_val=${'$as_ac_Header'}
10888 $as_echo "$as_val"'`
10889 if test "x$as_val" = x
""yes; then
10890 cat >>confdefs.h
<<_ACEOF
10891 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10894 ac_header_dirent
=$ac_hdr; break
10898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10899 if test $ac_header_dirent = dirent.h
; then
10900 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10901 $as_echo_n "checking for library containing opendir... " >&6; }
10902 if test "${ac_cv_search_opendir+set}" = set; then
10903 $as_echo_n "(cached) " >&6
10905 ac_func_search_save_LIBS
=$LIBS
10906 cat >conftest.
$ac_ext <<_ACEOF
10909 cat confdefs.h
>>conftest.
$ac_ext
10910 cat >>conftest.
$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10928 for ac_lib
in '' dir
; do
10929 if test -z "$ac_lib"; then
10930 ac_res
="none required"
10933 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10935 rm -f conftest.
$ac_objext conftest
$ac_exeext
10936 if { (ac_try
="$ac_link"
10937 case "(($ac_try" in
10938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10942 $as_echo "$ac_try_echo") >&5
10943 (eval "$ac_link") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest$ac_exeext && {
10953 test "$cross_compiling" = yes ||
10954 $as_test_x conftest$ac_exeext
10956 ac_cv_search_opendir=$ac_res
10958 $as_echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.$ac_ext >&5
10964 rm -rf conftest.dSYM
10965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10967 if test "${ac_cv_search_opendir+set}" = set; then
10971 if test "${ac_cv_search_opendir+set}" = set; then
10974 ac_cv_search_opendir=no
10976 rm conftest.$ac_ext
10977 LIBS=$ac_func_search_save_LIBS
10979 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980 $as_echo "$ac_cv_search_opendir" >&6; }
10981 ac_res=$ac_cv_search_opendir
10982 if test "$ac_res" != no; then
10983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10988 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10989 $as_echo_n "checking for library containing opendir... " >&6; }
10990 if test "${ac_cv_search_opendir+set}" = set; then
10991 $as_echo_n "(cached) " >&6
10993 ac_func_search_save_LIBS=$LIBS
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11016 for ac_lib in '' x; do
11017 if test -z "$ac_lib"; then
11018 ac_res="none required"
11021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11027 *) ac_try_echo
=$ac_try;;
11029 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11030 $as_echo "$ac_try_echo") >&5
11031 (eval "$ac_link") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1
>conftest.err
11035 cat conftest.err
>&5
11036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest
$ac_exeext && {
11041 test "$cross_compiling" = yes ||
11042 $as_test_x conftest
$ac_exeext
11044 ac_cv_search_opendir
=$ac_res
11046 $as_echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.
$ac_ext >&5
11052 rm -rf conftest.dSYM
11053 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11055 if test "${ac_cv_search_opendir+set}" = set; then
11059 if test "${ac_cv_search_opendir+set}" = set; then
11062 ac_cv_search_opendir
=no
11064 rm conftest.
$ac_ext
11065 LIBS
=$ac_func_search_save_LIBS
11067 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11068 $as_echo "$ac_cv_search_opendir" >&6; }
11069 ac_res
=$ac_cv_search_opendir
11070 if test "$ac_res" != no
; then
11071 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11078 if test $ac_cv_header_sys_wait_h = no
; then
11079 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11080 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11081 cat >conftest.
$ac_ext <<_ACEOF
11084 cat confdefs.h
>>conftest.
$ac_ext
11085 cat >>conftest.
$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 #include <sys/wait.h>
11091 union wait xx, yy; xx = yy
11096 rm -f conftest.
$ac_objext
11097 if { (ac_try
="$ac_compile"
11098 case "(($ac_try" in
11099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11100 *) ac_try_echo=$ac_try;;
11102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11103 $as_echo "$ac_try_echo") >&5
11104 (eval "$ac_compile") 2>conftest.er1
11106 grep -v '^ *+' conftest.er1 >conftest.err
11108 cat conftest.err >&5
11109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); } && {
11111 test -z "$ac_c_werror_flag" ||
11112 test ! -s conftest.err
11113 } && test -s conftest.$ac_objext; then
11114 { $as_echo "$as_me:$LINENO: result: yes" >&5
11115 $as_echo "yes" >&6; }
11116 cat >>confdefs.h <<\_ACEOF
11117 #define HAVE_SYS_WAIT_H 1
11120 cat >>confdefs.h <<\_ACEOF
11121 #define HAVE_UNION_WAIT 1
11125 $as_echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 { $as_echo "$as_me:$LINENO: result: no" >&5
11129 $as_echo "no" >&6; }
11132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11176 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11177 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11178 sys/resource.h sys/systeminfo.h locale.h \
11179 sys/stream.h termios.h libc.h sys/statfs.h \
11180 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11181 libgen.h util/debug.h util/msg18n.h frame.h \
11182 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11187 $as_echo_n "checking for $ac_header... " >&6; }
11188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 $as_echo_n "(cached) " >&6
11191 ac_res=`eval 'as_val=${'$as_ac_Header'}
11192 $as_echo "$as_val"'`
11193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11194 $as_echo "$ac_res" >&6; }
11196 # Is the header compilable?
11197 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11198 $as_echo_n "checking $ac_header usability... " >&6; }
11199 cat >conftest.$ac_ext <<_ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 $ac_includes_default
11206 #include <$ac_header>
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11212 *) ac_try_echo
=$ac_try;;
11214 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11215 $as_echo "$ac_try_echo") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11218 grep -v '^ *+' conftest.er1
>conftest.err
11220 cat conftest.err
>&5
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.
$ac_objext; then
11226 ac_header_compiler
=yes
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.
$ac_ext >&5
11231 ac_header_compiler
=no
11234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236 $as_echo "$ac_header_compiler" >&6; }
11238 # Is the header present?
11239 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240 $as_echo_n "checking $ac_header presence... " >&6; }
11241 cat >conftest.
$ac_ext <<_ACEOF
11244 cat confdefs.h
>>conftest.
$ac_ext
11245 cat >>conftest.
$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 #include <$ac_header>
11249 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11250 case "(($ac_try" in
11251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11255 $as_echo "$ac_try_echo") >&5
11256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null && {
11263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11264 test ! -s conftest.err
11266 ac_header_preproc=yes
11268 $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ac_header_preproc=no
11274 rm -f conftest.err conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276 $as_echo "$ac_header_preproc" >&6; }
11278 # So? What about this header?
11279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285 ac_header_preproc=yes
11288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11303 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 $as_echo_n "checking for $ac_header... " >&6; }
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 $as_echo_n "(cached) " >&6
11308 eval "$as_ac_Header=\$ac_header_preproc"
11310 ac_res=`eval 'as_val=${'$as_ac_Header'}
11311 $as_echo "$as_val"'`
11312 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11313 $as_echo "$ac_res" >&6; }
11316 as_val=`eval 'as_val=${'$as_ac_Header'}
11317 $as_echo "$as_val"'`
11318 if test "x$as_val" = x""yes; then
11319 cat >>confdefs.h <<_ACEOF
11320 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11329 for ac_header in sys/ptem.h
11331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11333 $as_echo_n "checking for $ac_header... " >&6; }
11334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11335 $as_echo_n "(cached) " >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #if defined HAVE_SYS_STREAM_H
11344 # include <sys/stream.h>
11347 #include <$ac_header>
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11353 *) ac_try_echo
=$ac_try;;
11355 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11356 $as_echo "$ac_try_echo") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11359 grep -v '^ *+' conftest.er1
>conftest.err
11361 cat conftest.err
>&5
11362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest.
$ac_objext; then
11367 eval "$as_ac_Header=yes"
11369 $as_echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.
$ac_ext >&5
11372 eval "$as_ac_Header=no"
11375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11377 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11378 $as_echo "$as_val"'`
11379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11380 $as_echo "$ac_res" >&6; }
11381 as_val
=`eval 'as_val=${'$as_ac_Header'}
11382 $as_echo "$as_val"'`
11383 if test "x$as_val" = x
""yes; then
11384 cat >>confdefs.h
<<_ACEOF
11385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11394 for ac_header
in sys
/sysctl.h
11396 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11398 $as_echo_n "checking for $ac_header... " >&6; }
11399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 $as_echo_n "(cached) " >&6
11402 cat >conftest.
$ac_ext <<_ACEOF
11405 cat confdefs.h
>>conftest.
$ac_ext
11406 cat >>conftest.
$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #if defined HAVE_SYS_PARAM_H
11409 # include <sys/param.h>
11412 #include <$ac_header>
11414 rm -f conftest.
$ac_objext
11415 if { (ac_try
="$ac_compile"
11416 case "(($ac_try" in
11417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11418 *) ac_try_echo=$ac_try;;
11420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11421 $as_echo "$ac_try_echo") >&5
11422 (eval "$ac_compile") 2>conftest.er1
11424 grep -v '^ *+' conftest.er1 >conftest.err
11426 cat conftest.err >&5
11427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && {
11429 test -z "$ac_c_werror_flag" ||
11430 test ! -s conftest.err
11431 } && test -s conftest.$ac_objext; then
11432 eval "$as_ac_Header=yes"
11434 $as_echo "$as_me: failed program was:" >&5
11435 sed 's/^/| /' conftest.$ac_ext >&5
11437 eval "$as_ac_Header=no"
11440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 ac_res=`eval 'as_val=${'$as_ac_Header'}
11443 $as_echo "$as_val"'`
11444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11445 $as_echo "$ac_res" >&6; }
11446 as_val=`eval 'as_val=${'$as_ac_Header'}
11447 $as_echo "$as_val"'`
11448 if test "x$as_val" = x""yes; then
11449 cat >>confdefs.h <<_ACEOF
11450 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11459 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11460 $as_echo_n "checking for pthread_np.h... " >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11468 #include <pthread.h>
11469 #include <pthread_np.h>
11478 rm -f conftest.$ac_objext
11479 if { (ac_try="$ac_compile"
11480 case "(($ac_try" in
11481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11482 *) ac_try_echo
=$ac_try;;
11484 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11485 $as_echo "$ac_try_echo") >&5
11486 (eval "$ac_compile") 2>conftest.er1
11488 grep -v '^ *+' conftest.er1
>conftest.err
11490 cat conftest.err
>&5
11491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } && {
11493 test -z "$ac_c_werror_flag" ||
11494 test ! -s conftest.err
11495 } && test -s conftest.
$ac_objext; then
11496 { $as_echo "$as_me:$LINENO: result: yes" >&5
11497 $as_echo "yes" >&6; }
11498 cat >>confdefs.h
<<\_ACEOF
11499 #define HAVE_PTHREAD_NP_H 1
11503 $as_echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.
$ac_ext >&5
11506 { $as_echo "$as_me:$LINENO: result: no" >&5
11507 $as_echo "no" >&6; }
11510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11513 for ac_header
in strings.h
11515 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11518 $as_echo_n "checking for $ac_header... " >&6; }
11519 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 $as_echo_n "(cached) " >&6
11522 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11523 $as_echo "$as_val"'`
11524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11525 $as_echo "$ac_res" >&6; }
11527 # Is the header compilable?
11528 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11529 $as_echo_n "checking $ac_header usability... " >&6; }
11530 cat >conftest.
$ac_ext <<_ACEOF
11533 cat confdefs.h
>>conftest.
$ac_ext
11534 cat >>conftest.
$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 #include <$ac_header>
11539 rm -f conftest.
$ac_objext
11540 if { (ac_try
="$ac_compile"
11541 case "(($ac_try" in
11542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11546 $as_echo "$ac_try_echo") >&5
11547 (eval "$ac_compile") 2>conftest.er1
11549 grep -v '^ *+' conftest.er1 >conftest.err
11551 cat conftest.err >&5
11552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest.$ac_objext; then
11557 ac_header_compiler=yes
11559 $as_echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.$ac_ext >&5
11562 ac_header_compiler=no
11565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11567 $as_echo "$ac_header_compiler" >&6; }
11569 # Is the header present?
11570 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11571 $as_echo_n "checking $ac_header presence... " >&6; }
11572 cat >conftest.$ac_ext <<_ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h. */
11578 #include <$ac_header>
11580 if { (ac_try="$ac_cpp conftest.$ac_ext"
11581 case "(($ac_try" in
11582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11583 *) ac_try_echo
=$ac_try;;
11585 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11589 grep -v '^ *+' conftest.er1
>conftest.err
11591 cat conftest.err
>&5
11592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } >/dev
/null
&& {
11594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11597 ac_header_preproc
=yes
11599 $as_echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.
$ac_ext >&5
11602 ac_header_preproc
=no
11605 rm -f conftest.err conftest.
$ac_ext
11606 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11607 $as_echo "$ac_header_preproc" >&6; }
11609 # So? What about this header?
11610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11616 ac_header_preproc
=yes
11619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11620 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11635 $as_echo_n "checking for $ac_header... " >&6; }
11636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11637 $as_echo_n "(cached) " >&6
11639 eval "$as_ac_Header=\$ac_header_preproc"
11641 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11642 $as_echo "$as_val"'`
11643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11644 $as_echo "$ac_res" >&6; }
11647 as_val
=`eval 'as_val=${'$as_ac_Header'}
11648 $as_echo "$as_val"'`
11649 if test "x$as_val" = x
""yes; then
11650 cat >>confdefs.h
<<_ACEOF
11651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11658 if test "x$MACOSX" = "xyes"; then
11659 cat >>confdefs.h
<<\_ACEOF
11660 #define NO_STRINGS_WITH_STRING_H 1
11665 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11666 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11667 cppflags_save
=$CPPFLAGS
11668 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11669 cat >conftest.
$ac_ext <<_ACEOF
11672 cat confdefs.h
>>conftest.
$ac_ext
11673 cat >>conftest.
$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11677 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11678 /* but don't do it on AIX 5.1 (Uribarri) */
11680 #ifdef HAVE_XM_XM_H
11681 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11683 #ifdef HAVE_STRING_H
11684 # include <string.h>
11686 #if defined(HAVE_STRINGS_H)
11687 # include <strings.h>
11698 rm -f conftest.
$ac_objext
11699 if { (ac_try
="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 $as_echo "$ac_try_echo") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest.$ac_objext; then
11716 { $as_echo "$as_me:$LINENO: result: yes" >&5
11717 $as_echo "yes" >&6; }
11719 $as_echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 cat >>confdefs.h <<\_ACEOF
11723 #define NO_STRINGS_WITH_STRING_H 1
11726 { $as_echo "$as_me:$LINENO: result: no" >&5
11727 $as_echo "no" >&6; }
11730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11731 CPPFLAGS=$cppflags_save
11734 if test $ac_cv_c_compiler_gnu = yes; then
11735 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11736 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11737 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11738 $as_echo_n "(cached) " >&6
11740 ac_pattern="Autoconf.*'x'"
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11751 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11752 ac_cv_prog_gcc_traditional=yes
11754 ac_cv_prog_gcc_traditional=no
11759 if test $ac_cv_prog_gcc_traditional = no; then
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 #include <termio.h>
11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11770 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11771 ac_cv_prog_gcc_traditional=yes
11777 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11778 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11779 if test $ac_cv_prog_gcc_traditional = yes; then
11780 CC="$CC -traditional"
11784 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11785 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11786 if test "${ac_cv_c_const+set}" = set; then
11787 $as_echo_n "(cached) " >&6
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11799 /* FIXME: Include the comments suggested by Paul. */
11800 #ifndef __cplusplus
11801 /* Ultrix mips cc rejects this. */
11802 typedef int charset[2];
11804 /* SunOS 4.1.1 cc rejects this. */
11805 char const *const *pcpcc;
11807 /* NEC SVR4.0.2 mips cc rejects this. */
11808 struct point {int x, y;};
11809 static struct point const zero = {0,0};
11810 /* AIX XL C 1.02.0.0 rejects this.
11811 It does not let you subtract one const X* pointer from another in
11812 an arm of an if-expression whose if-part is not a constant
11814 const char *g = "string";
11815 pcpcc = &g + (g ? g-g : 0);
11816 /* HPUX 7.0 cc rejects these. */
11818 ppc = (char**) pcpcc;
11819 pcpcc = (char const *const *) ppc;
11820 { /* SCO 3.2v4 cc rejects this. */
11822 char const *s = 0 ? (char *) 0 : (char const *) 0;
11827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11828 int x[] = {25, 17};
11829 const int *foo = &x[0];
11832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11833 typedef const int *iptr;
11837 { /* AIX XL C 1.02.0.0 rejects this saying
11838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11839 struct s { int j; const int *ap[3]; };
11840 struct s *b; b->j = 5;
11842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11843 const int foo = 10;
11844 if (!foo) return 0;
11846 return !cs[0] && !zero.x;
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11857 *) ac_try_echo
=$ac_try;;
11859 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11860 $as_echo "$ac_try_echo") >&5
11861 (eval "$ac_compile") 2>conftest.er1
11863 grep -v '^ *+' conftest.er1
>conftest.err
11865 cat conftest.err
>&5
11866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest.
$ac_objext; then
11873 $as_echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.
$ac_ext >&5
11879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11881 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11882 $as_echo "$ac_cv_c_const" >&6; }
11883 if test $ac_cv_c_const = no
; then
11885 cat >>confdefs.h
<<\_ACEOF
11891 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11892 $as_echo_n "checking for working volatile... " >&6; }
11893 if test "${ac_cv_c_volatile+set}" = set; then
11894 $as_echo_n "(cached) " >&6
11896 cat >conftest.
$ac_ext <<_ACEOF
11899 cat confdefs.h
>>conftest.
$ac_ext
11900 cat >>conftest.
$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11908 int * volatile y = (int *) 0;
11914 rm -f conftest.
$ac_objext
11915 if { (ac_try
="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11921 $as_echo "$ac_try_echo") >&5
11922 (eval "$ac_compile") 2>conftest.er1
11924 grep -v '^ *+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } && {
11929 test -z "$ac_c_werror_flag" ||
11930 test ! -s conftest.err
11931 } && test -s conftest.$ac_objext; then
11932 ac_cv_c_volatile=yes
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_cv_c_volatile=no
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11943 $as_echo "$ac_cv_c_volatile" >&6; }
11944 if test $ac_cv_c_volatile = no; then
11946 cat >>confdefs.h <<\_ACEOF
11947 #define volatile /**/
11952 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11953 $as_echo_n "checking for mode_t... " >&6; }
11954 if test "${ac_cv_type_mode_t+set}" = set; then
11955 $as_echo_n "(cached) " >&6
11957 ac_cv_type_mode_t=no
11958 cat >conftest.$ac_ext <<_ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11964 $ac_includes_default
11968 if (sizeof (mode_t))
11974 rm -f conftest.$ac_objext
11975 if { (ac_try="$ac_compile"
11976 case "(($ac_try" in
11977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11978 *) ac_try_echo
=$ac_try;;
11980 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11981 $as_echo "$ac_try_echo") >&5
11982 (eval "$ac_compile") 2>conftest.er1
11984 grep -v '^ *+' conftest.er1
>conftest.err
11986 cat conftest.err
>&5
11987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } && {
11989 test -z "$ac_c_werror_flag" ||
11990 test ! -s conftest.err
11991 } && test -s conftest.
$ac_objext; then
11992 cat >conftest.
$ac_ext <<_ACEOF
11995 cat confdefs.h
>>conftest.
$ac_ext
11996 cat >>conftest.
$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
12002 if (sizeof ((mode_t)))
12008 rm -f conftest.
$ac_objext
12009 if { (ac_try
="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015 $as_echo "$ac_try_echo") >&5
12016 (eval "$ac_compile") 2>conftest.er1
12018 grep -v '^ *+' conftest.er1 >conftest.err
12020 cat conftest.err >&5
12021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest.$ac_objext; then
12028 $as_echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12031 ac_cv_type_mode_t=yes
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036 $as_echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12045 $as_echo "$ac_cv_type_mode_t" >&6; }
12046 if test "x$ac_cv_type_mode_t" = x""yes; then
12050 cat >>confdefs.h <<_ACEOF
12056 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12057 $as_echo_n "checking for off_t... " >&6; }
12058 if test "${ac_cv_type_off_t+set}" = set; then
12059 $as_echo_n "(cached) " >&6
12061 ac_cv_type_off_t=no
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 $ac_includes_default
12072 if (sizeof (off_t))
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12082 *) ac_try_echo
=$ac_try;;
12084 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12085 $as_echo "$ac_try_echo") >&5
12086 (eval "$ac_compile") 2>conftest.er1
12088 grep -v '^ *+' conftest.er1
>conftest.err
12090 cat conftest.err
>&5
12091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest.
$ac_objext; then
12096 cat >conftest.
$ac_ext <<_ACEOF
12099 cat confdefs.h
>>conftest.
$ac_ext
12100 cat >>conftest.
$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 $ac_includes_default
12106 if (sizeof ((off_t)))
12112 rm -f conftest.
$ac_objext
12113 if { (ac_try
="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12119 $as_echo "$ac_try_echo") >&5
12120 (eval "$ac_compile") 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && {
12127 test -z "$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12129 } && test -s conftest.$ac_objext; then
12132 $as_echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_cv_type_off_t=yes
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.$ac_ext >&5
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12149 $as_echo "$ac_cv_type_off_t" >&6; }
12150 if test "x$ac_cv_type_off_t" = x""yes; then
12154 cat >>confdefs.h <<_ACEOF
12155 #define off_t long int
12160 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12161 $as_echo_n "checking for pid_t... " >&6; }
12162 if test "${ac_cv_type_pid_t+set}" = set; then
12163 $as_echo_n "(cached) " >&6
12165 ac_cv_type_pid_t=no
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 $ac_includes_default
12176 if (sizeof (pid_t))
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12186 *) ac_try_echo
=$ac_try;;
12188 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12189 $as_echo "$ac_try_echo") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1
>conftest.err
12194 cat conftest.err
>&5
12195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.
$ac_objext; then
12200 cat >conftest.
$ac_ext <<_ACEOF
12203 cat confdefs.h
>>conftest.
$ac_ext
12204 cat >>conftest.
$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12210 if (sizeof ((pid_t)))
12216 rm -f conftest.
$ac_objext
12217 if { (ac_try
="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_type_pid_t=yes
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 $as_echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12253 $as_echo "$ac_cv_type_pid_t" >&6; }
12254 if test "x$ac_cv_type_pid_t" = x""yes; then
12258 cat >>confdefs.h <<_ACEOF
12264 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12265 $as_echo_n "checking for size_t... " >&6; }
12266 if test "${ac_cv_type_size_t+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12269 ac_cv_type_size_t=no
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12276 $ac_includes_default
12280 if (sizeof (size_t))
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12290 *) ac_try_echo
=$ac_try;;
12292 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_compile") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1
>conftest.err
12298 cat conftest.err
>&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.
$ac_objext; then
12304 cat >conftest.
$ac_ext <<_ACEOF
12307 cat confdefs.h
>>conftest.
$ac_ext
12308 cat >>conftest.
$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12314 if (sizeof ((size_t)))
12320 rm -f conftest.
$ac_objext
12321 if { (ac_try
="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12327 $as_echo "$ac_try_echo") >&5
12328 (eval "$ac_compile") 2>conftest.er1
12330 grep -v '^ *+' conftest.er1 >conftest.err
12332 cat conftest.err >&5
12333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } && {
12335 test -z "$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12337 } && test -s conftest.$ac_objext; then
12340 $as_echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ac_cv_type_size_t=yes
12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 $as_echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12357 $as_echo "$ac_cv_type_size_t" >&6; }
12358 if test "x$ac_cv_type_size_t" = x""yes; then
12362 cat >>confdefs.h <<_ACEOF
12363 #define size_t unsigned int
12368 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12369 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12370 if test "${ac_cv_type_uid_t+set}" = set; then
12371 $as_echo_n "(cached) " >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 #include <sys/types.h>
12382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12383 $EGREP "uid_t" >/dev/null 2>&1; then
12384 ac_cv_type_uid_t=yes
12386 ac_cv_type_uid_t=no
12391 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12392 $as_echo "$ac_cv_type_uid_t" >&6; }
12393 if test $ac_cv_type_uid_t = no; then
12395 cat >>confdefs.h <<\_ACEOF
12400 cat >>confdefs.h <<\_ACEOF
12406 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12407 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12408 if test "${ac_cv_header_time+set}" = set; then
12409 $as_echo_n "(cached) " >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <sys/types.h>
12418 #include <sys/time.h>
12424 if ((struct tm *) 0)
12430 rm -f conftest.$ac_objext
12431 if { (ac_try="$ac_compile"
12432 case "(($ac_try" in
12433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12434 *) ac_try_echo
=$ac_try;;
12436 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12437 $as_echo "$ac_try_echo") >&5
12438 (eval "$ac_compile") 2>conftest.er1
12440 grep -v '^ *+' conftest.er1
>conftest.err
12442 cat conftest.err
>&5
12443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest.
$ac_objext; then
12448 ac_cv_header_time
=yes
12450 $as_echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.
$ac_ext >&5
12453 ac_cv_header_time
=no
12456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12458 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12459 $as_echo "$ac_cv_header_time" >&6; }
12460 if test $ac_cv_header_time = yes; then
12462 cat >>confdefs.h
<<\_ACEOF
12463 #define TIME_WITH_SYS_TIME 1
12468 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12469 $as_echo_n "checking for ino_t... " >&6; }
12470 if test "${ac_cv_type_ino_t+set}" = set; then
12471 $as_echo_n "(cached) " >&6
12473 ac_cv_type_ino_t
=no
12474 cat >conftest.
$ac_ext <<_ACEOF
12477 cat confdefs.h
>>conftest.
$ac_ext
12478 cat >>conftest.
$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12484 if (sizeof (ino_t))
12490 rm -f conftest.
$ac_objext
12491 if { (ac_try
="$ac_compile"
12492 case "(($ac_try" in
12493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12497 $as_echo "$ac_try_echo") >&5
12498 (eval "$ac_compile") 2>conftest.er1
12500 grep -v '^ *+' conftest.er1 >conftest.err
12502 cat conftest.err >&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } && {
12505 test -z "$ac_c_werror_flag" ||
12506 test ! -s conftest.err
12507 } && test -s conftest.$ac_objext; then
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 $ac_includes_default
12518 if (sizeof ((ino_t)))
12524 rm -f conftest.$ac_objext
12525 if { (ac_try="$ac_compile"
12526 case "(($ac_try" in
12527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12528 *) ac_try_echo
=$ac_try;;
12530 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12531 $as_echo "$ac_try_echo") >&5
12532 (eval "$ac_compile") 2>conftest.er1
12534 grep -v '^ *+' conftest.er1
>conftest.err
12536 cat conftest.err
>&5
12537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest.
$ac_objext; then
12544 $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.
$ac_ext >&5
12547 ac_cv_type_ino_t
=yes
12550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12552 $as_echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.
$ac_ext >&5
12558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12561 $as_echo "$ac_cv_type_ino_t" >&6; }
12562 if test "x$ac_cv_type_ino_t" = x
""yes; then
12566 cat >>confdefs.h
<<_ACEOF
12572 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12573 $as_echo_n "checking for dev_t... " >&6; }
12574 if test "${ac_cv_type_dev_t+set}" = set; then
12575 $as_echo_n "(cached) " >&6
12577 ac_cv_type_dev_t
=no
12578 cat >conftest.
$ac_ext <<_ACEOF
12581 cat confdefs.h
>>conftest.
$ac_ext
12582 cat >>conftest.
$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 $ac_includes_default
12588 if (sizeof (dev_t))
12594 rm -f conftest.
$ac_objext
12595 if { (ac_try
="$ac_compile"
12596 case "(($ac_try" in
12597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601 $as_echo "$ac_try_echo") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12612 cat >conftest.$ac_ext <<_ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12622 if (sizeof ((dev_t)))
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12632 *) ac_try_echo
=$ac_try;;
12634 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12635 $as_echo "$ac_try_echo") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1
>conftest.err
12640 cat conftest.err
>&5
12641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.
$ac_objext; then
12648 $as_echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.
$ac_ext >&5
12651 ac_cv_type_dev_t
=yes
12654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12656 $as_echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12665 $as_echo "$ac_cv_type_dev_t" >&6; }
12666 if test "x$ac_cv_type_dev_t" = x
""yes; then
12670 cat >>confdefs.h
<<_ACEOF
12671 #define dev_t unsigned
12677 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12678 $as_echo_n "checking for rlim_t... " >&6; }
12679 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12680 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12681 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12683 cat >conftest.
$ac_ext <<_ACEOF
12686 cat confdefs.h
>>conftest.
$ac_ext
12687 cat >>conftest.
$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12690 #include <sys/types.h>
12692 # include <stdlib.h>
12693 # include <stddef.h>
12695 #ifdef HAVE_SYS_RESOURCE_H
12696 # include <sys/resource.h>
12700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12701 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12702 ac_cv_type_rlim_t
=yes
12704 ac_cv_type_rlim_t
=no
12708 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12709 $as_echo "$ac_cv_type_rlim_t" >&6; }
12711 if test $ac_cv_type_rlim_t = no
; then
12712 cat >> confdefs.h
<<\EOF
12713 #define rlim_t unsigned long
12717 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12718 $as_echo_n "checking for stack_t... " >&6; }
12719 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12720 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12721 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12723 cat >conftest.
$ac_ext <<_ACEOF
12726 cat confdefs.h
>>conftest.
$ac_ext
12727 cat >>conftest.
$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12730 #include <sys/types.h>
12732 # include <stdlib.h>
12733 # include <stddef.h>
12735 #include <signal.h>
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "stack_t" >/dev
/null
2>&1; then
12740 ac_cv_type_stack_t
=yes
12742 ac_cv_type_stack_t
=no
12746 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12747 $as_echo "$ac_cv_type_stack_t" >&6; }
12749 if test $ac_cv_type_stack_t = no
; then
12750 cat >> confdefs.h
<<\EOF
12751 #define stack_t struct sigaltstack
12755 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12756 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12757 cat >conftest.
$ac_ext <<_ACEOF
12760 cat confdefs.h
>>conftest.
$ac_ext
12761 cat >>conftest.
$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 #include <sys/types.h>
12766 # include <stdlib.h>
12767 # include <stddef.h>
12769 #include <signal.h>
12770 #include "confdefs.h"
12775 stack_t sigstk; sigstk.ss_base = 0;
12780 rm -f conftest.
$ac_objext
12781 if { (ac_try
="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12787 $as_echo "$ac_try_echo") >&5
12788 (eval "$ac_compile") 2>conftest.er1
12790 grep -v '^ *+' conftest.er1 >conftest.err
12792 cat conftest.err >&5
12793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } && {
12795 test -z "$ac_c_werror_flag" ||
12796 test ! -s conftest.err
12797 } && test -s conftest.$ac_objext; then
12798 { $as_echo "$as_me:$LINENO: result: yes" >&5
12799 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12800 #define HAVE_SS_BASE 1
12804 $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 { $as_echo "$as_me:$LINENO: result: no" >&5
12808 $as_echo "no" >&6; }
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12815 $as_echo_n "checking --with-tlib argument... " >&6; }
12817 # Check whether --with-tlib was given.
12818 if test "${with_tlib+set}" = set; then
12819 withval=$with_tlib;
12822 if test -n "$with_tlib"; then
12823 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12824 $as_echo "$with_tlib" >&6; }
12825 LIBS="$LIBS -l$with_tlib"
12826 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12827 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12828 cat >conftest.$ac_ext <<_ACEOF
12831 cat confdefs.h >>conftest.$ac_ext
12832 cat >>conftest.$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12847 *) ac_try_echo
=$ac_try;;
12849 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12850 $as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1
>conftest.err
12855 cat conftest.err
>&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest
$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest
$ac_exeext
12864 { $as_echo "$as_me:$LINENO: result: OK" >&5
12865 $as_echo "OK" >&6; }
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.
$ac_ext >&5
12870 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12871 $as_echo "$as_me: error: FAILED" >&2;}
12872 { (exit 1); exit 1; }; }
12875 rm -rf conftest.dSYM
12876 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12877 conftest
$ac_exeext conftest.
$ac_ext
12880 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12881 $as_echo "empty: automatic terminal library selection" >&6; }
12882 case "`uname -s 2>/dev/null`" in
12883 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12884 *) tlibs
="ncurses termlib termcap curses";;
12886 for libname
in $tlibs; do
12888 as_ac_Lib
=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12889 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12890 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12891 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12892 $as_echo_n "(cached) " >&6
12894 ac_check_lib_save_LIBS
=$LIBS
12895 LIBS
="-l${libname} $LIBS"
12896 cat >conftest.
$ac_ext <<_ACEOF
12899 cat confdefs.h
>>conftest.
$ac_ext
12900 cat >>conftest.
$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12918 rm -f conftest.
$ac_objext conftest
$ac_exeext
12919 if { (ac_try
="$ac_link"
12920 case "(($ac_try" in
12921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12925 $as_echo "$ac_try_echo") >&5
12926 (eval "$ac_link") 2>conftest.er1
12928 grep -v '^ *+' conftest.er1 >conftest.err
12930 cat conftest.err >&5
12931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); } && {
12933 test -z "$ac_c_werror_flag" ||
12934 test ! -s conftest.err
12935 } && test -s conftest$ac_exeext && {
12936 test "$cross_compiling" = yes ||
12937 $as_test_x conftest$ac_exeext
12939 eval "$as_ac_Lib=yes"
12941 $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12944 eval "$as_ac_Lib=no"
12947 rm -rf conftest.dSYM
12948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12953 $as_echo "$as_val"'`
12954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12955 $as_echo "$ac_res" >&6; }
12956 as_val=`eval 'as_val=${'$as_ac_Lib'}
12957 $as_echo "$as_val"'`
12958 if test "x$as_val" = x""yes; then
12959 cat >>confdefs.h <<_ACEOF
12960 #define `$as_echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12963 LIBS="-l${libname} $LIBS"
12967 if test "x$olibs" != "x$LIBS"; then
12968 if test "$cross_compiling" = yes; then
12971 cat >conftest.$ac_ext <<_ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12978 #ifdef HAVE_TERMCAP_H
12979 # include <termcap.h>
12982 # include <stdlib.h>
12983 # include <stddef.h>
12985 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12987 rm -f conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12991 *) ac_try_echo
=$ac_try;;
12993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12994 $as_echo "$ac_try_echo") >&5
12995 (eval "$ac_link") 2>&5
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12999 { (case "(($ac_try" in
13000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13004 $as_echo "$ac_try_echo") >&5
13005 (eval "$ac_try") 2>&5
13007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13011 $as_echo "$as_me: program exited with status $ac_status" >&5
13012 $as_echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ( exit $ac_status )
13018 rm -rf conftest.dSYM
13019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13023 if test "$res" = "OK"; then
13026 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13027 $as_echo "$libname library is not usable" >&6; }
13031 if test "x$olibs" = "x$LIBS"; then
13032 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13033 $as_echo "no terminal library found" >&6; }
13037 if test "x$olibs" = "x$LIBS"; then
13038 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13039 $as_echo_n "checking for tgetent()... " >&6; }
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13050 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13059 *) ac_try_echo
=$ac_try;;
13061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063 (eval "$ac_link") 2>conftest.er1
13065 grep -v '^ *+' conftest.er1
>conftest.err
13067 cat conftest.err
>&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest
$ac_exeext && {
13073 test "$cross_compiling" = yes ||
13074 $as_test_x conftest
$ac_exeext
13076 { $as_echo "$as_me:$LINENO: result: yes" >&5
13077 $as_echo "yes" >&6; }
13079 $as_echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.
$ac_ext >&5
13082 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13083 You need to install a terminal library; for example ncurses.
13084 Or specify the name of the library with --with-tlib." >&5
13085 $as_echo "$as_me: error: NOT FOUND!
13086 You need to install a terminal library; for example ncurses.
13087 Or specify the name of the library with --with-tlib." >&2;}
13088 { (exit 1); exit 1; }; }
13091 rm -rf conftest.dSYM
13092 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13093 conftest
$ac_exeext conftest.
$ac_ext
13096 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13097 $as_echo_n "checking whether we talk terminfo... " >&6; }
13098 if test "${vim_cv_terminfo+set}" = set; then
13099 $as_echo_n "(cached) " >&6
13102 if test "$cross_compiling" = yes; then
13104 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13105 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13106 { (exit 1); exit 1; }; }
13109 cat >conftest.
$ac_ext <<_ACEOF
13111 #include "confdefs.h"
13112 #ifdef HAVE_TERMCAP_H
13113 # include <termcap.h>
13115 #ifdef HAVE_STRING_H
13116 # include <string.h>
13119 # include <stdlib.h>
13120 # include <stddef.h>
13123 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13126 rm -f conftest
$ac_exeext
13127 if { (ac_try
="$ac_link"
13128 case "(($ac_try" in
13129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134 (eval "$ac_link") 2>&5
13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13140 *) ac_try_echo
=$ac_try;;
13142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13143 $as_echo "$ac_try_echo") >&5
13144 (eval "$ac_try") 2>&5
13146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13152 $as_echo "$as_me: program exited with status $ac_status" >&5
13153 $as_echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.
$ac_ext >&5
13156 ( exit $ac_status )
13158 vim_cv_terminfo
=yes
13161 rm -rf conftest.dSYM
13162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13168 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13169 $as_echo "$vim_cv_terminfo" >&6; }
13171 if test "x$vim_cv_terminfo" = "xyes" ; then
13172 cat >>confdefs.h
<<\_ACEOF
13178 if test "x$olibs" != "x$LIBS"; then
13179 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13180 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13181 if test "${vim_cv_tgent+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13185 if test "$cross_compiling" = yes; then
13187 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13188 $as_echo "$as_me: error: failed to compile test program." >&2;}
13189 { (exit 1); exit 1; }; }
13192 cat >conftest.
$ac_ext <<_ACEOF
13194 #include "confdefs.h"
13195 #ifdef HAVE_TERMCAP_H
13196 # include <termcap.h>
13199 # include <stdlib.h>
13200 # include <stddef.h>
13203 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13206 rm -f conftest
$ac_exeext
13207 if { (ac_try
="$ac_link"
13208 case "(($ac_try" in
13209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213 $as_echo "$ac_try_echo") >&5
13214 (eval "$ac_link") 2>&5
13216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13218 { (case "(($ac_try" in
13219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13220 *) ac_try_echo
=$ac_try;;
13222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13223 $as_echo "$ac_try_echo") >&5
13224 (eval "$ac_try") 2>&5
13226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13232 $as_echo "$as_me: program exited with status $ac_status" >&5
13233 $as_echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.
$ac_ext >&5
13236 ( exit $ac_status )
13238 vim_cv_tgent
=non-zero
13241 rm -rf conftest.dSYM
13242 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13248 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13249 $as_echo "$vim_cv_tgent" >&6; }
13251 if test "x$vim_cv_tgent" = "xzero" ; then
13252 cat >>confdefs.h
<<\_ACEOF
13253 #define TGETENT_ZERO_ERR 0
13259 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13260 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13261 cat >conftest.
$ac_ext <<_ACEOF
13264 cat confdefs.h
>>conftest.
$ac_ext
13265 cat >>conftest.
$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13268 #ifdef HAVE_TERMCAP_H
13269 # include <termcap.h>
13280 rm -f conftest.
$ac_objext conftest
$ac_exeext
13281 if { (ac_try
="$ac_link"
13282 case "(($ac_try" in
13283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13287 $as_echo "$ac_try_echo") >&5
13288 (eval "$ac_link") 2>conftest.er1
13290 grep -v '^ *+' conftest.er1 >conftest.err
13292 cat conftest.err >&5
13293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } && {
13295 test -z "$ac_c_werror_flag" ||
13296 test ! -s conftest.err
13297 } && test -s conftest$ac_exeext && {
13298 test "$cross_compiling" = yes ||
13299 $as_test_x conftest$ac_exeext
13301 { $as_echo "$as_me:$LINENO: result: yes" >&5
13302 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13303 #define HAVE_OSPEED 1
13307 $as_echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13310 { $as_echo "$as_me:$LINENO: result: no" >&5
13311 $as_echo "no" >&6; }
13312 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13313 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13314 cat >conftest.$ac_ext <<_ACEOF
13317 cat confdefs.h >>conftest.$ac_ext
13318 cat >>conftest.$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13321 #ifdef HAVE_TERMCAP_H
13322 # include <termcap.h>
13324 extern short ospeed;
13334 rm -f conftest.$ac_objext conftest$ac_exeext
13335 if { (ac_try="$ac_link"
13336 case "(($ac_try" in
13337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13338 *) ac_try_echo
=$ac_try;;
13340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13341 $as_echo "$ac_try_echo") >&5
13342 (eval "$ac_link") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1
>conftest.err
13346 cat conftest.err
>&5
13347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && {
13349 test -z "$ac_c_werror_flag" ||
13350 test ! -s conftest.err
13351 } && test -s conftest
$ac_exeext && {
13352 test "$cross_compiling" = yes ||
13353 $as_test_x conftest
$ac_exeext
13355 { $as_echo "$as_me:$LINENO: result: yes" >&5
13356 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13357 #define OSPEED_EXTERN 1
13361 $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.
$ac_ext >&5
13364 { $as_echo "$as_me:$LINENO: result: no" >&5
13365 $as_echo "no" >&6; }
13368 rm -rf conftest.dSYM
13369 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13370 conftest
$ac_exeext conftest.
$ac_ext
13374 rm -rf conftest.dSYM
13375 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13376 conftest
$ac_exeext conftest.
$ac_ext
13378 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13379 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13380 cat >conftest.
$ac_ext <<_ACEOF
13383 cat confdefs.h
>>conftest.
$ac_ext
13384 cat >>conftest.
$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13387 #ifdef HAVE_TERMCAP_H
13388 # include <termcap.h>
13394 if (UP == 0 && BC == 0) PC = 1
13399 rm -f conftest.
$ac_objext conftest
$ac_exeext
13400 if { (ac_try
="$ac_link"
13401 case "(($ac_try" in
13402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13406 $as_echo "$ac_try_echo") >&5
13407 (eval "$ac_link") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest$ac_exeext && {
13417 test "$cross_compiling" = yes ||
13418 $as_test_x conftest$ac_exeext
13420 { $as_echo "$as_me:$LINENO: result: yes" >&5
13421 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13422 #define HAVE_UP_BC_PC 1
13426 $as_echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13429 { $as_echo "$as_me:$LINENO: result: no" >&5
13430 $as_echo "no" >&6; }
13431 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13432 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13440 #ifdef HAVE_TERMCAP_H
13441 # include <termcap.h>
13443 extern char *UP, *BC, PC;
13448 if (UP == 0 && BC == 0) PC = 1
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (ac_try="$ac_link"
13455 case "(($ac_try" in
13456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13457 *) ac_try_echo
=$ac_try;;
13459 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461 (eval "$ac_link") 2>conftest.er1
13463 grep -v '^ *+' conftest.er1
>conftest.err
13465 cat conftest.err
>&5
13466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest
$ac_exeext && {
13471 test "$cross_compiling" = yes ||
13472 $as_test_x conftest
$ac_exeext
13474 { $as_echo "$as_me:$LINENO: result: yes" >&5
13475 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13476 #define UP_BC_PC_EXTERN 1
13480 $as_echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.
$ac_ext >&5
13483 { $as_echo "$as_me:$LINENO: result: no" >&5
13484 $as_echo "no" >&6; }
13487 rm -rf conftest.dSYM
13488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13489 conftest
$ac_exeext conftest.
$ac_ext
13493 rm -rf conftest.dSYM
13494 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13495 conftest
$ac_exeext conftest.
$ac_ext
13497 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13498 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13499 cat >conftest.
$ac_ext <<_ACEOF
13502 cat confdefs.h
>>conftest.
$ac_ext
13503 cat >>conftest.
$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13506 #ifdef HAVE_TERMCAP_H
13507 # include <termcap.h>
13513 extern int xx(); tputs("test", 1, (outfuntype)xx)
13518 rm -f conftest.
$ac_objext
13519 if { (ac_try
="$ac_compile"
13520 case "(($ac_try" in
13521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13525 $as_echo "$ac_try_echo") >&5
13526 (eval "$ac_compile") 2>conftest.er1
13528 grep -v '^ *+' conftest.er1 >conftest.err
13530 cat conftest.err >&5
13531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } && {
13533 test -z "$ac_c_werror_flag" ||
13534 test ! -s conftest.err
13535 } && test -s conftest.$ac_objext; then
13536 { $as_echo "$as_me:$LINENO: result: yes" >&5
13537 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13538 #define HAVE_OUTFUNTYPE 1
13542 $as_echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 { $as_echo "$as_me:$LINENO: result: no" >&5
13546 $as_echo "no" >&6; }
13549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13552 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13553 cat >conftest.$ac_ext <<_ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 #include <sys/types.h>
13561 #include <sys/time.h>
13562 #include <sys/select.h>
13571 rm -f conftest.$ac_objext
13572 if { (ac_try="$ac_compile"
13573 case "(($ac_try" in
13574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13575 *) ac_try_echo
=$ac_try;;
13577 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13578 $as_echo "$ac_try_echo") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13581 grep -v '^ *+' conftest.er1
>conftest.err
13583 cat conftest.err
>&5
13584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.
$ac_objext; then
13589 { $as_echo "$as_me:$LINENO: result: yes" >&5
13590 $as_echo "yes" >&6; }
13591 cat >>confdefs.h
<<\_ACEOF
13592 #define SYS_SELECT_WITH_SYS_TIME 1
13596 $as_echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.
$ac_ext >&5
13599 { $as_echo "$as_me:$LINENO: result: no" >&5
13600 $as_echo "no" >&6; }
13603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13606 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13607 $as_echo_n "checking for /dev/ptc... " >&6; }
13608 if test -r /dev
/ptc
; then
13609 cat >>confdefs.h
<<\_ACEOF
13610 #define HAVE_DEV_PTC 1
13613 { $as_echo "$as_me:$LINENO: result: yes" >&5
13614 $as_echo "yes" >&6; }
13616 { $as_echo "$as_me:$LINENO: result: no" >&5
13617 $as_echo "no" >&6; }
13620 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13621 $as_echo_n "checking for SVR4 ptys... " >&6; }
13622 if test -c /dev
/ptmx
; then
13623 cat >conftest.
$ac_ext <<_ACEOF
13626 cat confdefs.h
>>conftest.
$ac_ext
13627 cat >>conftest.
$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13633 ptsname(0);grantpt(0);unlockpt(0);
13638 rm -f conftest.
$ac_objext conftest
$ac_exeext
13639 if { (ac_try
="$ac_link"
13640 case "(($ac_try" in
13641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13645 $as_echo "$ac_try_echo") >&5
13646 (eval "$ac_link") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest$ac_exeext && {
13656 test "$cross_compiling" = yes ||
13657 $as_test_x conftest$ac_exeext
13659 { $as_echo "$as_me:$LINENO: result: yes" >&5
13660 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13661 #define HAVE_SVR4_PTYS 1
13665 $as_echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13668 { $as_echo "$as_me:$LINENO: result: no" >&5
13669 $as_echo "no" >&6; }
13672 rm -rf conftest.dSYM
13673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13674 conftest$ac_exeext conftest.$ac_ext
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13680 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13681 $as_echo_n "checking for ptyranges... " >&6; }
13682 if test -d /dev/ptym ; then
13687 cat >conftest.$ac_ext <<_ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "yes" >/dev/null 2>&1; then
13700 ptys=`echo /dev
/ptyp??
`
13702 ptys=`echo $pdir/pty??
`
13706 if test "$ptys" != "$pdir/pty??" ; then
13707 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13708 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13709 cat >>confdefs.h <<_ACEOF
13710 #define PTYRANGE0 "$p0"
13713 cat >>confdefs.h <<_ACEOF
13714 #define PTYRANGE1 "$p1"
13717 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13718 $as_echo "$p0 / $p1" >&6; }
13720 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13721 $as_echo "don't know" >&6; }
13725 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13726 $as_echo_n "checking default tty permissions/group... " >&6; }
13727 if test "${vim_cv_tty_group+set}" = set; then
13728 $as_echo_n "(cached) " >&6
13731 if test "$cross_compiling" = yes; then
13733 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13734 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13735 { (exit 1); exit 1; }; }
13738 cat >conftest.$ac_ext <<_ACEOF
13740 #include "confdefs.h"
13741 #include <sys/types.h>
13743 # include <stdlib.h>
13744 # include <stddef.h>
13746 #ifdef HAVE_UNISTD_H
13747 #include <unistd.h>
13749 #include <sys/stat.h>
13754 char *x,*ttyname();
13758 if (!(x = ttyname(0))) exit(1);
13759 if (stat(x, &sb)) exit(1);
13761 if (om & 002) exit(0);
13762 m = system("mesg y");
13763 if (m == -1 || m == 127) exit(1);
13764 if (stat(x, &sb)) exit(1);
13766 if (chmod(x, om)) exit(1);
13767 if (m & 002) exit(0);
13768 if (sb.st_gid == getgid()) exit(1);
13769 if (!(fp=fopen("conftest_grp", "w")))
13771 fprintf(fp, "%d\n", sb.st_gid);
13777 rm -f conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13781 *) ac_try_echo
=$ac_try;;
13783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13784 $as_echo "$ac_try_echo") >&5
13785 (eval "$ac_link") 2>&5
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13789 { (case "(($ac_try" in
13790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13794 $as_echo "$ac_try_echo") >&5
13795 (eval "$ac_try") 2>&5
13797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13800 if test -f conftest_grp; then
13801 vim_cv_tty_group=`cat conftest_grp
`
13802 if test "x$vim_cv_tty_mode" = "x" ; then
13803 vim_cv_tty_mode=0620
13805 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13806 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13808 vim_cv_tty_group=world
13809 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13810 $as_echo "ptys are world accessible" >&6; }
13814 $as_echo "$as_me: program exited with status $ac_status" >&5
13815 $as_echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 ( exit $ac_status )
13820 vim_cv_tty_group=world
13821 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13822 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13825 rm -rf conftest.dSYM
13826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13832 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13833 $as_echo "$vim_cv_tty_group" >&6; }
13836 if test "x$vim_cv_tty_group" != "xworld" ; then
13837 cat >>confdefs.h <<_ACEOF
13838 #define PTYGROUP $vim_cv_tty_group
13841 if test "x$vim_cv_tty_mode" = "x" ; then
13842 { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
13843 $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13844 { (exit 1); exit 1; }; }
13846 cat >>confdefs.h <<\_ACEOF
13847 #define PTYMODE 0620
13854 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13855 $as_echo_n "checking return type of signal handlers... " >&6; }
13856 if test "${ac_cv_type_signal+set}" = set; then
13857 $as_echo_n "(cached) " >&6
13859 cat >conftest.$ac_ext <<_ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13865 #include <sys/types.h>
13866 #include <signal.h>
13871 return *(signal (0, 0)) (0) == 1;
13876 rm -f conftest.$ac_objext
13877 if { (ac_try="$ac_compile"
13878 case "(($ac_try" in
13879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13880 *) ac_try_echo
=$ac_try;;
13882 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13883 $as_echo "$ac_try_echo") >&5
13884 (eval "$ac_compile") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1
>conftest.err
13888 cat conftest.err
>&5
13889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest.
$ac_objext; then
13894 ac_cv_type_signal
=int
13896 $as_echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.
$ac_ext >&5
13899 ac_cv_type_signal
=void
13902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13904 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13905 $as_echo "$ac_cv_type_signal" >&6; }
13907 cat >>confdefs.h
<<_ACEOF
13908 #define RETSIGTYPE $ac_cv_type_signal
13913 if test $ac_cv_type_signal = void
; then
13914 cat >>confdefs.h
<<\_ACEOF
13915 #define SIGRETURN return
13919 cat >>confdefs.h
<<\_ACEOF
13920 #define SIGRETURN return 0
13925 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13926 $as_echo_n "checking for struct sigcontext... " >&6; }
13927 cat >conftest.
$ac_ext <<_ACEOF
13930 cat confdefs.h
>>conftest.
$ac_ext
13931 cat >>conftest.
$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13934 #include <signal.h>
13937 struct sigcontext *scont;
13938 scont = (struct sigcontext *)0;
13949 rm -f conftest.
$ac_objext
13950 if { (ac_try
="$ac_compile"
13951 case "(($ac_try" in
13952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13956 $as_echo "$ac_try_echo") >&5
13957 (eval "$ac_compile") 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } && {
13964 test -z "$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13966 } && test -s conftest.$ac_objext; then
13967 { $as_echo "$as_me:$LINENO: result: yes" >&5
13968 $as_echo "yes" >&6; }
13969 cat >>confdefs.h <<\_ACEOF
13970 #define HAVE_SIGCONTEXT 1
13974 $as_echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 { $as_echo "$as_me:$LINENO: result: no" >&5
13978 $as_echo "no" >&6; }
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13984 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13985 if test "${vim_cv_getcwd_broken+set}" = set; then
13986 $as_echo_n "(cached) " >&6
13989 if test "$cross_compiling" = yes; then
13991 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13992 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13993 { (exit 1); exit 1; }; }
13996 cat >conftest.$ac_ext <<_ACEOF
13998 #include "confdefs.h"
13999 #ifdef HAVE_UNISTD_H
14000 #include <unistd.h>
14002 char *dagger[] = { "IFS=pwd", 0 };
14006 extern char **environ;
14008 return getcwd(buffer, 500) ? 0 : 1;
14012 rm -f conftest$ac_exeext
14013 if { (ac_try="$ac_link"
14014 case "(($ac_try" in
14015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14016 *) ac_try_echo
=$ac_try;;
14018 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14019 $as_echo "$ac_try_echo") >&5
14020 (eval "$ac_link") 2>&5
14022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14024 { (case "(($ac_try" in
14025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030 (eval "$ac_try") 2>&5
14032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14035 vim_cv_getcwd_broken=no
14038 $as_echo "$as_me: program exited with status $ac_status" >&5
14039 $as_echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ( exit $ac_status )
14044 vim_cv_getcwd_broken=yes
14047 rm -rf conftest.dSYM
14048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14054 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14055 $as_echo "$vim_cv_getcwd_broken" >&6; }
14057 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14058 cat >>confdefs.h <<\_ACEOF
14059 #define BAD_GETCWD 1
14109 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14110 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14111 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14112 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14113 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14114 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14115 usleep utime utimes
14117 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14118 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14119 $as_echo_n "checking for $ac_func... " >&6; }
14120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14121 $as_echo_n "(cached) " >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14131 #define $ac_func innocuous_$ac_func
14133 /* System header to define __stub macros and hopefully few prototypes,
14134 which can conflict with char $ac_func (); below.
14135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14136 <limits.h> exists even on freestanding compilers. */
14139 # include <limits.h>
14141 # include <assert.h>
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14153 /* The GNU C library defines this for functions which it implements
14154 to always fail with ENOSYS. Some functions are actually named
14155 something starting with __ and the normal name is an alias. */
14156 #if defined __stub_$ac_func || defined __stub___$ac_func
14163 return $ac_func ();
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14172 *) ac_try_echo
=$ac_try;;
14174 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14175 $as_echo "$ac_try_echo") >&5
14176 (eval "$ac_link") 2>conftest.er1
14178 grep -v '^ *+' conftest.er1
>conftest.err
14180 cat conftest.err
>&5
14181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && {
14183 test -z "$ac_c_werror_flag" ||
14184 test ! -s conftest.err
14185 } && test -s conftest
$ac_exeext && {
14186 test "$cross_compiling" = yes ||
14187 $as_test_x conftest
$ac_exeext
14189 eval "$as_ac_var=yes"
14191 $as_echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.
$ac_ext >&5
14194 eval "$as_ac_var=no"
14197 rm -rf conftest.dSYM
14198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14199 conftest
$ac_exeext conftest.
$ac_ext
14201 ac_res
=`eval 'as_val=${'$as_ac_var'}
14202 $as_echo "$as_val"'`
14203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14204 $as_echo "$ac_res" >&6; }
14205 as_val
=`eval 'as_val=${'$as_ac_var'}
14206 $as_echo "$as_val"'`
14207 if test "x$as_val" = x
""yes; then
14208 cat >>confdefs.h
<<_ACEOF
14209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14216 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14217 if test "${ac_cv_sys_largefile_source+set}" = set; then
14218 $as_echo_n "(cached) " >&6
14221 cat >conftest.
$ac_ext <<_ACEOF
14224 cat confdefs.h
>>conftest.
$ac_ext
14225 cat >>conftest.
$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 #include <sys/types.h> /* for off_t */
14232 int (*fp) (FILE *, off_t, int) = fseeko;
14233 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14238 rm -f conftest.
$ac_objext conftest
$ac_exeext
14239 if { (ac_try
="$ac_link"
14240 case "(($ac_try" in
14241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14245 $as_echo "$ac_try_echo") >&5
14246 (eval "$ac_link") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext && {
14256 test "$cross_compiling" = yes ||
14257 $as_test_x conftest$ac_exeext
14259 ac_cv_sys_largefile_source=no; break
14261 $as_echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14267 rm -rf conftest.dSYM
14268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14269 conftest$ac_exeext conftest.$ac_ext
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 #define _LARGEFILE_SOURCE 1
14277 #include <sys/types.h> /* for off_t */
14282 int (*fp) (FILE *, off_t, int) = fseeko;
14283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (ac_try="$ac_link"
14290 case "(($ac_try" in
14291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14292 *) ac_try_echo
=$ac_try;;
14294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14295 $as_echo "$ac_try_echo") >&5
14296 (eval "$ac_link") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1
>conftest.err
14300 cat conftest.err
>&5
14301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest
$ac_exeext && {
14306 test "$cross_compiling" = yes ||
14307 $as_test_x conftest
$ac_exeext
14309 ac_cv_sys_largefile_source
=1; break
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14317 rm -rf conftest.dSYM
14318 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14319 conftest
$ac_exeext conftest.
$ac_ext
14320 ac_cv_sys_largefile_source
=unknown
14324 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14325 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14326 case $ac_cv_sys_largefile_source in #(
14329 cat >>confdefs.h
<<_ACEOF
14330 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14336 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14337 # in glibc 2.1.3, but that breaks too many other things.
14338 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14339 if test $ac_cv_sys_largefile_source != unknown
; then
14341 cat >>confdefs.h
<<\_ACEOF
14342 #define HAVE_FSEEKO 1
14348 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14349 $as_echo_n "checking for st_blksize... " >&6; }
14350 cat >conftest.
$ac_ext <<_ACEOF
14353 cat confdefs.h
>>conftest.
$ac_ext
14354 cat >>conftest.
$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 #include <sys/types.h>
14357 #include <sys/stat.h>
14365 n = (int)st.st_blksize;
14370 rm -f conftest.
$ac_objext
14371 if { (ac_try
="$ac_compile"
14372 case "(($ac_try" in
14373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_compile") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest.$ac_objext; then
14388 { $as_echo "$as_me:$LINENO: result: yes" >&5
14389 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_ST_BLKSIZE 1
14394 $as_echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.$ac_ext >&5
14397 { $as_echo "$as_me:$LINENO: result: no" >&5
14398 $as_echo "no" >&6; }
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14404 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14405 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14406 $as_echo_n "(cached) " >&6
14409 if test "$cross_compiling" = yes; then
14411 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14412 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14413 { (exit 1); exit 1; }; }
14416 cat >conftest.$ac_ext <<_ACEOF
14418 #include "confdefs.h"
14420 # include <stdlib.h>
14421 # include <stddef.h>
14423 #include <sys/types.h>
14424 #include <sys/stat.h>
14425 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14428 rm -f conftest$ac_exeext
14429 if { (ac_try="$ac_link"
14430 case "(($ac_try" in
14431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14432 *) ac_try_echo
=$ac_try;;
14434 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14435 $as_echo "$ac_try_echo") >&5
14436 (eval "$ac_link") 2>&5
14438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14440 { (case "(($ac_try" in
14441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14445 $as_echo "$ac_try_echo") >&5
14446 (eval "$ac_try") 2>&5
14448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14451 vim_cv_stat_ignores_slash=yes
14454 $as_echo "$as_me: program exited with status $ac_status" >&5
14455 $as_echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14458 ( exit $ac_status )
14460 vim_cv_stat_ignores_slash=no
14463 rm -rf conftest.dSYM
14464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14470 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14471 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14473 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14474 cat >>confdefs.h <<\_ACEOF
14475 #define STAT_IGNORES_SLASH 1
14480 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14481 $as_echo_n "checking for iconv_open()... " >&6; }
14483 LIBS="$LIBS -liconv"
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14491 #ifdef HAVE_ICONV_H
14492 # include <iconv.h>
14498 iconv_open("fr", "to");
14503 rm -f conftest.$ac_objext conftest$ac_exeext
14504 if { (ac_try="$ac_link"
14505 case "(($ac_try" in
14506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14507 *) ac_try_echo
=$ac_try;;
14509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14510 $as_echo "$ac_try_echo") >&5
14511 (eval "$ac_link") 2>conftest.er1
14513 grep -v '^ *+' conftest.er1
>conftest.err
14515 cat conftest.err
>&5
14516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } && {
14518 test -z "$ac_c_werror_flag" ||
14519 test ! -s conftest.err
14520 } && test -s conftest
$ac_exeext && {
14521 test "$cross_compiling" = yes ||
14522 $as_test_x conftest
$ac_exeext
14524 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14525 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14526 #define HAVE_ICONV 1
14530 $as_echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.
$ac_ext >&5
14534 cat >conftest.
$ac_ext <<_ACEOF
14537 cat confdefs.h
>>conftest.
$ac_ext
14538 cat >>conftest.
$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14541 #ifdef HAVE_ICONV_H
14542 # include <iconv.h>
14548 iconv_open("fr", "to");
14553 rm -f conftest.
$ac_objext conftest
$ac_exeext
14554 if { (ac_try
="$ac_link"
14555 case "(($ac_try" in
14556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14560 $as_echo "$ac_try_echo") >&5
14561 (eval "$ac_link") 2>conftest.er1
14563 grep -v '^ *+' conftest.er1 >conftest.err
14565 cat conftest.err >&5
14566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } && {
14568 test -z "$ac_c_werror_flag" ||
14569 test ! -s conftest.err
14570 } && test -s conftest$ac_exeext && {
14571 test "$cross_compiling" = yes ||
14572 $as_test_x conftest$ac_exeext
14574 { $as_echo "$as_me:$LINENO: result: yes" >&5
14575 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_ICONV 1
14580 $as_echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 { $as_echo "$as_me:$LINENO: result: no" >&5
14584 $as_echo "no" >&6; }
14587 rm -rf conftest.dSYM
14588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14589 conftest$ac_exeext conftest.$ac_ext
14592 rm -rf conftest.dSYM
14593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14597 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14598 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14606 #ifdef HAVE_LANGINFO_H
14607 # include <langinfo.h>
14613 char *cs = nl_langinfo(CODESET);
14618 rm -f conftest.$ac_objext conftest$ac_exeext
14619 if { (ac_try="$ac_link"
14620 case "(($ac_try" in
14621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14622 *) ac_try_echo
=$ac_try;;
14624 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626 (eval "$ac_link") 2>conftest.er1
14628 grep -v '^ *+' conftest.er1
>conftest.err
14630 cat conftest.err
>&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest
$ac_exeext && {
14636 test "$cross_compiling" = yes ||
14637 $as_test_x conftest
$ac_exeext
14639 { $as_echo "$as_me:$LINENO: result: yes" >&5
14640 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14641 #define HAVE_NL_LANGINFO_CODESET 1
14645 $as_echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.
$ac_ext >&5
14648 { $as_echo "$as_me:$LINENO: result: no" >&5
14649 $as_echo "no" >&6; }
14652 rm -rf conftest.dSYM
14653 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14654 conftest
$ac_exeext conftest.
$ac_ext
14657 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14658 $as_echo_n "checking for strtod in -lm... " >&6; }
14659 if test "${ac_cv_lib_m_strtod+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14662 ac_check_lib_save_LIBS
=$LIBS
14664 cat >conftest.
$ac_ext <<_ACEOF
14667 cat confdefs.h
>>conftest.
$ac_ext
14668 cat >>conftest.
$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply. */
14686 rm -f conftest.
$ac_objext conftest
$ac_exeext
14687 if { (ac_try
="$ac_link"
14688 case "(($ac_try" in
14689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14693 $as_echo "$ac_try_echo") >&5
14694 (eval "$ac_link") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext && {
14704 test "$cross_compiling" = yes ||
14705 $as_test_x conftest$ac_exeext
14707 ac_cv_lib_m_strtod=yes
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_cv_lib_m_strtod=no
14715 rm -rf conftest.dSYM
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14718 LIBS=$ac_check_lib_save_LIBS
14720 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14721 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14722 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_LIBM 1
14731 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14732 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14744 # include <stdlib.h>
14745 # include <stddef.h>
14752 d = strtod("1.1", &s);
14757 d = pow(1.11, 2.22);
14767 rm -f conftest.$ac_objext conftest$ac_exeext
14768 if { (ac_try="$ac_link"
14769 case "(($ac_try" in
14770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14771 *) ac_try_echo
=$ac_try;;
14773 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14774 $as_echo "$ac_try_echo") >&5
14775 (eval "$ac_link") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1
>conftest.err
14779 cat conftest.err
>&5
14780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest
$ac_exeext && {
14785 test "$cross_compiling" = yes ||
14786 $as_test_x conftest
$ac_exeext
14788 { $as_echo "$as_me:$LINENO: result: yes" >&5
14789 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14790 #define HAVE_FLOAT_FUNCS 1
14794 $as_echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.
$ac_ext >&5
14797 { $as_echo "$as_me:$LINENO: result: no" >&5
14798 $as_echo "no" >&6; }
14801 rm -rf conftest.dSYM
14802 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14803 conftest
$ac_exeext conftest.
$ac_ext
14805 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14806 $as_echo_n "checking --disable-acl argument... " >&6; }
14807 # Check whether --enable-acl was given.
14808 if test "${enable_acl+set}" = set; then
14809 enableval
=$enable_acl;
14814 if test "$enable_acl" = "yes"; then
14815 { $as_echo "$as_me:$LINENO: result: no" >&5
14816 $as_echo "no" >&6; }
14817 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14818 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14819 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14820 $as_echo_n "(cached) " >&6
14822 ac_check_lib_save_LIBS
=$LIBS
14823 LIBS
="-lposix1e $LIBS"
14824 cat >conftest.
$ac_ext <<_ACEOF
14827 cat confdefs.h
>>conftest.
$ac_ext
14828 cat >>conftest.
$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14837 char acl_get_file ();
14841 return acl_get_file ();
14846 rm -f conftest.
$ac_objext conftest
$ac_exeext
14847 if { (ac_try
="$ac_link"
14848 case "(($ac_try" in
14849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14853 $as_echo "$ac_try_echo") >&5
14854 (eval "$ac_link") 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14858 cat conftest.err >&5
14859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && {
14861 test -z "$ac_c_werror_flag" ||
14862 test ! -s conftest.err
14863 } && test -s conftest$ac_exeext && {
14864 test "$cross_compiling" = yes ||
14865 $as_test_x conftest$ac_exeext
14867 ac_cv_lib_posix1e_acl_get_file=yes
14869 $as_echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_cv_lib_posix1e_acl_get_file=no
14875 rm -rf conftest.dSYM
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14881 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14882 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14883 LIBS="$LIBS -lposix1e"
14885 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14886 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14887 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14888 $as_echo_n "(cached) " >&6
14890 ac_check_lib_save_LIBS=$LIBS
14892 cat >conftest.$ac_ext <<_ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14899 /* Override any GCC internal prototype to avoid an error.
14900 Use char because int might match the return type of a GCC
14901 builtin and then its argument prototype would still apply. */
14905 char acl_get_file ();
14909 return acl_get_file ();
14914 rm -f conftest.$ac_objext conftest$ac_exeext
14915 if { (ac_try="$ac_link"
14916 case "(($ac_try" in
14917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14918 *) ac_try_echo
=$ac_try;;
14920 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14921 $as_echo "$ac_try_echo") >&5
14922 (eval "$ac_link") 2>conftest.er1
14924 grep -v '^ *+' conftest.er1
>conftest.err
14926 cat conftest.err
>&5
14927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } && {
14929 test -z "$ac_c_werror_flag" ||
14930 test ! -s conftest.err
14931 } && test -s conftest
$ac_exeext && {
14932 test "$cross_compiling" = yes ||
14933 $as_test_x conftest
$ac_exeext
14935 ac_cv_lib_acl_acl_get_file
=yes
14937 $as_echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.
$ac_ext >&5
14940 ac_cv_lib_acl_acl_get_file
=no
14943 rm -rf conftest.dSYM
14944 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14945 conftest
$ac_exeext conftest.
$ac_ext
14946 LIBS
=$ac_check_lib_save_LIBS
14948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14949 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14950 if test "x$ac_cv_lib_acl_acl_get_file" = x
""yes; then
14952 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14953 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14954 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14955 $as_echo_n "(cached) " >&6
14957 ac_check_lib_save_LIBS
=$LIBS
14958 LIBS
="-lattr $LIBS"
14959 cat >conftest.
$ac_ext <<_ACEOF
14962 cat confdefs.h
>>conftest.
$ac_ext
14963 cat >>conftest.
$ac_ext <<_ACEOF
14964 /* end confdefs.h. */
14966 /* Override any GCC internal prototype to avoid an error.
14967 Use char because int might match the return type of a GCC
14968 builtin and then its argument prototype would still apply. */
14976 return fgetxattr ();
14981 rm -f conftest.
$ac_objext conftest
$ac_exeext
14982 if { (ac_try
="$ac_link"
14983 case "(($ac_try" in
14984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14988 $as_echo "$ac_try_echo") >&5
14989 (eval "$ac_link") 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } && {
14996 test -z "$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14998 } && test -s conftest$ac_exeext && {
14999 test "$cross_compiling" = yes ||
15000 $as_test_x conftest$ac_exeext
15002 ac_cv_lib_attr_fgetxattr=yes
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15007 ac_cv_lib_attr_fgetxattr=no
15010 rm -rf conftest.dSYM
15011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15012 conftest$ac_exeext conftest.$ac_ext
15013 LIBS=$ac_check_lib_save_LIBS
15015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15016 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15017 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15018 LIBS="$LIBS -lattr"
15026 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15027 $as_echo_n "checking for POSIX ACL support... " >&6; }
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 #include <sys/types.h>
15036 #ifdef HAVE_SYS_ACL_H
15037 # include <sys/acl.h>
15043 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15044 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15054 *) ac_try_echo
=$ac_try;;
15056 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15057 $as_echo "$ac_try_echo") >&5
15058 (eval "$ac_link") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1
>conftest.err
15062 cat conftest.err
>&5
15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest
$ac_exeext && {
15068 test "$cross_compiling" = yes ||
15069 $as_test_x conftest
$ac_exeext
15071 { $as_echo "$as_me:$LINENO: result: yes" >&5
15072 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15073 #define HAVE_POSIX_ACL 1
15077 $as_echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.
$ac_ext >&5
15080 { $as_echo "$as_me:$LINENO: result: no" >&5
15081 $as_echo "no" >&6; }
15084 rm -rf conftest.dSYM
15085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15086 conftest
$ac_exeext conftest.
$ac_ext
15088 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15089 $as_echo_n "checking for Solaris ACL support... " >&6; }
15090 cat >conftest.
$ac_ext <<_ACEOF
15093 cat confdefs.h
>>conftest.
$ac_ext
15094 cat >>conftest.
$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 #ifdef HAVE_SYS_ACL_H
15098 # include <sys/acl.h>
15103 acl("foo", GETACLCNT, 0, NULL);
15109 rm -f conftest.
$ac_objext conftest
$ac_exeext
15110 if { (ac_try
="$ac_link"
15111 case "(($ac_try" in
15112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15113 *) ac_try_echo=$ac_try;;
15115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15116 $as_echo "$ac_try_echo") >&5
15117 (eval "$ac_link") 2>conftest.er1
15119 grep -v '^ *+' conftest.er1 >conftest.err
15121 cat conftest.err >&5
15122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); } && {
15124 test -z "$ac_c_werror_flag" ||
15125 test ! -s conftest.err
15126 } && test -s conftest$ac_exeext && {
15127 test "$cross_compiling" = yes ||
15128 $as_test_x conftest$ac_exeext
15130 { $as_echo "$as_me:$LINENO: result: yes" >&5
15131 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_SOLARIS_ACL 1
15136 $as_echo "$as_me: failed program was:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 { $as_echo "$as_me:$LINENO: result: no" >&5
15140 $as_echo "no" >&6; }
15143 rm -rf conftest.dSYM
15144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15145 conftest$ac_exeext conftest.$ac_ext
15147 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15148 $as_echo_n "checking for AIX ACL support... " >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15157 # include <stdlib.h>
15158 # include <stddef.h>
15160 #ifdef HAVE_SYS_ACL_H
15161 # include <sys/acl.h>
15163 #ifdef HAVE_SYS_ACCESS_H
15164 # include <sys/access.h>
15166 #define _ALL_SOURCE
15168 #include <sys/stat.h>
15171 struct acl *aclent;
15175 aclsize = sizeof(struct acl);
15176 aclent = (void *)malloc(aclsize);
15177 statacl("foo", STX_NORMAL, aclent, aclsize);
15183 rm -f conftest.$ac_objext conftest$ac_exeext
15184 if { (ac_try="$ac_link"
15185 case "(($ac_try" in
15186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15187 *) ac_try_echo
=$ac_try;;
15189 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15190 $as_echo "$ac_try_echo") >&5
15191 (eval "$ac_link") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1
>conftest.err
15195 cat conftest.err
>&5
15196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest
$ac_exeext && {
15201 test "$cross_compiling" = yes ||
15202 $as_test_x conftest
$ac_exeext
15204 { $as_echo "$as_me:$LINENO: result: yes" >&5
15205 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15206 #define HAVE_AIX_ACL 1
15210 $as_echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.
$ac_ext >&5
15213 { $as_echo "$as_me:$LINENO: result: no" >&5
15214 $as_echo "no" >&6; }
15217 rm -rf conftest.dSYM
15218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15219 conftest
$ac_exeext conftest.
$ac_ext
15221 { $as_echo "$as_me:$LINENO: result: yes" >&5
15222 $as_echo "yes" >&6; }
15225 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15226 $as_echo_n "checking --disable-gpm argument... " >&6; }
15227 # Check whether --enable-gpm was given.
15228 if test "${enable_gpm+set}" = set; then
15229 enableval
=$enable_gpm;
15235 if test "$enable_gpm" = "yes"; then
15236 { $as_echo "$as_me:$LINENO: result: no" >&5
15237 $as_echo "no" >&6; }
15238 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15239 $as_echo_n "checking for gpm... " >&6; }
15240 if test "${vi_cv_have_gpm+set}" = set; then
15241 $as_echo_n "(cached) " >&6
15243 olibs
="$LIBS" ; LIBS
="-lgpm"
15244 cat >conftest.
$ac_ext <<_ACEOF
15247 cat confdefs.h
>>conftest.
$ac_ext
15248 cat >>conftest.
$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15251 #include <linux/keyboard.h>
15255 Gpm_GetLibVersion(NULL);
15260 rm -f conftest.
$ac_objext conftest
$ac_exeext
15261 if { (ac_try
="$ac_link"
15262 case "(($ac_try" in
15263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext && {
15278 test "$cross_compiling" = yes ||
15279 $as_test_x conftest$ac_exeext
15283 $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15289 rm -rf conftest.dSYM
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15295 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15296 $as_echo "$vi_cv_have_gpm" >&6; }
15297 if test $vi_cv_have_gpm = yes; then
15299 cat >>confdefs.h <<\_ACEOF
15305 { $as_echo "$as_me:$LINENO: result: yes" >&5
15306 $as_echo "yes" >&6; }
15309 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15310 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15311 # Check whether --enable-sysmouse was given.
15312 if test "${enable_sysmouse+set}" = set; then
15313 enableval=$enable_sysmouse;
15315 enable_sysmouse="yes"
15319 if test "$enable_sysmouse" = "yes"; then
15320 { $as_echo "$as_me:$LINENO: result: no" >&5
15321 $as_echo "no" >&6; }
15322 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15323 $as_echo_n "checking for sysmouse... " >&6; }
15324 if test "${vi_cv_have_sysmouse+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15327 cat >conftest.$ac_ext <<_ACEOF
15330 cat confdefs.h >>conftest.$ac_ext
15331 cat >>conftest.$ac_ext <<_ACEOF
15332 /* end confdefs.h. */
15333 #include <sys/consio.h>
15334 #include <signal.h>
15335 #include <sys/fbio.h>
15339 struct mouse_info mouse;
15340 mouse.operation = MOUSE_MODE;
15341 mouse.operation = MOUSE_SHOW;
15342 mouse.u.mode.mode = 0;
15343 mouse.u.mode.signal = SIGUSR2;
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15352 *) ac_try_echo
=$ac_try;;
15354 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15355 $as_echo "$ac_try_echo") >&5
15356 (eval "$ac_link") 2>conftest.er1
15358 grep -v '^ *+' conftest.er1
>conftest.err
15360 cat conftest.err
>&5
15361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && {
15363 test -z "$ac_c_werror_flag" ||
15364 test ! -s conftest.err
15365 } && test -s conftest
$ac_exeext && {
15366 test "$cross_compiling" = yes ||
15367 $as_test_x conftest
$ac_exeext
15369 vi_cv_have_sysmouse
=yes
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.
$ac_ext >&5
15374 vi_cv_have_sysmouse
=no
15377 rm -rf conftest.dSYM
15378 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15379 conftest
$ac_exeext conftest.
$ac_ext
15382 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15383 $as_echo "$vi_cv_have_sysmouse" >&6; }
15384 if test $vi_cv_have_sysmouse = yes; then
15385 cat >>confdefs.h
<<\_ACEOF
15386 #define HAVE_SYSMOUSE 1
15391 { $as_echo "$as_me:$LINENO: result: yes" >&5
15392 $as_echo "yes" >&6; }
15395 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15396 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15397 cat >conftest.
$ac_ext <<_ACEOF
15400 cat confdefs.h
>>conftest.
$ac_ext
15401 cat >>conftest.
$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15404 # include <fcntl.h>
15409 int flag = FD_CLOEXEC;
15414 rm -f conftest.
$ac_objext
15415 if { (ac_try
="$ac_compile"
15416 case "(($ac_try" in
15417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15421 $as_echo "$ac_try_echo") >&5
15422 (eval "$ac_compile") 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } && {
15429 test -z "$ac_c_werror_flag" ||
15430 test ! -s conftest.err
15431 } && test -s conftest.$ac_objext; then
15432 { $as_echo "$as_me:$LINENO: result: yes" >&5
15433 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15434 #define HAVE_FD_CLOEXEC 1
15438 $as_echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15442 $as_echo "not usable" >&6; }
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15448 $as_echo_n "checking for rename... " >&6; }
15449 cat >conftest.$ac_ext <<_ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15459 rename("this", "that")
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (ac_try="$ac_link"
15466 case "(($ac_try" in
15467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15468 *) ac_try_echo
=$ac_try;;
15470 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15471 $as_echo "$ac_try_echo") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1
>conftest.err
15476 cat conftest.err
>&5
15477 $as_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 test "$cross_compiling" = yes ||
15483 $as_test_x conftest
$ac_exeext
15485 { $as_echo "$as_me:$LINENO: result: yes" >&5
15486 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15487 #define HAVE_RENAME 1
15491 $as_echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.
$ac_ext >&5
15494 { $as_echo "$as_me:$LINENO: result: no" >&5
15495 $as_echo "no" >&6; }
15498 rm -rf conftest.dSYM
15499 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15500 conftest
$ac_exeext conftest.
$ac_ext
15502 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15503 $as_echo_n "checking for sysctl... " >&6; }
15504 cat >conftest.
$ac_ext <<_ACEOF
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15510 #include <sys/types.h>
15511 #include <sys/sysctl.h>
15519 mib[1] = HW_USERMEM;
15521 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15527 rm -f conftest.
$ac_objext
15528 if { (ac_try
="$ac_compile"
15529 case "(($ac_try" in
15530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535 (eval "$ac_compile") 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest.$ac_objext; then
15545 { $as_echo "$as_me:$LINENO: result: yes" >&5
15546 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15547 #define HAVE_SYSCTL 1
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15555 $as_echo "not usable" >&6; }
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15561 $as_echo_n "checking for sysinfo... " >&6; }
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 #include <sys/types.h>
15569 #include <sys/sysinfo.h>
15573 struct sysinfo sinfo;
15576 (void)sysinfo(&sinfo);
15577 t = sinfo.totalram;
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15587 *) ac_try_echo
=$ac_try;;
15589 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15590 $as_echo "$ac_try_echo") >&5
15591 (eval "$ac_compile") 2>conftest.er1
15593 grep -v '^ *+' conftest.er1
>conftest.err
15595 cat conftest.err
>&5
15596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest.
$ac_objext; then
15601 { $as_echo "$as_me:$LINENO: result: yes" >&5
15602 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15603 #define HAVE_SYSINFO 1
15607 $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.
$ac_ext >&5
15610 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15611 $as_echo "not usable" >&6; }
15614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15616 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15617 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15618 cat >conftest.
$ac_ext <<_ACEOF
15621 cat confdefs.h
>>conftest.
$ac_ext
15622 cat >>conftest.
$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 #include <sys/types.h>
15625 #include <sys/sysinfo.h>
15629 struct sysinfo sinfo;
15630 sinfo.mem_unit = 1;
15636 rm -f conftest.
$ac_objext
15637 if { (ac_try
="$ac_compile"
15638 case "(($ac_try" in
15639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15643 $as_echo "$ac_try_echo") >&5
15644 (eval "$ac_compile") 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && {
15651 test -z "$ac_c_werror_flag" ||
15652 test ! -s conftest.err
15653 } && test -s conftest.$ac_objext; then
15654 { $as_echo "$as_me:$LINENO: result: yes" >&5
15655 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15656 #define HAVE_SYSINFO_MEM_UNIT 1
15660 $as_echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15663 { $as_echo "$as_me:$LINENO: result: no" >&5
15664 $as_echo "no" >&6; }
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15670 $as_echo_n "checking for sysconf... " >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <unistd.h>
15681 (void)sysconf(_SC_PAGESIZE);
15682 (void)sysconf(_SC_PHYS_PAGES);
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15692 *) ac_try_echo
=$ac_try;;
15694 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15695 $as_echo "$ac_try_echo") >&5
15696 (eval "$ac_compile") 2>conftest.er1
15698 grep -v '^ *+' conftest.er1
>conftest.err
15700 cat conftest.err
>&5
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } && {
15703 test -z "$ac_c_werror_flag" ||
15704 test ! -s conftest.err
15705 } && test -s conftest.
$ac_objext; then
15706 { $as_echo "$as_me:$LINENO: result: yes" >&5
15707 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15708 #define HAVE_SYSCONF 1
15712 $as_echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.
$ac_ext >&5
15715 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15716 $as_echo "not usable" >&6; }
15719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15722 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15723 $as_echo_n "checking size of int... " >&6; }
15724 if test "${ac_cv_sizeof_int+set}" = set; then
15725 $as_echo_n "(cached) " >&6
15727 if test "$cross_compiling" = yes; then
15728 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15729 $as_echo "$as_me: error: failed to compile test program" >&2;}
15730 { (exit 1); exit 1; }; }
15732 cat >conftest.
$ac_ext <<_ACEOF
15735 cat confdefs.h
>>conftest.
$ac_ext
15736 cat >>conftest.
$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15741 # include <stdlib.h>
15742 # include <stddef.h>
15746 FILE *f=fopen("conftestval", "w");
15748 fprintf(f, "%d\n", (int)sizeof(int));
15752 rm -f conftest
$ac_exeext
15753 if { (ac_try
="$ac_link"
15754 case "(($ac_try" in
15755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760 (eval "$ac_link") 2>&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15766 *) ac_try_echo
=$ac_try;;
15768 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_try") 2>&5
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15774 ac_cv_sizeof_int
=`cat conftestval`
15776 $as_echo "$as_me: program exited with status $ac_status" >&5
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.
$ac_ext >&5
15780 ( exit $ac_status )
15783 rm -rf conftest.dSYM
15784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15791 $as_echo "$ac_cv_sizeof_int" >&6; }
15792 cat >>confdefs.h
<<_ACEOF
15793 #define SIZEOF_INT $ac_cv_sizeof_int
15799 #include "confdefs.h"
15800 #ifdef HAVE_STRING_H
15801 # include <string.h>
15804 # include <stdlib.h>
15805 # include <stddef.h>
15809 strcpy(buf, "abcdefghi");
15810 mch_memmove(buf, buf + 2, 3);
15811 if (strncmp(buf, "ababcf", 6))
15813 strcpy(buf, "abcdefghi");
15814 mch_memmove(buf + 2, buf, 3);
15815 if (strncmp(buf, "cdedef", 6))
15817 exit(0); /* libc version works properly. */
15820 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15821 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15822 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15823 $as_echo_n "(cached) " >&6
15826 if test "$cross_compiling" = yes; then
15828 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15829 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15830 { (exit 1); exit 1; }; }
15833 cat >conftest.
$ac_ext <<_ACEOF
15834 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15836 rm -f conftest
$ac_exeext
15837 if { (ac_try
="$ac_link"
15838 case "(($ac_try" in
15839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15843 $as_echo "$ac_try_echo") >&5
15844 (eval "$ac_link") 2>&5
15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15848 { (case "(($ac_try" in
15849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15850 *) ac_try_echo
=$ac_try;;
15852 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15853 $as_echo "$ac_try_echo") >&5
15854 (eval "$ac_try") 2>&5
15856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15859 vim_cv_memmove_handles_overlap
=yes
15862 $as_echo "$as_me: program exited with status $ac_status" >&5
15863 $as_echo "$as_me: failed program was:" >&5
15864 sed 's/^/| /' conftest.
$ac_ext >&5
15866 ( exit $ac_status )
15868 vim_cv_memmove_handles_overlap
=no
15871 rm -rf conftest.dSYM
15872 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15878 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15879 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15881 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15882 cat >>confdefs.h
<<\_ACEOF
15883 #define USEMEMMOVE 1
15887 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15888 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15889 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15890 $as_echo_n "(cached) " >&6
15893 if test "$cross_compiling" = yes; then
15895 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15896 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15897 { (exit 1); exit 1; }; }
15900 cat >conftest.
$ac_ext <<_ACEOF
15901 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15903 rm -f conftest
$ac_exeext
15904 if { (ac_try
="$ac_link"
15905 case "(($ac_try" in
15906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15910 $as_echo "$ac_try_echo") >&5
15911 (eval "$ac_link") 2>&5
15913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15917 *) ac_try_echo
=$ac_try;;
15919 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15920 $as_echo "$ac_try_echo") >&5
15921 (eval "$ac_try") 2>&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15926 vim_cv_bcopy_handles_overlap
=yes
15929 $as_echo "$as_me: program exited with status $ac_status" >&5
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.
$ac_ext >&5
15933 ( exit $ac_status )
15935 vim_cv_bcopy_handles_overlap
=no
15938 rm -rf conftest.dSYM
15939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15945 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15946 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15948 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15949 cat >>confdefs.h
<<\_ACEOF
15954 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15955 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15956 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15957 $as_echo_n "(cached) " >&6
15960 if test "$cross_compiling" = yes; then
15962 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15963 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15964 { (exit 1); exit 1; }; }
15967 cat >conftest.
$ac_ext <<_ACEOF
15968 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15970 rm -f conftest
$ac_exeext
15971 if { (ac_try
="$ac_link"
15972 case "(($ac_try" in
15973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15974 *) ac_try_echo=$ac_try;;
15976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15977 $as_echo "$ac_try_echo") >&5
15978 (eval "$ac_link") 2>&5
15980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15982 { (case "(($ac_try" in
15983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15984 *) ac_try_echo
=$ac_try;;
15986 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15987 $as_echo "$ac_try_echo") >&5
15988 (eval "$ac_try") 2>&5
15990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15993 vim_cv_memcpy_handles_overlap
=yes
15996 $as_echo "$as_me: program exited with status $ac_status" >&5
15997 $as_echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.
$ac_ext >&5
16000 ( exit $ac_status )
16002 vim_cv_memcpy_handles_overlap
=no
16005 rm -rf conftest.dSYM
16006 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16012 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16013 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16015 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16016 cat >>confdefs.h
<<\_ACEOF
16017 #define USEMEMCPY 1
16026 if test "$enable_multibyte" = "yes"; then
16027 cflags_save
=$CFLAGS
16028 ldflags_save
=$LDFLAGS
16029 if test "x$x_includes" != "xNONE" ; then
16030 CFLAGS
="$CFLAGS -I$x_includes"
16031 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
16032 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16033 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16034 cat >conftest.
$ac_ext <<_ACEOF
16037 cat confdefs.h
>>conftest.
$ac_ext
16038 cat >>conftest.
$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 #include <X11/Xlocale.h>
16049 rm -f conftest.
$ac_objext
16050 if { (ac_try
="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 $as_echo "$ac_try_echo") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest.$ac_objext; then
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16074 /* Override any GCC internal prototype to avoid an error.
16075 Use char because int might match the return type of a GCC
16076 builtin and then its argument prototype would still apply. */
16080 char _Xsetlocale ();
16084 return _Xsetlocale ();
16089 rm -f conftest.$ac_objext conftest$ac_exeext
16090 if { (ac_try="$ac_link"
16091 case "(($ac_try" in
16092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16093 *) ac_try_echo
=$ac_try;;
16095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_link") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1
>conftest.err
16101 cat conftest.err
>&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest
$ac_exeext && {
16107 test "$cross_compiling" = yes ||
16108 $as_test_x conftest
$ac_exeext
16110 { $as_echo "$as_me:$LINENO: result: yes" >&5
16111 $as_echo "yes" >&6; }
16112 cat >>confdefs.h
<<\_ACEOF
16117 $as_echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.
$ac_ext >&5
16120 { $as_echo "$as_me:$LINENO: result: no" >&5
16121 $as_echo "no" >&6; }
16124 rm -rf conftest.dSYM
16125 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16126 conftest
$ac_exeext conftest.
$ac_ext
16128 $as_echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.
$ac_ext >&5
16131 { $as_echo "$as_me:$LINENO: result: no" >&5
16132 $as_echo "no" >&6; }
16135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16137 CFLAGS
=$cflags_save
16138 LDFLAGS
=$ldflags_save
16141 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16142 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16143 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16146 ac_check_lib_save_LIBS
=$LIBS
16147 LIBS
="-lxpg4 $LIBS"
16148 cat >conftest.
$ac_ext <<_ACEOF
16151 cat confdefs.h
>>conftest.
$ac_ext
16152 cat >>conftest.
$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 /* Override any GCC internal prototype to avoid an error.
16156 Use char because int might match the return type of a GCC
16157 builtin and then its argument prototype would still apply. */
16161 char _xpg4_setrunelocale ();
16165 return _xpg4_setrunelocale ();
16170 rm -f conftest.
$ac_objext conftest
$ac_exeext
16171 if { (ac_try
="$ac_link"
16172 case "(($ac_try" in
16173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16177 $as_echo "$ac_try_echo") >&5
16178 (eval "$ac_link") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest$ac_exeext && {
16188 test "$cross_compiling" = yes ||
16189 $as_test_x conftest$ac_exeext
16191 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16199 rm -rf conftest.dSYM
16200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16201 conftest$ac_exeext conftest.$ac_ext
16202 LIBS=$ac_check_lib_save_LIBS
16204 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16205 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16206 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16207 LIBS="$LIBS -lxpg4"
16211 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16212 $as_echo_n "checking how to create tags... " >&6; }
16213 test -f tags && mv tags tags.save
16214 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16215 TAGPRG="ctags -I INIT+ --fields=+S"
16218 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16219 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16220 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16221 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16222 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16223 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16224 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16226 test -f tags.save && mv tags.save tags
16227 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16228 $as_echo "$TAGPRG" >&6; }
16230 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16231 $as_echo_n "checking how to run man with a section nr... " >&6; }
16233 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16234 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16235 $as_echo "$MANDEF" >&6; }
16236 if test "$MANDEF" = "man -s"; then
16237 cat >>confdefs.h <<\_ACEOF
16243 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16244 $as_echo_n "checking --disable-nls argument... " >&6; }
16245 # Check whether --enable-nls was given.
16246 if test "${enable_nls+set}" = set; then
16247 enableval=$enable_nls;
16253 if test "$enable_nls" = "yes"; then
16254 { $as_echo "$as_me:$LINENO: result: no" >&5
16255 $as_echo "no" >&6; }
16257 INSTALL_LANGS=install-languages
16259 INSTALL_TOOL_LANGS=install-tool-languages
16262 # Extract the first word of "msgfmt", so it can be a program name with args.
16263 set dummy msgfmt; ac_word=$2
16264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16265 $as_echo_n "checking for $ac_word... " >&6; }
16266 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16267 $as_echo_n "(cached) " >&6
16269 if test -n "$MSGFMT"; then
16270 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16273 for as_dir in $PATH
16276 test -z "$as_dir" && as_dir=.
16277 for ac_exec_ext in '' $ac_executable_extensions; do
16278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16279 ac_cv_prog_MSGFMT="msgfmt"
16280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16289 MSGFMT=$ac_cv_prog_MSGFMT
16290 if test -n "$MSGFMT"; then
16291 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16292 $as_echo "$MSGFMT" >&6; }
16294 { $as_echo "$as_me:$LINENO: result: no" >&5
16295 $as_echo "no" >&6; }
16299 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16300 $as_echo_n "checking for NLS... " >&6; }
16301 if test -f po/Makefile; then
16303 if test -n "$MSGFMT"; then
16304 cat >conftest.$ac_ext <<_ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 #include <libintl.h>
16319 rm -f conftest.$ac_objext conftest$ac_exeext
16320 if { (ac_try="$ac_link"
16321 case "(($ac_try" in
16322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16323 *) ac_try_echo
=$ac_try;;
16325 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16326 $as_echo "$ac_try_echo") >&5
16327 (eval "$ac_link") 2>conftest.er1
16329 grep -v '^ *+' conftest.er1
>conftest.err
16331 cat conftest.err
>&5
16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest
$ac_exeext && {
16337 test "$cross_compiling" = yes ||
16338 $as_test_x conftest
$ac_exeext
16340 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16341 $as_echo "gettext() works" >&6; }; have_gettext
="yes"
16343 $as_echo "$as_me: failed program was:" >&5
16344 sed 's/^/| /' conftest.
$ac_ext >&5
16347 LIBS
="$LIBS -lintl"
16348 cat >conftest.
$ac_ext <<_ACEOF
16351 cat confdefs.h
>>conftest.
$ac_ext
16352 cat >>conftest.
$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 #include <libintl.h>
16363 rm -f conftest.
$ac_objext conftest
$ac_exeext
16364 if { (ac_try
="$ac_link"
16365 case "(($ac_try" in
16366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16370 $as_echo "$ac_try_echo") >&5
16371 (eval "$ac_link") 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext && {
16381 test "$cross_compiling" = yes ||
16382 $as_test_x conftest$ac_exeext
16384 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16385 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16387 $as_echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16390 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16391 $as_echo "gettext() doesn't work" >&6; };
16395 rm -rf conftest.dSYM
16396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16397 conftest$ac_exeext conftest.$ac_ext
16400 rm -rf conftest.dSYM
16401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16402 conftest$ac_exeext conftest.$ac_ext
16404 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16405 $as_echo "msgfmt not found - disabled" >&6; };
16407 if test $have_gettext = "yes"; then
16408 cat >>confdefs.h <<\_ACEOF
16409 #define HAVE_GETTEXT 1
16415 for ac_func in bind_textdomain_codeset
16417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16419 $as_echo_n "checking for $ac_func... " >&6; }
16420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16421 $as_echo_n "(cached) " >&6
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16431 #define $ac_func innocuous_$ac_func
16433 /* System header to define __stub macros and hopefully few prototypes,
16434 which can conflict with char $ac_func (); below.
16435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436 <limits.h> exists even on freestanding compilers. */
16439 # include <limits.h>
16441 # include <assert.h>
16446 /* Override any GCC internal prototype to avoid an error.
16447 Use char because int might match the return type of a GCC
16448 builtin and then its argument prototype would still apply. */
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined __stub_$ac_func || defined __stub___$ac_func
16463 return $ac_func ();
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16472 *) ac_try_echo
=$ac_try;;
16474 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16475 $as_echo "$ac_try_echo") >&5
16476 (eval "$ac_link") 2>conftest.er1
16478 grep -v '^ *+' conftest.er1
>conftest.err
16480 cat conftest.err
>&5
16481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); } && {
16483 test -z "$ac_c_werror_flag" ||
16484 test ! -s conftest.err
16485 } && test -s conftest
$ac_exeext && {
16486 test "$cross_compiling" = yes ||
16487 $as_test_x conftest
$ac_exeext
16489 eval "$as_ac_var=yes"
16491 $as_echo "$as_me: failed program was:" >&5
16492 sed 's/^/| /' conftest.
$ac_ext >&5
16494 eval "$as_ac_var=no"
16497 rm -rf conftest.dSYM
16498 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16499 conftest
$ac_exeext conftest.
$ac_ext
16501 ac_res
=`eval 'as_val=${'$as_ac_var'}
16502 $as_echo "$as_val"'`
16503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16504 $as_echo "$ac_res" >&6; }
16505 as_val
=`eval 'as_val=${'$as_ac_var'}
16506 $as_echo "$as_val"'`
16507 if test "x$as_val" = x
""yes; then
16508 cat >>confdefs.h
<<_ACEOF
16509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16515 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16516 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16517 cat >conftest.
$ac_ext <<_ACEOF
16520 cat confdefs.h
>>conftest.
$ac_ext
16521 cat >>conftest.
$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 #include <libintl.h>
16524 extern int _nl_msg_cat_cntr;
16528 ++_nl_msg_cat_cntr;
16533 rm -f conftest.
$ac_objext conftest
$ac_exeext
16534 if { (ac_try
="$ac_link"
16535 case "(($ac_try" in
16536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541 (eval "$ac_link") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest$ac_exeext && {
16551 test "$cross_compiling" = yes ||
16552 $as_test_x conftest$ac_exeext
16554 { $as_echo "$as_me:$LINENO: result: yes" >&5
16555 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16556 #define HAVE_NL_MSG_CAT_CNTR 1
16560 $as_echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 { $as_echo "$as_me:$LINENO: result: no" >&5
16564 $as_echo "no" >&6; }
16567 rm -rf conftest.dSYM
16568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16569 conftest$ac_exeext conftest.$ac_ext
16572 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16573 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16576 { $as_echo "$as_me:$LINENO: result: yes" >&5
16577 $as_echo "yes" >&6; }
16580 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16581 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16582 $as_echo_n "checking for dlfcn.h... " >&6; }
16583 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16584 $as_echo_n "(cached) " >&6
16586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16587 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16589 # Is the header compilable?
16590 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16591 $as_echo_n "checking dlfcn.h usability... " >&6; }
16592 cat >conftest.$ac_ext <<_ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 $ac_includes_default
16601 rm -f conftest.$ac_objext
16602 if { (ac_try="$ac_compile"
16603 case "(($ac_try" in
16604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16605 *) ac_try_echo
=$ac_try;;
16607 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16608 $as_echo "$ac_try_echo") >&5
16609 (eval "$ac_compile") 2>conftest.er1
16611 grep -v '^ *+' conftest.er1
>conftest.err
16613 cat conftest.err
>&5
16614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } && {
16616 test -z "$ac_c_werror_flag" ||
16617 test ! -s conftest.err
16618 } && test -s conftest.
$ac_objext; then
16619 ac_header_compiler
=yes
16621 $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.
$ac_ext >&5
16624 ac_header_compiler
=no
16627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16628 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16629 $as_echo "$ac_header_compiler" >&6; }
16631 # Is the header present?
16632 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16633 $as_echo_n "checking dlfcn.h presence... " >&6; }
16634 cat >conftest.
$ac_ext <<_ACEOF
16637 cat confdefs.h
>>conftest.
$ac_ext
16638 cat >>conftest.
$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16642 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16643 case "(($ac_try" in
16644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16648 $as_echo "$ac_try_echo") >&5
16649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16651 grep -v '^ *+' conftest.er1 >conftest.err
16653 cat conftest.err >&5
16654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } >/dev/null && {
16656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16659 ac_header_preproc=yes
16661 $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_header_preproc=no
16667 rm -f conftest.err conftest.$ac_ext
16668 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16669 $as_echo "$ac_header_preproc" >&6; }
16671 # So? What about this header?
16672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16674 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16675 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16676 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16677 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16678 ac_header_preproc=yes
16681 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16682 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16684 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16686 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16688 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16689 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16690 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16691 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16692 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16696 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16697 $as_echo_n "checking for dlfcn.h... " >&6; }
16698 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16699 $as_echo_n "(cached) " >&6
16701 ac_cv_header_dlfcn_h=$ac_header_preproc
16703 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16704 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16707 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16710 if test "${ac_cv_header_dl_h+set}" = set; then
16711 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16712 $as_echo_n "checking for dl.h... " >&6; }
16713 if test "${ac_cv_header_dl_h+set}" = set; then
16714 $as_echo_n "(cached) " >&6
16716 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16717 $as_echo "$ac_cv_header_dl_h" >&6; }
16719 # Is the header compilable?
16720 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16721 $as_echo_n "checking dl.h usability... " >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16735 *) ac_try_echo
=$ac_try;;
16737 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16738 $as_echo "$ac_try_echo") >&5
16739 (eval "$ac_compile") 2>conftest.er1
16741 grep -v '^ *+' conftest.er1
>conftest.err
16743 cat conftest.err
>&5
16744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } && {
16746 test -z "$ac_c_werror_flag" ||
16747 test ! -s conftest.err
16748 } && test -s conftest.
$ac_objext; then
16749 ac_header_compiler
=yes
16751 $as_echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.
$ac_ext >&5
16754 ac_header_compiler
=no
16757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16758 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16759 $as_echo "$ac_header_compiler" >&6; }
16761 # Is the header present?
16762 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16763 $as_echo_n "checking dl.h presence... " >&6; }
16764 cat >conftest.
$ac_ext <<_ACEOF
16767 cat confdefs.h
>>conftest.
$ac_ext
16768 cat >>conftest.
$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16772 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16773 case "(($ac_try" in
16774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16778 $as_echo "$ac_try_echo") >&5
16779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } >/dev/null && {
16786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16789 ac_header_preproc=yes
16791 $as_echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_preproc=no
16797 rm -f conftest.err conftest.$ac_ext
16798 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 $as_echo "$ac_header_preproc" >&6; }
16801 # So? What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16804 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16805 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16807 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16808 ac_header_preproc=yes
16811 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16812 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16813 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16814 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16815 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16816 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16817 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16818 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16819 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16820 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16821 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16822 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16826 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16827 $as_echo_n "checking for dl.h... " >&6; }
16828 if test "${ac_cv_header_dl_h+set}" = set; then
16829 $as_echo_n "(cached) " >&6
16831 ac_cv_header_dl_h=$ac_header_preproc
16833 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16834 $as_echo "$ac_cv_header_dl_h" >&6; }
16837 if test "x$ac_cv_header_dl_h" = x""yes; then
16845 if test x${DLL} = xdlfcn.h; then
16847 cat >>confdefs.h <<\_ACEOF
16848 #define HAVE_DLFCN_H 1
16851 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16852 $as_echo_n "checking for dlopen()... " >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16864 extern void* dlopen();
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16875 *) ac_try_echo
=$ac_try;;
16877 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16878 $as_echo "$ac_try_echo") >&5
16879 (eval "$ac_link") 2>conftest.er1
16881 grep -v '^ *+' conftest.er1
>conftest.err
16883 cat conftest.err
>&5
16884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } && {
16886 test -z "$ac_c_werror_flag" ||
16887 test ! -s conftest.err
16888 } && test -s conftest
$ac_exeext && {
16889 test "$cross_compiling" = yes ||
16890 $as_test_x conftest
$ac_exeext
16892 { $as_echo "$as_me:$LINENO: result: yes" >&5
16893 $as_echo "yes" >&6; };
16895 cat >>confdefs.h
<<\_ACEOF
16896 #define HAVE_DLOPEN 1
16900 $as_echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.
$ac_ext >&5
16903 { $as_echo "$as_me:$LINENO: result: no" >&5
16904 $as_echo "no" >&6; };
16905 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16906 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16909 cat >conftest.
$ac_ext <<_ACEOF
16912 cat confdefs.h
>>conftest.
$ac_ext
16913 cat >>conftest.
$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16920 extern void* dlopen();
16927 rm -f conftest.
$ac_objext conftest
$ac_exeext
16928 if { (ac_try
="$ac_link"
16929 case "(($ac_try" in
16930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16934 $as_echo "$ac_try_echo") >&5
16935 (eval "$ac_link") 2>conftest.er1
16937 grep -v '^ *+' conftest.er1 >conftest.err
16939 cat conftest.err >&5
16940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } && {
16942 test -z "$ac_c_werror_flag" ||
16943 test ! -s conftest.err
16944 } && test -s conftest$ac_exeext && {
16945 test "$cross_compiling" = yes ||
16946 $as_test_x conftest$ac_exeext
16948 { $as_echo "$as_me:$LINENO: result: yes" >&5
16949 $as_echo "yes" >&6; };
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_DLOPEN 1
16956 $as_echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 { $as_echo "$as_me:$LINENO: result: no" >&5
16960 $as_echo "no" >&6; };
16964 rm -rf conftest.dSYM
16965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16966 conftest$ac_exeext conftest.$ac_ext
16969 rm -rf conftest.dSYM
16970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16971 conftest$ac_exeext conftest.$ac_ext
16972 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16973 $as_echo_n "checking for dlsym()... " >&6; }
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16985 extern void* dlsym();
16992 rm -f conftest.$ac_objext conftest$ac_exeext
16993 if { (ac_try="$ac_link"
16994 case "(($ac_try" in
16995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16996 *) ac_try_echo
=$ac_try;;
16998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16999 $as_echo "$ac_try_echo") >&5
17000 (eval "$ac_link") 2>conftest.er1
17002 grep -v '^ *+' conftest.er1
>conftest.err
17004 cat conftest.err
>&5
17005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && {
17007 test -z "$ac_c_werror_flag" ||
17008 test ! -s conftest.err
17009 } && test -s conftest
$ac_exeext && {
17010 test "$cross_compiling" = yes ||
17011 $as_test_x conftest
$ac_exeext
17013 { $as_echo "$as_me:$LINENO: result: yes" >&5
17014 $as_echo "yes" >&6; };
17016 cat >>confdefs.h
<<\_ACEOF
17017 #define HAVE_DLSYM 1
17021 $as_echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.
$ac_ext >&5
17024 { $as_echo "$as_me:$LINENO: result: no" >&5
17025 $as_echo "no" >&6; };
17026 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17027 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17030 cat >conftest.
$ac_ext <<_ACEOF
17033 cat confdefs.h
>>conftest.
$ac_ext
17034 cat >>conftest.
$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17041 extern void* dlsym();
17048 rm -f conftest.
$ac_objext conftest
$ac_exeext
17049 if { (ac_try
="$ac_link"
17050 case "(($ac_try" in
17051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17055 $as_echo "$ac_try_echo") >&5
17056 (eval "$ac_link") 2>conftest.er1
17058 grep -v '^ *+' conftest.er1 >conftest.err
17060 cat conftest.err >&5
17061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && {
17063 test -z "$ac_c_werror_flag" ||
17064 test ! -s conftest.err
17065 } && test -s conftest$ac_exeext && {
17066 test "$cross_compiling" = yes ||
17067 $as_test_x conftest$ac_exeext
17069 { $as_echo "$as_me:$LINENO: result: yes" >&5
17070 $as_echo "yes" >&6; };
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_DLSYM 1
17077 $as_echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 { $as_echo "$as_me:$LINENO: result: no" >&5
17081 $as_echo "no" >&6; };
17085 rm -rf conftest.dSYM
17086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087 conftest$ac_exeext conftest.$ac_ext
17090 rm -rf conftest.dSYM
17091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17092 conftest$ac_exeext conftest.$ac_ext
17093 elif test x${DLL} = xdl.h; then
17095 cat >>confdefs.h <<\_ACEOF
17096 #define HAVE_DL_H 1
17099 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17100 $as_echo_n "checking for shl_load()... " >&6; }
17101 cat >conftest.$ac_ext <<_ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17112 extern void* shl_load();
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17123 *) ac_try_echo
=$ac_try;;
17125 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17126 $as_echo "$ac_try_echo") >&5
17127 (eval "$ac_link") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1
>conftest.err
17131 cat conftest.err
>&5
17132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest
$ac_exeext && {
17137 test "$cross_compiling" = yes ||
17138 $as_test_x conftest
$ac_exeext
17140 { $as_echo "$as_me:$LINENO: result: yes" >&5
17141 $as_echo "yes" >&6; };
17143 cat >>confdefs.h
<<\_ACEOF
17144 #define HAVE_SHL_LOAD 1
17148 $as_echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.
$ac_ext >&5
17151 { $as_echo "$as_me:$LINENO: result: no" >&5
17152 $as_echo "no" >&6; };
17153 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17154 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17157 cat >conftest.
$ac_ext <<_ACEOF
17160 cat confdefs.h
>>conftest.
$ac_ext
17161 cat >>conftest.
$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17168 extern void* shl_load();
17175 rm -f conftest.
$ac_objext conftest
$ac_exeext
17176 if { (ac_try
="$ac_link"
17177 case "(($ac_try" in
17178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17182 $as_echo "$ac_try_echo") >&5
17183 (eval "$ac_link") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext && {
17193 test "$cross_compiling" = yes ||
17194 $as_test_x conftest$ac_exeext
17196 { $as_echo "$as_me:$LINENO: result: yes" >&5
17197 $as_echo "yes" >&6; };
17199 cat >>confdefs.h <<\_ACEOF
17200 #define HAVE_SHL_LOAD 1
17204 $as_echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 { $as_echo "$as_me:$LINENO: result: no" >&5
17208 $as_echo "no" >&6; };
17212 rm -rf conftest.dSYM
17213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17214 conftest$ac_exeext conftest.$ac_ext
17217 rm -rf conftest.dSYM
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17222 for ac_header in setjmp.h
17224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17226 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17227 $as_echo_n "checking for $ac_header... " >&6; }
17228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17229 $as_echo_n "(cached) " >&6
17231 ac_res=`eval 'as_val=${'$as_ac_Header'}
17232 $as_echo "$as_val"'`
17233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17234 $as_echo "$ac_res" >&6; }
17236 # Is the header compilable?
17237 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17238 $as_echo_n "checking $ac_header usability... " >&6; }
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 $ac_includes_default
17246 #include <$ac_header>
17248 rm -f conftest.$ac_objext
17249 if { (ac_try="$ac_compile"
17250 case "(($ac_try" in
17251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17252 *) ac_try_echo
=$ac_try;;
17254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1
>conftest.err
17260 cat conftest.err
>&5
17261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest.
$ac_objext; then
17266 ac_header_compiler
=yes
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.
$ac_ext >&5
17271 ac_header_compiler
=no
17274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17275 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17276 $as_echo "$ac_header_compiler" >&6; }
17278 # Is the header present?
17279 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17280 $as_echo_n "checking $ac_header presence... " >&6; }
17281 cat >conftest.
$ac_ext <<_ACEOF
17284 cat confdefs.h
>>conftest.
$ac_ext
17285 cat >>conftest.
$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 #include <$ac_header>
17289 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17290 case "(($ac_try" in
17291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17295 $as_echo "$ac_try_echo") >&5
17296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev/null && {
17303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17306 ac_header_preproc=yes
17308 $as_echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_header_preproc=no
17314 rm -f conftest.err conftest.$ac_ext
17315 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17316 $as_echo "$ac_header_preproc" >&6; }
17318 # So? What about this header?
17319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17322 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17324 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17325 ac_header_preproc=yes
17328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17329 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17331 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17333 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17335 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17339 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17344 $as_echo_n "checking for $ac_header... " >&6; }
17345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17346 $as_echo_n "(cached) " >&6
17348 eval "$as_ac_Header=\$ac_header_preproc"
17350 ac_res=`eval 'as_val=${'$as_ac_Header'}
17351 $as_echo "$as_val"'`
17352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17353 $as_echo "$ac_res" >&6; }
17356 as_val=`eval 'as_val=${'$as_ac_Header'}
17357 $as_echo "$as_val"'`
17358 if test "x$as_val" = x""yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17368 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17369 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17370 LIBS=`echo $LIBS |
sed s
/-ldl//`
17371 PERL_LIBS="$PERL_LIBS -ldl"
17375 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17376 && test "x$GUITYPE" != "xCARBONGUI"; then
17377 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17378 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17379 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17380 || test "x$features" = "xhuge"; then
17381 LIBS="$LIBS -framework Carbon"
17382 { $as_echo "$as_me:$LINENO: result: yes" >&5
17383 $as_echo "yes" >&6; }
17385 { $as_echo "$as_me:$LINENO: result: no" >&5
17386 $as_echo "no" >&6; }
17389 if test "x$MACARCH" = "xboth"; then
17390 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17393 DEPEND_CFLAGS_FILTER=
17394 if test "$GCC" = yes; then
17395 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17396 $as_echo_n "checking for GCC 3 or later... " >&6; }
17397 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
17398 if test "$gccmajor" -gt "2"; then
17399 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17400 { $as_echo "$as_me:$LINENO: result: yes" >&5
17401 $as_echo "yes" >&6; }
17403 { $as_echo "$as_me:$LINENO: result: no" >&5
17404 $as_echo "no" >&6; }
17406 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17407 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17408 if test "$gccmajor" -gt "3"; then
17409 CFLAGS=`echo "$CFLAGS" |
sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17410 { $as_echo "$as_me:$LINENO: result: yes" >&5
17411 $as_echo "yes" >&6; }
17413 { $as_echo "$as_me:$LINENO: result: no" >&5
17414 $as_echo "no" >&6; }
17419 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17421 cat >confcache <<\_ACEOF
17422 # This file is a shell script that caches the results of configure
17423 # tests run on this system so they can be shared between configure
17424 # scripts and configure runs, see configure's option --config-cache.
17425 # It is not useful on other systems. If it contains results you don't
17426 # want to keep, you may remove or edit it.
17428 # config.status only pays attention to the cache file if you give it
17429 # the --recheck option to rerun configure.
17431 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
17432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17433 # following values.
17437 # The following way of writing the cache mishandles newlines in values,
17438 # but we know of no workaround that is simple, portable, and efficient.
17439 # So, we kill variables containing newlines.
17440 # Ultrix sh set writes to stderr and can't be redirected directly,
17441 # and sets the high bit in the cache file unless we assign to the vars.
17443 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17444 eval ac_val
=\$
$ac_var
17448 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17452 _ | IFS | as_nl
) ;; #(
17453 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17454 *) $as_unset $ac_var ;;
17460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17461 *${as_nl}ac_space
=\
*)
17462 # `set' does not quote correctly, so add quotes (double-quote
17463 # substitution turns \\\\ into \\, and sed turns \\ into \).
17466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17469 # `set' quotes correctly as required by POSIX, so do not add quotes.
17470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17483 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17484 if test -w "$cache_file"; then
17485 test "x$cache_file" != "x/dev/null" &&
17486 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17487 $as_echo "$as_me: updating cache $cache_file" >&6;}
17488 cat confcache
>$cache_file
17490 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17496 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17497 # Let make expand exec_prefix.
17498 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17500 DEFS
=-DHAVE_CONFIG_H
17504 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17505 # 1. Remove the extension, and $U if already installed.
17506 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17507 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17509 # will be set to the directory where LIBOBJS objects are built.
17510 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17511 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17513 LIBOBJS
=$ac_libobjs
17515 LTLIBOBJS
=$ac_ltlibobjs
17519 : ${CONFIG_STATUS=./config.status}
17521 ac_clean_files_save
=$ac_clean_files
17522 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17523 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17524 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17525 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17527 # Generated by $as_me.
17528 # Run this file to recreate the current configuration.
17529 # Compiler output produced by configure, useful for debugging
17530 # configure, is in config.log if it exists.
17533 ac_cs_recheck=false
17535 SHELL=\${CONFIG_SHELL-$SHELL}
17538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17539 ## --------------------- ##
17540 ## M4sh Initialization. ##
17541 ## --------------------- ##
17543 # Be more Bourne compatible
17544 DUALCASE
=1; export DUALCASE
# for MKS sh
17545 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17549 # is contrary to our usage. Disable this feature.
17550 alias -g '${1+"$@"}'='"$@"'
17551 setopt NO_GLOB_SUBST
17553 case `(set -o) 2>/dev/null` in
17554 *posix
*) set -o posix
;;
17563 # Avoid depending upon Character Ranges.
17564 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17565 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17566 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17567 as_cr_digits
='0123456789'
17568 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17574 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17577 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17578 as_echo='printf %s
\n'
17579 as_echo_n='printf %s
'
17581 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17582 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17583 as_echo_n='/usr
/ucb
/echo -n'
17585 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17586 as_echo_n_body='eval
17590 expr "X$arg" : "X\\(.*\\)$as_nl";
17591 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17593 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17595 export as_echo_n_body
17596 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17598 export as_echo_body
17599 as_echo='sh
-c $as_echo_body as_echo
'
17602 # The user is always right.
17603 if test "${PATH_SEPARATOR+set}" != set; then
17605 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17606 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17611 # Support unset when possible.
17612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17620 # We need space, tab and new line, in precisely that order. Quoting is
17621 # there to prevent editors from complaining about space-tab.
17622 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17623 # splitting by setting IFS to empty value.)
17626 # Find who we are. Look in the path if we contain no directory separator.
17628 *[\\/]* ) as_myself=$0 ;;
17629 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17630 for as_dir in $PATH
17633 test -z "$as_dir" && as_dir=.
17634 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17640 # We did not find ourselves, most probably we were run as `sh COMMAND'
17641 # in which case we are not to be found in the path.
17642 if test "x$as_myself" = x
; then
17645 if test ! -f "$as_myself"; then
17646 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17647 { (exit 1); exit 1; }
17650 # Work around bugs in pre-3.0 UWIN ksh.
17651 for as_var
in ENV MAIL MAILPATH
17652 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17664 # Required to use basename.
17665 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17666 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17672 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17673 as_basename
=basename
17679 # Name of the executable.
17680 as_me
=`$as_basename -- "$0" ||
17681 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17682 X"$0" : 'X\(//\)$' \| \
17683 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17685 sed '/^.*\/\([^/][^/]*\)\/*$/{
17704 as_lineno_1
=$LINENO
17705 as_lineno_2
=$LINENO
17706 test "x$as_lineno_1" != "x$as_lineno_2" &&
17707 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17710 # uniformly replaced by the line number. The first 'sed' inserts a
17711 # line-number line after each line using $LINENO; the second 'sed'
17712 # does the real work. The second script uses 'N' to pair each
17713 # line-number line with the line containing $LINENO, and appends
17714 # trailing '-' during substitution so that $LINENO is not a special
17715 # case at line end.
17716 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17717 # scripts with optimization help from Paolo Bonzini. Blame Lee
17718 # E. McMahon (1931-1989) for sed's syntax. :-)
17730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17733 ' >$as_me.lineno
&&
17734 chmod +x
"$as_me.lineno" ||
17735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17736 { (exit 1); exit 1; }; }
17738 # Don't try to exec as it changes $[0], causing all sort of problems
17739 # (the dirname of $[0] is not the place where we might find the
17740 # original and so on. Autoconf is especially sensitive to this).
17741 .
"./$as_me.lineno"
17742 # Exit status is that of the last command.
17747 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17753 ECHO_C
= ECHO_N
= ECHO_T
=
17754 case `echo -n x` in
17756 case `echo 'x\c'` in
17757 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17763 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17764 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17770 rm -f conf$$ conf$$.exe conf$$.
file
17771 if test -d conf$$.dir
; then
17772 rm -f conf$$.dir
/conf$$.
file
17775 mkdir conf$$.dir
2>/dev
/null
17777 if (echo >conf$$.
file) 2>/dev
/null
; then
17778 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17780 # ... but there are two gotchas:
17781 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17782 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17783 # In both cases, we have to default to `cp -p'.
17784 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17786 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17794 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17795 rmdir conf$$.dir
2>/dev
/null
17797 if mkdir
-p .
2>/dev
/null
; then
17800 test -d .
/-p && rmdir .
/-p
17804 if test -x / >/dev
/null
2>&1; then
17805 as_test_x
='test -x'
17807 if ls -dL / >/dev
/null
2>&1; then
17814 if test -d "$1"; then
17820 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17821 ???[sx]*):;;*)false;;esac;fi
17825 as_executable_p
=$as_test_x
17827 # Sed expression to map a string onto a valid CPP name.
17828 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17830 # Sed expression to map a string onto a valid variable name.
17831 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17836 # Save the log message, to keep $[0] and so on meaningful, and to
17837 # report actual input values of CONFIG_FILES etc. instead of their
17838 # values after options handling.
17840 This file was extended by $as_me, which was
17841 generated by GNU Autoconf 2.63. Invocation command line was
17843 CONFIG_FILES = $CONFIG_FILES
17844 CONFIG_HEADERS = $CONFIG_HEADERS
17845 CONFIG_LINKS = $CONFIG_LINKS
17846 CONFIG_COMMANDS = $CONFIG_COMMANDS
17849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17854 case $ac_config_files in *"
17855 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17858 case $ac_config_headers in *"
17859 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17864 # Files that config.status was made for.
17865 config_files="$ac_config_files"
17866 config_headers="$ac_config_headers"
17870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17872 \`$as_me' instantiates files from templates according to the
17873 current configuration.
17875 Usage: $0 [OPTION]... [FILE]...
17877 -h, --help print this help, then exit
17878 -V, --version print version number and configuration settings, then exit
17879 -q, --quiet, --silent
17880 do not print progress messages
17881 -d, --debug don't remove temporary files
17882 --recheck update $as_me by reconfiguring in the same conditions
17883 --file=FILE[:TEMPLATE]
17884 instantiate the configuration file FILE
17885 --header=FILE[:TEMPLATE]
17886 instantiate the configuration header FILE
17888 Configuration files:
17891 Configuration headers:
17894 Report bugs to <bug-autoconf@gnu.org>."
17897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17900 configured by $0, generated by GNU Autoconf 2.63,
17901 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17903 Copyright (C) 2008 Free Software Foundation, Inc.
17904 This config.status script is free software; the Free Software Foundation
17905 gives unlimited permission to copy, distribute and modify it."
17910 test -n "\$AWK" || AWK=awk
17913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17914 # The default lists apply if the user does not specify any file.
17920 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17921 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17932 # Handling of the options.
17933 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17935 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17936 $as_echo "$ac_cs_version"; exit ;;
17937 --debug |
--debu |
--deb |
--de |
--d |
-d )
17939 --file |
--fil |
--fi |
--f )
17942 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17944 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17945 ac_need_defaults
=false
;;
17946 --header |
--heade |
--head |
--hea )
17949 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17951 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17952 ac_need_defaults
=false
;;
17954 # Conflict between --help and --header
17955 { $as_echo "$as_me: error: ambiguous option: $1
17956 Try \`$0 --help' for more information." >&2
17957 { (exit 1); exit 1; }; };;
17958 --help |
--hel |
-h )
17959 $as_echo "$ac_cs_usage"; exit ;;
17960 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17961 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17964 # This is an error.
17965 -*) { $as_echo "$as_me: error: unrecognized option: $1
17966 Try \`$0 --help' for more information." >&2
17967 { (exit 1); exit 1; }; } ;;
17969 *) ac_config_targets
="$ac_config_targets $1"
17970 ac_need_defaults
=false
;;
17976 ac_configure_extra_args
=
17978 if $ac_cs_silent; then
17980 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17985 if \$ac_cs_recheck; then
17986 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17988 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17989 CONFIG_SHELL='$SHELL'
17990 export CONFIG_SHELL
17995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17996 exec 5>>auto
/config.log
17999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18000 ## Running $as_me. ##
18006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18011 # Handling of arguments.
18012 for ac_config_target
in $ac_config_targets
18014 case $ac_config_target in
18015 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18016 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18018 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18019 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18020 { (exit 1); exit 1; }; };;
18025 # If the user did not use the arguments to specify the items to instantiate,
18026 # then the envvar interface is used. Set only those that are not.
18027 # We use the long form for the default assignment because of an extremely
18028 # bizarre bug on SunOS 4.1.3.
18029 if $ac_need_defaults; then
18030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18034 # Have a temporary directory for convenience. Make it in the build tree
18035 # simply because there is no reason against having it here, and in addition,
18036 # creating and moving files from /tmp can sometimes cause problems.
18037 # Hook for its removal unless debugging.
18038 # Note that there is a small window in which the directory will not be cleaned:
18039 # after its creation but before its name has been assigned to `$tmp'.
18043 trap 'exit_status=$?
18044 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18046 trap '{ (exit 1); exit 1; }' 1 2 13 15
18048 # Create a (secure) tmp directory for tmp files.
18051 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18052 test -n "$tmp" && test -d "$tmp"
18055 tmp
=.
/conf$$
-$RANDOM
18056 (umask 077 && mkdir
"$tmp")
18059 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18060 { (exit 1); exit 1; }
18063 # Set up the scripts for CONFIG_FILES section.
18064 # No need to generate them if there are no CONFIG_FILES.
18065 # This happens for instance with `./config.status config.h'.
18066 if test -n "$CONFIG_FILES"; then
18070 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18074 ac_cs_awk_cr
=$ac_cr
18077 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18082 echo "cat >conf$$subs.awk <<_ACEOF" &&
18083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18085 } >conf$$subs.sh ||
18086 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18087 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18088 { (exit 1); exit 1; }; }
18089 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18091 for ac_last_try in false false false false false :; do
18092 . ./conf$$subs.sh ||
18093 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18094 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18095 { (exit 1); exit 1; }; }
18097 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18098 if test $ac_delim_n = $ac_delim_num; then
18100 elif $ac_last_try; then
18101 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18102 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18103 { (exit 1); exit 1; }; }
18105 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18108 rm -f conf$$subs.sh
18110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18111 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18115 s/^/S["/; s
/!.
*/"]=/
18125 s/\(.\{148\}\).*/\1/
18127 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18132 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18139 s/\(.\{148\}\).*/\1/
18141 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18145 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18150 ' <conf$$subs.awk | sed '
18155 ' >>$CONFIG_STATUS || ac_write_fail=1
18156 rm -f conf$$subs.awk
18157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18159 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18160 for (key in S) S_is_set[key] = 1
18166 nfields = split(line, field, "@
")
18168 len = length(field[1])
18169 for (i = 2; i < nfields; i++) {
18171 keylen = length(key)
18172 if (S_is_set[key]) {
18174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18175 len += length(value) + length(field[++i])
18186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18187 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18188 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18191 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18192 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
18193 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
18194 { (exit 1); exit 1; }; }
18197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18199 # trailing colons and then remove the whole line if VPATH becomes empty
18200 # (actually we leave an empty line to preserve line numbers).
18201 if test "x
$srcdir" = x.; then
18202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18203 s/:*\$(srcdir):*/:/
18204 s/:*\${srcdir}:*/:/
18206 s/^\([^=]*=[ ]*\):*/\1/
18212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18213 fi # test -n "$CONFIG_FILES"
18215 # Set up the scripts for CONFIG_HEADERS section.
18216 # No need to generate them if there are no CONFIG_HEADERS.
18217 # This happens for instance with `./config.status Makefile'.
18218 if test -n "$CONFIG_HEADERS"; then
18219 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18223 # Transform confdefs.h into an awk script `defines.awk', embedded as
18224 # here-document in config.status, that substitutes the proper values into
18225 # config.h.in to produce config.h.
18227 # Create a delimiter string that does not exist in confdefs.h, to ease
18228 # handling of long lines.
18230 for ac_last_try in false false :; do
18231 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18232 if test -z "$ac_t"; then
18234 elif $ac_last_try; then
18235 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18236 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18237 { (exit 1); exit 1; }; }
18239 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18243 # For the awk script, D is an array of macro values keyed by name,
18244 # likewise P contains macro parameters if any. Preserve backslash
18245 # newline sequences.
18247 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18249 s/.\{148\}/&'"$ac_delim"'/g
18252 s/^[ ]*#[ ]*define[ ][ ]*/ /
18259 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18261 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18266 D["\
1"]=" \
3\\\\\\n
"\\/p
18268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18273 s/.\{148\}/&'"$ac_delim"'/g
18278 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18281 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18283 ' <confdefs.h | sed '
18284 s/'"$ac_delim"'/"\\\
18285 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18288 for (key in D) D_is_set[key] = 1
18291 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18293 split(line, arg, " ")
18294 if (arg[1] == "#") {
18298 defundef
= substr
(arg
[1], 2)
18301 split(mac1
, mac2
, "(") #)
18303 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18304 if (D_is_set
[macro
]) {
18305 # Preserve the white space surrounding the "#".
18306 print prefix
"define", macro P
[macro
] D
[macro
]
18309 # Replace #undef with comments. This is necessary, for example,
18310 # in the case of _POSIX_SOURCE, which is predefined and required
18311 # on some systems where configure will not decide to define it.
18312 if (defundef
== "undef") {
18313 print
"/*", prefix defundef
, macro
, "*/"
18321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18322 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18323 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18324 { (exit 1); exit 1; }; }
18325 fi # test -n "$CONFIG_HEADERS"
18328 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
18333 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18335 case $ac_mode$ac_tag in
18337 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18338 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18339 { (exit 1); exit 1; }; };;
18340 :[FH
]-) ac_tag
=-:-;;
18341 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18358 -) ac_f
="$tmp/stdin";;
18359 *) # Look for the file first in the build tree, then in the source tree
18360 # (if the path is not absolute). The absolute path cannot be DOS-style,
18361 # because $ac_f cannot contain `:'.
18365 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18367 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18368 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18369 { (exit 1); exit 1; }; };;
18371 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18372 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18375 # Let's still pretend it is `configure' which instantiates (i.e., don't
18376 # use $as_me), people would be surprised to read:
18377 # /* config.h. Generated by config.status. */
18378 configure_input
='Generated from '`
18379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18381 if test x
"$ac_file" != x-
; then
18382 configure_input
="$ac_file. $configure_input"
18383 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18384 $as_echo "$as_me: creating $ac_file" >&6;}
18386 # Neutralize special characters interpreted by sed in replacement strings.
18387 case $configure_input in #(
18388 *\
&* |
*\|
* |
*\\* )
18389 ac_sed_conf_input
=`$as_echo "$configure_input" |
18390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18391 *) ac_sed_conf_input
=$configure_input;;
18395 *:-:* |
*:-) cat >"$tmp/stdin" \
18396 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18397 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18398 { (exit 1); exit 1; }; } ;;
18403 ac_dir
=`$as_dirname -- "$ac_file" ||
18404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18405 X"$ac_file" : 'X\(//\)[^/]' \| \
18406 X"$ac_file" : 'X\(//\)$' \| \
18407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18408 $as_echo X"$ac_file" |
18409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18413 /^X\(\/\/\)[^/].*/{
18428 -*) as_dir
=.
/$as_dir;;
18430 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18434 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18435 *) as_qdir
=$as_dir;;
18437 as_dirs
="'$as_qdir' $as_dirs"
18438 as_dir
=`$as_dirname -- "$as_dir" ||
18439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18440 X"$as_dir" : 'X\(//\)[^/]' \| \
18441 X"$as_dir" : 'X\(//\)$' \| \
18442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18443 $as_echo X"$as_dir" |
18444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18448 /^X\(\/\/\)[^/].*/{
18461 test -d "$as_dir" && break
18463 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18464 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18465 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18466 { (exit 1); exit 1; }; }; }
18470 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18472 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18473 # A ".." for each directory in $ac_dir_suffix.
18474 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18475 case $ac_top_builddir_sub in
18476 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18477 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18480 ac_abs_top_builddir
=$ac_pwd
18481 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18482 # for backward compatibility:
18483 ac_top_builddir
=$ac_top_build_prefix
18486 .
) # We are building in place.
18488 ac_top_srcdir
=$ac_top_builddir_sub
18489 ac_abs_top_srcdir
=$ac_pwd ;;
18490 [\\/]* | ?
:[\\/]* ) # Absolute name.
18491 ac_srcdir
=$srcdir$ac_dir_suffix;
18492 ac_top_srcdir
=$srcdir
18493 ac_abs_top_srcdir
=$srcdir ;;
18494 *) # Relative name.
18495 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18496 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18497 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18499 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18511 # If the template does not know about datarootdir, expand it.
18512 # FIXME: This hack should be removed a few years after 2.60.
18513 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18526 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18527 *datarootdir
*) ac_datarootdir_seen
=yes;;
18528 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18529 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18530 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18533 ac_datarootdir_hack='
18534 s&@datadir@&$datadir&g
18535 s&@docdir@&$docdir&g
18536 s&@infodir@&$infodir&g
18537 s&@localedir@&$localedir&g
18538 s&@mandir@&$mandir&g
18539 s&\\\${datarootdir}&$datarootdir&g' ;;
18543 # Neutralize VPATH when `$srcdir' = `.'.
18544 # Shell code in configure.ac might set extrasub.
18545 # FIXME: do we really want to maintain this feature?
18546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18547 ac_sed_extra="$ac_vpsub
18550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18552 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18553 s|@configure_input@|
$ac_sed_conf_input|
;t t
18554 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18555 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18556 s
&@srcdir@
&$ac_srcdir&;t t
18557 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18558 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18559 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18560 s
&@builddir@
&$ac_builddir&;t t
18561 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18562 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18563 $ac_datarootdir_hack
18565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18566 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18567 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18568 { (exit 1); exit 1; }; }
18570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18571 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18573 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18574 which seems to be undefined. Please make sure it is defined." >&5
18575 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18576 which seems to be undefined. Please make sure it is defined." >&2;}
18580 -) cat "$tmp/out" && rm -f "$tmp/out";;
18581 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18583 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18584 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18585 { (exit 1); exit 1; }; }
18591 if test x"$ac_file" != x-; then
18593 $as_echo "/* $configure_input */" \
18594 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18595 } >"$tmp/config.h" \
18596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18597 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18598 { (exit 1); exit 1; }; }
18599 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18600 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18601 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18604 mv "$tmp/config.h" "$ac_file" \
18605 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18606 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18607 { (exit 1); exit 1; }; }
18610 $as_echo "/* $configure_input */" \
18611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18612 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18613 $as_echo "$as_me: error: could not create -" >&2;}
18614 { (exit 1); exit 1; }; }
18624 { (exit 0); exit 0; }
18626 chmod +x $CONFIG_STATUS
18627 ac_clean_files=$ac_clean_files_save
18629 test $ac_write_fail = 0 ||
18630 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18631 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18632 { (exit 1); exit 1; }; }
18635 # configure is writing to config.log, and then calls config.status.
18636 # config.status does its own redirection, appending to config.log.
18637 # Unfortunately, on DOS this fails, as config.log is still kept open
18638 # by configure, so config.status won't be able to
write to it
; its
18639 # output is simply discarded. So we exec the FD to /dev/null,
18640 # effectively closing config.log, so it can be properly (re)opened and
18641 # appended to by config.status. When coming back to configure, we
18642 # need to make the FD available again.
18643 if test "$no_create" != yes; then
18645 ac_config_status_args
=
18646 test "$silent" = yes &&
18647 ac_config_status_args
="$ac_config_status_args --quiet"
18649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18650 exec 5>>auto
/config.log
18651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18652 # would make configure fail if this is the last instruction.
18653 $ac_cs_success ||
{ (exit 1); exit 1; }
18655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18656 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}