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
762 program_transform_name
774 enable_option_checking
788 enable_mzschemeinterp
792 with_python_config_dir
827 ac_precious_vars
='build_alias
839 # Initialize some variables set by options.
841 ac_init_version
=false
842 ac_unrecognized_opts
=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name
=s
,x
,x
,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir
='${exec_prefix}/bin'
868 sbindir
='${exec_prefix}/sbin'
869 libexecdir
='${exec_prefix}/libexec'
870 datarootdir
='${prefix}/share'
871 datadir
='${datarootdir}'
872 sysconfdir
='${prefix}/etc'
873 sharedstatedir
='${prefix}/com'
874 localstatedir
='${prefix}/var'
875 includedir
='${prefix}/include'
876 oldincludedir
='/usr/include'
877 docdir
='${datarootdir}/doc/${PACKAGE}'
878 infodir
='${datarootdir}/info'
883 libdir
='${exec_prefix}/lib'
884 localedir
='${datarootdir}/locale'
885 mandir
='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\
$ac_option
899 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
911 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
914 -build |
--build |
--buil |
--bui |
--bu)
915 ac_prev
=build_alias
;;
916 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
917 build_alias
=$ac_optarg ;;
919 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
920 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
921 ac_prev
=cache_file
;;
922 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
923 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
924 cache_file
=$ac_optarg ;;
927 cache_file
=config.cache
;;
929 -datadir |
--datadir |
--datadi |
--datad)
931 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
932 datadir
=$ac_optarg ;;
934 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
935 |
--dataroo |
--dataro |
--datar)
936 ac_prev
=datarootdir
;;
937 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
938 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
939 datarootdir
=$ac_optarg ;;
941 -disable-* |
--disable-*)
942 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946 { (exit 1); exit 1; }; }
947 ac_useropt_orig
=$ac_useropt
948 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep
=', ';;
956 eval enable_
$ac_useropt=no
;;
958 -docdir |
--docdir |
--docdi |
--doc |
--do)
960 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
963 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
965 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
968 -enable-* |
--enable-*)
969 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig
=$ac_useropt
975 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep
=', ';;
983 eval enable_
$ac_useropt=\
$ac_optarg ;;
985 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
986 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
987 |
--exec |
--exe |
--ex)
988 ac_prev
=exec_prefix
;;
989 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
990 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
991 |
--exec=* |
--exe=* |
--ex=*)
992 exec_prefix
=$ac_optarg ;;
994 -gas |
--gas |
--ga |
--g)
995 # Obsolete; use --with-gas.
998 -help |
--help |
--hel |
--he |
-h)
1000 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1001 ac_init_help
=recursive
;;
1002 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1003 ac_init_help
=short
;;
1005 -host |
--host |
--hos |
--ho)
1006 ac_prev
=host_alias
;;
1007 -host=* |
--host=* |
--hos=* |
--ho=*)
1008 host_alias
=$ac_optarg ;;
1010 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1012 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1014 htmldir
=$ac_optarg ;;
1016 -includedir |
--includedir |
--includedi |
--included |
--include \
1017 |
--includ |
--inclu |
--incl |
--inc)
1018 ac_prev
=includedir
;;
1019 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1020 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1021 includedir
=$ac_optarg ;;
1023 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1025 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1026 infodir
=$ac_optarg ;;
1028 -libdir |
--libdir |
--libdi |
--libd)
1030 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1031 libdir
=$ac_optarg ;;
1033 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1034 |
--libexe |
--libex |
--libe)
1035 ac_prev
=libexecdir
;;
1036 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1037 |
--libexe=* |
--libex=* |
--libe=*)
1038 libexecdir
=$ac_optarg ;;
1040 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1041 ac_prev
=localedir
;;
1042 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1043 localedir
=$ac_optarg ;;
1045 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1046 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1047 ac_prev
=localstatedir
;;
1048 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1049 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1050 localstatedir
=$ac_optarg ;;
1052 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1054 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1055 mandir
=$ac_optarg ;;
1057 -nfp |
--nfp |
--nf)
1058 # Obsolete; use --without-fp.
1061 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1062 |
--no-cr |
--no-c |
-n)
1065 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1066 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1069 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1070 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1071 |
--oldin |
--oldi |
--old |
--ol |
--o)
1072 ac_prev
=oldincludedir
;;
1073 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1074 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1075 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1076 oldincludedir
=$ac_optarg ;;
1078 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1080 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1081 prefix
=$ac_optarg ;;
1083 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1084 |
--program-pre |
--program-pr |
--program-p)
1085 ac_prev
=program_prefix
;;
1086 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1087 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1088 program_prefix
=$ac_optarg ;;
1090 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1091 |
--program-suf |
--program-su |
--program-s)
1092 ac_prev
=program_suffix
;;
1093 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1094 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1095 program_suffix
=$ac_optarg ;;
1097 -program-transform-name |
--program-transform-name \
1098 |
--program-transform-nam |
--program-transform-na \
1099 |
--program-transform-n |
--program-transform- \
1100 |
--program-transform |
--program-transfor \
1101 |
--program-transfo |
--program-transf \
1102 |
--program-trans |
--program-tran \
1103 |
--progr-tra |
--program-tr |
--program-t)
1104 ac_prev
=program_transform_name
;;
1105 -program-transform-name=* |
--program-transform-name=* \
1106 |
--program-transform-nam=* |
--program-transform-na=* \
1107 |
--program-transform-n=* |
--program-transform-=* \
1108 |
--program-transform=* |
--program-transfor=* \
1109 |
--program-transfo=* |
--program-transf=* \
1110 |
--program-trans=* |
--program-tran=* \
1111 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1112 program_transform_name
=$ac_optarg ;;
1114 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1116 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1117 pdfdir
=$ac_optarg ;;
1119 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1121 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1124 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1125 |
-silent |
--silent |
--silen |
--sile |
--sil)
1128 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1130 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1132 sbindir
=$ac_optarg ;;
1134 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1135 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1136 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1138 ac_prev
=sharedstatedir
;;
1139 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1140 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1141 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1143 sharedstatedir
=$ac_optarg ;;
1145 -site |
--site |
--sit)
1147 -site=* |
--site=* |
--sit=*)
1150 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1152 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1153 srcdir
=$ac_optarg ;;
1155 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1156 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1157 ac_prev
=sysconfdir
;;
1158 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1159 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1160 sysconfdir
=$ac_optarg ;;
1162 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1163 ac_prev
=target_alias
;;
1164 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1165 target_alias
=$ac_optarg ;;
1167 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1170 -version |
--version |
--versio |
--versi |
--vers |
-V)
1171 ac_init_version
=: ;;
1174 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig
=$ac_useropt
1180 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep
=', ';;
1188 eval with_
$ac_useropt=\
$ac_optarg ;;
1190 -without-* |
--without-*)
1191 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=no
;;
1208 # Obsolete; use --with-x.
1211 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1212 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1213 ac_prev
=x_includes
;;
1214 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1215 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1216 x_includes
=$ac_optarg ;;
1218 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1219 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1220 ac_prev
=x_libraries
;;
1221 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1222 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1223 x_libraries
=$ac_optarg ;;
1225 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1231 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1234 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\
$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1252 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1259 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1260 { (exit 1); exit 1; }; } ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val
=\$
$ac_var
1272 # Remove trailing slashes.
1275 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\
$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$
]* | ?
:[\\/]* ) continue;;
1281 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1283 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target
=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x
; then
1296 if test "x$build_alias" = x
; then
1297 cross_compiling
=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1308 test "$silent" = yes && exec 6>/dev
/null
1311 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di
=`ls -di .` &&
1313 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1314 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted
=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir
=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted
=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1357 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var
in $ac_precious_vars; do
1376 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1378 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --x-includes=DIR X include files are
in DIR
1448 --x-libraries=DIR X library files are
in DIR
1452 if test -n "$ac_init_help"; then
1457 --disable-option-checking ignore unrecognized
--enable/--with options
1458 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1459 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1460 --disable-darwin Disable Darwin
(Mac OS X
) support.
1461 --disable-selinux Don
't check for SELinux support.
1462 --disable-xsmp Disable XSMP session management
1463 --disable-xsmp-interact Disable XSMP interaction
1464 --enable-mzschemeinterp Include MzScheme interpreter.
1465 --enable-perlinterp Include Perl interpreter.
1466 --enable-pythoninterp Include Python interpreter.
1467 --enable-tclinterp Include Tcl interpreter.
1468 --enable-rubyinterp Include Ruby interpreter.
1469 --enable-cscope Include cscope interface.
1470 --enable-workshop Include Sun Visual Workshop support.
1471 --disable-netbeans Disable NetBeans integration support.
1472 --enable-sniff Include Sniff interface.
1473 --enable-multibyte Include multibyte editing support.
1474 --enable-hangulinput Include Hangul input support.
1475 --enable-xim Include XIM input support.
1476 --enable-fontset Include X fontset output support.
1477 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1478 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1479 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1480 --enable-gnome-check If GTK GUI, check for GNOME default=no
1481 --enable-motif-check If auto-select GUI, check for Motif default=yes
1482 --enable-athena-check If auto-select GUI, check for Athena default=yes
1483 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1484 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1485 --disable-gtktest Do not try to compile and run a test GTK program
1486 --disable-acl Don't check
for ACL support.
1487 --disable-gpm Don
't use gpm (Linux mouse daemon).
1488 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1489 --disable-nls Don
't support NLS (gettext()).
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-mac-arch=ARCH current, intel, ppc or both
1495 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1496 --without-local-dir do not search /usr/local for local libraries.
1497 --with-vim-name=NAME what to call the Vim executable
1498 --with-ex-name=NAME what to call the Ex executable
1499 --with-view-name=NAME what to call the View executable
1500 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1501 --with-modified-by=NAME name of who modified a release version
1502 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1503 --with-compiledby=NAME name to show in :version message
1504 --with-plthome=PLTHOME Use PLTHOME.
1505 --with-python-config-dir=PATH Python's config directory
1506 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1507 --with-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1508 --with-x use the X Window System
1509 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1510 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1511 --with-gnome-includes=DIR Specify location of GNOME headers
1512 --with-gnome-libs=DIR Specify location of GNOME libs
1513 --with-gnome Specify prefix
for GNOME files
1514 --with-motif-lib=STRING Library
for Motif
1515 --with-tlib=library terminal library to be used
1517 Some influential environment variables
:
1518 CC C compiler
command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1521 nonstandard directory
<lib dir
>
1522 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1523 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1524 you have headers
in a nonstandard directory
<include dir
>
1526 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1528 Use these variables to override the choices made by
`configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1594 generated by GNU Autoconf 2.63
1596 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1597 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1603 cat >auto/config.log <<_ACEOF
1604 This file contains any messages produced by compilers while
1605 running configure, to aid debugging if configure makes a mistake.
1607 It was created by $as_me, which was
1608 generated by GNU Autoconf 2.63. Invocation command line was
1613 exec 5>>auto/config.log
1620 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1621 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1622 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1623 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1624 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1626 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1627 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1629 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1631 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1633 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1634 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1635 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 $as_echo "PATH: $as_dir"
1660 # Keep a trace of the command line.
1661 # Strip out --no-create and --no-recursion so they do not pile up.
1662 # Strip out --silent because we don't want to record it for future runs.
1663 # Also quote any args containing shell meta-characters.
1664 # Make two passes to allow for proper duplicate-argument suppression.
1668 ac_must_keep_next=false
1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1679 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685 if test $ac_must_keep_next = true; then
1686 ac_must_keep_next=false # Got value, back to normal.
1689 *=* | --config-cache | -C | -disable-* | --disable-* \
1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692 | -with-* | --with-* | -without-* | --without-* | --x)
1693 case "$ac_configure_args0 " in
1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697 -* ) ac_must_keep_next=true ;;
1700 ac_configure_args="$ac_configure_args '$ac_arg'"
1705 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708 # When interrupted or exit'd, cleanup temporary files, and complete
1709 # config.log. We remove comments because anyway the quotes in there
1710 # would cause problems or look ugly.
1711 # WARNING: Use '\'' to represent an apostrophe within the trap.
1712 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713 trap 'exit_status=$?
1714 # Save into config.log some information that might help in debugging.
1719 ## ---------------- ##
1720 ## Cache variables. ##
1721 ## ---------------- ##
1724 # The following way of writing the cache mishandles newlines in values,
1726 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1727 eval ac_val=\$$ac_var
1731 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1732 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1735 _ | IFS | as_nl) ;; #(
1736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1737 *) $as_unset $ac_var ;;
1742 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 $as_echo "$ac_var='\''$ac_val'\''"
1772 if test -n "$ac_subst_files"; then
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1783 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785 $as_echo "$ac_var='\''$ac_val'\''"
1790 if test -s confdefs.h; then
1800 test "$ac_signal" != 0 &&
1801 $as_echo "$as_me: caught signal $ac_signal"
1802 $as_echo "$as_me: exit $exit_status"
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer an explicitly selected file to automatically selected ones.
1847 if test -n "$CONFIG_SITE"; then
1848 ac_site_file1=$CONFIG_SITE
1849 elif test "x$prefix" != xNONE; then
1850 ac_site_file1=$prefix/share/config.site
1851 ac_site_file2=$prefix/etc/config.site
1853 ac_site_file1=$ac_default_prefix/share/config.site
1854 ac_site_file2=$ac_default_prefix/etc/config.site
1856 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1858 test "x$ac_site_file" = xNONE && continue
1859 if test -r "$ac_site_file"; then
1860 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1862 sed 's/^/| /' "$ac_site_file" >&5
1867 if test -r "$cache_file"; then
1868 # Some versions of bash will fail to source /dev/null (special
1869 # files actually), so we avoid doing that.
1870 if test -f "$cache_file"; then
1871 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872 $as_echo "$as_me: loading cache $cache_file" >&6;}
1874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875 *) . "./$cache_file";;
1879 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880 $as_echo "$as_me: creating cache $cache_file" >&6;}
1884 # Check that the precious variables saved in the cache have kept the same
1886 ac_cache_corrupted=false
1887 for ac_var in $ac_precious_vars; do
1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889 eval ac_new_set=\$ac_env_${ac_var}_set
1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891 eval ac_new_val=\$ac_env_${ac_var}_value
1892 case $ac_old_set,$ac_new_set in
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1895 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1898 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1899 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1903 if test "x$ac_old_val" != "x$ac_new_val"; then
1904 # differences in whitespace do not lead to failure.
1905 ac_old_val_w=`echo x
$ac_old_val`
1906 ac_new_val_w=`echo x
$ac_new_val`
1907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1910 ac_cache_corrupted=:
1912 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1914 eval $ac_var=\$ac_old_val
1916 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1917 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1918 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1922 # Pass precious variables to config.status.
1923 if test "$ac_new_set" = set; then
1925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1926 *) ac_arg=$ac_var=$ac_new_val ;;
1928 case " $ac_configure_args " in
1929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1930 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 if $ac_cache_corrupted; then
1935 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1937 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1939 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1940 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1941 { (exit 1); exit 1; }; }
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 ac_config_headers="$ac_config_headers auto
/config.h
:config.h.
in"
1970 cat >>confdefs.h <<\_ACEOF
1974 { $as_echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
1975 $as_echo_n "checking whether
${MAKE-make} sets \$
(MAKE
)...
" >&6; }
1977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1978 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1979 $as_echo_n "(cached
) " >&6
1981 cat >conftest.make <<\_ACEOF
1984 @echo '@@@%%%=$(MAKE)=@@@%%%'
1986 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
1987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1989 eval ac_cv_prog_make_${ac_make}_set=yes;;
1991 eval ac_cv_prog_make_${ac_make}_set=no;;
1995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1996 { $as_echo "$as_me:$LINENO: result
: yes" >&5
1997 $as_echo "yes" >&6; }
2000 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2001 $as_echo "no
" >&6; }
2002 SET_MAKE="MAKE
=${MAKE-make}"
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2014 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2015 $as_echo_n "checking
for $ac_word...
" >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 $as_echo_n "(cached
) " >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2030 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2042 $as_echo "$CC" >&6; }
2044 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2045 $as_echo "no
" >&6; }
2050 if test -z "$ac_cv_prog_CC"; then
2052 # Extract the first word of "gcc
", so it can be a program name with args.
2053 set dummy gcc; ac_word=$2
2054 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2055 $as_echo_n "checking
for $ac_word...
" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 $as_echo_n "(cached
) " >&6
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_ac_ct_CC="gcc
"
2070 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2082 $as_echo "$ac_ct_CC" >&6; }
2084 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2085 $as_echo "no
" >&6; }
2088 if test "x
$ac_ct_CC" = x; then
2091 case $cross_compiling:$ac_tool_warned in
2093 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2094 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2095 ac_tool_warned=yes ;;
2103 if test -z "$CC"; then
2104 if test -n "$ac_tool_prefix"; then
2105 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}cc; ac_word=$2
2107 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2108 $as_echo_n "checking
for $ac_word...
" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 $as_echo_n "(cached
) " >&6
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2123 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2133 if test -n "$CC"; then
2134 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2135 $as_echo "$CC" >&6; }
2137 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2138 $as_echo "no
" >&6; }
2144 if test -z "$CC"; then
2145 # Extract the first word of "cc
", so it can be a program name with args.
2146 set dummy cc; ac_word=$2
2147 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2148 $as_echo_n "checking
for $ac_word...
" >&6; }
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150 $as_echo_n "(cached
) " >&6
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2164 ac_prog_rejected=yes
2168 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2175 if test $ac_prog_rejected = yes; then
2176 # We found a bogon in the path, so make sure we never use it.
2177 set dummy $ac_cv_prog_CC
2179 if test $# != 0; then
2180 # We chose a different compiler from the bogus one.
2181 # However, it has the same basename, so the bogon will be chosen
2182 # first if we set CC to just the basename; use the full file name.
2184 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2190 if test -n "$CC"; then
2191 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2192 $as_echo "$CC" >&6; }
2194 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2195 $as_echo "no
" >&6; }
2200 if test -z "$CC"; then
2201 if test -n "$ac_tool_prefix"; then
2202 for ac_prog in cl.exe
2204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2206 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2207 $as_echo_n "checking
for $ac_word...
" >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 $as_echo_n "(cached
) " >&6
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2222 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2232 if test -n "$CC"; then
2233 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2234 $as_echo "$CC" >&6; }
2236 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2237 $as_echo "no
" >&6; }
2241 test -n "$CC" && break
2244 if test -z "$CC"; then
2246 for ac_prog in cl.exe
2248 # Extract the first word of "$ac_prog", so it can be a program name with args.
2249 set dummy $ac_prog; ac_word=$2
2250 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2251 $as_echo_n "checking
for $ac_word...
" >&6; }
2252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253 $as_echo_n "(cached
) " >&6
2255 if test -n "$ac_ct_CC"; then
2256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265 ac_cv_prog_ac_ct_CC="$ac_prog"
2266 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2278 $as_echo "$ac_ct_CC" >&6; }
2280 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2281 $as_echo "no
" >&6; }
2285 test -n "$ac_ct_CC" && break
2288 if test "x
$ac_ct_CC" = x; then
2291 case $cross_compiling:$ac_tool_warned in
2293 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2294 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2295 ac_tool_warned=yes ;;
2304 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details.
" >&5
2308 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2309 See \
`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }; }
2312 # Provide some information about the compiler.
2313 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2316 { (ac_try="$ac_compiler --version >&5"
2318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2319 *) ac_try_echo
=$ac_try;;
2321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323 (eval "$ac_compiler --version >&5") 2>&5
2325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try
="$ac_compiler -v >&5"
2329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2333 $as_echo "$ac_try_echo") >&5
2334 (eval "$ac_compiler -v >&5") 2>&5
2336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338 { (ac_try="$ac_compiler -V >&5"
2340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2341 *) ac_try_echo
=$ac_try;;
2343 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler -V >&5") 2>&5
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2350 cat >conftest.
$ac_ext <<_ACEOF
2353 cat confdefs.h
>>conftest.
$ac_ext
2354 cat >>conftest.
$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 ac_clean_files_save
=$ac_clean_files
2366 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2370 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 $as_echo_n "checking for C compiler default output file name... " >&6; }
2372 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2378 for ac_file
in $ac_files
2381 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2382 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2387 if { (ac_try
="$ac_link_default"
2389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_link_default") 2>&5
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2399 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2403 for ac_file in $ac_files ''
2405 test -f "$ac_file" || continue
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2410 # We found the default executable, but exeext='' is most
2414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 # We set ac_cv_exeext here because the later test for it is not
2419 # safe: cross compilers may not add the suffix if given an `-o'
2420 # argument, so we may need to know it at that point already.
2421 # Even if this section looks crufty: it has the advantage of
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2434 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2435 $as_echo "$ac_file" >&6; }
2436 if test -z "$ac_file"; then
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's
/^
/|
/' conftest.$ac_ext >&5
2440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2442 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log
' for more details." >&5
2444 $as_echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details.
" >&2;}
2446 { (exit 77); exit 77; }; }; }
2449 ac_exeext=$ac_cv_exeext
2451 # Check that the compiler produces executables we can run. If not, either
2452 # the compiler is broken, or we cross compile.
2453 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2454 $as_echo_n "checking whether the C compiler works...
" >&6; }
2455 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2456 # If not cross compiling, check that we can run a simple program.
2457 if test "$cross_compiling" != yes; then
2458 if { ac_try='./$ac_file'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2464 $as_echo "$ac_try_echo") >&5
2465 (eval "$ac_try") 2>&5
2467 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2468 (exit $ac_status); }; }; then
2471 if test "$cross_compiling" = maybe; then
2474 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \
`config.log' for more details." >&5
2479 $as_echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details.
" >&2;}
2482 { (exit 1); exit 1; }; }; }
2486 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2487 $as_echo "yes" >&6; }
2489 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check that the compiler produces executables we can run. If not, either
2492 # the compiler is broken, or we cross compile.
2493 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2494 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2495 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2496 $as_echo "$cross_compiling" >&6; }
2498 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2499 $as_echo_n "checking
for suffix of executables...
" >&6; }
2500 if { (ac_try="$ac_link"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2506 $as_echo "$ac_try_echo") >&5
2507 (eval "$ac_link") 2>&5
2509 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2510 (exit $ac_status); }; then
2511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2513 # work properly (i.e., refer to `conftest.exe'), while it won't with
2515 for ac_file in conftest.exe conftest conftest.*; do
2516 test -f "$ac_file" || continue
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details.
" >&5
2529 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2530 See \
`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }; }
2534 rm -f conftest$ac_cv_exeext
2535 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 $as_echo "$ac_cv_exeext" >&6; }
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2541 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 $as_echo_n "checking for suffix of object files... " >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2565 *) ac_try_echo
=$ac_try;;
2567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2568 $as_echo "$ac_try_echo") >&5
2569 (eval "$ac_compile") 2>&5
2571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; then
2573 for ac_file
in conftest.o conftest.obj conftest.
*; do
2574 test -f "$ac_file" ||
continue;
2576 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2577 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2582 $as_echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2585 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&5
2589 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }; }
2594 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2596 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2597 $as_echo "$ac_cv_objext" >&6; }
2598 OBJEXT
=$ac_cv_objext
2600 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2605 cat >conftest.
$ac_ext <<_ACEOF
2608 cat confdefs.h
>>conftest.
$ac_ext
2609 cat >>conftest.
$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2623 rm -f conftest.
$ac_objext
2624 if { (ac_try
="$ac_compile"
2626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2630 $as_echo "$ac_try_echo") >&5
2631 (eval "$ac_compile") 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } && {
2638 test -z "$ac_c_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest.$ac_objext; then
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2655 if test $ac_compiler_gnu = yes; then
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2662 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2664 if test "${ac_cv_prog_cc_g+set}" = set; then
2665 $as_echo_n "(cached) " >&6
2667 ac_save_c_werror_flag=$ac_c_werror_flag
2668 ac_c_werror_flag=yes
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2686 rm -f conftest.$ac_objext
2687 if { (ac_try="$ac_compile"
2689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2690 *) ac_try_echo
=$ac_try;;
2692 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2693 $as_echo "$ac_try_echo") >&5
2694 (eval "$ac_compile") 2>conftest.er1
2696 grep -v '^ *+' conftest.er1
>conftest.err
2698 cat conftest.err
>&5
2699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } && {
2701 test -z "$ac_c_werror_flag" ||
2702 test ! -s conftest.err
2703 } && test -s conftest.
$ac_objext; then
2706 $as_echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.
$ac_ext >&5
2710 cat >conftest.
$ac_ext <<_ACEOF
2713 cat confdefs.h
>>conftest.
$ac_ext
2714 cat >>conftest.
$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.
$ac_objext
2726 if { (ac_try
="$ac_compile"
2728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732 $as_echo "$ac_try_echo") >&5
2733 (eval "$ac_compile") 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } && {
2740 test -z "$ac_c_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest.$ac_objext; then
2745 $as_echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2748 ac_c_werror_flag=$ac_save_c_werror_flag
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2769 *) ac_try_echo
=$ac_try;;
2771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2775 grep -v '^ *+' conftest.er1
>conftest.err
2777 cat conftest.err
>&5
2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.
$ac_objext; then
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2798 ac_c_werror_flag
=$ac_save_c_werror_flag
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2801 $as_echo "$ac_cv_prog_cc_g" >&6; }
2802 if test "$ac_test_CFLAGS" = set; then
2803 CFLAGS
=$ac_save_CFLAGS
2804 elif test $ac_cv_prog_cc_g = yes; then
2805 if test "$GCC" = yes; then
2811 if test "$GCC" = yes; then
2817 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2819 if test "${ac_cv_prog_cc_c89+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 ac_cv_prog_cc_c89
=no
2824 cat >conftest.
$ac_ext <<_ACEOF
2827 cat confdefs.h
>>conftest.
$ac_ext
2828 cat >>conftest.
$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2832 #include <sys/types.h>
2833 #include <sys/stat.h>
2834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2835 struct buf { int x; };
2836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2837 static char *e (p, i)
2843 static char *f (char * (*g) (char **, int), char **p, ...)
2848 s = g (p, va_arg (v,int));
2853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2854 function prototypes and stuff, but not '\xHH' hex character constants.
2855 These don't provoke an error unfortunately, instead are silently treated
2856 as 'x'. The following induces an error, until -std is added to get
2857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2858 array size at least. It's necessary to write '\x00'==0 to get something
2859 that's true only with -std. */
2860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2863 inside strings and character constants. */
2865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2867 int test (int i, double x);
2868 struct s1 {int (*f) (int a);};
2869 struct s2 {int (*f) (double a);};
2870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2881 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
2882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC
="$ac_save_CC $ac_arg"
2885 rm -f conftest.
$ac_objext
2886 if { (ac_try
="$ac_compile"
2888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2895 grep -v '^ *+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cc_c89=$ac_arg
2905 $as_echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2911 rm -f core conftest.err conftest.$ac_objext
2912 test "x$ac_cv_prog_cc_c89" != "xno" && break
2914 rm -f conftest.$ac_ext
2919 case "x$ac_cv_prog_cc_c89" in
2921 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2922 $as_echo "none needed" >&6; } ;;
2924 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2925 $as_echo "unsupported" >&6; } ;;
2927 CC="$CC $ac_cv_prog_cc_c89"
2928 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2944 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2945 # On Suns, sometimes $CPP names a directory.
2946 if test -n "$CPP" && test -d "$CPP"; then
2949 if test -z "$CPP"; then
2950 if test "${ac_cv_prog_CPP+set}" = set; then
2951 $as_echo_n "(cached) " >&6
2953 # Double quotes because CPP needs to be expanded
2954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2957 for ac_c_preproc_warn_flag in '' yes
2959 # Use a header file that comes with gcc, so configuring glibc
2960 # with a fresh cross-compiler works.
2961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962 # <limits.h> exists even on freestanding compilers.
2963 # On the NeXT, cc -E runs the code through the compiler's parser,
2964 # not just through cpp. "Syntax error" is here to catch this case.
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2972 # include <limits.h>
2974 # include <assert.h>
2978 if { (ac_try="$ac_cpp conftest.$ac_ext"
2980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2981 *) ac_try_echo
=$ac_try;;
2983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2984 $as_echo "$ac_try_echo") >&5
2985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2987 grep -v '^ *+' conftest.er1
>conftest.err
2989 cat conftest.err
>&5
2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev
/null
&& {
2992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2993 test ! -s conftest.err
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.
$ac_ext >&5
3000 # Broken: fails on valid input.
3004 rm -f conftest.err conftest.
$ac_ext
3006 # OK, works on sane cases. Now check whether nonexistent headers
3007 # can be detected and how.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 #include <ac_nonexistent.h>
3016 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022 $as_echo "$ac_try_echo") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3033 # Broken: success on invalid input.
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3044 rm -f conftest.err conftest.$ac_ext
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.
$ac_ext
3049 if $ac_preproc_ok; then
3061 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3062 $as_echo "$CPP" >&6; }
3064 for ac_c_preproc_warn_flag
in '' yes
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.
$ac_ext <<_ACEOF
3075 cat confdefs.h
>>conftest.
$ac_ext
3076 cat >>conftest.
$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3079 # include <limits.h>
3081 # include <assert.h>
3085 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null && {
3099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Broken: fails on valid input.
3111 rm -f conftest.err conftest.$ac_ext
3113 # OK, works on sane cases. Now check whether nonexistent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3123 if { (ac_try="$ac_cpp conftest.$ac_ext"
3125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3126 *) ac_try_echo
=$ac_try;;
3128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1
>conftest.err
3134 cat conftest.err
>&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev
/null
&& {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3140 # Broken: success on invalid input.
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.
$ac_ext >&5
3146 # Passes both tests.
3151 rm -f conftest.err conftest.
$ac_ext
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.
$ac_ext
3156 if $ac_preproc_ok; then
3159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&5
3163 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }; }
3169 ac_cpp
='$CPP $CPPFLAGS'
3170 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3175 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3177 if test "${ac_cv_path_GREP+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3180 if test -z "$GREP"; then
3181 ac_path_GREP_found
=false
3182 # Loop through the user's path and test for each of PROGNAME-LIST
3183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3184 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3187 test -z "$as_dir" && as_dir
=.
3188 for ac_prog
in grep ggrep
; do
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3191 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3192 # Check for GNU ac_path_GREP and select it if it is found.
3193 # Check for GNU $ac_path_GREP
3194 case `"$ac_path_GREP" --version 2>&1` in
3196 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3199 $as_echo_n 0123456789 >"conftest.in"
3202 cat "conftest.in" "conftest.in" >"conftest.tmp"
3203 mv "conftest.tmp" "conftest.in"
3204 cp "conftest.in" "conftest.nl"
3205 $as_echo 'GREP' >> "conftest.nl"
3206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3207 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3208 ac_count
=`expr $ac_count + 1`
3209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3210 # Best one so far, save it but keep looking for a better one
3211 ac_cv_path_GREP
="$ac_path_GREP"
3212 ac_path_GREP_max
=$ac_count
3214 # 10*(2^10) chars as input seems more than enough
3215 test $ac_count -gt 10 && break
3217 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3220 $ac_path_GREP_found && break 3
3225 if test -z "$ac_cv_path_GREP"; then
3226 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3227 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3228 { (exit 1); exit 1; }; }
3231 ac_cv_path_GREP
=$GREP
3235 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3236 $as_echo "$ac_cv_path_GREP" >&6; }
3237 GREP
="$ac_cv_path_GREP"
3240 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3241 $as_echo_n "checking for egrep... " >&6; }
3242 if test "${ac_cv_path_EGREP+set}" = set; then
3243 $as_echo_n "(cached) " >&6
3245 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3246 then ac_cv_path_EGREP
="$GREP -E"
3248 if test -z "$EGREP"; then
3249 ac_path_EGREP_found
=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3255 test -z "$as_dir" && as_dir
=.
3256 for ac_prog
in egrep; do
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3259 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3260 # Check for GNU ac_path_EGREP and select it if it is found.
3261 # Check for GNU $ac_path_EGREP
3262 case `"$ac_path_EGREP" --version 2>&1` in
3264 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3267 $as_echo_n 0123456789 >"conftest.in"
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'EGREP' >> "conftest.nl"
3274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3275 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3276 ac_count
=`expr $ac_count + 1`
3277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_EGREP
="$ac_path_EGREP"
3280 ac_path_EGREP_max
=$ac_count
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3285 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3288 $ac_path_EGREP_found && break 3
3293 if test -z "$ac_cv_path_EGREP"; then
3294 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3295 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3296 { (exit 1); exit 1; }; }
3299 ac_cv_path_EGREP
=$EGREP
3304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3305 $as_echo "$ac_cv_path_EGREP" >&6; }
3306 EGREP
="$ac_cv_path_EGREP"
3309 cat >conftest.
$ac_ext <<_ACEOF
3312 cat confdefs.h
>>conftest.
$ac_ext
3313 cat >>conftest.
$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3318 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3319 $as_echo_n "checking for library containing strerror... " >&6; }
3320 if test "${ac_cv_search_strerror+set}" = set; then
3321 $as_echo_n "(cached) " >&6
3323 ac_func_search_save_LIBS
=$LIBS
3324 cat >conftest.
$ac_ext <<_ACEOF
3327 cat confdefs.h
>>conftest.
$ac_ext
3328 cat >>conftest.
$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 /* Override any GCC internal prototype to avoid an error.
3332 Use char because int might match the return type of a GCC
3333 builtin and then its argument prototype would still apply. */
3346 for ac_lib
in '' cposix
; do
3347 if test -z "$ac_lib"; then
3348 ac_res
="none required"
3351 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3353 rm -f conftest.
$ac_objext conftest
$ac_exeext
3354 if { (ac_try
="$ac_link"
3356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_link") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest$ac_exeext && {
3371 test "$cross_compiling" = yes ||
3372 $as_test_x conftest$ac_exeext
3374 ac_cv_search_strerror=$ac_res
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -rf conftest.dSYM
3383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3385 if test "${ac_cv_search_strerror+set}" = set; then
3389 if test "${ac_cv_search_strerror+set}" = set; then
3392 ac_cv_search_strerror=no
3395 LIBS=$ac_func_search_save_LIBS
3397 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3398 $as_echo "$ac_cv_search_strerror" >&6; }
3399 ac_res=$ac_cv_search_strerror
3400 if test "$ac_res" != no; then
3401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3404 for ac_prog in gawk mawk nawk awk
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_AWK+set}" = set; then
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$AWK"; then
3414 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_AWK="$ac_prog"
3424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test -n "$AWK"; then
3435 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3436 $as_echo "$AWK" >&6; }
3438 { $as_echo "$as_me:$LINENO: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$AWK" && break
3446 # Extract the first word of "strip", so it can be a program name with args.
3447 set dummy strip; ac_word=$2
3448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if test "${ac_cv_prog_STRIP+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$STRIP"; then
3454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_STRIP="strip"
3464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3474 STRIP=$ac_cv_prog_STRIP
3475 if test -n "$STRIP"; then
3476 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3477 $as_echo "$STRIP" >&6; }
3479 { $as_echo "$as_me:$LINENO: result: no" >&5
3480 $as_echo "no" >&6; }
3487 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3488 $as_echo_n "checking for ANSI C header files... " >&6; }
3489 if test "${ac_cv_header_stdc+set}" = set; then
3490 $as_echo_n "(cached) " >&6
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3515 *) ac_try_echo
=$ac_try;;
3517 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3518 $as_echo "$ac_try_echo") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3521 grep -v '^ *+' conftest.er1
>conftest.err
3523 cat conftest.err
>&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.
$ac_objext; then
3529 ac_cv_header_stdc
=yes
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.
$ac_ext >&5
3534 ac_cv_header_stdc
=no
3537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3539 if test $ac_cv_header_stdc = yes; then
3540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3541 cat >conftest.
$ac_ext <<_ACEOF
3544 cat confdefs.h
>>conftest.
$ac_ext
3545 cat >>conftest.
$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "memchr" >/dev
/null
2>&1; then
3554 ac_cv_header_stdc
=no
3560 if test $ac_cv_header_stdc = yes; then
3561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3562 cat >conftest.
$ac_ext <<_ACEOF
3565 cat confdefs.h
>>conftest.
$ac_ext
3566 cat >>conftest.
$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 $EGREP "free" >/dev
/null
2>&1; then
3575 ac_cv_header_stdc
=no
3581 if test $ac_cv_header_stdc = yes; then
3582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3583 if test "$cross_compiling" = yes; then
3586 cat >conftest.
$ac_ext <<_ACEOF
3589 cat confdefs.h
>>conftest.
$ac_ext
3590 cat >>conftest.
$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3594 #if ((' ' & 0x0FF) == 0x020)
3595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 # define ISLOWER(c) \
3599 (('a' <= (c) && (c) <= 'i') \
3600 || ('j' <= (c) && (c) <= 'r') \
3601 || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3610 for (i = 0; i < 256; i++)
3611 if (XOR (islower (i), ISLOWER (i))
3612 || toupper (i) != TOUPPER (i))
3617 rm -f conftest
$ac_exeext
3618 if { (ac_try
="$ac_link"
3620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_link") 2>&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629 { (case "(($ac_try" in
3630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3631 *) ac_try_echo
=$ac_try;;
3633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_try") 2>&5
3637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3641 $as_echo "$as_me: program exited with status $ac_status" >&5
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3646 ac_cv_header_stdc
=no
3648 rm -rf conftest.dSYM
3649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3656 $as_echo "$ac_cv_header_stdc" >&6; }
3657 if test $ac_cv_header_stdc = yes; then
3659 cat >>confdefs.h
<<\_ACEOF
3660 #define STDC_HEADERS 1
3665 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3666 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3667 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3670 cat >conftest.
$ac_ext <<_ACEOF
3673 cat confdefs.h
>>conftest.
$ac_ext
3674 cat >>conftest.
$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 #include <sys/wait.h>
3679 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3682 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3690 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3695 rm -f conftest.
$ac_objext
3696 if { (ac_try
="$ac_compile"
3698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_header_sys_wait_h=yes
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ac_cv_header_sys_wait_h=no
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3725 if test $ac_cv_header_sys_wait_h = yes; then
3727 cat >>confdefs.h <<\_ACEOF
3728 #define HAVE_SYS_WAIT_H 1
3734 if test -z "$CFLAGS"; then
3736 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3738 if test "$GCC" = yes; then
3739 gccversion=`"$CC" -dumpversion`
3740 if test "x$gccversion" = "x"; then
3741 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3743 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3744 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3745 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3747 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3748 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3749 CFLAGS="$CFLAGS -fno-strength-reduce"
3754 if test "$cross_compiling" = yes; then
3755 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3756 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3759 test "$GCC" = yes && CPP_MM=M;
3761 if test -f ./toolcheck; then
3762 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3763 $as_echo "$as_me: checking for buggy tools..." >&6;}
3767 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3769 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3770 $as_echo_n "checking for BeOS... " >&6; }
3772 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3773 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3774 $as_echo "yes" >&6; };;
3775 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3776 $as_echo "no" >&6; };;
3779 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3780 $as_echo_n "checking for QNX... " >&6; }
3782 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3783 test -z "$with_x" && with_x=no
3784 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3785 $as_echo "yes" >&6; };;
3786 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3787 $as_echo "no" >&6; };;
3790 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3791 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3792 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3793 { $as_echo "$as_me:$LINENO: result: yes" >&5
3794 $as_echo "yes" >&6; }
3796 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3797 $as_echo_n "checking --disable-darwin argument... " >&6; }
3798 # Check whether --enable-darwin was given.
3799 if test "${enable_darwin+set}" = set; then
3800 enableval=$enable_darwin;
3805 if test "$enable_darwin" = "yes"; then
3806 { $as_echo "$as_me:$LINENO: result: no" >&5
3807 $as_echo "no" >&6; }
3808 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3809 $as_echo_n "checking if Darwin files are there... " >&6; }
3810 if test -f os_macosx.c; then
3811 { $as_echo "$as_me:$LINENO: result: yes" >&5
3812 $as_echo "yes" >&6; }
3814 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3815 $as_echo "no, Darwin support disabled" >&6; }
3819 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3820 $as_echo "yes, Darwin support excluded" >&6; }
3823 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3824 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3826 # Check whether --with-mac-arch was given.
3827 if test "${with_mac_arch+set}" = set; then
3828 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3829 $as_echo "$MACARCH" >&6; }
3831 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3832 $as_echo "defaulting to $MACARCH" >&6; }
3836 if test "x$MACARCH" = "xboth"; then
3837 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3838 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3839 save_cppflags="$CPPFLAGS"
3840 save_cflags="$CFLAGS"
3841 save_ldflags="$LDFLAGS"
3842 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3858 rm -f conftest.$ac_objext conftest$ac_exeext
3859 if { (ac_try="$ac_link"
3861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3862 *) ac_try_echo
=$ac_try;;
3864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866 (eval "$ac_link") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1
>conftest.err
3870 cat conftest.err
>&5
3871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest
$ac_exeext && {
3876 test "$cross_compiling" = yes ||
3877 $as_test_x conftest
$ac_exeext
3879 { $as_echo "$as_me:$LINENO: result: found" >&5
3880 $as_echo "found" >&6; }
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 { $as_echo "$as_me:$LINENO: result: not found" >&5
3886 $as_echo "not found" >&6; }
3887 CFLAGS
="$save_cflags"
3888 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3889 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3890 CPPFLAGS
="$CPPFLAGS -arch i386"
3891 LDFLAGS
="$save_ldflags -arch i386"
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3907 rm -f conftest.
$ac_objext conftest
$ac_exeext
3908 if { (ac_try
="$ac_link"
3910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915 (eval "$ac_link") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest$ac_exeext && {
3925 test "$cross_compiling" = yes ||
3926 $as_test_x conftest$ac_exeext
3928 { $as_echo "$as_me:$LINENO: result: yes" >&5
3929 $as_echo "yes" >&6; }; MACARCH="intel"
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 { $as_echo "$as_me:$LINENO: result: no" >&5
3935 $as_echo "no" >&6; }
3937 CPPFLAGS="$save_cppflags -arch ppc"
3938 LDFLAGS="$save_ldflags -arch ppc"
3941 rm -rf conftest.dSYM
3942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3943 conftest$ac_exeext conftest.$ac_ext
3946 rm -rf conftest.dSYM
3947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3948 conftest$ac_exeext conftest.$ac_ext
3949 elif test "x$MACARCH" = "xintel"; then
3950 CPPFLAGS="$CPPFLAGS -arch intel"
3951 LDFLAGS="$LDFLAGS -arch intel"
3952 elif test "x$MACARCH" = "xppc"; then
3953 CPPFLAGS="$CPPFLAGS -arch ppc"
3954 LDFLAGS="$LDFLAGS -arch ppc"
3957 if test "$enable_darwin" = "yes"; then
3959 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3960 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3961 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3962 if test "x$MACARCH" = "xboth"; then
3963 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3965 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979 inttypes.h stdint.h unistd.h
3981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3983 $as_echo_n "checking for $ac_header... " >&6; }
3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985 $as_echo_n "(cached) " >&6
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 $ac_includes_default
3995 #include <$ac_header>
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
4000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4001 *) ac_try_echo
=$ac_try;;
4003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4004 $as_echo "$ac_try_echo") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4007 grep -v '^ *+' conftest.er1
>conftest.err
4009 cat conftest.err
>&5
4010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && {
4012 test -z "$ac_c_werror_flag" ||
4013 test ! -s conftest.err
4014 } && test -s conftest.
$ac_objext; then
4015 eval "$as_ac_Header=yes"
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.
$ac_ext >&5
4020 eval "$as_ac_Header=no"
4023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4025 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4026 $as_echo "$as_val"'`
4027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4028 $as_echo "$ac_res" >&6; }
4029 as_val
=`eval 'as_val=${'$as_ac_Header'}
4030 $as_echo "$as_val"'`
4031 if test "x$as_val" = x
""yes; then
4032 cat >>confdefs.h
<<_ACEOF
4033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4042 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4043 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4044 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4047 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4048 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4050 # Is the header compilable?
4051 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4052 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4053 cat >conftest.
$ac_ext <<_ACEOF
4056 cat confdefs.h
>>conftest.
$ac_ext
4057 cat >>conftest.
$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 $ac_includes_default
4060 #include <Carbon/Carbon.h>
4062 rm -f conftest.
$ac_objext
4063 if { (ac_try
="$ac_compile"
4065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4069 $as_echo "$ac_try_echo") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_header_compiler=yes
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_header_compiler=no
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090 $as_echo "$ac_header_compiler" >&6; }
4092 # Is the header present?
4093 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4094 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #include <Carbon/Carbon.h>
4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4106 *) ac_try_echo
=$ac_try;;
4108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1
>conftest.err
4114 cat conftest.err
>&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } >/dev
/null
&& {
4117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4120 ac_header_preproc
=yes
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.
$ac_ext >&5
4125 ac_header_preproc
=no
4128 rm -f conftest.err conftest.
$ac_ext
4129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4130 $as_echo "$ac_header_preproc" >&6; }
4132 # So? What about this header?
4133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4139 ac_header_preproc
=yes
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4150 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4151 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4152 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4153 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4157 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4158 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4159 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4160 $as_echo_n "(cached) " >&6
4162 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4165 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4168 if test "x$ac_cv_header_Carbon_Carbon_h" = x
""yes; then
4173 if test "x$CARBON" = "xyes"; then
4174 if test -z "$with_x" -a "X$enable_gui" != Xmotif
-a "X$enable_gui" != Xathena
-a "X$enable_gui" != Xgtk
-a "X$enable_gui" != Xgtk2
; then
4180 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4181 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4185 { $as_echo "$as_me:$LINENO: result: no" >&5
4186 $as_echo "no" >&6; }
4192 if test "$cross_compiling" = no
; then
4193 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4194 $as_echo_n "checking --with-local-dir argument... " >&6; }
4195 have_local_include
=''
4198 # Check whether --with-local-dir was given.
4199 if test "${with_local_dir+set}" = set; then
4200 withval
=$with_local_dir;
4201 local_dir
="$withval"
4205 # avoid adding local dir to LDFLAGS and CPPFLAGS
4209 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4210 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4213 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4214 $as_echo "$local_dir" >&6; }
4218 local_dir
=/usr
/local
4219 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4220 $as_echo "Defaulting to $local_dir" >&6; }
4224 if test "$GCC" = yes -a "$local_dir" != no
; then
4225 echo 'void f(){}' > conftest.c
4226 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4227 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4228 rm -f conftest.c conftest.o
4230 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4231 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4232 if test "$tt" = "$LDFLAGS"; then
4233 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4236 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4237 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4238 if test "$tt" = "$CPPFLAGS"; then
4239 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4244 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4245 $as_echo_n "checking --with-vim-name argument... " >&6; }
4247 # Check whether --with-vim-name was given.
4248 if test "${with_vim_name+set}" = set; then
4249 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4250 $as_echo "$VIMNAME" >&6; }
4252 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4253 $as_echo "Defaulting to $VIMNAME" >&6; }
4257 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4258 $as_echo_n "checking --with-ex-name argument... " >&6; }
4260 # Check whether --with-ex-name was given.
4261 if test "${with_ex_name+set}" = set; then
4262 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4263 $as_echo "$EXNAME" >&6; }
4265 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4266 $as_echo "Defaulting to ex" >&6; }
4270 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4271 $as_echo_n "checking --with-view-name argument... " >&6; }
4273 # Check whether --with-view-name was given.
4274 if test "${with_view_name+set}" = set; then
4275 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4276 $as_echo "$VIEWNAME" >&6; }
4278 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4279 $as_echo "Defaulting to view" >&6; }
4284 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4285 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4287 # Check whether --with-global-runtime was given.
4288 if test "${with_global_runtime+set}" = set; then
4289 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4290 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4291 #define RUNTIME_GLOBAL "$withval"
4295 { $as_echo "$as_me:$LINENO: result: no" >&5
4296 $as_echo "no" >&6; }
4300 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4301 $as_echo_n "checking --with-modified-by argument... " >&6; }
4303 # Check whether --with-modified-by was given.
4304 if test "${with_modified_by+set}" = set; then
4305 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4306 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4307 #define MODIFIED_BY "$withval"
4311 { $as_echo "$as_me:$LINENO: result: no" >&5
4312 $as_echo "no" >&6; }
4316 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4317 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4318 cat >conftest.
$ac_ext <<_ACEOF
4321 cat confdefs.h
>>conftest.
$ac_ext
4322 cat >>conftest.
$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4328 /* TryCompile function for CharSet.
4329 Treat any failure as ASCII for compatibility with existing art.
4330 Use compile-time rather than run-time tests for cross-compiler
4333 make an error "Character set is not EBCDIC"
4339 rm -f conftest.
$ac_objext
4340 if { (ac_try
="$ac_compile"
4342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4346 $as_echo "$ac_try_echo") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.$ac_objext; then
4357 # TryCompile action if true
4360 $as_echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # TryCompile action if false
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 # end of TryCompile ])
4369 # end of CacheVal CvEbcdic
4370 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4371 $as_echo "$cf_cv_ebcdic" >&6; }
4372 case "$cf_cv_ebcdic" in #(vi
4373 yes) cat >>confdefs.h <<\_ACEOF
4379 *) line_break='"\\012"';;
4383 if test "$cf_cv_ebcdic" = "yes"; then
4384 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4385 $as_echo_n "checking for OS/390 Unix... " >&6; }
4387 OS/390) OS390Unix="yes";
4388 if test "$CC" = "cc"; then
4392 if test "$CC" = "c89"; then
4399 if test "$ccm" != "1"; then
4401 echo "------------------------------------------"
4402 echo " On OS/390 Unix, the environment variable"
4403 echo " __CC_${ccn}MODE must be set to \"1\"!"
4405 echo " export _CC_${ccn}MODE=1"
4406 echo " and then call configure again."
4407 echo "------------------------------------------"
4410 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4411 { $as_echo "$as_me:$LINENO: result: yes" >&5
4412 $as_echo "yes" >&6; }
4415 { $as_echo "$as_me:$LINENO: result: no" >&5
4416 $as_echo "no" >&6; }
4421 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4422 $as_echo_n "checking --disable-selinux argument... " >&6; }
4423 # Check whether --enable-selinux was given.
4424 if test "${enable_selinux+set}" = set; then
4425 enableval=$enable_selinux;
4427 enable_selinux="yes"
4430 if test "$enable_selinux" = "yes"; then
4431 { $as_echo "$as_me:$LINENO: result: no" >&5
4432 $as_echo "no" >&6; }
4433 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4434 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4435 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 ac_check_lib_save_LIBS=$LIBS
4439 LIBS="-lselinux $LIBS"
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 /* Override any GCC internal prototype to avoid an error.
4448 Use char because int might match the return type of a GCC
4449 builtin and then its argument prototype would still apply. */
4453 char is_selinux_enabled ();
4457 return is_selinux_enabled ();
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (ac_try="$ac_link"
4465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4466 *) ac_try_echo
=$ac_try;;
4468 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4469 $as_echo "$ac_try_echo") >&5
4470 (eval "$ac_link") 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && {
4477 test -z "$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 } && test -s conftest
$ac_exeext && {
4480 test "$cross_compiling" = yes ||
4481 $as_test_x conftest
$ac_exeext
4483 ac_cv_lib_selinux_is_selinux_enabled
=yes
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 ac_cv_lib_selinux_is_selinux_enabled
=no
4491 rm -rf conftest.dSYM
4492 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4493 conftest
$ac_exeext conftest.
$ac_ext
4494 LIBS
=$ac_check_lib_save_LIBS
4496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4497 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4498 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
4499 LIBS
="$LIBS -lselinux"
4500 cat >>confdefs.h
<<\_ACEOF
4501 #define HAVE_SELINUX 1
4507 { $as_echo "$as_me:$LINENO: result: yes" >&5
4508 $as_echo "yes" >&6; }
4512 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4513 $as_echo_n "checking --with-features argument... " >&6; }
4515 # Check whether --with-features was given.
4516 if test "${with_features+set}" = set; then
4517 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4518 $as_echo "$features" >&6; }
4520 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4521 $as_echo "Defaulting to normal" >&6; }
4528 tiny
) cat >>confdefs.h
<<\_ACEOF
4532 small
) cat >>confdefs.h
<<\_ACEOF
4533 #define FEAT_SMALL 1
4536 normal
) cat >>confdefs.h
<<\_ACEOF
4537 #define FEAT_NORMAL 1
4539 dovimdiff
="installvimdiff";
4540 dogvimdiff
="installgvimdiff" ;;
4541 big
) cat >>confdefs.h
<<\_ACEOF
4544 dovimdiff
="installvimdiff";
4545 dogvimdiff
="installgvimdiff" ;;
4546 huge
) cat >>confdefs.h
<<\_ACEOF
4549 dovimdiff
="installvimdiff";
4550 dogvimdiff
="installgvimdiff" ;;
4551 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4552 $as_echo "Sorry, $features is not supported" >&6; } ;;
4558 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4559 $as_echo_n "checking --with-compiledby argument... " >&6; }
4561 # Check whether --with-compiledby was given.
4562 if test "${with_compiledby+set}" = set; then
4563 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4564 $as_echo "$withval" >&6; }
4566 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4567 $as_echo "no" >&6; }
4572 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4573 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4574 # Check whether --enable-xsmp was given.
4575 if test "${enable_xsmp+set}" = set; then
4576 enableval
=$enable_xsmp;
4582 if test "$enable_xsmp" = "yes"; then
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4586 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4587 # Check whether --enable-xsmp-interact was given.
4588 if test "${enable_xsmp_interact+set}" = set; then
4589 enableval
=$enable_xsmp_interact;
4591 enable_xsmp_interact
="yes"
4594 if test "$enable_xsmp_interact" = "yes"; then
4595 { $as_echo "$as_me:$LINENO: result: no" >&5
4596 $as_echo "no" >&6; }
4597 cat >>confdefs.h
<<\_ACEOF
4598 #define USE_XSMP_INTERACT 1
4602 { $as_echo "$as_me:$LINENO: result: yes" >&5
4603 $as_echo "yes" >&6; }
4606 { $as_echo "$as_me:$LINENO: result: yes" >&5
4607 $as_echo "yes" >&6; }
4610 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4611 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4612 # Check whether --enable-mzschemeinterp was given.
4613 if test "${enable_mzschemeinterp+set}" = set; then
4614 enableval
=$enable_mzschemeinterp;
4616 enable_mzschemeinterp
="no"
4619 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4620 $as_echo "$enable_mzschemeinterp" >&6; }
4622 if test "$enable_mzschemeinterp" = "yes"; then
4625 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4626 $as_echo_n "checking --with-plthome argument... " >&6; }
4628 # Check whether --with-plthome was given.
4629 if test "${with_plthome+set}" = set; then
4630 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4631 $as_echo "$with_plthome" >&6; }
4633 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4634 $as_echo "\"no\"" >&6; }
4638 if test "X$with_plthome" != "X"; then
4639 vi_cv_path_mzscheme_pfx
="$with_plthome"
4641 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4642 $as_echo_n "checking PLTHOME environment var... " >&6; }
4643 if test "X$PLTHOME" != "X"; then
4644 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4645 $as_echo "\"$PLTHOME\"" >&6; }
4646 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4648 { $as_echo "$as_me:$LINENO: result: not set" >&5
4649 $as_echo "not set" >&6; }
4650 # Extract the first word of "mzscheme", so it can be a program name with args.
4651 set dummy mzscheme
; ac_word
=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4657 case $vi_cv_path_mzscheme in
4659 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4681 if test -n "$vi_cv_path_mzscheme"; then
4682 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4683 $as_echo "$vi_cv_path_mzscheme" >&6; }
4685 { $as_echo "$as_me:$LINENO: result: no" >&5
4686 $as_echo "no" >&6; }
4691 if test "X$vi_cv_path_mzscheme" != "X"; then
4692 lsout
=`ls -l $vi_cv_path_mzscheme`
4693 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4694 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4698 if test "X$vi_cv_path_mzscheme" != "X"; then
4699 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4700 $as_echo_n "checking MzScheme install prefix... " >&6; }
4701 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4702 $as_echo_n "(cached) " >&6
4704 echo "(display (simplify-path \
4705 (build-path (call-with-values \
4706 (lambda () (split-path (find-system-path (quote exec-file)))) \
4707 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4708 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4711 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4712 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4719 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4720 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4721 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4722 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4723 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4724 { $as_echo "$as_me:$LINENO: result: yes" >&5
4725 $as_echo "yes" >&6; }
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4729 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4730 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4731 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4732 { $as_echo "$as_me:$LINENO: result: yes" >&5
4733 $as_echo "yes" >&6; }
4734 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4738 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4739 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4740 if test -f /usr
/include
/plt
/scheme.h
; then
4741 { $as_echo "$as_me:$LINENO: result: yes" >&5
4742 $as_echo "yes" >&6; }
4743 SCHEME_INC
=/usr
/include
/plt
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 vi_cv_path_mzscheme_pfx
=
4753 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4754 if test "x$MACOSX" = "xyes"; then
4755 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4756 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4757 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4758 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4759 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4760 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4762 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4763 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4764 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4766 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4768 if test "$GCC" = yes; then
4769 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4770 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4771 uname
-r |
grep '^5' >/dev
/null
; then
4772 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4775 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4776 SCHEME_COLLECTS
=lib
/plt
/
4778 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4779 MZSCHEME_EXTRA
="mzscheme_base.c"
4780 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4781 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4783 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4784 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4785 MZSCHEME_SRC
="if_mzsch.c"
4786 MZSCHEME_OBJ
="objects/if_mzsch.o"
4787 MZSCHEME_PRO
="if_mzsch.pro"
4788 cat >>confdefs.h
<<\_ACEOF
4789 #define FEAT_MZSCHEME 1
4803 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4804 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4805 # Check whether --enable-perlinterp was given.
4806 if test "${enable_perlinterp+set}" = set; then
4807 enableval
=$enable_perlinterp;
4809 enable_perlinterp
="no"
4812 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4813 $as_echo "$enable_perlinterp" >&6; }
4814 if test "$enable_perlinterp" = "yes"; then
4816 # Extract the first word of "perl", so it can be a program name with args.
4817 set dummy perl
; ac_word
=$2
4818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4821 $as_echo_n "(cached) " >&6
4823 case $vi_cv_path_perl in
4825 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir
=.
4833 for ac_exec_ext
in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4847 if test -n "$vi_cv_path_perl"; then
4848 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4849 $as_echo "$vi_cv_path_perl" >&6; }
4851 { $as_echo "$as_me:$LINENO: result: no" >&5
4852 $as_echo "no" >&6; }
4856 if test "X$vi_cv_path_perl" != "X"; then
4857 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4858 $as_echo_n "checking Perl version... " >&6; }
4859 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4860 eval `$vi_cv_path_perl -V:usethreads`
4861 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4864 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4865 eval `$vi_cv_path_perl -V:use5005threads`
4866 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4870 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4871 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4875 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4876 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4879 if test $badthreads = no
; then
4880 { $as_echo "$as_me:$LINENO: result: OK" >&5
4881 $as_echo "OK" >&6; }
4882 eval `$vi_cv_path_perl -V:shrpenv`
4883 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4886 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4888 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4889 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4890 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4891 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4892 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4893 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4894 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4896 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4897 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4900 ldflags_save
=$LDFLAGS
4901 CFLAGS
="$CFLAGS $perlcppflags"
4902 LIBS
="$LIBS $perllibs"
4903 LDFLAGS
="$perlldflags $LDFLAGS"
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4919 rm -f conftest.
$ac_objext conftest
$ac_exeext
4920 if { (ac_try
="$ac_link"
4922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_link") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest$ac_exeext && {
4937 test "$cross_compiling" = yes ||
4938 $as_test_x conftest$ac_exeext
4940 { $as_echo "$as_me:$LINENO: result: yes" >&5
4941 $as_echo "yes" >&6; }; perl_ok=yes
4943 $as_echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4947 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4950 rm -rf conftest.dSYM
4951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4952 conftest$ac_exeext conftest.$ac_ext
4955 LDFLAGS=$ldflags_save
4956 if test $perl_ok = yes; then
4957 if test "X$perlcppflags" != "X"; then
4958 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4960 if test "X$perlldflags" != "X"; then
4961 LDFLAGS="$perlldflags $LDFLAGS"
4964 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4965 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4966 PERL_PRO="if_perl.pro if_perlsfio.pro"
4967 cat >>confdefs.h <<\_ACEOF
4974 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4975 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4979 if test "x$MACOSX" = "xyes"; then
4980 dir=/System/Library/Perl
4981 darwindir=$dir/darwin
4982 if test -d $darwindir; then
4985 dir=/System/Library/Perl/5.8.1
4986 darwindir=$dir/darwin-thread-multi-2level
4987 if test -d $darwindir; then
4991 if test -n "$PERL"; then
4993 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4994 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4995 PERL_LIBS="-L$darwindir/CORE -lperl"
5006 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5007 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5008 # Check whether --enable-pythoninterp was given.
5009 if test "${enable_pythoninterp+set}" = set; then
5010 enableval=$enable_pythoninterp;
5012 enable_pythoninterp="no"
5015 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5016 $as_echo "$enable_pythoninterp" >&6; }
5017 if test "$enable_pythoninterp" = "yes"; then
5018 # Extract the first word of "python", so it can be a program name with args.
5019 set dummy python; ac_word=$2
5020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5025 case $vi_cv_path_python in
5027 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5049 if test -n "$vi_cv_path_python"; then
5050 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5051 $as_echo "$vi_cv_path_python" >&6; }
5053 { $as_echo "$as_me:$LINENO: result: no" >&5
5054 $as_echo "no" >&6; }
5058 if test "X$vi_cv_path_python" != "X"; then
5060 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5061 $as_echo_n "checking Python version... " >&6; }
5062 if test "${vi_cv_var_python_version+set}" = set; then
5063 $as_echo_n "(cached) " >&6
5065 vi_cv_var_python_version=`
5066 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5069 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5070 $as_echo "$vi_cv_var_python_version" >&6; }
5072 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5073 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5074 if ${vi_cv_path_python} -c \
5075 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5077 { $as_echo "$as_me:$LINENO: result: yep" >&5
5078 $as_echo "yep" >&6; }
5080 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5081 $as_echo_n "checking Python's install prefix... " >&6; }
5082 if test "${vi_cv_path_python_pfx+set}" = set; then
5083 $as_echo_n "(cached) " >&6
5085 vi_cv_path_python_pfx=`
5086 ${vi_cv_path_python} -c \
5087 "import sys; print sys.prefix"`
5089 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5090 $as_echo "$vi_cv_path_python_pfx" >&6; }
5092 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5093 $as_echo_n "checking Python's execution prefix... " >&6; }
5094 if test "${vi_cv_path_python_epfx+set}" = set; then
5095 $as_echo_n "(cached) " >&6
5097 vi_cv_path_python_epfx=`
5098 ${vi_cv_path_python} -c \
5099 "import sys; print sys.exec_prefix"`
5101 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5102 $as_echo "$vi_cv_path_python_epfx" >&6; }
5105 if test "${vi_cv_path_pythonpath+set}" = set; then
5106 $as_echo_n "(cached) " >&6
5108 vi_cv_path_pythonpath=`
5110 ${vi_cv_path_python} -c \
5111 "import sys, string; print string.join(sys.path,':')"`
5117 # Check whether --with-python-config-dir was given.
5118 if test "${with_python_config_dir+set}" = set; then
5119 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5123 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5124 $as_echo_n "checking Python's configuration directory... " >&6; }
5125 if test "${vi_cv_path_python_conf+set}" = set; then
5126 $as_echo_n "(cached) " >&6
5129 vi_cv_path_python_conf=
5130 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5131 for subdir in lib64 lib share; do
5132 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5133 if test -d "$d" && test -f "$d/config.c"; then
5134 vi_cv_path_python_conf="$d"
5140 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5141 $as_echo "$vi_cv_path_python_conf" >&6; }
5143 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5145 if test "X$PYTHON_CONFDIR" = "X"; then
5146 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5147 $as_echo "can't find it!" >&6; }
5150 if test "${vi_cv_path_python_plibs+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5155 tmp_mkf="$pwd/config-PyMake$$"
5156 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5158 @echo "python_MODLIBS='$(MODLIBS)'"
5159 @echo "python_LIBS='$(LIBS)'"
5160 @echo "python_SYSLIBS='$(SYSLIBS)'"
5161 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5163 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5164 rm -f -- "${tmp_mkf}"
5165 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5166 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5167 vi_cv_path_python_plibs="-framework Python"
5169 if test "${vi_cv_var_python_version}" = "1.4"; then
5170 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5172 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5174 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5175 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5181 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5182 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5183 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5185 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}"
5187 PYTHON_SRC="if_python.c"
5188 if test "x$MACOSX" = "xyes"; then
5189 PYTHON_OBJ="objects/if_python.o"
5191 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5193 if test "${vi_cv_var_python_version}" = "1.4"; then
5194 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5196 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5198 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5199 $as_echo_n "checking if -pthread should be used... " >&6; }
5202 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5203 test "$GCC" = yes && threadsafe_flag="-pthread"
5204 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5205 threadsafe_flag="-D_THREAD_SAFE"
5206 thread_lib="-pthread"
5210 if test -n "$threadsafe_flag"; then
5212 CFLAGS="$CFLAGS $threadsafe_flag"
5213 LIBS="$LIBS $thread_lib"
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (ac_try="$ac_link"
5232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5233 *) ac_try_echo
=$ac_try;;
5235 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5236 $as_echo "$ac_try_echo") >&5
5237 (eval "$ac_link") 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest
$ac_exeext && {
5247 test "$cross_compiling" = yes ||
5248 $as_test_x conftest
$ac_exeext
5250 { $as_echo "$as_me:$LINENO: result: yes" >&5
5251 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.
$ac_ext >&5
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5261 rm -rf conftest.dSYM
5262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5263 conftest
$ac_exeext conftest.
$ac_ext
5266 { $as_echo "$as_me:$LINENO: result: no" >&5
5267 $as_echo "no" >&6; }
5270 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5271 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5274 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5275 LIBS
="$LIBS $PYTHON_LIBS"
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5291 rm -f conftest.
$ac_objext conftest
$ac_exeext
5292 if { (ac_try
="$ac_link"
5294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5298 $as_echo "$ac_try_echo") >&5
5299 (eval "$ac_link") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest$ac_exeext && {
5309 test "$cross_compiling" = yes ||
5310 $as_test_x conftest$ac_exeext
5312 { $as_echo "$as_me:$LINENO: result: yes" >&5
5313 $as_echo "yes" >&6; }; python_ok=yes
5315 $as_echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5319 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5322 rm -rf conftest.dSYM
5323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5324 conftest$ac_exeext conftest.$ac_ext
5327 if test $python_ok = yes; then
5328 cat >>confdefs.h <<\_ACEOF
5329 #define FEAT_PYTHON 1
5342 { $as_echo "$as_me:$LINENO: result: too old" >&5
5343 $as_echo "too old" >&6; }
5354 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5355 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5356 # Check whether --enable-tclinterp was given.
5357 if test "${enable_tclinterp+set}" = set; then
5358 enableval=$enable_tclinterp;
5360 enable_tclinterp="no"
5363 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5364 $as_echo "$enable_tclinterp" >&6; }
5366 if test "$enable_tclinterp" = "yes"; then
5368 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5369 $as_echo_n "checking --with-tclsh argument... " >&6; }
5371 # Check whether --with-tclsh was given.
5372 if test "${with_tclsh+set}" = set; then
5373 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5374 $as_echo "$tclsh_name" >&6; }
5376 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5377 $as_echo "no" >&6; }
5380 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5381 set dummy $tclsh_name; ac_word=$2
5382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5385 $as_echo_n "(cached) " >&6
5387 case $vi_cv_path_tcl in
5389 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5411 if test -n "$vi_cv_path_tcl"; then
5412 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5413 $as_echo "$vi_cv_path_tcl" >&6; }
5415 { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5422 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5423 tclsh_name="tclsh8.4"
5424 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5425 set dummy $tclsh_name; ac_word=$2
5426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5429 $as_echo_n "(cached) " >&6
5431 case $vi_cv_path_tcl in
5433 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5455 if test -n "$vi_cv_path_tcl"; then
5456 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5457 $as_echo "$vi_cv_path_tcl" >&6; }
5459 { $as_echo "$as_me:$LINENO: result: no" >&5
5460 $as_echo "no" >&6; }
5465 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5466 tclsh_name="tclsh8.2"
5467 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5468 set dummy $tclsh_name; ac_word=$2
5469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5474 case $vi_cv_path_tcl in
5476 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5498 if test -n "$vi_cv_path_tcl"; then
5499 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5500 $as_echo "$vi_cv_path_tcl" >&6; }
5502 { $as_echo "$as_me:$LINENO: result: no" >&5
5503 $as_echo "no" >&6; }
5508 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5509 tclsh_name="tclsh8.0"
5510 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5511 set dummy $tclsh_name; ac_word=$2
5512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5515 $as_echo_n "(cached) " >&6
5517 case $vi_cv_path_tcl in
5519 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5541 if test -n "$vi_cv_path_tcl"; then
5542 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5543 $as_echo "$vi_cv_path_tcl" >&6; }
5545 { $as_echo "$as_me:$LINENO: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test "X$vi_cv_path_tcl" = "X"; then
5553 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5554 set dummy $tclsh_name; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5560 case $vi_cv_path_tcl in
5562 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5584 if test -n "$vi_cv_path_tcl"; then
5585 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5586 $as_echo "$vi_cv_path_tcl" >&6; }
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589 $as_echo "no" >&6; }
5594 if test "X$vi_cv_path_tcl" != "X"; then
5595 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5596 $as_echo_n "checking Tcl version... " >&6; }
5597 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5598 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5599 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5600 $as_echo "$tclver - OK" >&6; };
5601 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 -`
5603 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5604 $as_echo_n "checking for location of Tcl include... " >&6; }
5605 if test "x$MACOSX" != "xyes"; then
5606 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5608 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5611 for try in $tclinc; do
5612 if test -f "$try/tcl.h"; then
5613 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5614 $as_echo "$try/tcl.h" >&6; }
5619 if test -z "$TCL_INC"; then
5620 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5621 $as_echo "<not found>" >&6; }
5624 if test -z "$SKIP_TCL"; then
5625 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5626 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5627 if test "x$MACOSX" != "xyes"; then
5628 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5629 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5631 tclcnf="/System/Library/Frameworks/Tcl.framework"
5633 for try in $tclcnf; do
5634 if test -f $try/tclConfig.sh; then
5635 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5636 $as_echo "$try/tclConfig.sh" >&6; }
5638 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5639 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'`
5643 if test -z "$TCL_LIBS"; then
5644 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5645 $as_echo "<not found>" >&6; }
5646 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5647 $as_echo_n "checking for Tcl library by myself... " >&6; }
5648 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5649 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5650 for ext in .so .a ; do
5651 for ver in "" $tclver ; do
5652 for try in $tcllib ; do
5654 if test -f $try/lib$trylib ; then
5655 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5656 $as_echo "$try/lib$trylib" >&6; }
5657 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5658 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5659 uname -r | grep '^5' >/dev/null; then
5660 TCL_LIBS="$TCL_LIBS -R $try"
5667 if test -z "$TCL_LIBS"; then
5668 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5669 $as_echo "<not found>" >&6; }
5673 if test -z "$SKIP_TCL"; then
5674 cat >>confdefs.h <<\_ACEOF
5679 TCL_OBJ=objects/if_tcl.o
5681 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5685 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5686 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5696 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5697 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5698 # Check whether --enable-rubyinterp was given.
5699 if test "${enable_rubyinterp+set}" = set; then
5700 enableval=$enable_rubyinterp;
5702 enable_rubyinterp="no"
5705 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5706 $as_echo "$enable_rubyinterp" >&6; }
5707 if test "$enable_rubyinterp" = "yes"; then
5708 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5709 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5711 # Check whether --with-ruby-command was given.
5712 if test "${with_ruby_command+set}" = set; then
5713 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5714 $as_echo "$RUBY_CMD" >&6; }
5716 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5717 $as_echo "defaulting to $RUBY_CMD" >&6; }
5721 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5722 set dummy $RUBY_CMD; ac_word=$2
5723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5728 case $vi_cv_path_ruby in
5730 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5752 if test -n "$vi_cv_path_ruby"; then
5753 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5754 $as_echo "$vi_cv_path_ruby" >&6; }
5756 { $as_echo "$as_me:$LINENO: result: no" >&5
5757 $as_echo "no" >&6; }
5761 if test "X$vi_cv_path_ruby" != "X"; then
5762 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5763 $as_echo_n "checking Ruby version... " >&6; }
5764 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5765 { $as_echo "$as_me:$LINENO: result: OK" >&5
5766 $as_echo "OK" >&6; }
5767 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5768 $as_echo_n "checking Ruby header files... " >&6; }
5769 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5770 if test "X$rubyhdrdir" != "X"; then
5771 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5772 $as_echo "$rubyhdrdir" >&6; }
5773 RUBY_CFLAGS="-I$rubyhdrdir"
5774 rubyarch=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["arch"]'`
5775 if test -d "$rubyhdrdir/$rubyarch"; then
5776 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5778 rubyversion=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5779 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5780 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5781 if test "X$rubylibs" != "X"; then
5782 RUBY_LIBS="$rubylibs"
5784 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5785 if test -f "$rubyhdrdir/$librubyarg"; then
5786 librubyarg="$rubyhdrdir/$librubyarg"
5788 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5789 if test -f "$rubylibdir/$librubyarg"; then
5790 librubyarg="$rubylibdir/$librubyarg"
5791 elif test "$librubyarg" = "libruby.a"; then
5794 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5798 if test "X$librubyarg" != "X"; then
5799 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5801 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5802 if test "X$rubyldflags" != "X"; then
5803 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5804 if test "X$rubyldflags" != "X"; then
5805 LDFLAGS="$rubyldflags $LDFLAGS"
5808 RUBY_SRC="if_ruby.c"
5809 RUBY_OBJ="objects/if_ruby.o"
5810 RUBY_PRO="if_ruby.pro"
5811 cat >>confdefs.h <<\_ACEOF
5816 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5817 $as_echo "not found; disabling Ruby" >&6; }
5820 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5821 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5831 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5832 $as_echo_n "checking --enable-cscope argument... " >&6; }
5833 # Check whether --enable-cscope was given.
5834 if test "${enable_cscope+set}" = set; then
5835 enableval=$enable_cscope;
5840 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5841 $as_echo "$enable_cscope" >&6; }
5842 if test "$enable_cscope" = "yes"; then
5843 cat >>confdefs.h <<\_ACEOF
5844 #define FEAT_CSCOPE 1
5849 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5850 $as_echo_n "checking --enable-workshop argument... " >&6; }
5851 # Check whether --enable-workshop was given.
5852 if test "${enable_workshop+set}" = set; then
5853 enableval=$enable_workshop;
5855 enable_workshop="no"
5858 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5859 $as_echo "$enable_workshop" >&6; }
5860 if test "$enable_workshop" = "yes"; then
5861 cat >>confdefs.h <<\_ACEOF
5862 #define FEAT_SUN_WORKSHOP 1
5865 WORKSHOP_SRC="workshop.c integration.c"
5867 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5869 if test "${enable_gui-xxx}" = xxx; then
5874 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5875 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5876 # Check whether --enable-netbeans was given.
5877 if test "${enable_netbeans+set}" = set; then
5878 enableval=$enable_netbeans;
5880 enable_netbeans="yes"
5883 if test "$enable_netbeans" = "yes"; then
5884 { $as_echo "$as_me:$LINENO: result: no" >&5
5885 $as_echo "no" >&6; }
5887 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5888 $as_echo_n "checking for socket in -lsocket... " >&6; }
5889 if test "${ac_cv_lib_socket_socket+set}" = set; then
5890 $as_echo_n "(cached) " >&6
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lsocket $LIBS"
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5920 *) ac_try_echo
=$ac_try;;
5922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924 (eval "$ac_link") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1
>conftest.err
5928 cat conftest.err
>&5
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest
$ac_exeext && {
5934 test "$cross_compiling" = yes ||
5935 $as_test_x conftest
$ac_exeext
5937 ac_cv_lib_socket_socket
=yes
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_cv_lib_socket_socket
=no
5945 rm -rf conftest.dSYM
5946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5947 conftest
$ac_exeext conftest.
$ac_ext
5948 LIBS
=$ac_check_lib_save_LIBS
5950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5951 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5952 if test "x$ac_cv_lib_socket_socket" = x
""yes; then
5953 cat >>confdefs.h
<<_ACEOF
5954 #define HAVE_LIBSOCKET 1
5957 LIBS
="-lsocket $LIBS"
5962 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5963 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5964 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5967 ac_check_lib_save_LIBS
=$LIBS
5969 cat >conftest.
$ac_ext <<_ACEOF
5972 cat confdefs.h
>>conftest.
$ac_ext
5973 cat >>conftest.
$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5976 /* Override any GCC internal prototype to avoid an error.
5977 Use char because int might match the return type of a GCC
5978 builtin and then its argument prototype would still apply. */
5982 char gethostbyname ();
5986 return gethostbyname ();
5991 rm -f conftest.
$ac_objext conftest
$ac_exeext
5992 if { (ac_try
="$ac_link"
5994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998 $as_echo "$ac_try_echo") >&5
5999 (eval "$ac_link") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext && {
6009 test "$cross_compiling" = yes ||
6010 $as_test_x conftest$ac_exeext
6012 ac_cv_lib_nsl_gethostbyname=yes
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_lib_nsl_gethostbyname=no
6020 rm -rf conftest.dSYM
6021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022 conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6026 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6027 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_LIBNSL 1
6036 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6037 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6050 #include <netinet/in.h>
6052 #include <sys/types.h>
6053 #include <sys/socket.h>
6054 /* Check bitfields */
6056 unsigned int initDone:1;
6064 /* Check creating a socket. */
6065 struct sockaddr_in server;
6066 (void)socket(AF_INET, SOCK_STREAM, 0);
6068 (void)gethostbyname("microsoft.com");
6069 if (errno == ECONNREFUSED)
6070 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (ac_try="$ac_link"
6079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6080 *) ac_try_echo
=$ac_try;;
6082 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6083 $as_echo "$ac_try_echo") >&5
6084 (eval "$ac_link") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1
>conftest.err
6088 cat conftest.err
>&5
6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest
$ac_exeext && {
6094 test "$cross_compiling" = yes ||
6095 $as_test_x conftest
$ac_exeext
6097 { $as_echo "$as_me:$LINENO: result: yes" >&5
6098 $as_echo "yes" >&6; }
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 { $as_echo "$as_me:$LINENO: result: no" >&5
6104 $as_echo "no" >&6; }; enable_netbeans
="no"
6107 rm -rf conftest.dSYM
6108 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6109 conftest
$ac_exeext conftest.
$ac_ext
6111 { $as_echo "$as_me:$LINENO: result: yes" >&5
6112 $as_echo "yes" >&6; }
6114 if test "$enable_netbeans" = "yes"; then
6115 cat >>confdefs.h
<<\_ACEOF
6116 #define FEAT_NETBEANS_INTG 1
6119 NETBEANS_SRC
="netbeans.c"
6121 NETBEANS_OBJ
="objects/netbeans.o"
6125 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6126 $as_echo_n "checking --enable-sniff argument... " >&6; }
6127 # Check whether --enable-sniff was given.
6128 if test "${enable_sniff+set}" = set; then
6129 enableval
=$enable_sniff;
6134 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6135 $as_echo "$enable_sniff" >&6; }
6136 if test "$enable_sniff" = "yes"; then
6137 cat >>confdefs.h
<<\_ACEOF
6138 #define FEAT_SNIFF 1
6141 SNIFF_SRC
="if_sniff.c"
6143 SNIFF_OBJ
="objects/if_sniff.o"
6147 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6148 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6149 # Check whether --enable-multibyte was given.
6150 if test "${enable_multibyte+set}" = set; then
6151 enableval
=$enable_multibyte;
6153 enable_multibyte
="no"
6156 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6157 $as_echo "$enable_multibyte" >&6; }
6158 if test "$enable_multibyte" = "yes"; then
6159 cat >>confdefs.h
<<\_ACEOF
6160 #define FEAT_MBYTE 1
6165 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6166 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6167 # Check whether --enable-hangulinput was given.
6168 if test "${enable_hangulinput+set}" = set; then
6169 enableval
=$enable_hangulinput;
6171 enable_hangulinput
="no"
6174 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6175 $as_echo "$enable_hangulinput" >&6; }
6177 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6178 $as_echo_n "checking --enable-xim argument... " >&6; }
6179 # Check whether --enable-xim was given.
6180 if test "${enable_xim+set}" = set; then
6181 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6182 $as_echo "$enable_xim" >&6; }
6184 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6185 $as_echo "defaulting to auto" >&6; }
6189 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6190 $as_echo_n "checking --enable-fontset argument... " >&6; }
6191 # Check whether --enable-fontset was given.
6192 if test "${enable_fontset+set}" = set; then
6193 enableval
=$enable_fontset;
6198 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6199 $as_echo "$enable_fontset" >&6; }
6201 test -z "$with_x" && with_x
=yes
6202 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6203 if test "$with_x" = no
; then
6204 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6205 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6208 # Extract the first word of "xmkmf", so it can be a program name with args.
6209 set dummy xmkmf
; ac_word
=$2
6210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6213 $as_echo_n "(cached) " >&6
6217 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 xmkmfpath
=$ac_cv_path_xmkmfpath
6239 if test -n "$xmkmfpath"; then
6240 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6241 $as_echo "$xmkmfpath" >&6; }
6243 { $as_echo "$as_me:$LINENO: result: no" >&5
6244 $as_echo "no" >&6; }
6249 { $as_echo "$as_me:$LINENO: checking for X" >&5
6250 $as_echo_n "checking for X... " >&6; }
6253 # Check whether --with-x was given.
6254 if test "${with_x+set}" = set; then
6258 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6259 if test "x$with_x" = xno
; then
6260 # The user explicitly disabled X.
6263 case $x_includes,$x_libraries in #(
6264 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6265 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6266 { (exit 1); exit 1; }; };; #(
6267 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6270 # One or both of the vars are not set, and there is no cached value.
6271 ac_x_includes
=no ac_x_libraries
=no
6272 rm -f -r conftest.dir
6273 if mkdir conftest.dir
; then
6275 cat >Imakefile
<<'_ACEOF'
6277 @echo incroot='${INCROOT}'
6279 @echo usrlibdir='${USRLIBDIR}'
6281 @echo libdir='${LIBDIR}'
6283 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6284 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6285 for ac_var
in incroot usrlibdir libdir
; do
6286 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6289 for ac_extension
in a so sl dylib la dll
; do
6290 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6291 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6292 ac_im_usrlibdir
=$ac_im_libdir; break
6295 # Screen out bogus values from the imake configuration. They are
6296 # bogus both because they are the default anyway, and because
6297 # using them would break gcc on systems where it needs fixed includes.
6298 case $ac_im_incroot in
6299 /usr
/include
) ac_x_includes
= ;;
6300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6302 case $ac_im_usrlibdir in
6303 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6308 rm -f -r conftest.dir
6311 # Standard set of common directories for X headers.
6312 # Check X11 before X11Rn because it is often a symlink to the current release.
6324 /usr/local/X11/include
6325 /usr/local/X11R6/include
6326 /usr/local/X11R5/include
6327 /usr/local/X11R4/include
6329 /usr/local/include/X11
6330 /usr/local/include/X11R6
6331 /usr/local/include/X11R5
6332 /usr/local/include/X11R4
6336 /usr/XFree86/include/X11
6340 /usr/unsupported/include
6342 /usr/local/x11r5/include
6343 /usr/lpp/Xamples/include
6345 /usr/openwin/include
6346 /usr/openwin/share/include'
6348 if test "$ac_x_includes" = no
; then
6349 # Guess where to find include files, by looking for Xlib.h.
6350 # First, try using that file with no special directory specified.
6351 cat >conftest.
$ac_ext <<_ACEOF
6354 cat confdefs.h
>>conftest.
$ac_ext
6355 cat >>conftest.
$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <X11/Xlib.h>
6359 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1 >conftest.err
6370 cat conftest.err >&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } >/dev/null && {
6373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6376 # We can compile using X headers with no special include directory.
6379 $as_echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 for ac_dir in $ac_x_header_dirs; do
6383 if test -r "$ac_dir/X11/Xlib.h"; then
6384 ac_x_includes=$ac_dir
6390 rm -f conftest.err conftest.$ac_ext
6391 fi # $ac_x_includes = no
6393 if test "$ac_x_libraries" = no; then
6394 # Check for the libraries.
6395 # See if we find them without any special options.
6396 # Don't add to $LIBS permanently.
6399 cat >conftest.$ac_ext <<_ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <X11/Xlib.h>
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (ac_try="$ac_link"
6417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6418 *) ac_try_echo
=$ac_try;;
6420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6421 $as_echo "$ac_try_echo") >&5
6422 (eval "$ac_link") 2>conftest.er1
6424 grep -v '^ *+' conftest.er1
>conftest.err
6426 cat conftest.err
>&5
6427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && {
6429 test -z "$ac_c_werror_flag" ||
6430 test ! -s conftest.err
6431 } && test -s conftest
$ac_exeext && {
6432 test "$cross_compiling" = yes ||
6433 $as_test_x conftest
$ac_exeext
6436 # We can link X programs with no special library path.
6439 $as_echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6443 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6445 # Don't even attempt the hair of trying to link an X program!
6446 for ac_extension
in a so sl dylib la dll
; do
6447 if test -r "$ac_dir/libX11.$ac_extension"; then
6448 ac_x_libraries
=$ac_dir
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6457 conftest
$ac_exeext conftest.
$ac_ext
6458 fi # $ac_x_libraries = no
6460 case $ac_x_includes,$ac_x_libraries in #(
6462 # Didn't find X, or a directory has "'" in its name.
6463 ac_cv_have_x
="have_x=no";; #(
6465 # Record where we found X for the cache.
6466 ac_cv_have_x
="have_x=yes\
6467 ac_x_includes='$ac_x_includes'\
6468 ac_x_libraries='$ac_x_libraries'"
6474 eval "$ac_cv_have_x"
6477 if test "$have_x" != yes; then
6478 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6479 $as_echo "$have_x" >&6; }
6482 # If each of the values was on the command line, it overrides each guess.
6483 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6484 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6485 # Update the cache value to reflect the command line values.
6486 ac_cv_have_x
="have_x=yes\
6487 ac_x_includes='$x_includes'\
6488 ac_x_libraries='$x_libraries'"
6489 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6490 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6493 if test "$no_x" = yes; then
6494 # Not all programs may use this symbol, but it does not hurt to define it.
6496 cat >>confdefs.h
<<\_ACEOF
6497 #define X_DISPLAY_MISSING 1
6500 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6502 if test -n "$x_includes"; then
6503 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6506 # It would also be nice to do this for all -L options, not just this one.
6507 if test -n "$x_libraries"; then
6508 X_LIBS
="$X_LIBS -L$x_libraries"
6509 # For Solaris; some versions of Sun CC require a space after -R and
6510 # others require no space. Words are not sufficient . . . .
6511 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6512 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6513 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6514 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6515 ac_c_werror_flag
=yes
6516 cat >conftest.
$ac_ext <<_ACEOF
6519 cat confdefs.h
>>conftest.
$ac_ext
6520 cat >>conftest.
$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6531 rm -f conftest.
$ac_objext conftest
$ac_exeext
6532 if { (ac_try
="$ac_link"
6534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_link") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1 >conftest.err
6543 cat conftest.err >&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest$ac_exeext && {
6549 test "$cross_compiling" = yes ||
6550 $as_test_x conftest$ac_exeext
6552 { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6554 X_LIBS="$X_LIBS -R$x_libraries"
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 LIBS="$ac_xsave_LIBS -R $x_libraries"
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (ac_try="$ac_link"
6578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6579 *) ac_try_echo
=$ac_try;;
6581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6582 $as_echo "$ac_try_echo") >&5
6583 (eval "$ac_link") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1
>conftest.err
6587 cat conftest.err
>&5
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest
$ac_exeext && {
6593 test "$cross_compiling" = yes ||
6594 $as_test_x conftest
$ac_exeext
6596 { $as_echo "$as_me:$LINENO: result: yes" >&5
6597 $as_echo "yes" >&6; }
6598 X_LIBS
="$X_LIBS -R $x_libraries"
6600 $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.
$ac_ext >&5
6603 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6604 $as_echo "neither works" >&6; }
6607 rm -rf conftest.dSYM
6608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6609 conftest
$ac_exeext conftest.
$ac_ext
6612 rm -rf conftest.dSYM
6613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6614 conftest
$ac_exeext conftest.
$ac_ext
6615 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6619 # Check for system-dependent libraries X programs must link with.
6620 # Do this before checking for the system-independent R6 libraries
6621 # (-lICE), since we may need -lsocket or whatever for X linking.
6623 if test "$ISC" = yes; then
6624 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6626 # Martyn Johnson says this is needed for Ultrix, if the X
6627 # libraries were built with DECnet support. And Karl Berry says
6628 # the Alpha needs dnet_stub (dnet does not exist).
6629 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6630 cat >conftest.
$ac_ext <<_ACEOF
6633 cat confdefs.h
>>conftest.
$ac_ext
6634 cat >>conftest.
$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6637 /* Override any GCC internal prototype to avoid an error.
6638 Use char because int might match the return type of a GCC
6639 builtin and then its argument prototype would still apply. */
6643 char XOpenDisplay ();
6647 return XOpenDisplay ();
6652 rm -f conftest.
$ac_objext conftest
$ac_exeext
6653 if { (ac_try
="$ac_link"
6655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6659 $as_echo "$ac_try_echo") >&5
6660 (eval "$ac_link") 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest$ac_exeext && {
6670 test "$cross_compiling" = yes ||
6671 $as_test_x conftest$ac_exeext
6675 $as_echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6679 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6680 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6683 ac_check_lib_save_LIBS=$LIBS
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 /* Override any GCC internal prototype to avoid an error.
6693 Use char because int might match the return type of a GCC
6694 builtin and then its argument prototype would still apply. */
6702 return dnet_ntoa ();
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6711 *) ac_try_echo
=$ac_try;;
6713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_link") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1
>conftest.err
6719 cat conftest.err
>&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest
$ac_exeext && {
6725 test "$cross_compiling" = yes ||
6726 $as_test_x conftest
$ac_exeext
6728 ac_cv_lib_dnet_dnet_ntoa
=yes
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.
$ac_ext >&5
6733 ac_cv_lib_dnet_dnet_ntoa
=no
6736 rm -rf conftest.dSYM
6737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6738 conftest
$ac_exeext conftest.
$ac_ext
6739 LIBS
=$ac_check_lib_save_LIBS
6741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6742 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6743 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
6744 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6747 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6748 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6749 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6750 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6753 ac_check_lib_save_LIBS
=$LIBS
6754 LIBS
="-ldnet_stub $LIBS"
6755 cat >conftest.
$ac_ext <<_ACEOF
6758 cat confdefs.h
>>conftest.
$ac_ext
6759 cat >>conftest.
$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6762 /* Override any GCC internal prototype to avoid an error.
6763 Use char because int might match the return type of a GCC
6764 builtin and then its argument prototype would still apply. */
6772 return dnet_ntoa ();
6777 rm -f conftest.
$ac_objext conftest
$ac_exeext
6778 if { (ac_try
="$ac_link"
6780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6798 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6800 $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_lib_dnet_stub_dnet_ntoa=no
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6812 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6813 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6820 rm -rf conftest.dSYM
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823 LIBS="$ac_xsave_LIBS"
6825 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6826 # to get the SysV transport functions.
6827 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6829 # The nsl library prevents programs from opening the X display
6830 # on Irix 5.2, according to T.E. Dickey.
6831 # The functions gethostbyname, getservbyname, and inet_addr are
6832 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6833 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6834 $as_echo_n "checking for gethostbyname... " >&6; }
6835 if test "${ac_cv_func_gethostbyname+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6846 #define gethostbyname innocuous_gethostbyname
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char gethostbyname (); below.
6850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851 <limits.h> exists even on freestanding compilers. */
6854 # include <limits.h>
6856 # include <assert.h>
6859 #undef gethostbyname
6861 /* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
6867 char gethostbyname ();
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6878 return gethostbyname ();
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (ac_try="$ac_link"
6886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6887 *) ac_try_echo
=$ac_try;;
6889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_link") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1
>conftest.err
6895 cat conftest.err
>&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest
$ac_exeext && {
6901 test "$cross_compiling" = yes ||
6902 $as_test_x conftest
$ac_exeext
6904 ac_cv_func_gethostbyname
=yes
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6909 ac_cv_func_gethostbyname
=no
6912 rm -rf conftest.dSYM
6913 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6914 conftest
$ac_exeext conftest.
$ac_ext
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6917 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6919 if test $ac_cv_func_gethostbyname = no
; then
6920 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6921 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6922 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6923 $as_echo_n "(cached) " >&6
6925 ac_check_lib_save_LIBS
=$LIBS
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6934 /* Override any GCC internal prototype to avoid an error.
6935 Use char because int might match the return type of a GCC
6936 builtin and then its argument prototype would still apply. */
6940 char gethostbyname ();
6944 return gethostbyname ();
6949 rm -f conftest.
$ac_objext conftest
$ac_exeext
6950 if { (ac_try
="$ac_link"
6952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_link") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1 >conftest.err
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest$ac_exeext && {
6967 test "$cross_compiling" = yes ||
6968 $as_test_x conftest$ac_exeext
6970 ac_cv_lib_nsl_gethostbyname=yes
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_lib_nsl_gethostbyname=no
6978 rm -rf conftest.dSYM
6979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980 conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6984 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6985 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6989 if test $ac_cv_lib_nsl_gethostbyname = no; then
6990 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6991 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6992 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6993 $as_echo_n "(cached) " >&6
6995 ac_check_lib_save_LIBS=$LIBS
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7010 char gethostbyname ();
7014 return gethostbyname ();
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7023 *) ac_try_echo
=$ac_try;;
7025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>conftest.er1
7029 grep -v '^ *+' conftest.er1
>conftest.err
7031 cat conftest.err
>&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest
$ac_exeext && {
7037 test "$cross_compiling" = yes ||
7038 $as_test_x conftest
$ac_exeext
7040 ac_cv_lib_bsd_gethostbyname
=yes
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.
$ac_ext >&5
7045 ac_cv_lib_bsd_gethostbyname
=no
7048 rm -rf conftest.dSYM
7049 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7050 conftest
$ac_exeext conftest.
$ac_ext
7051 LIBS
=$ac_check_lib_save_LIBS
7053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7054 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7055 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then
7056 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7063 # socket/setsockopt and other routines are undefined under SCO ODT
7064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7065 # on later versions), says Simon Leinen: it contains gethostby*
7066 # variants that don't use the name server (or something). -lsocket
7067 # must be given before -lnsl if both are needed. We assume that
7068 # if connect needs -lnsl, so does gethostbyname.
7069 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7070 $as_echo_n "checking for connect... " >&6; }
7071 if test "${ac_cv_func_connect+set}" = set; then
7072 $as_echo_n "(cached) " >&6
7074 cat >conftest.
$ac_ext <<_ACEOF
7077 cat confdefs.h
>>conftest.
$ac_ext
7078 cat >>conftest.
$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7082 #define connect innocuous_connect
7084 /* System header to define __stub macros and hopefully few prototypes,
7085 which can conflict with char connect (); below.
7086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 <limits.h> exists even on freestanding compilers. */
7090 # include <limits.h>
7092 # include <assert.h>
7097 /* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined __stub_connect || defined __stub___connect
7119 rm -f conftest.
$ac_objext conftest
$ac_exeext
7120 if { (ac_try
="$ac_link"
7122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127 (eval "$ac_link") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest$ac_exeext && {
7137 test "$cross_compiling" = yes ||
7138 $as_test_x conftest$ac_exeext
7140 ac_cv_func_connect=yes
7142 $as_echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_func_connect=no
7148 rm -rf conftest.dSYM
7149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150 conftest$ac_exeext conftest.$ac_ext
7152 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7153 $as_echo "$ac_cv_func_connect" >&6; }
7155 if test $ac_cv_func_connect = no; then
7156 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7157 $as_echo_n "checking for connect in -lsocket... " >&6; }
7158 if test "${ac_cv_lib_socket_connect+set}" = set; then
7159 $as_echo_n "(cached) " >&6
7161 ac_check_lib_save_LIBS=$LIBS
7162 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7170 /* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (ac_try="$ac_link"
7188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7189 *) ac_try_echo
=$ac_try;;
7191 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7192 $as_echo "$ac_try_echo") >&5
7193 (eval "$ac_link") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1
>conftest.err
7197 cat conftest.err
>&5
7198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest
$ac_exeext && {
7203 test "$cross_compiling" = yes ||
7204 $as_test_x conftest
$ac_exeext
7206 ac_cv_lib_socket_connect
=yes
7208 $as_echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.
$ac_ext >&5
7211 ac_cv_lib_socket_connect
=no
7214 rm -rf conftest.dSYM
7215 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7216 conftest
$ac_exeext conftest.
$ac_ext
7217 LIBS
=$ac_check_lib_save_LIBS
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7220 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7221 if test "x$ac_cv_lib_socket_connect" = x
""yes; then
7222 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7227 # Guillermo Gomez says -lposix is necessary on A/UX.
7228 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7229 $as_echo_n "checking for remove... " >&6; }
7230 if test "${ac_cv_func_remove+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7233 cat >conftest.
$ac_ext <<_ACEOF
7236 cat confdefs.h
>>conftest.
$ac_ext
7237 cat >>conftest.
$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7241 #define remove innocuous_remove
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char remove (); below.
7245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 <limits.h> exists even on freestanding compilers. */
7249 # include <limits.h>
7251 # include <assert.h>
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined __stub_remove || defined __stub___remove
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext
7279 if { (ac_try
="$ac_link"
7281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7285 $as_echo "$ac_try_echo") >&5
7286 (eval "$ac_link") 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest$ac_exeext && {
7296 test "$cross_compiling" = yes ||
7297 $as_test_x conftest$ac_exeext
7299 ac_cv_func_remove=yes
7301 $as_echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_func_remove=no
7307 rm -rf conftest.dSYM
7308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7309 conftest$ac_exeext conftest.$ac_ext
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7312 $as_echo "$ac_cv_func_remove" >&6; }
7314 if test $ac_cv_func_remove = no; then
7315 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7316 $as_echo_n "checking for remove in -lposix... " >&6; }
7317 if test "${ac_cv_lib_posix_remove+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7320 ac_check_lib_save_LIBS=$LIBS
7321 LIBS="-lposix $LIBS"
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (ac_try="$ac_link"
7347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7348 *) ac_try_echo
=$ac_try;;
7350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_link") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1
>conftest.err
7356 cat conftest.err
>&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest
$ac_exeext && {
7362 test "$cross_compiling" = yes ||
7363 $as_test_x conftest
$ac_exeext
7365 ac_cv_lib_posix_remove
=yes
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7370 ac_cv_lib_posix_remove
=no
7373 rm -rf conftest.dSYM
7374 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7375 conftest
$ac_exeext conftest.
$ac_ext
7376 LIBS
=$ac_check_lib_save_LIBS
7378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7379 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7380 if test "x$ac_cv_lib_posix_remove" = x
""yes; then
7381 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7386 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7387 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7388 $as_echo_n "checking for shmat... " >&6; }
7389 if test "${ac_cv_func_shmat+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7392 cat >conftest.
$ac_ext <<_ACEOF
7395 cat confdefs.h
>>conftest.
$ac_ext
7396 cat >>conftest.
$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7400 #define shmat innocuous_shmat
7402 /* System header to define __stub macros and hopefully few prototypes,
7403 which can conflict with char shmat (); below.
7404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7405 <limits.h> exists even on freestanding compilers. */
7408 # include <limits.h>
7410 # include <assert.h>
7415 /* Override any GCC internal prototype to avoid an error.
7416 Use char because int might match the return type of a GCC
7417 builtin and then its argument prototype would still apply. */
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined __stub_shmat || defined __stub___shmat
7437 rm -f conftest.
$ac_objext conftest
$ac_exeext
7438 if { (ac_try
="$ac_link"
7440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444 $as_echo "$ac_try_echo") >&5
7445 (eval "$ac_link") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest$ac_exeext && {
7455 test "$cross_compiling" = yes ||
7456 $as_test_x conftest$ac_exeext
7458 ac_cv_func_shmat=yes
7460 $as_echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7466 rm -rf conftest.dSYM
7467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468 conftest$ac_exeext conftest.$ac_ext
7470 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7471 $as_echo "$ac_cv_func_shmat" >&6; }
7473 if test $ac_cv_func_shmat = no; then
7474 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7475 $as_echo_n "checking for shmat in -lipc... " >&6; }
7476 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7477 $as_echo_n "(cached) " >&6
7479 ac_check_lib_save_LIBS=$LIBS
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7488 /* Override any GCC internal prototype to avoid an error.
7489 Use char because int might match the return type of a GCC
7490 builtin and then its argument prototype would still apply. */
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (ac_try="$ac_link"
7506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7507 *) ac_try_echo
=$ac_try;;
7509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_link") 2>conftest.er1
7513 grep -v '^ *+' conftest.er1
>conftest.err
7515 cat conftest.err
>&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest
$ac_exeext && {
7521 test "$cross_compiling" = yes ||
7522 $as_test_x conftest
$ac_exeext
7524 ac_cv_lib_ipc_shmat
=yes
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.
$ac_ext >&5
7529 ac_cv_lib_ipc_shmat
=no
7532 rm -rf conftest.dSYM
7533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7534 conftest
$ac_exeext conftest.
$ac_ext
7535 LIBS
=$ac_check_lib_save_LIBS
7537 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7538 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7539 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then
7540 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7546 # Check for libraries that X11R6 Xt/Xaw programs need.
7547 ac_save_LDFLAGS
=$LDFLAGS
7548 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7549 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7550 # check for ICE first), but we must link in the order -lSM -lICE or
7551 # we get undefined symbols. So assume we have SM if we have ICE.
7552 # These have to be linked with before -lX11, unlike the other
7553 # libraries we check for below, so use a different variable.
7554 # John Interrante, Karl Berry
7555 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7556 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7557 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7560 ac_check_lib_save_LIBS
=$LIBS
7561 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7562 cat >conftest.
$ac_ext <<_ACEOF
7565 cat confdefs.h
>>conftest.
$ac_ext
7566 cat >>conftest.
$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7569 /* Override any GCC internal prototype to avoid an error.
7570 Use char because int might match the return type of a GCC
7571 builtin and then its argument prototype would still apply. */
7575 char IceConnectionNumber ();
7579 return IceConnectionNumber ();
7584 rm -f conftest.
$ac_objext conftest
$ac_exeext
7585 if { (ac_try
="$ac_link"
7587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591 $as_echo "$ac_try_echo") >&5
7592 (eval "$ac_link") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest$ac_exeext && {
7602 test "$cross_compiling" = yes ||
7603 $as_test_x conftest$ac_exeext
7605 ac_cv_lib_ICE_IceConnectionNumber=yes
7607 $as_echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 ac_cv_lib_ICE_IceConnectionNumber=no
7613 rm -rf conftest.dSYM
7614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7615 conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7619 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7620 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7621 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7624 LDFLAGS=$ac_save_LDFLAGS
7629 if test "$OS390Unix" = "yes"; then
7630 CFLAGS="$CFLAGS -W c,dll"
7631 LDFLAGS="$LDFLAGS -W l,dll"
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7636 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7637 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7638 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7639 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7640 X_LIBS="$X_LIBS -L$x_libraries"
7641 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7642 uname -r | grep '^5' >/dev/null; then
7643 X_LIBS="$X_LIBS -R $x_libraries"
7647 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7648 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7649 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7650 $as_echo "Corrected X includes to $x_includes" >&6; }
7651 X_CFLAGS="$X_CFLAGS -I$x_includes"
7654 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7655 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7656 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7659 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7660 $as_echo_n "checking if X11 header files can be found... " >&6; }
7662 CFLAGS="$CFLAGS $X_CFLAGS"
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 #include <X11/Xlib.h>
7670 #include <X11/Intrinsic.h>
7679 rm -f conftest.$ac_objext
7680 if { (ac_try="$ac_compile"
7682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7683 *) ac_try_echo
=$ac_try;;
7685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7686 $as_echo "$ac_try_echo") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7689 grep -v '^ *+' conftest.er1
>conftest.err
7691 cat conftest.err
>&5
7692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.
$ac_objext; then
7697 { $as_echo "$as_me:$LINENO: result: yes" >&5
7698 $as_echo "yes" >&6; }
7700 $as_echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.
$ac_ext >&5
7703 { $as_echo "$as_me:$LINENO: result: no" >&5
7704 $as_echo "no" >&6; }; no_x
=yes
7707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7710 if test "${no_x-no}" = yes; then
7713 cat >>confdefs.h
<<\_ACEOF
7720 ac_save_LDFLAGS
="$LDFLAGS"
7721 LDFLAGS
="-L$x_libraries $LDFLAGS"
7723 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7724 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7725 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7726 $as_echo_n "(cached) " >&6
7728 ac_check_lib_save_LIBS
=$LIBS
7729 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7730 cat >conftest.
$ac_ext <<_ACEOF
7733 cat confdefs.h
>>conftest.
$ac_ext
7734 cat >>conftest.
$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7743 char _XdmcpAuthDoIt ();
7747 return _XdmcpAuthDoIt ();
7752 rm -f conftest.
$ac_objext conftest
$ac_exeext
7753 if { (ac_try
="$ac_link"
7755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7759 $as_echo "$ac_try_echo") >&5
7760 (eval "$ac_link") 2>conftest.er1
7762 grep -v '^ *+' conftest.er1 >conftest.err
7764 cat conftest.err >&5
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest$ac_exeext && {
7770 test "$cross_compiling" = yes ||
7771 $as_test_x conftest$ac_exeext
7773 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7781 rm -rf conftest.dSYM
7782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7787 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7788 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7789 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7793 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7794 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7795 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7798 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7813 char IceOpenConnection ();
7817 return IceOpenConnection ();
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7826 *) ac_try_echo
=$ac_try;;
7828 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest
$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest
$ac_exeext
7843 ac_cv_lib_ICE_IceOpenConnection
=yes
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.
$ac_ext >&5
7848 ac_cv_lib_ICE_IceOpenConnection
=no
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7853 conftest
$ac_exeext conftest.
$ac_ext
7854 LIBS
=$ac_check_lib_save_LIBS
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7857 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7858 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x
""yes; then
7859 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7863 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7864 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7865 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7866 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7869 ac_check_lib_save_LIBS
=$LIBS
7870 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7871 cat >conftest.
$ac_ext <<_ACEOF
7874 cat confdefs.h
>>conftest.
$ac_ext
7875 cat >>conftest.
$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7884 char XpmCreatePixmapFromData ();
7888 return XpmCreatePixmapFromData ();
7893 rm -f conftest.
$ac_objext conftest
$ac_exeext
7894 if { (ac_try
="$ac_link"
7896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901 (eval "$ac_link") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest$ac_exeext && {
7911 test "$cross_compiling" = yes ||
7912 $as_test_x conftest$ac_exeext
7914 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7922 rm -rf conftest.dSYM
7923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LIBS=$ac_check_lib_save_LIBS
7927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7928 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7929 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7930 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7934 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7935 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7937 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <X11/Xlib.h>
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7957 *) ac_try_echo
=$ac_try;;
7959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7960 $as_echo "$ac_try_echo") >&5
7961 (eval "$ac_compile") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1
>conftest.err
7965 cat conftest.err
>&5
7966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest.
$ac_objext; then
7971 { $as_echo "$as_me:$LINENO: result: no" >&5
7972 $as_echo "no" >&6; }
7974 $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.
$ac_ext >&5
7977 CFLAGS
="$CFLAGS -Wno-implicit-int"
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <X11/Xlib.h>
7993 rm -f conftest.
$ac_objext
7994 if { (ac_try
="$ac_compile"
7996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8000 $as_echo "$ac_try_echo") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 { $as_echo "$as_me:$LINENO: result: yes" >&5
8012 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8014 $as_echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8018 $as_echo "test failed" >&6; }
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 LDFLAGS="$ac_save_LDFLAGS"
8031 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8032 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8033 if test "${ac_cv_small_wchar_t+set}" = set; then
8034 $as_echo_n "(cached) " >&6
8036 if test "$cross_compiling" = yes; then
8037 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8038 $as_echo "$as_me: error: failed to compile test program" >&2;}
8039 { (exit 1); exit 1; }; }
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8048 #include <X11/Xlib.h>
8050 # include <stdlib.h>
8051 # include <stddef.h>
8055 if (sizeof(wchar_t) <= 2)
8060 rm -f conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8064 *) ac_try_echo
=$ac_try;;
8066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_link") 2>&5
8070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8072 { (case "(($ac_try" in
8073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078 (eval "$ac_try") 2>&5
8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_small_wchar_t="no"
8084 $as_echo "$as_me: program exited with status $ac_status" >&5
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_cv_small_wchar_t="yes"
8091 rm -rf conftest.dSYM
8092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8098 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8099 $as_echo "$ac_cv_small_wchar_t" >&6; }
8100 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define SMALL_WCHAR_T 1
8110 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8112 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8113 $as_echo_n "checking --enable-gui argument... " >&6; }
8114 # Check whether --enable-gui was given.
8115 if test "${enable_gui+set}" = set; then
8116 enableval=$enable_gui;
8122 enable_gui_canon=`echo "_$enable_gui" | \
8123 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8135 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8137 case "$enable_gui_canon" in
8138 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8139 $as_echo "no GUI support" >&6; }
8141 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8142 $as_echo "yes - automatic GUI support" >&6; } ;;
8143 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8144 $as_echo "auto - automatic GUI support" >&6; } ;;
8145 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8146 $as_echo "Photon GUI support" >&6; } ;;
8147 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8148 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8152 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8154 case "$enable_gui_canon" in
8155 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8156 $as_echo "no GUI support" >&6; }
8158 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8159 $as_echo "yes - automatic GUI support" >&6; } ;;
8160 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8161 $as_echo "auto - automatic GUI support" >&6; } ;;
8162 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8163 $as_echo "Carbon GUI support" >&6; } ;;
8164 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8165 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8171 case "$enable_gui_canon" in
8172 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8173 $as_echo "no GUI support" >&6; } ;;
8174 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8175 $as_echo "yes/auto - automatic GUI support" >&6; }
8183 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8184 $as_echo "GTK+ 1.x GUI support" >&6; }
8186 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8187 $as_echo "GTK+ 2.x GUI support" >&6; }
8190 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8191 $as_echo "GNOME 1.x GUI support" >&6; }
8194 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8195 $as_echo "GNOME 2.x GUI support" >&6; }
8199 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8200 $as_echo "Motif GUI support" >&6; }
8202 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8203 $as_echo "Athena GUI support" >&6; }
8205 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8206 $as_echo "neXtaw GUI support" >&6; }
8208 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8209 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8214 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8215 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8216 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8217 # Check whether --enable-gtk-check was given.
8218 if test "${enable_gtk_check+set}" = set; then
8219 enableval=$enable_gtk_check;
8221 enable_gtk_check="yes"
8224 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8225 $as_echo "$enable_gtk_check" >&6; }
8226 if test "x$enable_gtk_check" = "xno"; then
8232 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8233 -a "$enable_gui_canon" != "gnome2"; then
8234 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8235 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8236 # Check whether --enable-gtk2-check was given.
8237 if test "${enable_gtk2_check+set}" = set; then
8238 enableval=$enable_gtk2_check;
8240 enable_gtk2_check="yes"
8243 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8244 $as_echo "$enable_gtk2_check" >&6; }
8245 if test "x$enable_gtk2_check" = "xno"; then
8250 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8251 -a "$enable_gui_canon" != "gnome2"; then
8252 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8253 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8254 # Check whether --enable-gnome-check was given.
8255 if test "${enable_gnome_check+set}" = set; then
8256 enableval=$enable_gnome_check;
8258 enable_gnome_check="no"
8261 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8262 $as_echo "$enable_gnome_check" >&6; }
8263 if test "x$enable_gnome_check" = "xno"; then
8268 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8269 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8270 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8271 # Check whether --enable-motif-check was given.
8272 if test "${enable_motif_check+set}" = set; then
8273 enableval=$enable_motif_check;
8275 enable_motif_check="yes"
8278 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8279 $as_echo "$enable_motif_check" >&6; }
8280 if test "x$enable_motif_check" = "xno"; then
8285 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8286 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8287 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8288 # Check whether --enable-athena-check was given.
8289 if test "${enable_athena_check+set}" = set; then
8290 enableval=$enable_athena_check;
8292 enable_athena_check="yes"
8295 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8296 $as_echo "$enable_athena_check" >&6; }
8297 if test "x$enable_athena_check" = "xno"; then
8302 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8303 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8304 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8305 # Check whether --enable-nextaw-check was given.
8306 if test "${enable_nextaw_check+set}" = set; then
8307 enableval=$enable_nextaw_check;
8309 enable_nextaw_check="yes"
8312 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8313 $as_echo "$enable_nextaw_check" >&6; };
8314 if test "x$enable_nextaw_check" = "xno"; then
8319 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8320 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8321 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8322 # Check whether --enable-carbon-check was given.
8323 if test "${enable_carbon_check+set}" = set; then
8324 enableval=$enable_carbon_check;
8326 enable_carbon_check="yes"
8329 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8330 $as_echo "$enable_carbon_check" >&6; };
8331 if test "x$enable_carbon_check" = "xno"; then
8337 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8338 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8339 $as_echo_n "checking for Carbon GUI... " >&6; }
8340 { $as_echo "$as_me:$LINENO: result: yes" >&5
8341 $as_echo "yes" >&6; };
8343 if test "$VIMNAME" = "vim"; then
8347 if test x$prefix = xNONE; then
8348 prefix=/Applications
8351 datadir='${prefix}/Vim.app/Contents/Resources'
8371 if test -z "$SKIP_GTK"; then
8373 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8374 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8376 # Check whether --with-gtk-prefix was given.
8377 if test "${with_gtk_prefix+set}" = set; then
8378 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8379 $as_echo "$gtk_config_prefix" >&6; }
8381 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8382 $as_echo "no" >&6; }
8386 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8387 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8389 # Check whether --with-gtk-exec-prefix was given.
8390 if test "${with_gtk_exec_prefix+set}" = set; then
8391 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8392 $as_echo "$gtk_config_prefix" >&6; }
8394 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8399 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8400 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8401 # Check whether --enable-gtktest was given.
8402 if test "${enable_gtktest+set}" = set; then
8403 enableval=$enable_gtktest;
8408 if test "x$enable_gtktest" = "xyes" ; then
8409 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8410 $as_echo "gtk test enabled" >&6; }
8412 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8413 $as_echo "gtk test disabled" >&6; }
8416 if test "x$gtk_config_prefix" != "x" ; then
8417 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8418 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8420 if test "x$gtk_config_exec_prefix" != "x" ; then
8421 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8422 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8424 if test "X$GTK_CONFIG" = "X"; then
8425 # Extract the first word of "gtk-config", so it can be a program name with args.
8426 set dummy gtk-config; ac_word=$2
8427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8434 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8456 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8457 if test -n "$GTK_CONFIG"; then
8458 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8459 $as_echo "$GTK_CONFIG" >&6; }
8461 { $as_echo "$as_me:$LINENO: result: no" >&5
8462 $as_echo "no" >&6; }
8466 if test "X$GTK_CONFIG" = "Xno"; then
8467 # Extract the first word of "gtk12-config", so it can be a program name with args.
8468 set dummy gtk12-config; ac_word=$2
8469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8472 $as_echo_n "(cached) " >&6
8474 case $GTK12_CONFIG in
8476 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8498 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8499 if test -n "$GTK12_CONFIG"; then
8500 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8501 $as_echo "$GTK12_CONFIG" >&6; }
8503 { $as_echo "$as_me:$LINENO: result: no" >&5
8504 $as_echo "no" >&6; }
8508 GTK_CONFIG="$GTK12_CONFIG"
8511 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8512 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8514 if test "X$PKG_CONFIG" = "X"; then
8515 # Extract the first word of "pkg-config", so it can be a program name with args.
8516 set dummy pkg-config; ac_word=$2
8517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8520 $as_echo_n "(cached) " >&6
8524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8547 if test -n "$PKG_CONFIG"; then
8548 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8549 $as_echo "$PKG_CONFIG" >&6; }
8551 { $as_echo "$as_me:$LINENO: result: no" >&5
8552 $as_echo "no" >&6; }
8558 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8559 if test "X$SKIP_GTK2" != "XYES"; then
8561 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8563 min_gtk_version=2.2.0
8564 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8565 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8567 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8568 && $PKG_CONFIG --exists gtk+-2.0; then
8570 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8571 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8572 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8573 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8574 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8575 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8576 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8577 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8578 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8580 elif test "X$GTK_CONFIG" != "Xno"; then
8582 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8584 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8585 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8586 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8587 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8588 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8589 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8590 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8596 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8598 ac_save_CFLAGS="$CFLAGS"
8599 ac_save_LIBS="$LIBS"
8600 CFLAGS="$CFLAGS $GTK_CFLAGS"
8601 LIBS="$LIBS $GTK_LIBS"
8604 if test "$cross_compiling" = yes; then
8605 echo $ac_n "cross compiling; assumed OK... $ac_c"
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 #include <gtk/gtk.h>
8617 # include <stdlib.h>
8618 # include <stddef.h>
8624 int major, minor, micro;
8627 system ("touch conf.gtktest");
8629 /* HP/UX 9 (%@#!) writes to sscanf strings */
8630 tmp_version = g_strdup("$min_gtk_version");
8631 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8632 printf("%s, bad version string\n", "$min_gtk_version");
8636 if ((gtk_major_version > major) ||
8637 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8638 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8639 (gtk_micro_version >= micro)))
8647 rm -f conftest$ac_exeext
8648 if { (ac_try="$ac_link"
8650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8651 *) ac_try_echo
=$ac_try;;
8653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8654 $as_echo "$ac_try_echo") >&5
8655 (eval "$ac_link") 2>&5
8657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_try") 2>&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8671 $as_echo "$as_me: program exited with status $ac_status" >&5
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8678 rm -rf conftest.dSYM
8679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8683 CFLAGS="$ac_save_CFLAGS"
8684 LIBS="$ac_save_LIBS"
8687 if test "x$no_gtk" = x ; then
8688 if test "x$enable_gtktest" = "xyes"; then
8689 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8690 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8692 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8693 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8695 GUI_LIB_LOC="$GTK_LIBDIR"
8696 GTK_LIBNAME="$GTK_LIBS"
8697 GUI_INC_LOC="$GTK_CFLAGS"
8700 { $as_echo "$as_me:$LINENO: result: no" >&5
8701 $as_echo "no" >&6; }
8717 if test "x$GTK_CFLAGS" != "x"; then
8726 if test "x$GUITYPE" != "xGTK"; then
8729 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8731 min_gtk_version=1.1.16
8732 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8733 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8735 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8736 && $PKG_CONFIG --exists gtk+-2.0; then
8738 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8739 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8740 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8741 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8742 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8743 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8744 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8745 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8746 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8748 elif test "X$GTK_CONFIG" != "Xno"; then
8750 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8752 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8753 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8754 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8755 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8756 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8757 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8758 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8764 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8766 ac_save_CFLAGS="$CFLAGS"
8767 ac_save_LIBS="$LIBS"
8768 CFLAGS="$CFLAGS $GTK_CFLAGS"
8769 LIBS="$LIBS $GTK_LIBS"
8772 if test "$cross_compiling" = yes; then
8773 echo $ac_n "cross compiling; assumed OK... $ac_c"
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 #include <gtk/gtk.h>
8785 # include <stdlib.h>
8786 # include <stddef.h>
8792 int major, minor, micro;
8795 system ("touch conf.gtktest");
8797 /* HP/UX 9 (%@#!) writes to sscanf strings */
8798 tmp_version = g_strdup("$min_gtk_version");
8799 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8800 printf("%s, bad version string\n", "$min_gtk_version");
8804 if ((gtk_major_version > major) ||
8805 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8806 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8807 (gtk_micro_version >= micro)))
8815 rm -f conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8819 *) ac_try_echo
=$ac_try;;
8821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8822 $as_echo "$ac_try_echo") >&5
8823 (eval "$ac_link") 2>&5
8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8827 { (case "(($ac_try" in
8828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8832 $as_echo "$ac_try_echo") >&5
8833 (eval "$ac_try") 2>&5
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8839 $as_echo "$as_me: program exited with status $ac_status" >&5
8840 $as_echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8846 rm -rf conftest.dSYM
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851 CFLAGS="$ac_save_CFLAGS"
8852 LIBS="$ac_save_LIBS"
8855 if test "x$no_gtk" = x ; then
8856 if test "x$enable_gtktest" = "xyes"; then
8857 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8858 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8860 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8861 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8863 GTK_LIBNAME="$GTK_LIBS"
8864 GUI_INC_LOC="$GTK_CFLAGS"
8867 { $as_echo "$as_me:$LINENO: result: no" >&5
8868 $as_echo "no" >&6; }
8884 if test "x$GTK_CFLAGS" != "x"; then
8893 if test "x$GUITYPE" = "xGTK"; then
8894 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8895 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8896 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8897 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8900 if test "0$gtk_major_version" -ge 2; then
8901 cat >>confdefs.h <<\_ACEOF
8905 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8906 || test "0$gtk_minor_version" -ge 2 \
8907 || test "0$gtk_major_version" -gt 2; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_GTK_MULTIHEAD 1
8914 if test -z "$SKIP_GNOME"; then
8922 # Check whether --with-gnome-includes was given.
8923 if test "${with_gnome_includes+set}" = set; then
8924 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8930 # Check whether --with-gnome-libs was given.
8931 if test "${with_gnome_libs+set}" = set; then
8932 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8938 # Check whether --with-gnome was given.
8939 if test "${with_gnome+set}" = set; then
8940 withval=$with_gnome; if test x$withval = xyes; then
8944 if test "x$withval" = xno; then
8948 LDFLAGS="$LDFLAGS -L$withval/lib"
8949 CFLAGS="$CFLAGS -I$withval/include"
8950 gnome_prefix=$withval/lib
8958 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8960 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8961 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8962 if $PKG_CONFIG --exists libgnomeui-2.0; then
8963 { $as_echo "$as_me:$LINENO: result: yes" >&5
8964 $as_echo "yes" >&6; }
8965 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8966 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8967 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8969 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8970 $as_echo_n "checking for FreeBSD... " >&6; }
8971 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8972 { $as_echo "$as_me:$LINENO: result: yes" >&5
8973 $as_echo "yes" >&6; }
8974 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8975 GNOME_LIBS="$GNOME_LIBS -pthread"
8977 { $as_echo "$as_me:$LINENO: result: no" >&5
8978 $as_echo "no" >&6; }
8982 { $as_echo "$as_me:$LINENO: result: not found" >&5
8983 $as_echo "not found" >&6; }
8984 if test "x" = xfail; then
8985 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8986 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8987 { (exit 1); exit 1; }; }
8991 elif test "x$want_gnome" = xyes; then
8993 # Extract the first word of "gnome-config", so it can be a program name with args.
8994 set dummy gnome-config; ac_word=$2
8995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8998 $as_echo_n "(cached) " >&6
9000 case $GNOME_CONFIG in
9002 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9012 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9024 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9025 if test -n "$GNOME_CONFIG"; then
9026 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9027 $as_echo "$GNOME_CONFIG" >&6; }
9029 { $as_echo "$as_me:$LINENO: result: no" >&5
9030 $as_echo "no" >&6; }
9034 if test "$GNOME_CONFIG" = "no"; then
9035 no_gnome_config="yes"
9037 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9038 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9039 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9040 { $as_echo "$as_me:$LINENO: result: yes" >&5
9041 $as_echo "yes" >&6; }
9042 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9043 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9044 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9049 no_gnome_config="yes"
9053 if test x$exec_prefix = xNONE; then
9054 if test x$prefix = xNONE; then
9055 gnome_prefix=$ac_default_prefix/lib
9057 gnome_prefix=$prefix/lib
9060 gnome_prefix=`eval echo \
`echo $libdir\``
9063 if test "$no_gnome_config" = "yes"; then
9064 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9065 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9066 if test -f $gnome_prefix/gnomeConf.sh; then
9067 { $as_echo "$as_me:$LINENO: result: found" >&5
9068 $as_echo "found" >&6; }
9069 echo "loading gnome configuration from" \
9070 "$gnome_prefix/gnomeConf.sh"
9071 . $gnome_prefix/gnomeConf.sh
9074 { $as_echo "$as_me:$LINENO: result: not found" >&5
9075 $as_echo "not found" >&6; }
9076 if test x = xfail; then
9077 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9078 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9079 { (exit 1); exit 1; }; }
9086 if test x$have_gnome = xyes ; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define FEAT_GUI_GNOME 1
9091 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9092 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9102 if test -z "$SKIP_MOTIF"; then
9103 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"
9104 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9106 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9107 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9108 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9110 for try in $gui_includes; do
9111 if test -f "$try/Xm/Xm.h"; then
9115 if test -n "$GUI_INC_LOC"; then
9116 if test "$GUI_INC_LOC" = /usr/include; then
9118 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9119 $as_echo "in default path" >&6; }
9121 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9122 $as_echo "$GUI_INC_LOC" >&6; }
9125 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9126 $as_echo "<not found>" >&6; }
9132 if test -z "$SKIP_MOTIF"; then
9133 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9134 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9136 # Check whether --with-motif-lib was given.
9137 if test "${with_motif_lib+set}" = set; then
9138 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9142 if test -n "$MOTIF_LIBNAME"; then
9143 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9144 $as_echo "$MOTIF_LIBNAME" >&6; }
9147 { $as_echo "$as_me:$LINENO: result: no" >&5
9148 $as_echo "no" >&6; }
9150 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9152 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9153 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9154 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"
9156 for try in $gui_libs; do
9157 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9158 if test -f "$libtry"; then
9163 if test -n "$GUI_LIB_LOC"; then
9164 if test "$GUI_LIB_LOC" = /usr/lib; then
9166 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9167 $as_echo "in default path" >&6; }
9169 if test -n "$GUI_LIB_LOC"; then
9170 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9171 $as_echo "$GUI_LIB_LOC" >&6; }
9172 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9173 uname -r | grep '^5' >/dev/null; then
9174 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9180 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9181 $as_echo "<not found>" >&6; }
9187 if test -z "$SKIP_MOTIF"; then
9197 if test -z "$SKIP_ATHENA"; then
9198 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9199 $as_echo_n "checking if Athena header files can be found... " >&6; }
9201 CFLAGS="$CFLAGS $X_CFLAGS"
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 #include <X11/Intrinsic.h>
9210 #include <X11/Xaw/Paned.h>
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9223 *) ac_try_echo
=$ac_try;;
9225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9226 $as_echo "$ac_try_echo") >&5
9227 (eval "$ac_compile") 2>conftest.er1
9229 grep -v '^ *+' conftest.er1
>conftest.err
9231 cat conftest.err
>&5
9232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && {
9234 test -z "$ac_c_werror_flag" ||
9235 test ! -s conftest.err
9236 } && test -s conftest.
$ac_objext; then
9237 { $as_echo "$as_me:$LINENO: result: yes" >&5
9238 $as_echo "yes" >&6; }
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.
$ac_ext >&5
9243 { $as_echo "$as_me:$LINENO: result: no" >&5
9244 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9251 if test -z "$SKIP_ATHENA"; then
9255 if test -z "$SKIP_NEXTAW"; then
9256 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9257 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9259 CFLAGS
="$CFLAGS $X_CFLAGS"
9260 cat >conftest.
$ac_ext <<_ACEOF
9263 cat confdefs.h
>>conftest.
$ac_ext
9264 cat >>conftest.
$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9267 #include <X11/Intrinsic.h>
9268 #include <X11/neXtaw/Paned.h>
9277 rm -f conftest.
$ac_objext
9278 if { (ac_try
="$ac_compile"
9280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 { $as_echo "$as_me:$LINENO: result: yes" >&5
9296 $as_echo "yes" >&6; }
9298 $as_echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 { $as_echo "$as_me:$LINENO: result: no" >&5
9302 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 if test -z "$SKIP_NEXTAW"; then
9313 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9314 if test -n "$GUI_INC_LOC"; then
9315 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9317 if test -n "$GUI_LIB_LOC"; then
9318 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9321 ldflags_save=$LDFLAGS
9322 LDFLAGS="$X_LIBS $LDFLAGS"
9323 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9324 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9325 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9326 $as_echo_n "(cached) " >&6
9328 ac_check_lib_save_LIBS=$LIBS
9329 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9343 char XShapeQueryExtension ();
9347 return XShapeQueryExtension ();
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (ac_try="$ac_link"
9355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9356 *) ac_try_echo
=$ac_try;;
9358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9359 $as_echo "$ac_try_echo") >&5
9360 (eval "$ac_link") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1
>conftest.err
9364 cat conftest.err
>&5
9365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest
$ac_exeext && {
9370 test "$cross_compiling" = yes ||
9371 $as_test_x conftest
$ac_exeext
9373 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9375 $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.
$ac_ext >&5
9378 ac_cv_lib_Xext_XShapeQueryExtension
=no
9381 rm -rf conftest.dSYM
9382 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9383 conftest
$ac_exeext conftest.
$ac_ext
9384 LIBS
=$ac_check_lib_save_LIBS
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9387 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9388 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then
9392 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9393 $as_echo_n "checking for wslen in -lw... " >&6; }
9394 if test "${ac_cv_lib_w_wslen+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9397 ac_check_lib_save_LIBS
=$LIBS
9398 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9399 cat >conftest.
$ac_ext <<_ACEOF
9402 cat confdefs.h
>>conftest.
$ac_ext
9403 cat >>conftest.
$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9406 /* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9421 rm -f conftest.
$ac_objext conftest
$ac_exeext
9422 if { (ac_try
="$ac_link"
9424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext && {
9439 test "$cross_compiling" = yes ||
9440 $as_test_x conftest$ac_exeext
9442 ac_cv_lib_w_wslen=yes
9444 $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_lib_w_wslen=no
9450 rm -rf conftest.dSYM
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452 conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_lib_save_LIBS
9455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9456 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9457 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9461 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9462 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9463 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9494 *) ac_try_echo
=$ac_try;;
9496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_link") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1
>conftest.err
9502 cat conftest.err
>&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest
$ac_exeext && {
9508 test "$cross_compiling" = yes ||
9509 $as_test_x conftest
$ac_exeext
9511 ac_cv_lib_dl_dlsym
=yes
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.
$ac_ext >&5
9516 ac_cv_lib_dl_dlsym
=no
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 LIBS
=$ac_check_lib_save_LIBS
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9525 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9526 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then
9527 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9530 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9531 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9532 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9533 $as_echo_n "(cached) " >&6
9535 ac_check_lib_save_LIBS
=$LIBS
9536 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9537 cat >conftest.
$ac_ext <<_ACEOF
9540 cat confdefs.h
>>conftest.
$ac_ext
9541 cat >>conftest.
$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9550 char XmuCreateStippledPixmap ();
9554 return XmuCreateStippledPixmap ();
9559 rm -f conftest.
$ac_objext conftest
$ac_exeext
9560 if { (ac_try
="$ac_link"
9562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9566 $as_echo "$ac_try_echo") >&5
9567 (eval "$ac_link") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext && {
9577 test "$cross_compiling" = yes ||
9578 $as_test_x conftest$ac_exeext
9580 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9582 $as_echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9585 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9588 rm -rf conftest.dSYM
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9594 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9595 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9596 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9599 if test -z "$SKIP_MOTIF"; then
9600 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9601 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9602 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9633 *) ac_try_echo
=$ac_try;;
9635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1
>conftest.err
9641 cat conftest.err
>&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest
$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest
$ac_exeext
9650 ac_cv_lib_Xp_XpEndJob
=yes
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9655 ac_cv_lib_Xp_XpEndJob
=no
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9660 conftest
$ac_exeext conftest.
$ac_ext
9661 LIBS
=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9664 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9665 if test "x$ac_cv_lib_Xp_XpEndJob" = x
""yes; then
9666 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9670 LDFLAGS
=$ldflags_save
9672 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9673 $as_echo_n "checking for extra X11 defines... " >&6; }
9676 if mkdir conftestdir
; then
9678 cat > Imakefile
<<'EOF'
9680 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9682 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9683 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9688 if test -z "$NARROW_PROTO"; then
9689 { $as_echo "$as_me:$LINENO: result: no" >&5
9690 $as_echo "no" >&6; }
9692 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9693 $as_echo "$NARROW_PROTO" >&6; }
9698 if test "$enable_xsmp" = "yes"; then
9699 cppflags_save
=$CPPFLAGS
9700 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9702 for ac_header
in X11
/SM
/SMlib.h
9704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9707 $as_echo_n "checking for $ac_header... " >&6; }
9708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9709 $as_echo_n "(cached) " >&6
9711 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9712 $as_echo "$as_val"'`
9713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9714 $as_echo "$ac_res" >&6; }
9716 # Is the header compilable?
9717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9718 $as_echo_n "checking $ac_header usability... " >&6; }
9719 cat >conftest.
$ac_ext <<_ACEOF
9722 cat confdefs.h
>>conftest.
$ac_ext
9723 cat >>conftest.
$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 $ac_includes_default
9726 #include <$ac_header>
9728 rm -f conftest.
$ac_objext
9729 if { (ac_try
="$ac_compile"
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_compile") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest.$ac_objext; then
9746 ac_header_compiler=yes
9748 $as_echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_header_compiler=no
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9756 $as_echo "$ac_header_compiler" >&6; }
9758 # Is the header present?
9759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9760 $as_echo_n "checking $ac_header presence... " >&6; }
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 #include <$ac_header>
9769 if { (ac_try="$ac_cpp conftest.$ac_ext"
9771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9772 *) ac_try_echo
=$ac_try;;
9774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9775 $as_echo "$ac_try_echo") >&5
9776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1
>conftest.err
9780 cat conftest.err
>&5
9781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev
/null
&& {
9783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9786 ac_header_preproc
=yes
9788 $as_echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 ac_header_preproc
=no
9794 rm -f conftest.err conftest.
$ac_ext
9795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9796 $as_echo "$ac_header_preproc" >&6; }
9798 # So? What about this header?
9799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9805 ac_header_preproc
=yes
9808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 $as_echo_n "checking for $ac_header... " >&6; }
9825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 $as_echo_n "(cached) " >&6
9828 eval "$as_ac_Header=\$ac_header_preproc"
9830 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9831 $as_echo "$as_val"'`
9832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9833 $as_echo "$ac_res" >&6; }
9836 as_val
=`eval 'as_val=${'$as_ac_Header'}
9837 $as_echo "$as_val"'`
9838 if test "x$as_val" = x
""yes; then
9839 cat >>confdefs.h
<<_ACEOF
9840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9847 CPPFLAGS
=$cppflags_save
9851 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9852 cppflags_save
=$CPPFLAGS
9853 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9856 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9858 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9859 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9861 $as_echo_n "checking for $ac_header... " >&6; }
9862 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9863 $as_echo_n "(cached) " >&6
9865 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9866 $as_echo "$as_val"'`
9867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9868 $as_echo "$ac_res" >&6; }
9870 # Is the header compilable?
9871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 $as_echo_n "checking $ac_header usability... " >&6; }
9873 cat >conftest.
$ac_ext <<_ACEOF
9876 cat confdefs.h
>>conftest.
$ac_ext
9877 cat >>conftest.
$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9882 rm -f conftest.
$ac_objext
9883 if { (ac_try
="$ac_compile"
9885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9889 $as_echo "$ac_try_echo") >&5
9890 (eval "$ac_compile") 2>conftest.er1
9892 grep -v '^ *+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && {
9897 test -z "$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 } && test -s conftest.$ac_objext; then
9900 ac_header_compiler=yes
9902 $as_echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_header_compiler=no
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9910 $as_echo "$ac_header_compiler" >&6; }
9912 # Is the header present?
9913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9914 $as_echo_n "checking $ac_header presence... " >&6; }
9915 cat >conftest.$ac_ext <<_ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 #include <$ac_header>
9923 if { (ac_try="$ac_cpp conftest.$ac_ext"
9925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9926 *) ac_try_echo
=$ac_try;;
9928 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1
>conftest.err
9934 cat conftest.err
>&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } >/dev
/null
&& {
9937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9940 ac_header_preproc
=yes
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9945 ac_header_preproc
=no
9948 rm -f conftest.err conftest.
$ac_ext
9949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9950 $as_echo "$ac_header_preproc" >&6; }
9952 # So? What about this header?
9953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9959 ac_header_preproc
=yes
9962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9965 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 $as_echo_n "checking for $ac_header... " >&6; }
9979 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9980 $as_echo_n "(cached) " >&6
9982 eval "$as_ac_Header=\$ac_header_preproc"
9984 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9985 $as_echo "$as_val"'`
9986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9987 $as_echo "$ac_res" >&6; }
9990 as_val
=`eval 'as_val=${'$as_ac_Header'}
9991 $as_echo "$as_val"'`
9992 if test "x$as_val" = x
""yes; then
9993 cat >>confdefs.h
<<_ACEOF
9994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 if test ! "$enable_xim" = "no"; then
10003 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10004 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10005 cat >conftest.
$ac_ext <<_ACEOF
10008 cat confdefs.h
>>conftest.
$ac_ext
10009 cat >>conftest.
$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <X11/Xlib.h>
10013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 $EGREP "XIMText" >/dev
/null
2>&1; then
10015 { $as_echo "$as_me:$LINENO: result: yes" >&5
10016 $as_echo "yes" >&6; }
10018 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10019 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
10024 CPPFLAGS
=$cppflags_save
10026 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10027 -a "x$GUITYPE" != "xNONE" ; then
10028 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10029 $as_echo "X GUI selected; xim has been enabled" >&6; }
10034 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10035 cppflags_save
=$CPPFLAGS
10036 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10037 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10038 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10039 cat >conftest.
$ac_ext <<_ACEOF
10042 cat confdefs.h
>>conftest.
$ac_ext
10043 cat >>conftest.
$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 #include <X11/Intrinsic.h>
10047 #include <X11/Xmu/Editres.h>
10056 rm -f conftest.
$ac_objext
10057 if { (ac_try
="$ac_compile"
10058 case "(($ac_try" in
10059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10063 $as_echo "$ac_try_echo") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 { $as_echo "$as_me:$LINENO: result: yes" >&5
10075 $as_echo "yes" >&6; }
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_X11_XMU_EDITRES_H 1
10081 $as_echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 { $as_echo "$as_me:$LINENO: result: no" >&5
10085 $as_echo "no" >&6; }
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 CPPFLAGS=$cppflags_save
10092 if test -z "$SKIP_MOTIF"; then
10093 cppflags_save=$CPPFLAGS
10094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10102 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10103 Xm/UnhighlightT.h Xm/Notebook.h
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 $as_echo_n "checking for $ac_header... " >&6; }
10109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 $as_echo_n "(cached) " >&6
10112 ac_res=`eval 'as_val=${'$as_ac_Header'}
10113 $as_echo "$as_val"'`
10114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10115 $as_echo "$ac_res" >&6; }
10117 # Is the header compilable?
10118 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 $as_echo_n "checking $ac_header usability... " >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10133 *) ac_try_echo
=$ac_try;;
10135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1
>conftest.err
10141 cat conftest.err
>&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.
$ac_objext; then
10147 ac_header_compiler
=yes
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.
$ac_ext >&5
10152 ac_header_compiler
=no
10155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10156 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 $as_echo "$ac_header_compiler" >&6; }
10159 # Is the header present?
10160 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 $as_echo_n "checking $ac_header presence... " >&6; }
10162 cat >conftest.
$ac_ext <<_ACEOF
10165 cat confdefs.h
>>conftest.
$ac_ext
10166 cat >>conftest.
$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <$ac_header>
10170 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176 $as_echo "$ac_try_echo") >&5
10177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev/null && {
10184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10187 ac_header_preproc=yes
10189 $as_echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_header_preproc=no
10195 rm -f conftest.err conftest.$ac_ext
10196 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 $as_echo "$ac_header_preproc" >&6; }
10199 # So? What about this header?
10200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206 ac_header_preproc=yes
10209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10216 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 $as_echo_n "(cached) " >&6
10229 eval "$as_ac_Header=\$ac_header_preproc"
10231 ac_res=`eval 'as_val=${'$as_ac_Header'}
10232 $as_echo "$as_val"'`
10233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10234 $as_echo "$ac_res" >&6; }
10237 as_val=`eval 'as_val=${'$as_ac_Header'}
10238 $as_echo "$as_val"'`
10239 if test "x$as_val" = x""yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10249 if test $ac_cv_header_Xm_XpmP_h = yes; then
10250 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10251 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <Xm/XpmP.h>
10262 XpmAttributes_21 attr;
10267 rm -f conftest.$ac_objext
10268 if { (ac_try="$ac_compile"
10269 case "(($ac_try" in
10270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10271 *) ac_try_echo
=$ac_try;;
10273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_compile") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1
>conftest.err
10279 cat conftest.err
>&5
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest.
$ac_objext; then
10285 { $as_echo "$as_me:$LINENO: result: yes" >&5
10286 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10287 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.
$ac_ext >&5
10294 { $as_echo "$as_me:$LINENO: result: no" >&5
10295 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10296 #define XPMATTRIBUTES_TYPE XpmAttributes
10302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10304 cat >>confdefs.h
<<\_ACEOF
10305 #define XPMATTRIBUTES_TYPE XpmAttributes
10309 CPPFLAGS
=$cppflags_save
10312 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10313 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10314 $as_echo "no GUI selected; xim has been disabled" >&6; }
10317 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10318 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10319 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10320 enable_fontset
="no"
10322 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10323 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10324 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10325 enable_fontset
="no"
10328 if test -z "$SKIP_PHOTON"; then
10337 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10338 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10339 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10340 { (exit 1); exit 1; }; }
10343 if test "$enable_xim" = "yes"; then
10344 cat >>confdefs.h
<<\_ACEOF
10349 if test "$enable_fontset" = "yes"; then
10350 cat >>confdefs.h
<<\_ACEOF
10351 #define FEAT_XFONTSET 1
10359 if test "$enable_hangulinput" = "yes"; then
10360 if test "x$GUITYPE" = "xNONE"; then
10361 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10362 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10363 enable_hangulinput
=no
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define FEAT_HANGULIN 1
10369 HANGULIN_SRC
=hangulin.c
10371 HANGULIN_OBJ
=objects
/hangulin.o
10377 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10378 $as_echo_n "checking whether toupper is broken... " >&6; }
10379 if test "${vim_cv_toupper_broken+set}" = set; then
10380 $as_echo_n "(cached) " >&6
10383 if test "$cross_compiling" = yes; then
10385 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10386 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10387 { (exit 1); exit 1; }; }
10390 cat >conftest.
$ac_ext <<_ACEOF
10392 #include "confdefs.h"
10395 # include <stdlib.h>
10396 # include <stddef.h>
10398 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10401 rm -f conftest
$ac_exeext
10402 if { (ac_try
="$ac_link"
10403 case "(($ac_try" in
10404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_link") 2>&5
10411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10415 *) ac_try_echo
=$ac_try;;
10417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419 (eval "$ac_try") 2>&5
10421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10424 vim_cv_toupper_broken
=yes
10427 $as_echo "$as_me: program exited with status $ac_status" >&5
10428 $as_echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.
$ac_ext >&5
10431 ( exit $ac_status )
10433 vim_cv_toupper_broken
=no
10436 rm -rf conftest.dSYM
10437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10443 $as_echo "$vim_cv_toupper_broken" >&6; }
10445 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10446 cat >>confdefs.h
<<\_ACEOF
10447 #define BROKEN_TOUPPER 1
10452 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10453 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10454 cat >conftest.
$ac_ext <<_ACEOF
10457 cat confdefs.h
>>conftest.
$ac_ext
10458 cat >>conftest.
$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10464 printf("(" __DATE__ " " __TIME__ ")");
10469 rm -f conftest.
$ac_objext
10470 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest.$ac_objext; then
10487 { $as_echo "$as_me:$LINENO: result: yes" >&5
10488 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_DATE_TIME 1
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 { $as_echo "$as_me:$LINENO: result: no" >&5
10497 $as_echo "no" >&6; }
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10503 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10514 int x __attribute__((unused));
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10523 *) ac_try_echo
=$ac_try;;
10525 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10526 $as_echo "$ac_try_echo") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10529 grep -v '^ *+' conftest.er1
>conftest.err
10531 cat conftest.err
>&5
10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.
$ac_objext; then
10537 { $as_echo "$as_me:$LINENO: result: yes" >&5
10538 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10539 #define HAVE_ATTRIBUTE_UNUSED 1
10543 $as_echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.
$ac_ext >&5
10546 { $as_echo "$as_me:$LINENO: result: no" >&5
10547 $as_echo "no" >&6; }
10550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10552 if test "${ac_cv_header_elf_h+set}" = set; then
10553 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10554 $as_echo_n "checking for elf.h... " >&6; }
10555 if test "${ac_cv_header_elf_h+set}" = set; then
10556 $as_echo_n "(cached) " >&6
10558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10559 $as_echo "$ac_cv_header_elf_h" >&6; }
10561 # Is the header compilable?
10562 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10563 $as_echo_n "checking elf.h usability... " >&6; }
10564 cat >conftest.
$ac_ext <<_ACEOF
10567 cat confdefs.h
>>conftest.
$ac_ext
10568 cat >>conftest.
$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 $ac_includes_default
10573 rm -f conftest.
$ac_objext
10574 if { (ac_try
="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10580 $as_echo "$ac_try_echo") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_header_compiler=yes
10593 $as_echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_compiler=no
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10601 $as_echo "$ac_header_compiler" >&6; }
10603 # Is the header present?
10604 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10605 $as_echo_n "checking elf.h presence... " >&6; }
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10614 if { (ac_try="$ac_cpp conftest.$ac_ext"
10615 case "(($ac_try" in
10616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10617 *) ac_try_echo
=$ac_try;;
10619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1
>conftest.err
10625 cat conftest.err
>&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev
/null
&& {
10628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10631 ac_header_preproc
=yes
10633 $as_echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.
$ac_ext >&5
10636 ac_header_preproc
=no
10639 rm -f conftest.err conftest.
$ac_ext
10640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10641 $as_echo "$ac_header_preproc" >&6; }
10643 # So? What about this header?
10644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10647 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10649 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10650 ac_header_preproc
=yes
10653 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10654 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10656 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10658 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10660 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10662 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10664 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10668 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10669 $as_echo_n "checking for elf.h... " >&6; }
10670 if test "${ac_cv_header_elf_h+set}" = set; then
10671 $as_echo_n "(cached) " >&6
10673 ac_cv_header_elf_h
=$ac_header_preproc
10675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10676 $as_echo "$ac_cv_header_elf_h" >&6; }
10679 if test "x$ac_cv_header_elf_h" = x
""yes; then
10684 if test "$HAS_ELF" = 1; then
10686 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10687 $as_echo_n "checking for main in -lelf... " >&6; }
10688 if test "${ac_cv_lib_elf_main+set}" = set; then
10689 $as_echo_n "(cached) " >&6
10691 ac_check_lib_save_LIBS
=$LIBS
10693 cat >conftest.
$ac_ext <<_ACEOF
10696 cat confdefs.h
>>conftest.
$ac_ext
10697 cat >>conftest.
$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10709 rm -f conftest.
$ac_objext conftest
$ac_exeext
10710 if { (ac_try
="$ac_link"
10711 case "(($ac_try" in
10712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10716 $as_echo "$ac_try_echo") >&5
10717 (eval "$ac_link") 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest$ac_exeext && {
10727 test "$cross_compiling" = yes ||
10728 $as_test_x conftest$ac_exeext
10730 ac_cv_lib_elf_main=yes
10732 $as_echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_lib_elf_main=no
10738 rm -rf conftest.dSYM
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10744 $as_echo "$ac_cv_lib_elf_main" >&6; }
10745 if test "x$ac_cv_lib_elf_main" = x""yes; then
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_LIBELF 1
10761 ac_header_dirent=no
10762 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10763 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10764 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10765 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10767 $as_echo_n "(cached) " >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10791 *) ac_try_echo
=$ac_try;;
10793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.
$ac_objext; then
10805 eval "$as_ac_Header=yes"
10807 $as_echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.
$ac_ext >&5
10810 eval "$as_ac_Header=no"
10813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10815 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10816 $as_echo "$as_val"'`
10817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10818 $as_echo "$ac_res" >&6; }
10819 as_val
=`eval 'as_val=${'$as_ac_Header'}
10820 $as_echo "$as_val"'`
10821 if test "x$as_val" = x
""yes; then
10822 cat >>confdefs.h
<<_ACEOF
10823 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10826 ac_header_dirent
=$ac_hdr; break
10830 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10831 if test $ac_header_dirent = dirent.h
; then
10832 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10833 $as_echo_n "checking for library containing opendir... " >&6; }
10834 if test "${ac_cv_search_opendir+set}" = set; then
10835 $as_echo_n "(cached) " >&6
10837 ac_func_search_save_LIBS
=$LIBS
10838 cat >conftest.
$ac_ext <<_ACEOF
10841 cat confdefs.h
>>conftest.
$ac_ext
10842 cat >>conftest.
$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10845 /* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10860 for ac_lib
in '' dir
; do
10861 if test -z "$ac_lib"; then
10862 ac_res
="none required"
10865 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10867 rm -f conftest.
$ac_objext conftest
$ac_exeext
10868 if { (ac_try
="$ac_link"
10869 case "(($ac_try" in
10870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874 $as_echo "$ac_try_echo") >&5
10875 (eval "$ac_link") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest$ac_exeext && {
10885 test "$cross_compiling" = yes ||
10886 $as_test_x conftest$ac_exeext
10888 ac_cv_search_opendir=$ac_res
10890 $as_echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10896 rm -rf conftest.dSYM
10897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10899 if test "${ac_cv_search_opendir+set}" = set; then
10903 if test "${ac_cv_search_opendir+set}" = set; then
10906 ac_cv_search_opendir=no
10908 rm conftest.$ac_ext
10909 LIBS=$ac_func_search_save_LIBS
10911 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10912 $as_echo "$ac_cv_search_opendir" >&6; }
10913 ac_res=$ac_cv_search_opendir
10914 if test "$ac_res" != no; then
10915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10920 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10921 $as_echo_n "checking for library containing opendir... " >&6; }
10922 if test "${ac_cv_search_opendir+set}" = set; then
10923 $as_echo_n "(cached) " >&6
10925 ac_func_search_save_LIBS=$LIBS
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10948 for ac_lib in '' x; do
10949 if test -z "$ac_lib"; then
10950 ac_res="none required"
10953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (ac_try="$ac_link"
10957 case "(($ac_try" in
10958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10959 *) ac_try_echo
=$ac_try;;
10961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10962 $as_echo "$ac_try_echo") >&5
10963 (eval "$ac_link") 2>conftest.er1
10965 grep -v '^ *+' conftest.er1
>conftest.err
10967 cat conftest.err
>&5
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && {
10970 test -z "$ac_c_werror_flag" ||
10971 test ! -s conftest.err
10972 } && test -s conftest
$ac_exeext && {
10973 test "$cross_compiling" = yes ||
10974 $as_test_x conftest
$ac_exeext
10976 ac_cv_search_opendir
=$ac_res
10978 $as_echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.
$ac_ext >&5
10984 rm -rf conftest.dSYM
10985 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10987 if test "${ac_cv_search_opendir+set}" = set; then
10991 if test "${ac_cv_search_opendir+set}" = set; then
10994 ac_cv_search_opendir
=no
10996 rm conftest.
$ac_ext
10997 LIBS
=$ac_func_search_save_LIBS
10999 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11000 $as_echo "$ac_cv_search_opendir" >&6; }
11001 ac_res
=$ac_cv_search_opendir
11002 if test "$ac_res" != no
; then
11003 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11010 if test $ac_cv_header_sys_wait_h = no
; then
11011 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11012 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11013 cat >conftest.
$ac_ext <<_ACEOF
11016 cat confdefs.h
>>conftest.
$ac_ext
11017 cat >>conftest.
$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 #include <sys/wait.h>
11023 union wait xx, yy; xx = yy
11028 rm -f conftest.
$ac_objext
11029 if { (ac_try
="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11035 $as_echo "$ac_try_echo") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 { $as_echo "$as_me:$LINENO: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048 cat >>confdefs.h <<\_ACEOF
11049 #define HAVE_SYS_WAIT_H 1
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_UNION_WAIT 1
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 { $as_echo "$as_me:$LINENO: result: no" >&5
11061 $as_echo "no" >&6; }
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11108 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11109 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11110 sys/resource.h sys/systeminfo.h locale.h \
11111 sys/stream.h termios.h libc.h sys/statfs.h \
11112 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11113 libgen.h util/debug.h util/msg18n.h frame.h \
11114 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 $as_echo_n "checking for $ac_header... " >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 $as_echo_n "(cached) " >&6
11123 ac_res=`eval 'as_val=${'$as_ac_Header'}
11124 $as_echo "$as_val"'`
11125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11126 $as_echo "$ac_res" >&6; }
11128 # Is the header compilable?
11129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 $as_echo_n "checking $ac_header usability... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <$ac_header>
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11144 *) ac_try_echo
=$ac_try;;
11146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148 (eval "$ac_compile") 2>conftest.er1
11150 grep -v '^ *+' conftest.er1
>conftest.err
11152 cat conftest.err
>&5
11153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } && {
11155 test -z "$ac_c_werror_flag" ||
11156 test ! -s conftest.err
11157 } && test -s conftest.
$ac_objext; then
11158 ac_header_compiler
=yes
11160 $as_echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.
$ac_ext >&5
11163 ac_header_compiler
=no
11166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 $as_echo "$ac_header_compiler" >&6; }
11170 # Is the header present?
11171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11172 $as_echo_n "checking $ac_header presence... " >&6; }
11173 cat >conftest.
$ac_ext <<_ACEOF
11176 cat confdefs.h
>>conftest.
$ac_ext
11177 cat >>conftest.
$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 #include <$ac_header>
11181 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11182 case "(($ac_try" in
11183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null && {
11195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11198 ac_header_preproc=yes
11200 $as_echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 $as_echo "$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 $as_echo_n "checking for $ac_header... " >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11240 eval "$as_ac_Header=\$ac_header_preproc"
11242 ac_res=`eval 'as_val=${'$as_ac_Header'}
11243 $as_echo "$as_val"'`
11244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11248 as_val=`eval 'as_val=${'$as_ac_Header'}
11249 $as_echo "$as_val"'`
11250 if test "x$as_val" = x""yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11261 for ac_header in sys/ptem.h
11263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 $as_echo_n "checking for $ac_header... " >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 $as_echo_n "(cached) " >&6
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #if defined HAVE_SYS_STREAM_H
11276 # include <sys/stream.h>
11279 #include <$ac_header>
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11285 *) ac_try_echo
=$ac_try;;
11287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11288 $as_echo "$ac_try_echo") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.
$ac_objext; then
11299 eval "$as_ac_Header=yes"
11301 $as_echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.
$ac_ext >&5
11304 eval "$as_ac_Header=no"
11307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11309 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11310 $as_echo "$as_val"'`
11311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11313 as_val
=`eval 'as_val=${'$as_ac_Header'}
11314 $as_echo "$as_val"'`
11315 if test "x$as_val" = x
""yes; then
11316 cat >>confdefs.h
<<_ACEOF
11317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 for ac_header
in sys
/sysctl.h
11328 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 $as_echo_n "checking for $ac_header... " >&6; }
11331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 $as_echo_n "(cached) " >&6
11334 cat >conftest.
$ac_ext <<_ACEOF
11337 cat confdefs.h
>>conftest.
$ac_ext
11338 cat >>conftest.
$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #if defined HAVE_SYS_PARAM_H
11341 # include <sys/param.h>
11344 #include <$ac_header>
11346 rm -f conftest.
$ac_objext
11347 if { (ac_try
="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11353 $as_echo "$ac_try_echo") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest.$ac_objext; then
11364 eval "$as_ac_Header=yes"
11366 $as_echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 eval "$as_ac_Header=no"
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 ac_res=`eval 'as_val=${'$as_ac_Header'}
11375 $as_echo "$as_val"'`
11376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11377 $as_echo "$ac_res" >&6; }
11378 as_val=`eval 'as_val=${'$as_ac_Header'}
11379 $as_echo "$as_val"'`
11380 if test "x$as_val" = x""yes; then
11381 cat >>confdefs.h <<_ACEOF
11382 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11391 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11392 $as_echo_n "checking for pthread_np.h... " >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11400 #include <pthread.h>
11401 #include <pthread_np.h>
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11414 *) ac_try_echo
=$ac_try;;
11416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_compile") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1
>conftest.err
11422 cat conftest.err
>&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest.
$ac_objext; then
11428 { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430 cat >>confdefs.h
<<\_ACEOF
11431 #define HAVE_PTHREAD_NP_H 1
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.
$ac_ext >&5
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 for ac_header
in strings.h
11447 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11448 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 $as_echo_n "checking for $ac_header... " >&6; }
11451 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 $as_echo_n "(cached) " >&6
11454 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11455 $as_echo "$as_val"'`
11456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11457 $as_echo "$ac_res" >&6; }
11459 # Is the header compilable?
11460 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11461 $as_echo_n "checking $ac_header usability... " >&6; }
11462 cat >conftest.
$ac_ext <<_ACEOF
11465 cat confdefs.h
>>conftest.
$ac_ext
11466 cat >>conftest.
$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11469 #include <$ac_header>
11471 rm -f conftest.
$ac_objext
11472 if { (ac_try
="$ac_compile"
11473 case "(($ac_try" in
11474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478 $as_echo "$ac_try_echo") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11489 ac_header_compiler=yes
11491 $as_echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_header_compiler=no
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11499 $as_echo "$ac_header_compiler" >&6; }
11501 # Is the header present?
11502 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11503 $as_echo_n "checking $ac_header presence... " >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <$ac_header>
11512 if { (ac_try="$ac_cpp conftest.$ac_ext"
11513 case "(($ac_try" in
11514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11515 *) ac_try_echo
=$ac_try;;
11517 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11518 $as_echo "$ac_try_echo") >&5
11519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1
>conftest.err
11523 cat conftest.err
>&5
11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } >/dev
/null
&& {
11526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11529 ac_header_preproc
=yes
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.
$ac_ext >&5
11534 ac_header_preproc
=no
11537 rm -f conftest.err conftest.
$ac_ext
11538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11539 $as_echo "$ac_header_preproc" >&6; }
11541 # So? What about this header?
11542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11548 ac_header_preproc
=yes
11551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11552 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11554 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11556 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11558 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11562 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11567 $as_echo_n "checking for $ac_header... " >&6; }
11568 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11571 eval "$as_ac_Header=\$ac_header_preproc"
11573 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11574 $as_echo "$as_val"'`
11575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11576 $as_echo "$ac_res" >&6; }
11579 as_val
=`eval 'as_val=${'$as_ac_Header'}
11580 $as_echo "$as_val"'`
11581 if test "x$as_val" = x
""yes; then
11582 cat >>confdefs.h
<<_ACEOF
11583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11590 if test "x$MACOSX" = "xyes"; then
11591 cat >>confdefs.h
<<\_ACEOF
11592 #define NO_STRINGS_WITH_STRING_H 1
11597 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11598 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11599 cppflags_save
=$CPPFLAGS
11600 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11601 cat >conftest.
$ac_ext <<_ACEOF
11604 cat confdefs.h
>>conftest.
$ac_ext
11605 cat >>conftest.
$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11608 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11609 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11610 /* but don't do it on AIX 5.1 (Uribarri) */
11612 #ifdef HAVE_XM_XM_H
11613 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11615 #ifdef HAVE_STRING_H
11616 # include <string.h>
11618 #if defined(HAVE_STRINGS_H)
11619 # include <strings.h>
11630 rm -f conftest.
$ac_objext
11631 if { (ac_try
="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 { $as_echo "$as_me:$LINENO: result: yes" >&5
11649 $as_echo "yes" >&6; }
11651 $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 cat >>confdefs.h <<\_ACEOF
11655 #define NO_STRINGS_WITH_STRING_H 1
11658 { $as_echo "$as_me:$LINENO: result: no" >&5
11659 $as_echo "no" >&6; }
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 CPPFLAGS=$cppflags_save
11666 if test $ac_cv_c_compiler_gnu = yes; then
11667 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11668 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11669 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11670 $as_echo_n "(cached) " >&6
11672 ac_pattern="Autoconf.*'x'"
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11683 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11684 ac_cv_prog_gcc_traditional=yes
11686 ac_cv_prog_gcc_traditional=no
11691 if test $ac_cv_prog_gcc_traditional = no; then
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 #include <termio.h>
11701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11702 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11703 ac_cv_prog_gcc_traditional=yes
11709 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11710 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11711 if test $ac_cv_prog_gcc_traditional = yes; then
11712 CC="$CC -traditional"
11716 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11717 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11718 if test "${ac_cv_c_const+set}" = set; then
11719 $as_echo_n "(cached) " >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11731 /* FIXME: Include the comments suggested by Paul. */
11732 #ifndef __cplusplus
11733 /* Ultrix mips cc rejects this. */
11734 typedef int charset[2];
11736 /* SunOS 4.1.1 cc rejects this. */
11737 char const *const *pcpcc;
11739 /* NEC SVR4.0.2 mips cc rejects this. */
11740 struct point {int x, y;};
11741 static struct point const zero = {0,0};
11742 /* AIX XL C 1.02.0.0 rejects this.
11743 It does not let you subtract one const X* pointer from another in
11744 an arm of an if-expression whose if-part is not a constant
11746 const char *g = "string";
11747 pcpcc = &g + (g ? g-g : 0);
11748 /* HPUX 7.0 cc rejects these. */
11750 ppc = (char**) pcpcc;
11751 pcpcc = (char const *const *) ppc;
11752 { /* SCO 3.2v4 cc rejects this. */
11754 char const *s = 0 ? (char *) 0 : (char const *) 0;
11759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11760 int x[] = {25, 17};
11761 const int *foo = &x[0];
11764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11765 typedef const int *iptr;
11769 { /* AIX XL C 1.02.0.0 rejects this saying
11770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11771 struct s { int j; const int *ap[3]; };
11772 struct s *b; b->j = 5;
11774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11775 const int foo = 10;
11776 if (!foo) return 0;
11778 return !cs[0] && !zero.x;
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11789 *) ac_try_echo
=$ac_try;;
11791 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1
>conftest.err
11797 cat conftest.err
>&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.
$ac_objext; then
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.
$ac_ext >&5
11811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11814 $as_echo "$ac_cv_c_const" >&6; }
11815 if test $ac_cv_c_const = no
; then
11817 cat >>confdefs.h
<<\_ACEOF
11823 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11824 $as_echo_n "checking for working volatile... " >&6; }
11825 if test "${ac_cv_c_volatile+set}" = set; then
11826 $as_echo_n "(cached) " >&6
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11840 int * volatile y = (int *) 0;
11846 rm -f conftest.
$ac_objext
11847 if { (ac_try
="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
11864 ac_cv_c_volatile=yes
11866 $as_echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_cv_c_volatile=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11875 $as_echo "$ac_cv_c_volatile" >&6; }
11876 if test $ac_cv_c_volatile = no; then
11878 cat >>confdefs.h <<\_ACEOF
11879 #define volatile /**/
11884 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11885 $as_echo_n "checking for mode_t... " >&6; }
11886 if test "${ac_cv_type_mode_t+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11889 ac_cv_type_mode_t=no
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11900 if (sizeof (mode_t))
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11910 *) ac_try_echo
=$ac_try;;
11912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11913 $as_echo "$ac_try_echo") >&5
11914 (eval "$ac_compile") 2>conftest.er1
11916 grep -v '^ *+' conftest.er1
>conftest.err
11918 cat conftest.err
>&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest.
$ac_objext; then
11924 cat >conftest.
$ac_ext <<_ACEOF
11927 cat confdefs.h
>>conftest.
$ac_ext
11928 cat >>conftest.
$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11934 if (sizeof ((mode_t)))
11940 rm -f conftest.
$ac_objext
11941 if { (ac_try
="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11947 $as_echo "$ac_try_echo") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11950 grep -v '^ *+' conftest.er1 >conftest.err
11952 cat conftest.err >&5
11953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11960 $as_echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_type_mode_t=yes
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 $as_echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11977 $as_echo "$ac_cv_type_mode_t" >&6; }
11978 if test "x$ac_cv_type_mode_t" = x""yes; then
11982 cat >>confdefs.h <<_ACEOF
11988 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11989 $as_echo_n "checking for off_t... " >&6; }
11990 if test "${ac_cv_type_off_t+set}" = set; then
11991 $as_echo_n "(cached) " >&6
11993 ac_cv_type_off_t=no
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12004 if (sizeof (off_t))
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12014 *) ac_try_echo
=$ac_try;;
12016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1
>conftest.err
12022 cat conftest.err
>&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.
$ac_objext; then
12028 cat >conftest.
$ac_ext <<_ACEOF
12031 cat confdefs.h
>>conftest.
$ac_ext
12032 cat >>conftest.
$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12038 if (sizeof ((off_t)))
12044 rm -f conftest.
$ac_objext
12045 if { (ac_try
="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051 $as_echo "$ac_try_echo") >&5
12052 (eval "$ac_compile") 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
12064 $as_echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_type_off_t=yes
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12081 $as_echo "$ac_cv_type_off_t" >&6; }
12082 if test "x$ac_cv_type_off_t" = x""yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define off_t long int
12092 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12093 $as_echo_n "checking for pid_t... " >&6; }
12094 if test "${ac_cv_type_pid_t+set}" = set; then
12095 $as_echo_n "(cached) " >&6
12097 ac_cv_type_pid_t=no
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12108 if (sizeof (pid_t))
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12118 *) ac_try_echo
=$ac_try;;
12120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1
>conftest.err
12126 cat conftest.err
>&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.
$ac_objext; then
12132 cat >conftest.
$ac_ext <<_ACEOF
12135 cat confdefs.h
>>conftest.
$ac_ext
12136 cat >>conftest.
$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12142 if (sizeof ((pid_t)))
12148 rm -f conftest.
$ac_objext
12149 if { (ac_try
="$ac_compile"
12150 case "(($ac_try" in
12151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12155 $as_echo "$ac_try_echo") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
12168 $as_echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_type_pid_t=yes
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 $as_echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12185 $as_echo "$ac_cv_type_pid_t" >&6; }
12186 if test "x$ac_cv_type_pid_t" = x""yes; then
12190 cat >>confdefs.h <<_ACEOF
12196 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12197 $as_echo_n "checking for size_t... " >&6; }
12198 if test "${ac_cv_type_size_t+set}" = set; then
12199 $as_echo_n "(cached) " >&6
12201 ac_cv_type_size_t=no
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12212 if (sizeof (size_t))
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12222 *) ac_try_echo
=$ac_try;;
12224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12228 grep -v '^ *+' conftest.er1
>conftest.err
12230 cat conftest.err
>&5
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.
$ac_objext; then
12236 cat >conftest.
$ac_ext <<_ACEOF
12239 cat confdefs.h
>>conftest.
$ac_ext
12240 cat >>conftest.
$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12246 if (sizeof ((size_t)))
12252 rm -f conftest.
$ac_objext
12253 if { (ac_try
="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12259 $as_echo "$ac_try_echo") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12272 $as_echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_type_size_t=yes
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12289 $as_echo "$ac_cv_type_size_t" >&6; }
12290 if test "x$ac_cv_type_size_t" = x""yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define size_t unsigned int
12300 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12301 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12302 if test "${ac_cv_type_uid_t+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <sys/types.h>
12314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "uid_t" >/dev/null 2>&1; then
12316 ac_cv_type_uid_t=yes
12318 ac_cv_type_uid_t=no
12323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12324 $as_echo "$ac_cv_type_uid_t" >&6; }
12325 if test $ac_cv_type_uid_t = no; then
12327 cat >>confdefs.h <<\_ACEOF
12332 cat >>confdefs.h <<\_ACEOF
12338 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12339 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12340 if test "${ac_cv_header_time+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 #include <sys/types.h>
12350 #include <sys/time.h>
12356 if ((struct tm *) 0)
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12366 *) ac_try_echo
=$ac_try;;
12368 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12369 $as_echo "$ac_try_echo") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1
>conftest.err
12374 cat conftest.err
>&5
12375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.
$ac_objext; then
12380 ac_cv_header_time
=yes
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12385 ac_cv_header_time
=no
12388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12391 $as_echo "$ac_cv_header_time" >&6; }
12392 if test $ac_cv_header_time = yes; then
12394 cat >>confdefs.h
<<\_ACEOF
12395 #define TIME_WITH_SYS_TIME 1
12400 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12401 $as_echo_n "checking for ino_t... " >&6; }
12402 if test "${ac_cv_type_ino_t+set}" = set; then
12403 $as_echo_n "(cached) " >&6
12405 ac_cv_type_ino_t
=no
12406 cat >conftest.
$ac_ext <<_ACEOF
12409 cat confdefs.h
>>conftest.
$ac_ext
12410 cat >>conftest.
$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12416 if (sizeof (ino_t))
12422 rm -f conftest.
$ac_objext
12423 if { (ac_try
="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12429 $as_echo "$ac_try_echo") >&5
12430 (eval "$ac_compile") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest.$ac_objext; then
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 $ac_includes_default
12450 if (sizeof ((ino_t)))
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12460 *) ac_try_echo
=$ac_try;;
12462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12463 $as_echo "$ac_try_echo") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1
>conftest.err
12468 cat conftest.err
>&5
12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.
$ac_objext; then
12476 $as_echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.
$ac_ext >&5
12479 ac_cv_type_ino_t
=yes
12482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.
$ac_ext >&5
12490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12492 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12493 $as_echo "$ac_cv_type_ino_t" >&6; }
12494 if test "x$ac_cv_type_ino_t" = x
""yes; then
12498 cat >>confdefs.h
<<_ACEOF
12504 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12505 $as_echo_n "checking for dev_t... " >&6; }
12506 if test "${ac_cv_type_dev_t+set}" = set; then
12507 $as_echo_n "(cached) " >&6
12509 ac_cv_type_dev_t
=no
12510 cat >conftest.
$ac_ext <<_ACEOF
12513 cat confdefs.h
>>conftest.
$ac_ext
12514 cat >>conftest.
$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12520 if (sizeof (dev_t))
12526 rm -f conftest.
$ac_objext
12527 if { (ac_try
="$ac_compile"
12528 case "(($ac_try" in
12529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12544 cat >conftest.$ac_ext <<_ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_includes_default
12554 if (sizeof ((dev_t)))
12560 rm -f conftest.$ac_objext
12561 if { (ac_try="$ac_compile"
12562 case "(($ac_try" in
12563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12564 *) ac_try_echo
=$ac_try;;
12566 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12567 $as_echo "$ac_try_echo") >&5
12568 (eval "$ac_compile") 2>conftest.er1
12570 grep -v '^ *+' conftest.er1
>conftest.err
12572 cat conftest.err
>&5
12573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } && {
12575 test -z "$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 } && test -s conftest.
$ac_objext; then
12580 $as_echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12583 ac_cv_type_dev_t
=yes
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12588 $as_echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.
$ac_ext >&5
12594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12596 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12597 $as_echo "$ac_cv_type_dev_t" >&6; }
12598 if test "x$ac_cv_type_dev_t" = x
""yes; then
12602 cat >>confdefs.h
<<_ACEOF
12603 #define dev_t unsigned
12609 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12610 $as_echo_n "checking for rlim_t... " >&6; }
12611 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12612 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12613 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12615 cat >conftest.
$ac_ext <<_ACEOF
12618 cat confdefs.h
>>conftest.
$ac_ext
12619 cat >>conftest.
$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12622 #include <sys/types.h>
12624 # include <stdlib.h>
12625 # include <stddef.h>
12627 #ifdef HAVE_SYS_RESOURCE_H
12628 # include <sys/resource.h>
12632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12633 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12634 ac_cv_type_rlim_t
=yes
12636 ac_cv_type_rlim_t
=no
12640 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12641 $as_echo "$ac_cv_type_rlim_t" >&6; }
12643 if test $ac_cv_type_rlim_t = no
; then
12644 cat >> confdefs.h
<<\EOF
12645 #define rlim_t unsigned long
12649 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12650 $as_echo_n "checking for stack_t... " >&6; }
12651 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12652 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12653 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12655 cat >conftest.
$ac_ext <<_ACEOF
12658 cat confdefs.h
>>conftest.
$ac_ext
12659 cat >>conftest.
$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 #include <sys/types.h>
12664 # include <stdlib.h>
12665 # include <stddef.h>
12667 #include <signal.h>
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671 $EGREP "stack_t" >/dev
/null
2>&1; then
12672 ac_cv_type_stack_t
=yes
12674 ac_cv_type_stack_t
=no
12678 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12679 $as_echo "$ac_cv_type_stack_t" >&6; }
12681 if test $ac_cv_type_stack_t = no
; then
12682 cat >> confdefs.h
<<\EOF
12683 #define stack_t struct sigaltstack
12687 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12688 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12689 cat >conftest.
$ac_ext <<_ACEOF
12692 cat confdefs.h
>>conftest.
$ac_ext
12693 cat >>conftest.
$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 #include <sys/types.h>
12698 # include <stdlib.h>
12699 # include <stddef.h>
12701 #include <signal.h>
12702 #include "confdefs.h"
12707 stack_t sigstk; sigstk.ss_base = 0;
12712 rm -f conftest.
$ac_objext
12713 if { (ac_try
="$ac_compile"
12714 case "(($ac_try" in
12715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720 (eval "$ac_compile") 2>conftest.er1
12722 grep -v '^ *+' conftest.er1 >conftest.err
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest.$ac_objext; then
12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
12731 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_SS_BASE 1
12736 $as_echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 { $as_echo "$as_me:$LINENO: result: no" >&5
12740 $as_echo "no" >&6; }
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12747 $as_echo_n "checking --with-tlib argument... " >&6; }
12749 # Check whether --with-tlib was given.
12750 if test "${with_tlib+set}" = set; then
12751 withval=$with_tlib;
12754 if test -n "$with_tlib"; then
12755 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12756 $as_echo "$with_tlib" >&6; }
12757 LIBS="$LIBS -l$with_tlib"
12758 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12759 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12779 *) ac_try_echo
=$ac_try;;
12781 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12782 $as_echo "$ac_try_echo") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1
>conftest.err
12787 cat conftest.err
>&5
12788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest
$ac_exeext && {
12793 test "$cross_compiling" = yes ||
12794 $as_test_x conftest
$ac_exeext
12796 { $as_echo "$as_me:$LINENO: result: OK" >&5
12797 $as_echo "OK" >&6; }
12799 $as_echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.
$ac_ext >&5
12802 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12803 $as_echo "$as_me: error: FAILED" >&2;}
12804 { (exit 1); exit 1; }; }
12807 rm -rf conftest.dSYM
12808 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12809 conftest
$ac_exeext conftest.
$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12813 $as_echo "empty: automatic terminal library selection" >&6; }
12814 case "`uname -s 2>/dev/null`" in
12815 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12816 *) tlibs
="ncurses termlib termcap curses";;
12818 for libname
in $tlibs; do
12820 as_ac_Lib
=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12821 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12822 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12823 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12824 $as_echo_n "(cached) " >&6
12826 ac_check_lib_save_LIBS
=$LIBS
12827 LIBS
="-l${libname} $LIBS"
12828 cat >conftest.
$ac_ext <<_ACEOF
12831 cat confdefs.h
>>conftest.
$ac_ext
12832 cat >>conftest.
$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12850 rm -f conftest.
$ac_objext conftest
$ac_exeext
12851 if { (ac_try
="$ac_link"
12852 case "(($ac_try" in
12853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12857 $as_echo "$ac_try_echo") >&5
12858 (eval "$ac_link") 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest$ac_exeext && {
12868 test "$cross_compiling" = yes ||
12869 $as_test_x conftest$ac_exeext
12871 eval "$as_ac_Lib=yes"
12873 $as_echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 eval "$as_ac_Lib=no"
12879 rm -rf conftest.dSYM
12880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12884 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12885 $as_echo "$as_val"'`
12886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12887 $as_echo "$ac_res" >&6; }
12888 as_val=`eval 'as_val=${'$as_ac_Lib'}
12889 $as_echo "$as_val"'`
12890 if test "x$as_val" = x""yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define `$as_echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12895 LIBS="-l${libname} $LIBS"
12899 if test "x$olibs" != "x$LIBS"; then
12900 if test "$cross_compiling" = yes; then
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12910 #ifdef HAVE_TERMCAP_H
12911 # include <termcap.h>
12914 # include <stdlib.h>
12915 # include <stddef.h>
12917 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12919 rm -f conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12923 *) ac_try_echo
=$ac_try;;
12925 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12926 $as_echo "$ac_try_echo") >&5
12927 (eval "$ac_link") 2>&5
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12931 { (case "(($ac_try" in
12932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936 $as_echo "$ac_try_echo") >&5
12937 (eval "$ac_try") 2>&5
12939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12943 $as_echo "$as_me: program exited with status $ac_status" >&5
12944 $as_echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ( exit $ac_status )
12950 rm -rf conftest.dSYM
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955 if test "$res" = "OK"; then
12958 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12959 $as_echo "$libname library is not usable" >&6; }
12963 if test "x$olibs" = "x$LIBS"; then
12964 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12965 $as_echo "no terminal library found" >&6; }
12969 if test "x$olibs" = "x$LIBS"; then
12970 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12971 $as_echo_n "checking for tgetent()... " >&6; }
12972 cat >conftest.$ac_ext <<_ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12982 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12987 rm -f conftest.$ac_objext 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>conftest.er1
12997 grep -v '^ *+' conftest.er1
>conftest.err
12999 cat conftest.err
>&5
13000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_c_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest
$ac_exeext && {
13005 test "$cross_compiling" = yes ||
13006 $as_test_x conftest
$ac_exeext
13008 { $as_echo "$as_me:$LINENO: result: yes" >&5
13009 $as_echo "yes" >&6; }
13011 $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.
$ac_ext >&5
13014 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13015 You need to install a terminal library; for example ncurses.
13016 Or specify the name of the library with --with-tlib." >&5
13017 $as_echo "$as_me: error: NOT FOUND!
13018 You need to install a terminal library; for example ncurses.
13019 Or specify the name of the library with --with-tlib." >&2;}
13020 { (exit 1); exit 1; }; }
13023 rm -rf conftest.dSYM
13024 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13025 conftest
$ac_exeext conftest.
$ac_ext
13028 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13029 $as_echo_n "checking whether we talk terminfo... " >&6; }
13030 if test "${vim_cv_terminfo+set}" = set; then
13031 $as_echo_n "(cached) " >&6
13034 if test "$cross_compiling" = yes; then
13036 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13037 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13038 { (exit 1); exit 1; }; }
13041 cat >conftest.
$ac_ext <<_ACEOF
13043 #include "confdefs.h"
13044 #ifdef HAVE_TERMCAP_H
13045 # include <termcap.h>
13047 #ifdef HAVE_STRING_H
13048 # include <string.h>
13051 # include <stdlib.h>
13052 # include <stddef.h>
13055 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13058 rm -f conftest
$ac_exeext
13059 if { (ac_try
="$ac_link"
13060 case "(($ac_try" in
13061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066 (eval "$ac_link") 2>&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13072 *) ac_try_echo
=$ac_try;;
13074 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13075 $as_echo "$ac_try_echo") >&5
13076 (eval "$ac_try") 2>&5
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13084 $as_echo "$as_me: program exited with status $ac_status" >&5
13085 $as_echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.
$ac_ext >&5
13088 ( exit $ac_status )
13090 vim_cv_terminfo
=yes
13093 rm -rf conftest.dSYM
13094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13100 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13101 $as_echo "$vim_cv_terminfo" >&6; }
13103 if test "x$vim_cv_terminfo" = "xyes" ; then
13104 cat >>confdefs.h
<<\_ACEOF
13110 if test "x$olibs" != "x$LIBS"; then
13111 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13112 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13113 if test "${vim_cv_tgent+set}" = set; then
13114 $as_echo_n "(cached) " >&6
13117 if test "$cross_compiling" = yes; then
13119 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13120 $as_echo "$as_me: error: failed to compile test program." >&2;}
13121 { (exit 1); exit 1; }; }
13124 cat >conftest.
$ac_ext <<_ACEOF
13126 #include "confdefs.h"
13127 #ifdef HAVE_TERMCAP_H
13128 # include <termcap.h>
13131 # include <stdlib.h>
13132 # include <stddef.h>
13135 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13138 rm -f conftest
$ac_exeext
13139 if { (ac_try
="$ac_link"
13140 case "(($ac_try" in
13141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_link") 2>&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13150 { (case "(($ac_try" in
13151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13152 *) ac_try_echo
=$ac_try;;
13154 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13155 $as_echo "$ac_try_echo") >&5
13156 (eval "$ac_try") 2>&5
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13164 $as_echo "$as_me: program exited with status $ac_status" >&5
13165 $as_echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.
$ac_ext >&5
13168 ( exit $ac_status )
13170 vim_cv_tgent
=non-zero
13173 rm -rf conftest.dSYM
13174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13180 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13181 $as_echo "$vim_cv_tgent" >&6; }
13183 if test "x$vim_cv_tgent" = "xzero" ; then
13184 cat >>confdefs.h
<<\_ACEOF
13185 #define TGETENT_ZERO_ERR 0
13191 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13192 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13193 cat >conftest.
$ac_ext <<_ACEOF
13196 cat confdefs.h
>>conftest.
$ac_ext
13197 cat >>conftest.
$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13200 #ifdef HAVE_TERMCAP_H
13201 # include <termcap.h>
13212 rm -f conftest.
$ac_objext conftest
$ac_exeext
13213 if { (ac_try
="$ac_link"
13214 case "(($ac_try" in
13215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13233 { $as_echo "$as_me:$LINENO: result: yes" >&5
13234 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_OSPEED 1
13239 $as_echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 { $as_echo "$as_me:$LINENO: result: no" >&5
13243 $as_echo "no" >&6; }
13244 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13245 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13253 #ifdef HAVE_TERMCAP_H
13254 # include <termcap.h>
13256 extern short ospeed;
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13270 *) ac_try_echo
=$ac_try;;
13272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274 (eval "$ac_link") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1
>conftest.err
13278 cat conftest.err
>&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest
$ac_exeext && {
13284 test "$cross_compiling" = yes ||
13285 $as_test_x conftest
$ac_exeext
13287 { $as_echo "$as_me:$LINENO: result: yes" >&5
13288 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13289 #define OSPEED_EXTERN 1
13293 $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.
$ac_ext >&5
13296 { $as_echo "$as_me:$LINENO: result: no" >&5
13297 $as_echo "no" >&6; }
13300 rm -rf conftest.dSYM
13301 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13302 conftest
$ac_exeext conftest.
$ac_ext
13306 rm -rf conftest.dSYM
13307 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13308 conftest
$ac_exeext conftest.
$ac_ext
13310 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13311 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13312 cat >conftest.
$ac_ext <<_ACEOF
13315 cat confdefs.h
>>conftest.
$ac_ext
13316 cat >>conftest.
$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 #ifdef HAVE_TERMCAP_H
13320 # include <termcap.h>
13326 if (UP == 0 && BC == 0) PC = 1
13331 rm -f conftest.
$ac_objext conftest
$ac_exeext
13332 if { (ac_try
="$ac_link"
13333 case "(($ac_try" in
13334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338 $as_echo "$ac_try_echo") >&5
13339 (eval "$ac_link") 2>conftest.er1
13341 grep -v '^ *+' conftest.er1 >conftest.err
13343 cat conftest.err >&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest$ac_exeext && {
13349 test "$cross_compiling" = yes ||
13350 $as_test_x conftest$ac_exeext
13352 { $as_echo "$as_me:$LINENO: result: yes" >&5
13353 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13354 #define HAVE_UP_BC_PC 1
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 { $as_echo "$as_me:$LINENO: result: no" >&5
13362 $as_echo "no" >&6; }
13363 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13364 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 #ifdef HAVE_TERMCAP_H
13373 # include <termcap.h>
13375 extern char *UP, *BC, PC;
13380 if (UP == 0 && BC == 0) PC = 1
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (ac_try="$ac_link"
13387 case "(($ac_try" in
13388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13389 *) ac_try_echo
=$ac_try;;
13391 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13392 $as_echo "$ac_try_echo") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1
>conftest.err
13397 cat conftest.err
>&5
13398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest
$ac_exeext && {
13403 test "$cross_compiling" = yes ||
13404 $as_test_x conftest
$ac_exeext
13406 { $as_echo "$as_me:$LINENO: result: yes" >&5
13407 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13408 #define UP_BC_PC_EXTERN 1
13412 $as_echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.
$ac_ext >&5
13415 { $as_echo "$as_me:$LINENO: result: no" >&5
13416 $as_echo "no" >&6; }
13419 rm -rf conftest.dSYM
13420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13421 conftest
$ac_exeext conftest.
$ac_ext
13425 rm -rf conftest.dSYM
13426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13427 conftest
$ac_exeext conftest.
$ac_ext
13429 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13430 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13431 cat >conftest.
$ac_ext <<_ACEOF
13434 cat confdefs.h
>>conftest.
$ac_ext
13435 cat >>conftest.
$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 #ifdef HAVE_TERMCAP_H
13439 # include <termcap.h>
13445 extern int xx(); tputs("test", 1, (outfuntype)xx)
13450 rm -f conftest.
$ac_objext
13451 if { (ac_try
="$ac_compile"
13452 case "(($ac_try" in
13453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13457 $as_echo "$ac_try_echo") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13460 grep -v '^ *+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && {
13465 test -z "$ac_c_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest.$ac_objext; then
13468 { $as_echo "$as_me:$LINENO: result: yes" >&5
13469 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13470 #define HAVE_OUTFUNTYPE 1
13474 $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 { $as_echo "$as_me:$LINENO: result: no" >&5
13478 $as_echo "no" >&6; }
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13484 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 #include <sys/types.h>
13493 #include <sys/time.h>
13494 #include <sys/select.h>
13503 rm -f conftest.$ac_objext
13504 if { (ac_try="$ac_compile"
13505 case "(($ac_try" in
13506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13507 *) ac_try_echo
=$ac_try;;
13509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1
>conftest.err
13515 cat conftest.err
>&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.
$ac_objext; then
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 cat >>confdefs.h
<<\_ACEOF
13524 #define SYS_SELECT_WITH_SYS_TIME 1
13528 $as_echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.
$ac_ext >&5
13531 { $as_echo "$as_me:$LINENO: result: no" >&5
13532 $as_echo "no" >&6; }
13535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13538 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13539 $as_echo_n "checking for /dev/ptc... " >&6; }
13540 if test -r /dev
/ptc
; then
13541 cat >>confdefs.h
<<\_ACEOF
13542 #define HAVE_DEV_PTC 1
13545 { $as_echo "$as_me:$LINENO: result: yes" >&5
13546 $as_echo "yes" >&6; }
13548 { $as_echo "$as_me:$LINENO: result: no" >&5
13549 $as_echo "no" >&6; }
13552 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13553 $as_echo_n "checking for SVR4 ptys... " >&6; }
13554 if test -c /dev
/ptmx
; then
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13565 ptsname(0);grantpt(0);unlockpt(0);
13570 rm -f conftest.
$ac_objext conftest
$ac_exeext
13571 if { (ac_try
="$ac_link"
13572 case "(($ac_try" in
13573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578 (eval "$ac_link") 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest$ac_exeext && {
13588 test "$cross_compiling" = yes ||
13589 $as_test_x conftest$ac_exeext
13591 { $as_echo "$as_me:$LINENO: result: yes" >&5
13592 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13593 #define HAVE_SVR4_PTYS 1
13597 $as_echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 { $as_echo "$as_me:$LINENO: result: no" >&5
13601 $as_echo "no" >&6; }
13604 rm -rf conftest.dSYM
13605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13606 conftest$ac_exeext conftest.$ac_ext
13608 { $as_echo "$as_me:$LINENO: result: no" >&5
13609 $as_echo "no" >&6; }
13612 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13613 $as_echo_n "checking for ptyranges... " >&6; }
13614 if test -d /dev/ptym ; then
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "yes" >/dev/null 2>&1; then
13632 ptys=`echo /dev
/ptyp??
`
13634 ptys=`echo $pdir/pty??
`
13638 if test "$ptys" != "$pdir/pty??" ; then
13639 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13640 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13641 cat >>confdefs.h <<_ACEOF
13642 #define PTYRANGE0 "$p0"
13645 cat >>confdefs.h <<_ACEOF
13646 #define PTYRANGE1 "$p1"
13649 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13650 $as_echo "$p0 / $p1" >&6; }
13652 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13653 $as_echo "don't know" >&6; }
13657 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13658 $as_echo_n "checking default tty permissions/group... " >&6; }
13659 if test "${vim_cv_tty_group+set}" = set; then
13660 $as_echo_n "(cached) " >&6
13663 if test "$cross_compiling" = yes; then
13665 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13666 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13667 { (exit 1); exit 1; }; }
13670 cat >conftest.$ac_ext <<_ACEOF
13672 #include "confdefs.h"
13673 #include <sys/types.h>
13675 # include <stdlib.h>
13676 # include <stddef.h>
13678 #ifdef HAVE_UNISTD_H
13679 #include <unistd.h>
13681 #include <sys/stat.h>
13686 char *x,*ttyname();
13690 if (!(x = ttyname(0))) exit(1);
13691 if (stat(x, &sb)) exit(1);
13693 if (om & 002) exit(0);
13694 m = system("mesg y");
13695 if (m == -1 || m == 127) exit(1);
13696 if (stat(x, &sb)) exit(1);
13698 if (chmod(x, om)) exit(1);
13699 if (m & 002) exit(0);
13700 if (sb.st_gid == getgid()) exit(1);
13701 if (!(fp=fopen("conftest_grp", "w")))
13703 fprintf(fp, "%d\n", sb.st_gid);
13709 rm -f conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13713 *) ac_try_echo
=$ac_try;;
13715 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13716 $as_echo "$ac_try_echo") >&5
13717 (eval "$ac_link") 2>&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727 (eval "$ac_try") 2>&5
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13732 if test -f conftest_grp; then
13733 vim_cv_tty_group=`cat conftest_grp
`
13734 if test "x$vim_cv_tty_mode" = "x" ; then
13735 vim_cv_tty_mode=0620
13737 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13738 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13740 vim_cv_tty_group=world
13741 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13742 $as_echo "ptys are world accessible" >&6; }
13746 $as_echo "$as_me: program exited with status $ac_status" >&5
13747 $as_echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ( exit $ac_status )
13752 vim_cv_tty_group=world
13753 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13754 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13757 rm -rf conftest.dSYM
13758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13764 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13765 $as_echo "$vim_cv_tty_group" >&6; }
13768 if test "x$vim_cv_tty_group" != "xworld" ; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define PTYGROUP $vim_cv_tty_group
13773 if test "x$vim_cv_tty_mode" = "x" ; then
13774 { { $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
13775 $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;}
13776 { (exit 1); exit 1; }; }
13778 cat >>confdefs.h <<\_ACEOF
13779 #define PTYMODE 0620
13786 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13787 $as_echo_n "checking return type of signal handlers... " >&6; }
13788 if test "${ac_cv_type_signal+set}" = set; then
13789 $as_echo_n "(cached) " >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <sys/types.h>
13798 #include <signal.h>
13803 return *(signal (0, 0)) (0) == 1;
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13812 *) ac_try_echo
=$ac_try;;
13814 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1
>conftest.err
13820 cat conftest.err
>&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest.
$ac_objext; then
13826 ac_cv_type_signal
=int
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.
$ac_ext >&5
13831 ac_cv_type_signal
=void
13834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13836 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13837 $as_echo "$ac_cv_type_signal" >&6; }
13839 cat >>confdefs.h
<<_ACEOF
13840 #define RETSIGTYPE $ac_cv_type_signal
13845 if test $ac_cv_type_signal = void
; then
13846 cat >>confdefs.h
<<\_ACEOF
13847 #define SIGRETURN return
13851 cat >>confdefs.h
<<\_ACEOF
13852 #define SIGRETURN return 0
13857 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13858 $as_echo_n "checking for struct sigcontext... " >&6; }
13859 cat >conftest.
$ac_ext <<_ACEOF
13862 cat confdefs.h
>>conftest.
$ac_ext
13863 cat >>conftest.
$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13866 #include <signal.h>
13869 struct sigcontext *scont;
13870 scont = (struct sigcontext *)0;
13881 rm -f conftest.
$ac_objext
13882 if { (ac_try
="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 { $as_echo "$as_me:$LINENO: result: yes" >&5
13900 $as_echo "yes" >&6; }
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_SIGCONTEXT 1
13906 $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 { $as_echo "$as_me:$LINENO: result: no" >&5
13910 $as_echo "no" >&6; }
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13916 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13917 if test "${vim_cv_getcwd_broken+set}" = set; then
13918 $as_echo_n "(cached) " >&6
13921 if test "$cross_compiling" = yes; then
13923 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13924 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13925 { (exit 1); exit 1; }; }
13928 cat >conftest.$ac_ext <<_ACEOF
13930 #include "confdefs.h"
13931 #ifdef HAVE_UNISTD_H
13932 #include <unistd.h>
13934 char *dagger[] = { "IFS=pwd", 0 };
13938 extern char **environ;
13940 return getcwd(buffer, 500) ? 0 : 1;
13944 rm -f conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13948 *) ac_try_echo
=$ac_try;;
13950 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13951 $as_echo "$ac_try_echo") >&5
13952 (eval "$ac_link") 2>&5
13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_try") 2>&5
13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13967 vim_cv_getcwd_broken=no
13970 $as_echo "$as_me: program exited with status $ac_status" >&5
13971 $as_echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13974 ( exit $ac_status )
13976 vim_cv_getcwd_broken=yes
13979 rm -rf conftest.dSYM
13980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13986 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13987 $as_echo "$vim_cv_getcwd_broken" >&6; }
13989 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define BAD_GETCWD 1
14041 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14042 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14043 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14044 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14045 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14046 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14047 usleep utime utimes
14049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14050 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14051 $as_echo_n "checking for $ac_func... " >&6; }
14052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14053 $as_echo_n "(cached) " >&6
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14063 #define $ac_func innocuous_$ac_func
14065 /* System header to define __stub macros and hopefully few prototypes,
14066 which can conflict with char $ac_func (); below.
14067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14068 <limits.h> exists even on freestanding compilers. */
14071 # include <limits.h>
14073 # include <assert.h>
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14085 /* The GNU C library defines this for functions which it implements
14086 to always fail with ENOSYS. Some functions are actually named
14087 something starting with __ and the normal name is an alias. */
14088 #if defined __stub_$ac_func || defined __stub___$ac_func
14095 return $ac_func ();
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14104 *) ac_try_echo
=$ac_try;;
14106 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14107 $as_echo "$ac_try_echo") >&5
14108 (eval "$ac_link") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1
>conftest.err
14112 cat conftest.err
>&5
14113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest
$ac_exeext && {
14118 test "$cross_compiling" = yes ||
14119 $as_test_x conftest
$ac_exeext
14121 eval "$as_ac_var=yes"
14123 $as_echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.
$ac_ext >&5
14126 eval "$as_ac_var=no"
14129 rm -rf conftest.dSYM
14130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14131 conftest
$ac_exeext conftest.
$ac_ext
14133 ac_res
=`eval 'as_val=${'$as_ac_var'}
14134 $as_echo "$as_val"'`
14135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14136 $as_echo "$ac_res" >&6; }
14137 as_val
=`eval 'as_val=${'$as_ac_var'}
14138 $as_echo "$as_val"'`
14139 if test "x$as_val" = x
""yes; then
14140 cat >>confdefs.h
<<_ACEOF
14141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14147 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14148 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14149 if test "${ac_cv_sys_largefile_source+set}" = set; then
14150 $as_echo_n "(cached) " >&6
14153 cat >conftest.
$ac_ext <<_ACEOF
14156 cat confdefs.h
>>conftest.
$ac_ext
14157 cat >>conftest.
$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 #include <sys/types.h> /* for off_t */
14164 int (*fp) (FILE *, off_t, int) = fseeko;
14165 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14170 rm -f conftest.
$ac_objext conftest
$ac_exeext
14171 if { (ac_try
="$ac_link"
14172 case "(($ac_try" in
14173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_link") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1 >conftest.err
14182 cat conftest.err >&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest$ac_exeext && {
14188 test "$cross_compiling" = yes ||
14189 $as_test_x conftest$ac_exeext
14191 ac_cv_sys_largefile_source=no; break
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201 conftest$ac_exeext conftest.$ac_ext
14202 cat >conftest.$ac_ext <<_ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 #define _LARGEFILE_SOURCE 1
14209 #include <sys/types.h> /* for off_t */
14214 int (*fp) (FILE *, off_t, int) = fseeko;
14215 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14220 rm -f conftest.$ac_objext conftest$ac_exeext
14221 if { (ac_try="$ac_link"
14222 case "(($ac_try" in
14223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14224 *) ac_try_echo
=$ac_try;;
14226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_link") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1
>conftest.err
14232 cat conftest.err
>&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && {
14235 test -z "$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14237 } && test -s conftest
$ac_exeext && {
14238 test "$cross_compiling" = yes ||
14239 $as_test_x conftest
$ac_exeext
14241 ac_cv_sys_largefile_source
=1; break
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.
$ac_ext >&5
14249 rm -rf conftest.dSYM
14250 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14251 conftest
$ac_exeext conftest.
$ac_ext
14252 ac_cv_sys_largefile_source
=unknown
14256 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14257 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14258 case $ac_cv_sys_largefile_source in #(
14261 cat >>confdefs.h
<<_ACEOF
14262 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14268 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14269 # in glibc 2.1.3, but that breaks too many other things.
14270 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14271 if test $ac_cv_sys_largefile_source != unknown
; then
14273 cat >>confdefs.h
<<\_ACEOF
14274 #define HAVE_FSEEKO 1
14280 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14281 $as_echo_n "checking for st_blksize... " >&6; }
14282 cat >conftest.
$ac_ext <<_ACEOF
14285 cat confdefs.h
>>conftest.
$ac_ext
14286 cat >>conftest.
$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 #include <sys/types.h>
14289 #include <sys/stat.h>
14297 n = (int)st.st_blksize;
14302 rm -f conftest.
$ac_objext
14303 if { (ac_try
="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310 (eval "$ac_compile") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1 >conftest.err
14314 cat conftest.err >&5
14315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } && {
14317 test -z "$ac_c_werror_flag" ||
14318 test ! -s conftest.err
14319 } && test -s conftest.$ac_objext; then
14320 { $as_echo "$as_me:$LINENO: result: yes" >&5
14321 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_ST_BLKSIZE 1
14326 $as_echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 { $as_echo "$as_me:$LINENO: result: no" >&5
14330 $as_echo "no" >&6; }
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14336 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14337 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14338 $as_echo_n "(cached) " >&6
14341 if test "$cross_compiling" = yes; then
14343 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14344 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14345 { (exit 1); exit 1; }; }
14348 cat >conftest.$ac_ext <<_ACEOF
14350 #include "confdefs.h"
14352 # include <stdlib.h>
14353 # include <stddef.h>
14355 #include <sys/types.h>
14356 #include <sys/stat.h>
14357 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14360 rm -f conftest$ac_exeext
14361 if { (ac_try="$ac_link"
14362 case "(($ac_try" in
14363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14364 *) ac_try_echo
=$ac_try;;
14366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14367 $as_echo "$ac_try_echo") >&5
14368 (eval "$ac_link") 2>&5
14370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
14380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14383 vim_cv_stat_ignores_slash=yes
14386 $as_echo "$as_me: program exited with status $ac_status" >&5
14387 $as_echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 ( exit $ac_status )
14392 vim_cv_stat_ignores_slash=no
14395 rm -rf conftest.dSYM
14396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14402 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14403 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14405 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14406 cat >>confdefs.h <<\_ACEOF
14407 #define STAT_IGNORES_SLASH 1
14412 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14413 $as_echo_n "checking for iconv_open()... " >&6; }
14415 LIBS="$LIBS -liconv"
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14423 #ifdef HAVE_ICONV_H
14424 # include <iconv.h>
14430 iconv_open("fr", "to");
14435 rm -f conftest.$ac_objext conftest$ac_exeext
14436 if { (ac_try="$ac_link"
14437 case "(($ac_try" in
14438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14439 *) ac_try_echo
=$ac_try;;
14441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14442 $as_echo "$ac_try_echo") >&5
14443 (eval "$ac_link") 2>conftest.er1
14445 grep -v '^ *+' conftest.er1
>conftest.err
14447 cat conftest.err
>&5
14448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } && {
14450 test -z "$ac_c_werror_flag" ||
14451 test ! -s conftest.err
14452 } && test -s conftest
$ac_exeext && {
14453 test "$cross_compiling" = yes ||
14454 $as_test_x conftest
$ac_exeext
14456 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14457 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14458 #define HAVE_ICONV 1
14462 $as_echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.
$ac_ext >&5
14466 cat >conftest.
$ac_ext <<_ACEOF
14469 cat confdefs.h
>>conftest.
$ac_ext
14470 cat >>conftest.
$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14473 #ifdef HAVE_ICONV_H
14474 # include <iconv.h>
14480 iconv_open("fr", "to");
14485 rm -f conftest.
$ac_objext conftest
$ac_exeext
14486 if { (ac_try
="$ac_link"
14487 case "(($ac_try" in
14488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14492 $as_echo "$ac_try_echo") >&5
14493 (eval "$ac_link") 2>conftest.er1
14495 grep -v '^ *+' conftest.er1 >conftest.err
14497 cat conftest.err >&5
14498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } && {
14500 test -z "$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14502 } && test -s conftest$ac_exeext && {
14503 test "$cross_compiling" = yes ||
14504 $as_test_x conftest$ac_exeext
14506 { $as_echo "$as_me:$LINENO: result: yes" >&5
14507 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14508 #define HAVE_ICONV 1
14512 $as_echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 { $as_echo "$as_me:$LINENO: result: no" >&5
14516 $as_echo "no" >&6; }
14519 rm -rf conftest.dSYM
14520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14521 conftest$ac_exeext conftest.$ac_ext
14524 rm -rf conftest.dSYM
14525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14526 conftest$ac_exeext conftest.$ac_ext
14529 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14530 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14538 #ifdef HAVE_LANGINFO_H
14539 # include <langinfo.h>
14545 char *cs = nl_langinfo(CODESET);
14550 rm -f conftest.$ac_objext conftest$ac_exeext
14551 if { (ac_try="$ac_link"
14552 case "(($ac_try" in
14553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14554 *) ac_try_echo
=$ac_try;;
14556 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14557 $as_echo "$ac_try_echo") >&5
14558 (eval "$ac_link") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1
>conftest.err
14562 cat conftest.err
>&5
14563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest
$ac_exeext && {
14568 test "$cross_compiling" = yes ||
14569 $as_test_x conftest
$ac_exeext
14571 { $as_echo "$as_me:$LINENO: result: yes" >&5
14572 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14573 #define HAVE_NL_LANGINFO_CODESET 1
14577 $as_echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.
$ac_ext >&5
14580 { $as_echo "$as_me:$LINENO: result: no" >&5
14581 $as_echo "no" >&6; }
14584 rm -rf conftest.dSYM
14585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14586 conftest
$ac_exeext conftest.
$ac_ext
14589 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14590 $as_echo_n "checking for strtod in -lm... " >&6; }
14591 if test "${ac_cv_lib_m_strtod+set}" = set; then
14592 $as_echo_n "(cached) " >&6
14594 ac_check_lib_save_LIBS
=$LIBS
14596 cat >conftest.
$ac_ext <<_ACEOF
14599 cat confdefs.h
>>conftest.
$ac_ext
14600 cat >>conftest.
$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any GCC internal prototype to avoid an error.
14604 Use char because int might match the return type of a GCC
14605 builtin and then its argument prototype would still apply. */
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 ac_cv_lib_m_strtod=yes
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_cv_lib_m_strtod=no
14647 rm -rf conftest.dSYM
14648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14649 conftest$ac_exeext conftest.$ac_ext
14650 LIBS=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14653 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14654 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14655 cat >>confdefs.h <<_ACEOF
14656 #define HAVE_LIBM 1
14663 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14664 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14676 # include <stdlib.h>
14677 # include <stddef.h>
14684 d = strtod("1.1", &s);
14689 d = pow(1.11, 2.22);
14699 rm -f conftest.$ac_objext conftest$ac_exeext
14700 if { (ac_try="$ac_link"
14701 case "(($ac_try" in
14702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14703 *) ac_try_echo
=$ac_try;;
14705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14706 $as_echo "$ac_try_echo") >&5
14707 (eval "$ac_link") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1
>conftest.err
14711 cat conftest.err
>&5
14712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest
$ac_exeext && {
14717 test "$cross_compiling" = yes ||
14718 $as_test_x conftest
$ac_exeext
14720 { $as_echo "$as_me:$LINENO: result: yes" >&5
14721 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14722 #define HAVE_FLOAT_FUNCS 1
14726 $as_echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.
$ac_ext >&5
14729 { $as_echo "$as_me:$LINENO: result: no" >&5
14730 $as_echo "no" >&6; }
14733 rm -rf conftest.dSYM
14734 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14735 conftest
$ac_exeext conftest.
$ac_ext
14737 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14738 $as_echo_n "checking --disable-acl argument... " >&6; }
14739 # Check whether --enable-acl was given.
14740 if test "${enable_acl+set}" = set; then
14741 enableval
=$enable_acl;
14746 if test "$enable_acl" = "yes"; then
14747 { $as_echo "$as_me:$LINENO: result: no" >&5
14748 $as_echo "no" >&6; }
14749 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14750 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14751 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14752 $as_echo_n "(cached) " >&6
14754 ac_check_lib_save_LIBS
=$LIBS
14755 LIBS
="-lposix1e $LIBS"
14756 cat >conftest.
$ac_ext <<_ACEOF
14759 cat confdefs.h
>>conftest.
$ac_ext
14760 cat >>conftest.
$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14763 /* Override any GCC internal prototype to avoid an error.
14764 Use char because int might match the return type of a GCC
14765 builtin and then its argument prototype would still apply. */
14769 char acl_get_file ();
14773 return acl_get_file ();
14778 rm -f conftest.
$ac_objext conftest
$ac_exeext
14779 if { (ac_try
="$ac_link"
14780 case "(($ac_try" in
14781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14785 $as_echo "$ac_try_echo") >&5
14786 (eval "$ac_link") 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest$ac_exeext && {
14796 test "$cross_compiling" = yes ||
14797 $as_test_x conftest$ac_exeext
14799 ac_cv_lib_posix1e_acl_get_file=yes
14801 $as_echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14804 ac_cv_lib_posix1e_acl_get_file=no
14807 rm -rf conftest.dSYM
14808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14809 conftest$ac_exeext conftest.$ac_ext
14810 LIBS=$ac_check_lib_save_LIBS
14812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14813 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14814 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14815 LIBS="$LIBS -lposix1e"
14817 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14818 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14819 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14820 $as_echo_n "(cached) " >&6
14822 ac_check_lib_save_LIBS=$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_acl_acl_get_file
=yes
14869 $as_echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.
$ac_ext >&5
14872 ac_cv_lib_acl_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_acl_acl_get_file" >&5
14881 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14882 if test "x$ac_cv_lib_acl_acl_get_file" = x
""yes; then
14884 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14885 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14886 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14887 $as_echo_n "(cached) " >&6
14889 ac_check_lib_save_LIBS
=$LIBS
14890 LIBS
="-lattr $LIBS"
14891 cat >conftest.
$ac_ext <<_ACEOF
14894 cat confdefs.h
>>conftest.
$ac_ext
14895 cat >>conftest.
$ac_ext <<_ACEOF
14896 /* end confdefs.h. */
14898 /* Override any GCC internal prototype to avoid an error.
14899 Use char because int might match the return type of a GCC
14900 builtin and then its argument prototype would still apply. */
14908 return fgetxattr ();
14913 rm -f conftest.
$ac_objext conftest
$ac_exeext
14914 if { (ac_try
="$ac_link"
14915 case "(($ac_try" in
14916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920 $as_echo "$ac_try_echo") >&5
14921 (eval "$ac_link") 2>conftest.er1
14923 grep -v '^ *+' conftest.er1 >conftest.err
14925 cat conftest.err >&5
14926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest$ac_exeext && {
14931 test "$cross_compiling" = yes ||
14932 $as_test_x conftest$ac_exeext
14934 ac_cv_lib_attr_fgetxattr=yes
14936 $as_echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_lib_attr_fgetxattr=no
14942 rm -rf conftest.dSYM
14943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14944 conftest$ac_exeext conftest.$ac_ext
14945 LIBS=$ac_check_lib_save_LIBS
14947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14948 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14949 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
14950 LIBS="$LIBS -lattr"
14958 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14959 $as_echo_n "checking for POSIX ACL support... " >&6; }
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14967 #include <sys/types.h>
14968 #ifdef HAVE_SYS_ACL_H
14969 # include <sys/acl.h>
14975 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14976 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14982 rm -f conftest.$ac_objext conftest$ac_exeext
14983 if { (ac_try="$ac_link"
14984 case "(($ac_try" in
14985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14986 *) ac_try_echo
=$ac_try;;
14988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14989 $as_echo "$ac_try_echo") >&5
14990 (eval "$ac_link") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1
>conftest.err
14994 cat conftest.err
>&5
14995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } && {
14997 test -z "$ac_c_werror_flag" ||
14998 test ! -s conftest.err
14999 } && test -s conftest
$ac_exeext && {
15000 test "$cross_compiling" = yes ||
15001 $as_test_x conftest
$ac_exeext
15003 { $as_echo "$as_me:$LINENO: result: yes" >&5
15004 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15005 #define HAVE_POSIX_ACL 1
15009 $as_echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.
$ac_ext >&5
15012 { $as_echo "$as_me:$LINENO: result: no" >&5
15013 $as_echo "no" >&6; }
15016 rm -rf conftest.dSYM
15017 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15018 conftest
$ac_exeext conftest.
$ac_ext
15020 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15021 $as_echo_n "checking for Solaris ACL support... " >&6; }
15022 cat >conftest.
$ac_ext <<_ACEOF
15025 cat confdefs.h
>>conftest.
$ac_ext
15026 cat >>conftest.
$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15029 #ifdef HAVE_SYS_ACL_H
15030 # include <sys/acl.h>
15035 acl("foo", GETACLCNT, 0, NULL);
15041 rm -f conftest.
$ac_objext conftest
$ac_exeext
15042 if { (ac_try
="$ac_link"
15043 case "(($ac_try" in
15044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049 (eval "$ac_link") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest$ac_exeext && {
15059 test "$cross_compiling" = yes ||
15060 $as_test_x conftest$ac_exeext
15062 { $as_echo "$as_me:$LINENO: result: yes" >&5
15063 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15064 #define HAVE_SOLARIS_ACL 1
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 { $as_echo "$as_me:$LINENO: result: no" >&5
15072 $as_echo "no" >&6; }
15075 rm -rf conftest.dSYM
15076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15077 conftest$ac_exeext conftest.$ac_ext
15079 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15080 $as_echo_n "checking for AIX ACL support... " >&6; }
15081 cat >conftest.$ac_ext <<_ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15089 # include <stdlib.h>
15090 # include <stddef.h>
15092 #ifdef HAVE_SYS_ACL_H
15093 # include <sys/acl.h>
15095 #ifdef HAVE_SYS_ACCESS_H
15096 # include <sys/access.h>
15098 #define _ALL_SOURCE
15100 #include <sys/stat.h>
15103 struct acl *aclent;
15107 aclsize = sizeof(struct acl);
15108 aclent = (void *)malloc(aclsize);
15109 statacl("foo", STX_NORMAL, aclent, aclsize);
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (ac_try="$ac_link"
15117 case "(($ac_try" in
15118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15119 *) ac_try_echo
=$ac_try;;
15121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15122 $as_echo "$ac_try_echo") >&5
15123 (eval "$ac_link") 2>conftest.er1
15125 grep -v '^ *+' conftest.er1
>conftest.err
15127 cat conftest.err
>&5
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest
$ac_exeext && {
15133 test "$cross_compiling" = yes ||
15134 $as_test_x conftest
$ac_exeext
15136 { $as_echo "$as_me:$LINENO: result: yes" >&5
15137 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15138 #define HAVE_AIX_ACL 1
15142 $as_echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.
$ac_ext >&5
15145 { $as_echo "$as_me:$LINENO: result: no" >&5
15146 $as_echo "no" >&6; }
15149 rm -rf conftest.dSYM
15150 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15151 conftest
$ac_exeext conftest.
$ac_ext
15153 { $as_echo "$as_me:$LINENO: result: yes" >&5
15154 $as_echo "yes" >&6; }
15157 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15158 $as_echo_n "checking --disable-gpm argument... " >&6; }
15159 # Check whether --enable-gpm was given.
15160 if test "${enable_gpm+set}" = set; then
15161 enableval
=$enable_gpm;
15167 if test "$enable_gpm" = "yes"; then
15168 { $as_echo "$as_me:$LINENO: result: no" >&5
15169 $as_echo "no" >&6; }
15170 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15171 $as_echo_n "checking for gpm... " >&6; }
15172 if test "${vi_cv_have_gpm+set}" = set; then
15173 $as_echo_n "(cached) " >&6
15175 olibs
="$LIBS" ; LIBS
="-lgpm"
15176 cat >conftest.
$ac_ext <<_ACEOF
15179 cat confdefs.h
>>conftest.
$ac_ext
15180 cat >>conftest.
$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15183 #include <linux/keyboard.h>
15187 Gpm_GetLibVersion(NULL);
15192 rm -f conftest.
$ac_objext conftest
$ac_exeext
15193 if { (ac_try
="$ac_link"
15194 case "(($ac_try" in
15195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200 (eval "$ac_link") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } && {
15207 test -z "$ac_c_werror_flag" ||
15208 test ! -s conftest.err
15209 } && test -s conftest$ac_exeext && {
15210 test "$cross_compiling" = yes ||
15211 $as_test_x conftest$ac_exeext
15215 $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15221 rm -rf conftest.dSYM
15222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15223 conftest$ac_exeext conftest.$ac_ext
15227 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15228 $as_echo "$vi_cv_have_gpm" >&6; }
15229 if test $vi_cv_have_gpm = yes; then
15231 cat >>confdefs.h <<\_ACEOF
15237 { $as_echo "$as_me:$LINENO: result: yes" >&5
15238 $as_echo "yes" >&6; }
15241 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15242 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15243 # Check whether --enable-sysmouse was given.
15244 if test "${enable_sysmouse+set}" = set; then
15245 enableval=$enable_sysmouse;
15247 enable_sysmouse="yes"
15251 if test "$enable_sysmouse" = "yes"; then
15252 { $as_echo "$as_me:$LINENO: result: no" >&5
15253 $as_echo "no" >&6; }
15254 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15255 $as_echo_n "checking for sysmouse... " >&6; }
15256 if test "${vi_cv_have_sysmouse+set}" = set; then
15257 $as_echo_n "(cached) " >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/consio.h>
15266 #include <signal.h>
15267 #include <sys/fbio.h>
15271 struct mouse_info mouse;
15272 mouse.operation = MOUSE_MODE;
15273 mouse.operation = MOUSE_SHOW;
15274 mouse.u.mode.mode = 0;
15275 mouse.u.mode.signal = SIGUSR2;
15280 rm -f conftest.$ac_objext conftest$ac_exeext
15281 if { (ac_try="$ac_link"
15282 case "(($ac_try" in
15283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15284 *) ac_try_echo
=$ac_try;;
15286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15287 $as_echo "$ac_try_echo") >&5
15288 (eval "$ac_link") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1
>conftest.err
15292 cat conftest.err
>&5
15293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest
$ac_exeext && {
15298 test "$cross_compiling" = yes ||
15299 $as_test_x conftest
$ac_exeext
15301 vi_cv_have_sysmouse
=yes
15303 $as_echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.
$ac_ext >&5
15306 vi_cv_have_sysmouse
=no
15309 rm -rf conftest.dSYM
15310 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15311 conftest
$ac_exeext conftest.
$ac_ext
15314 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15315 $as_echo "$vi_cv_have_sysmouse" >&6; }
15316 if test $vi_cv_have_sysmouse = yes; then
15317 cat >>confdefs.h
<<\_ACEOF
15318 #define HAVE_SYSMOUSE 1
15323 { $as_echo "$as_me:$LINENO: result: yes" >&5
15324 $as_echo "yes" >&6; }
15327 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15328 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15329 cat >conftest.
$ac_ext <<_ACEOF
15332 cat confdefs.h
>>conftest.
$ac_ext
15333 cat >>conftest.
$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15336 # include <fcntl.h>
15341 int flag = FD_CLOEXEC;
15346 rm -f conftest.
$ac_objext
15347 if { (ac_try
="$ac_compile"
15348 case "(($ac_try" in
15349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15353 $as_echo "$ac_try_echo") >&5
15354 (eval "$ac_compile") 2>conftest.er1
15356 grep -v '^ *+' conftest.er1 >conftest.err
15358 cat conftest.err >&5
15359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && {
15361 test -z "$ac_c_werror_flag" ||
15362 test ! -s conftest.err
15363 } && test -s conftest.$ac_objext; then
15364 { $as_echo "$as_me:$LINENO: result: yes" >&5
15365 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_FD_CLOEXEC 1
15370 $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15373 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15374 $as_echo "not usable" >&6; }
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15380 $as_echo_n "checking for rename... " >&6; }
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15391 rename("this", "that")
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15400 *) ac_try_echo
=$ac_try;;
15402 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15403 $as_echo "$ac_try_echo") >&5
15404 (eval "$ac_link") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1
>conftest.err
15408 cat conftest.err
>&5
15409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest
$ac_exeext && {
15414 test "$cross_compiling" = yes ||
15415 $as_test_x conftest
$ac_exeext
15417 { $as_echo "$as_me:$LINENO: result: yes" >&5
15418 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15419 #define HAVE_RENAME 1
15423 $as_echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.
$ac_ext >&5
15426 { $as_echo "$as_me:$LINENO: result: no" >&5
15427 $as_echo "no" >&6; }
15430 rm -rf conftest.dSYM
15431 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15432 conftest
$ac_exeext conftest.
$ac_ext
15434 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15435 $as_echo_n "checking for sysctl... " >&6; }
15436 cat >conftest.
$ac_ext <<_ACEOF
15439 cat confdefs.h
>>conftest.
$ac_ext
15440 cat >>conftest.
$ac_ext <<_ACEOF
15441 /* end confdefs.h. */
15442 #include <sys/types.h>
15443 #include <sys/sysctl.h>
15451 mib[1] = HW_USERMEM;
15453 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15459 rm -f conftest.
$ac_objext
15460 if { (ac_try
="$ac_compile"
15461 case "(($ac_try" in
15462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15463 *) ac_try_echo=$ac_try;;
15465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15466 $as_echo "$ac_try_echo") >&5
15467 (eval "$ac_compile") 2>conftest.er1
15469 grep -v '^ *+' conftest.er1 >conftest.err
15471 cat conftest.err >&5
15472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); } && {
15474 test -z "$ac_c_werror_flag" ||
15475 test ! -s conftest.err
15476 } && test -s conftest.$ac_objext; then
15477 { $as_echo "$as_me:$LINENO: result: yes" >&5
15478 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15479 #define HAVE_SYSCTL 1
15483 $as_echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15486 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15487 $as_echo "not usable" >&6; }
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15493 $as_echo_n "checking for sysinfo... " >&6; }
15494 cat >conftest.$ac_ext <<_ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 #include <sys/types.h>
15501 #include <sys/sysinfo.h>
15505 struct sysinfo sinfo;
15508 (void)sysinfo(&sinfo);
15509 t = sinfo.totalram;
15515 rm -f conftest.$ac_objext
15516 if { (ac_try="$ac_compile"
15517 case "(($ac_try" in
15518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15519 *) ac_try_echo
=$ac_try;;
15521 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15522 $as_echo "$ac_try_echo") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1
>conftest.err
15527 cat conftest.err
>&5
15528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest.
$ac_objext; then
15533 { $as_echo "$as_me:$LINENO: result: yes" >&5
15534 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15535 #define HAVE_SYSINFO 1
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.
$ac_ext >&5
15542 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15543 $as_echo "not usable" >&6; }
15546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15548 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15549 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15550 cat >conftest.
$ac_ext <<_ACEOF
15553 cat confdefs.h
>>conftest.
$ac_ext
15554 cat >>conftest.
$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15556 #include <sys/types.h>
15557 #include <sys/sysinfo.h>
15561 struct sysinfo sinfo;
15562 sinfo.mem_unit = 1;
15568 rm -f conftest.
$ac_objext
15569 if { (ac_try
="$ac_compile"
15570 case "(($ac_try" in
15571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15575 $as_echo "$ac_try_echo") >&5
15576 (eval "$ac_compile") 2>conftest.er1
15578 grep -v '^ *+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } && {
15583 test -z "$ac_c_werror_flag" ||
15584 test ! -s conftest.err
15585 } && test -s conftest.$ac_objext; then
15586 { $as_echo "$as_me:$LINENO: result: yes" >&5
15587 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_SYSINFO_MEM_UNIT 1
15592 $as_echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 { $as_echo "$as_me:$LINENO: result: no" >&5
15596 $as_echo "no" >&6; }
15599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15602 $as_echo_n "checking for sysconf... " >&6; }
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 #include <unistd.h>
15613 (void)sysconf(_SC_PAGESIZE);
15614 (void)sysconf(_SC_PHYS_PAGES);
15620 rm -f conftest.$ac_objext
15621 if { (ac_try="$ac_compile"
15622 case "(($ac_try" in
15623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15624 *) ac_try_echo
=$ac_try;;
15626 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15627 $as_echo "$ac_try_echo") >&5
15628 (eval "$ac_compile") 2>conftest.er1
15630 grep -v '^ *+' conftest.er1
>conftest.err
15632 cat conftest.err
>&5
15633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } && {
15635 test -z "$ac_c_werror_flag" ||
15636 test ! -s conftest.err
15637 } && test -s conftest.
$ac_objext; then
15638 { $as_echo "$as_me:$LINENO: result: yes" >&5
15639 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15640 #define HAVE_SYSCONF 1
15644 $as_echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.
$ac_ext >&5
15647 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15648 $as_echo "not usable" >&6; }
15651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15654 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15655 $as_echo_n "checking size of int... " >&6; }
15656 if test "${ac_cv_sizeof_int+set}" = set; then
15657 $as_echo_n "(cached) " >&6
15659 if test "$cross_compiling" = yes; then
15660 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15661 $as_echo "$as_me: error: failed to compile test program" >&2;}
15662 { (exit 1); exit 1; }; }
15664 cat >conftest.
$ac_ext <<_ACEOF
15667 cat confdefs.h
>>conftest.
$ac_ext
15668 cat >>conftest.
$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15673 # include <stdlib.h>
15674 # include <stddef.h>
15678 FILE *f=fopen("conftestval", "w");
15680 fprintf(f, "%d\n", (int)sizeof(int));
15684 rm -f conftest
$ac_exeext
15685 if { (ac_try
="$ac_link"
15686 case "(($ac_try" in
15687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15691 $as_echo "$ac_try_echo") >&5
15692 (eval "$ac_link") 2>&5
15694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15696 { (case "(($ac_try" in
15697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15698 *) ac_try_echo
=$ac_try;;
15700 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15701 $as_echo "$ac_try_echo") >&5
15702 (eval "$ac_try") 2>&5
15704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15705 (exit $ac_status); }; }; then
15706 ac_cv_sizeof_int
=`cat conftestval`
15708 $as_echo "$as_me: program exited with status $ac_status" >&5
15709 $as_echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.
$ac_ext >&5
15712 ( exit $ac_status )
15715 rm -rf conftest.dSYM
15716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15722 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15723 $as_echo "$ac_cv_sizeof_int" >&6; }
15724 cat >>confdefs.h
<<_ACEOF
15725 #define SIZEOF_INT $ac_cv_sizeof_int
15731 #include "confdefs.h"
15732 #ifdef HAVE_STRING_H
15733 # include <string.h>
15736 # include <stdlib.h>
15737 # include <stddef.h>
15741 strcpy(buf, "abcdefghi");
15742 mch_memmove(buf, buf + 2, 3);
15743 if (strncmp(buf, "ababcf", 6))
15745 strcpy(buf, "abcdefghi");
15746 mch_memmove(buf + 2, buf, 3);
15747 if (strncmp(buf, "cdedef", 6))
15749 exit(0); /* libc version works properly. */
15752 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15753 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15754 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15755 $as_echo_n "(cached) " >&6
15758 if test "$cross_compiling" = yes; then
15760 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15761 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15762 { (exit 1); exit 1; }; }
15765 cat >conftest.
$ac_ext <<_ACEOF
15766 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15768 rm -f conftest
$ac_exeext
15769 if { (ac_try
="$ac_link"
15770 case "(($ac_try" in
15771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15775 $as_echo "$ac_try_echo") >&5
15776 (eval "$ac_link") 2>&5
15778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15782 *) ac_try_echo
=$ac_try;;
15784 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15785 $as_echo "$ac_try_echo") >&5
15786 (eval "$ac_try") 2>&5
15788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15791 vim_cv_memmove_handles_overlap
=yes
15794 $as_echo "$as_me: program exited with status $ac_status" >&5
15795 $as_echo "$as_me: failed program was:" >&5
15796 sed 's/^/| /' conftest.
$ac_ext >&5
15798 ( exit $ac_status )
15800 vim_cv_memmove_handles_overlap
=no
15803 rm -rf conftest.dSYM
15804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15810 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15811 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15813 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15814 cat >>confdefs.h
<<\_ACEOF
15815 #define USEMEMMOVE 1
15819 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15820 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15821 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15822 $as_echo_n "(cached) " >&6
15825 if test "$cross_compiling" = yes; then
15827 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15828 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15829 { (exit 1); exit 1; }; }
15832 cat >conftest.
$ac_ext <<_ACEOF
15833 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15835 rm -f conftest
$ac_exeext
15836 if { (ac_try
="$ac_link"
15837 case "(($ac_try" in
15838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15842 $as_echo "$ac_try_echo") >&5
15843 (eval "$ac_link") 2>&5
15845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15849 *) ac_try_echo
=$ac_try;;
15851 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15852 $as_echo "$ac_try_echo") >&5
15853 (eval "$ac_try") 2>&5
15855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }; then
15858 vim_cv_bcopy_handles_overlap
=yes
15861 $as_echo "$as_me: program exited with status $ac_status" >&5
15862 $as_echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.
$ac_ext >&5
15865 ( exit $ac_status )
15867 vim_cv_bcopy_handles_overlap
=no
15870 rm -rf conftest.dSYM
15871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15877 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15878 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15880 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15881 cat >>confdefs.h
<<\_ACEOF
15886 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15887 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15888 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15889 $as_echo_n "(cached) " >&6
15892 if test "$cross_compiling" = yes; then
15894 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15895 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15896 { (exit 1); exit 1; }; }
15899 cat >conftest.
$ac_ext <<_ACEOF
15900 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15902 rm -f conftest
$ac_exeext
15903 if { (ac_try
="$ac_link"
15904 case "(($ac_try" in
15905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15906 *) ac_try_echo=$ac_try;;
15908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15909 $as_echo "$ac_try_echo") >&5
15910 (eval "$ac_link") 2>&5
15912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914 { (case "(($ac_try" in
15915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15916 *) ac_try_echo
=$ac_try;;
15918 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15919 $as_echo "$ac_try_echo") >&5
15920 (eval "$ac_try") 2>&5
15922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15925 vim_cv_memcpy_handles_overlap
=yes
15928 $as_echo "$as_me: program exited with status $ac_status" >&5
15929 $as_echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.
$ac_ext >&5
15932 ( exit $ac_status )
15934 vim_cv_memcpy_handles_overlap
=no
15937 rm -rf conftest.dSYM
15938 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15944 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15945 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15947 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15948 cat >>confdefs.h
<<\_ACEOF
15949 #define USEMEMCPY 1
15958 if test "$enable_multibyte" = "yes"; then
15959 cflags_save
=$CFLAGS
15960 ldflags_save
=$LDFLAGS
15961 if test "x$x_includes" != "xNONE" ; then
15962 CFLAGS
="$CFLAGS -I$x_includes"
15963 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
15964 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15965 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15966 cat >conftest.
$ac_ext <<_ACEOF
15969 cat confdefs.h
>>conftest.
$ac_ext
15970 cat >>conftest.
$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 #include <X11/Xlocale.h>
15981 rm -f conftest.
$ac_objext
15982 if { (ac_try
="$ac_compile"
15983 case "(($ac_try" in
15984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15985 *) ac_try_echo=$ac_try;;
15987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15988 $as_echo "$ac_try_echo") >&5
15989 (eval "$ac_compile") 2>conftest.er1
15991 grep -v '^ *+' conftest.er1 >conftest.err
15993 cat conftest.err >&5
15994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } && {
15996 test -z "$ac_c_werror_flag" ||
15997 test ! -s conftest.err
15998 } && test -s conftest.$ac_objext; then
15999 cat >conftest.$ac_ext <<_ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h. */
16006 /* Override any GCC internal prototype to avoid an error.
16007 Use char because int might match the return type of a GCC
16008 builtin and then its argument prototype would still apply. */
16012 char _Xsetlocale ();
16016 return _Xsetlocale ();
16021 rm -f conftest.$ac_objext conftest$ac_exeext
16022 if { (ac_try="$ac_link"
16023 case "(($ac_try" in
16024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16025 *) ac_try_echo
=$ac_try;;
16027 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16028 $as_echo "$ac_try_echo") >&5
16029 (eval "$ac_link") 2>conftest.er1
16031 grep -v '^ *+' conftest.er1
>conftest.err
16033 cat conftest.err
>&5
16034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } && {
16036 test -z "$ac_c_werror_flag" ||
16037 test ! -s conftest.err
16038 } && test -s conftest
$ac_exeext && {
16039 test "$cross_compiling" = yes ||
16040 $as_test_x conftest
$ac_exeext
16042 { $as_echo "$as_me:$LINENO: result: yes" >&5
16043 $as_echo "yes" >&6; }
16044 cat >>confdefs.h
<<\_ACEOF
16049 $as_echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.
$ac_ext >&5
16052 { $as_echo "$as_me:$LINENO: result: no" >&5
16053 $as_echo "no" >&6; }
16056 rm -rf conftest.dSYM
16057 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16058 conftest
$ac_exeext conftest.
$ac_ext
16060 $as_echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.
$ac_ext >&5
16063 { $as_echo "$as_me:$LINENO: result: no" >&5
16064 $as_echo "no" >&6; }
16067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16069 CFLAGS
=$cflags_save
16070 LDFLAGS
=$ldflags_save
16073 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16074 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16075 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16076 $as_echo_n "(cached) " >&6
16078 ac_check_lib_save_LIBS
=$LIBS
16079 LIBS
="-lxpg4 $LIBS"
16080 cat >conftest.
$ac_ext <<_ACEOF
16083 cat confdefs.h
>>conftest.
$ac_ext
16084 cat >>conftest.
$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16087 /* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
16093 char _xpg4_setrunelocale ();
16097 return _xpg4_setrunelocale ();
16102 rm -f conftest.
$ac_objext conftest
$ac_exeext
16103 if { (ac_try
="$ac_link"
16104 case "(($ac_try" in
16105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16109 $as_echo "$ac_try_echo") >&5
16110 (eval "$ac_link") 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest$ac_exeext && {
16120 test "$cross_compiling" = yes ||
16121 $as_test_x conftest$ac_exeext
16123 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16125 $as_echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16128 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16131 rm -rf conftest.dSYM
16132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16133 conftest$ac_exeext conftest.$ac_ext
16134 LIBS=$ac_check_lib_save_LIBS
16136 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16137 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16138 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16139 LIBS="$LIBS -lxpg4"
16143 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16144 $as_echo_n "checking how to create tags... " >&6; }
16145 test -f tags && mv tags tags.save
16146 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16147 TAGPRG="ctags -I INIT+ --fields=+S"
16150 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16151 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16152 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16153 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16154 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16155 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16156 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16158 test -f tags.save && mv tags.save tags
16159 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16160 $as_echo "$TAGPRG" >&6; }
16162 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16163 $as_echo_n "checking how to run man with a section nr... " >&6; }
16165 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16166 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16167 $as_echo "$MANDEF" >&6; }
16168 if test "$MANDEF" = "man -s"; then
16169 cat >>confdefs.h <<\_ACEOF
16175 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16176 $as_echo_n "checking --disable-nls argument... " >&6; }
16177 # Check whether --enable-nls was given.
16178 if test "${enable_nls+set}" = set; then
16179 enableval=$enable_nls;
16185 if test "$enable_nls" = "yes"; then
16186 { $as_echo "$as_me:$LINENO: result: no" >&5
16187 $as_echo "no" >&6; }
16189 INSTALL_LANGS=install-languages
16191 INSTALL_TOOL_LANGS=install-tool-languages
16194 # Extract the first word of "msgfmt", so it can be a program name with args.
16195 set dummy msgfmt; ac_word=$2
16196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16197 $as_echo_n "checking for $ac_word... " >&6; }
16198 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16199 $as_echo_n "(cached) " >&6
16201 if test -n "$MSGFMT"; then
16202 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16205 for as_dir in $PATH
16208 test -z "$as_dir" && as_dir=.
16209 for ac_exec_ext in '' $ac_executable_extensions; do
16210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16211 ac_cv_prog_MSGFMT="msgfmt"
16212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16221 MSGFMT=$ac_cv_prog_MSGFMT
16222 if test -n "$MSGFMT"; then
16223 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16224 $as_echo "$MSGFMT" >&6; }
16226 { $as_echo "$as_me:$LINENO: result: no" >&5
16227 $as_echo "no" >&6; }
16231 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16232 $as_echo_n "checking for NLS... " >&6; }
16233 if test -f po/Makefile; then
16235 if test -n "$MSGFMT"; then
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 #include <libintl.h>
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16255 *) ac_try_echo
=$ac_try;;
16257 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16258 $as_echo "$ac_try_echo") >&5
16259 (eval "$ac_link") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1
>conftest.err
16263 cat conftest.err
>&5
16264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest
$ac_exeext && {
16269 test "$cross_compiling" = yes ||
16270 $as_test_x conftest
$ac_exeext
16272 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16273 $as_echo "gettext() works" >&6; }; have_gettext
="yes"
16275 $as_echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.
$ac_ext >&5
16279 LIBS
="$LIBS -lintl"
16280 cat >conftest.
$ac_ext <<_ACEOF
16283 cat confdefs.h
>>conftest.
$ac_ext
16284 cat >>conftest.
$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <libintl.h>
16295 rm -f conftest.
$ac_objext conftest
$ac_exeext
16296 if { (ac_try
="$ac_link"
16297 case "(($ac_try" in
16298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16302 $as_echo "$ac_try_echo") >&5
16303 (eval "$ac_link") 2>conftest.er1
16305 grep -v '^ *+' conftest.er1 >conftest.err
16307 cat conftest.err >&5
16308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest$ac_exeext && {
16313 test "$cross_compiling" = yes ||
16314 $as_test_x conftest$ac_exeext
16316 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16317 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16323 $as_echo "gettext() doesn't work" >&6; };
16327 rm -rf conftest.dSYM
16328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16329 conftest$ac_exeext conftest.$ac_ext
16332 rm -rf conftest.dSYM
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16336 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16337 $as_echo "msgfmt not found - disabled" >&6; };
16339 if test $have_gettext = "yes"; then
16340 cat >>confdefs.h <<\_ACEOF
16341 #define HAVE_GETTEXT 1
16347 for ac_func in bind_textdomain_codeset
16349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16351 $as_echo_n "checking for $ac_func... " >&6; }
16352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16353 $as_echo_n "(cached) " >&6
16355 cat >conftest.$ac_ext <<_ACEOF
16358 cat confdefs.h >>conftest.$ac_ext
16359 cat >>conftest.$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16363 #define $ac_func innocuous_$ac_func
16365 /* System header to define __stub macros and hopefully few prototypes,
16366 which can conflict with char $ac_func (); below.
16367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16368 <limits.h> exists even on freestanding compilers. */
16371 # include <limits.h>
16373 # include <assert.h>
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16385 /* The GNU C library defines this for functions which it implements
16386 to always fail with ENOSYS. Some functions are actually named
16387 something starting with __ and the normal name is an alias. */
16388 #if defined __stub_$ac_func || defined __stub___$ac_func
16395 return $ac_func ();
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (ac_try="$ac_link"
16402 case "(($ac_try" in
16403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16404 *) ac_try_echo
=$ac_try;;
16406 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16407 $as_echo "$ac_try_echo") >&5
16408 (eval "$ac_link") 2>conftest.er1
16410 grep -v '^ *+' conftest.er1
>conftest.err
16412 cat conftest.err
>&5
16413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } && {
16415 test -z "$ac_c_werror_flag" ||
16416 test ! -s conftest.err
16417 } && test -s conftest
$ac_exeext && {
16418 test "$cross_compiling" = yes ||
16419 $as_test_x conftest
$ac_exeext
16421 eval "$as_ac_var=yes"
16423 $as_echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.
$ac_ext >&5
16426 eval "$as_ac_var=no"
16429 rm -rf conftest.dSYM
16430 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16431 conftest
$ac_exeext conftest.
$ac_ext
16433 ac_res
=`eval 'as_val=${'$as_ac_var'}
16434 $as_echo "$as_val"'`
16435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16436 $as_echo "$ac_res" >&6; }
16437 as_val
=`eval 'as_val=${'$as_ac_var'}
16438 $as_echo "$as_val"'`
16439 if test "x$as_val" = x
""yes; then
16440 cat >>confdefs.h
<<_ACEOF
16441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16447 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16448 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16449 cat >conftest.
$ac_ext <<_ACEOF
16452 cat confdefs.h
>>conftest.
$ac_ext
16453 cat >>conftest.
$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455 #include <libintl.h>
16456 extern int _nl_msg_cat_cntr;
16460 ++_nl_msg_cat_cntr;
16465 rm -f conftest.
$ac_objext conftest
$ac_exeext
16466 if { (ac_try
="$ac_link"
16467 case "(($ac_try" in
16468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16472 $as_echo "$ac_try_echo") >&5
16473 (eval "$ac_link") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest$ac_exeext && {
16483 test "$cross_compiling" = yes ||
16484 $as_test_x conftest$ac_exeext
16486 { $as_echo "$as_me:$LINENO: result: yes" >&5
16487 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16488 #define HAVE_NL_MSG_CAT_CNTR 1
16492 $as_echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 { $as_echo "$as_me:$LINENO: result: no" >&5
16496 $as_echo "no" >&6; }
16499 rm -rf conftest.dSYM
16500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16501 conftest$ac_exeext conftest.$ac_ext
16504 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16505 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16508 { $as_echo "$as_me:$LINENO: result: yes" >&5
16509 $as_echo "yes" >&6; }
16512 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16513 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16514 $as_echo_n "checking for dlfcn.h... " >&6; }
16515 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16516 $as_echo_n "(cached) " >&6
16518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16519 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16521 # Is the header compilable?
16522 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16523 $as_echo_n "checking dlfcn.h usability... " >&6; }
16524 cat >conftest.$ac_ext <<_ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 $ac_includes_default
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
16551 ac_header_compiler
=yes
16553 $as_echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.
$ac_ext >&5
16556 ac_header_compiler
=no
16559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16561 $as_echo "$ac_header_compiler" >&6; }
16563 # Is the header present?
16564 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16565 $as_echo_n "checking dlfcn.h presence... " >&6; }
16566 cat >conftest.
$ac_ext <<_ACEOF
16569 cat confdefs.h
>>conftest.
$ac_ext
16570 cat >>conftest.
$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16574 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16575 case "(($ac_try" in
16576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16580 $as_echo "$ac_try_echo") >&5
16581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } >/dev/null && {
16588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16591 ac_header_preproc=yes
16593 $as_echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_header_preproc=no
16599 rm -f conftest.err conftest.$ac_ext
16600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16601 $as_echo "$ac_header_preproc" >&6; }
16603 # So? What about this header?
16604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16606 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16607 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16608 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16609 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16610 ac_header_preproc=yes
16613 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16614 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16615 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16616 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16617 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16618 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16619 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16620 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16621 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16622 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16623 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16624 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16628 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16629 $as_echo_n "checking for dlfcn.h... " >&6; }
16630 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16631 $as_echo_n "(cached) " >&6
16633 ac_cv_header_dlfcn_h=$ac_header_preproc
16635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16636 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16639 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16642 if test "${ac_cv_header_dl_h+set}" = set; then
16643 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16644 $as_echo_n "checking for dl.h... " >&6; }
16645 if test "${ac_cv_header_dl_h+set}" = set; then
16646 $as_echo_n "(cached) " >&6
16648 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16649 $as_echo "$ac_cv_header_dl_h" >&6; }
16651 # Is the header compilable?
16652 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16653 $as_echo_n "checking dl.h usability... " >&6; }
16654 cat >conftest.$ac_ext <<_ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16660 $ac_includes_default
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16667 *) ac_try_echo
=$ac_try;;
16669 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16670 $as_echo "$ac_try_echo") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1
>conftest.err
16675 cat conftest.err
>&5
16676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest.
$ac_objext; then
16681 ac_header_compiler
=yes
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.
$ac_ext >&5
16686 ac_header_compiler
=no
16689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16691 $as_echo "$ac_header_compiler" >&6; }
16693 # Is the header present?
16694 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16695 $as_echo_n "checking dl.h presence... " >&6; }
16696 cat >conftest.
$ac_ext <<_ACEOF
16699 cat confdefs.h
>>conftest.
$ac_ext
16700 cat >>conftest.
$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16704 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16705 case "(($ac_try" in
16706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16710 $as_echo "$ac_try_echo") >&5
16711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16713 grep -v '^ *+' conftest.er1 >conftest.err
16715 cat conftest.err >&5
16716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); } >/dev/null && {
16718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16719 test ! -s conftest.err
16721 ac_header_preproc=yes
16723 $as_echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 ac_header_preproc=no
16729 rm -f conftest.err conftest.$ac_ext
16730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16731 $as_echo "$ac_header_preproc" >&6; }
16733 # So? What about this header?
16734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16736 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16737 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16738 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16739 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16740 ac_header_preproc=yes
16743 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16744 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16745 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16746 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16747 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16748 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16749 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16750 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16751 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16752 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16753 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16754 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16758 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16759 $as_echo_n "checking for dl.h... " >&6; }
16760 if test "${ac_cv_header_dl_h+set}" = set; then
16761 $as_echo_n "(cached) " >&6
16763 ac_cv_header_dl_h=$ac_header_preproc
16765 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16766 $as_echo "$ac_cv_header_dl_h" >&6; }
16769 if test "x$ac_cv_header_dl_h" = x""yes; then
16777 if test x${DLL} = xdlfcn.h; then
16779 cat >>confdefs.h <<\_ACEOF
16780 #define HAVE_DLFCN_H 1
16783 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16784 $as_echo_n "checking for dlopen()... " >&6; }
16785 cat >conftest.$ac_ext <<_ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16796 extern void* dlopen();
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16807 *) ac_try_echo
=$ac_try;;
16809 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811 (eval "$ac_link") 2>conftest.er1
16813 grep -v '^ *+' conftest.er1
>conftest.err
16815 cat conftest.err
>&5
16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } && {
16818 test -z "$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 } && test -s conftest
$ac_exeext && {
16821 test "$cross_compiling" = yes ||
16822 $as_test_x conftest
$ac_exeext
16824 { $as_echo "$as_me:$LINENO: result: yes" >&5
16825 $as_echo "yes" >&6; };
16827 cat >>confdefs.h
<<\_ACEOF
16828 #define HAVE_DLOPEN 1
16832 $as_echo "$as_me: failed program was:" >&5
16833 sed 's/^/| /' conftest.
$ac_ext >&5
16835 { $as_echo "$as_me:$LINENO: result: no" >&5
16836 $as_echo "no" >&6; };
16837 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16838 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16841 cat >conftest.
$ac_ext <<_ACEOF
16844 cat confdefs.h
>>conftest.
$ac_ext
16845 cat >>conftest.
$ac_ext <<_ACEOF
16846 /* end confdefs.h. */
16852 extern void* dlopen();
16859 rm -f conftest.
$ac_objext conftest
$ac_exeext
16860 if { (ac_try
="$ac_link"
16861 case "(($ac_try" in
16862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16866 $as_echo "$ac_try_echo") >&5
16867 (eval "$ac_link") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } && {
16874 test -z "$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16876 } && test -s conftest$ac_exeext && {
16877 test "$cross_compiling" = yes ||
16878 $as_test_x conftest$ac_exeext
16880 { $as_echo "$as_me:$LINENO: result: yes" >&5
16881 $as_echo "yes" >&6; };
16883 cat >>confdefs.h <<\_ACEOF
16884 #define HAVE_DLOPEN 1
16888 $as_echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 { $as_echo "$as_me:$LINENO: result: no" >&5
16892 $as_echo "no" >&6; };
16896 rm -rf conftest.dSYM
16897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16898 conftest$ac_exeext conftest.$ac_ext
16901 rm -rf conftest.dSYM
16902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903 conftest$ac_exeext conftest.$ac_ext
16904 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16905 $as_echo_n "checking for dlsym()... " >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h. */
16917 extern void* dlsym();
16924 rm -f conftest.$ac_objext conftest$ac_exeext
16925 if { (ac_try="$ac_link"
16926 case "(($ac_try" in
16927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16928 *) ac_try_echo
=$ac_try;;
16930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16931 $as_echo "$ac_try_echo") >&5
16932 (eval "$ac_link") 2>conftest.er1
16934 grep -v '^ *+' conftest.er1
>conftest.err
16936 cat conftest.err
>&5
16937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); } && {
16939 test -z "$ac_c_werror_flag" ||
16940 test ! -s conftest.err
16941 } && test -s conftest
$ac_exeext && {
16942 test "$cross_compiling" = yes ||
16943 $as_test_x conftest
$ac_exeext
16945 { $as_echo "$as_me:$LINENO: result: yes" >&5
16946 $as_echo "yes" >&6; };
16948 cat >>confdefs.h
<<\_ACEOF
16949 #define HAVE_DLSYM 1
16953 $as_echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.
$ac_ext >&5
16956 { $as_echo "$as_me:$LINENO: result: no" >&5
16957 $as_echo "no" >&6; };
16958 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16959 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16962 cat >conftest.
$ac_ext <<_ACEOF
16965 cat confdefs.h
>>conftest.
$ac_ext
16966 cat >>conftest.
$ac_ext <<_ACEOF
16967 /* end confdefs.h. */
16973 extern void* dlsym();
16980 rm -f conftest.
$ac_objext conftest
$ac_exeext
16981 if { (ac_try
="$ac_link"
16982 case "(($ac_try" in
16983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16987 $as_echo "$ac_try_echo") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && {
16995 test -z "$ac_c_werror_flag" ||
16996 test ! -s conftest.err
16997 } && test -s conftest$ac_exeext && {
16998 test "$cross_compiling" = yes ||
16999 $as_test_x conftest$ac_exeext
17001 { $as_echo "$as_me:$LINENO: result: yes" >&5
17002 $as_echo "yes" >&6; };
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_DLSYM 1
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17012 { $as_echo "$as_me:$LINENO: result: no" >&5
17013 $as_echo "no" >&6; };
17017 rm -rf conftest.dSYM
17018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17019 conftest$ac_exeext conftest.$ac_ext
17022 rm -rf conftest.dSYM
17023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17024 conftest$ac_exeext conftest.$ac_ext
17025 elif test x${DLL} = xdl.h; then
17027 cat >>confdefs.h <<\_ACEOF
17028 #define HAVE_DL_H 1
17031 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17032 $as_echo_n "checking for shl_load()... " >&6; }
17033 cat >conftest.$ac_ext <<_ACEOF
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17044 extern void* shl_load();
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17055 *) ac_try_echo
=$ac_try;;
17057 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17058 $as_echo "$ac_try_echo") >&5
17059 (eval "$ac_link") 2>conftest.er1
17061 grep -v '^ *+' conftest.er1
>conftest.err
17063 cat conftest.err
>&5
17064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest
$ac_exeext && {
17069 test "$cross_compiling" = yes ||
17070 $as_test_x conftest
$ac_exeext
17072 { $as_echo "$as_me:$LINENO: result: yes" >&5
17073 $as_echo "yes" >&6; };
17075 cat >>confdefs.h
<<\_ACEOF
17076 #define HAVE_SHL_LOAD 1
17080 $as_echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.
$ac_ext >&5
17083 { $as_echo "$as_me:$LINENO: result: no" >&5
17084 $as_echo "no" >&6; };
17085 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17086 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17089 cat >conftest.
$ac_ext <<_ACEOF
17092 cat confdefs.h
>>conftest.
$ac_ext
17093 cat >>conftest.
$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17100 extern void* shl_load();
17107 rm -f conftest.
$ac_objext conftest
$ac_exeext
17108 if { (ac_try
="$ac_link"
17109 case "(($ac_try" in
17110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17114 $as_echo "$ac_try_echo") >&5
17115 (eval "$ac_link") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest$ac_exeext && {
17125 test "$cross_compiling" = yes ||
17126 $as_test_x conftest$ac_exeext
17128 { $as_echo "$as_me:$LINENO: result: yes" >&5
17129 $as_echo "yes" >&6; };
17131 cat >>confdefs.h <<\_ACEOF
17132 #define HAVE_SHL_LOAD 1
17136 $as_echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 { $as_echo "$as_me:$LINENO: result: no" >&5
17140 $as_echo "no" >&6; };
17144 rm -rf conftest.dSYM
17145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146 conftest$ac_exeext conftest.$ac_ext
17149 rm -rf conftest.dSYM
17150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17151 conftest$ac_exeext conftest.$ac_ext
17154 for ac_header in setjmp.h
17156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17159 $as_echo_n "checking for $ac_header... " >&6; }
17160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17161 $as_echo_n "(cached) " >&6
17163 ac_res=`eval 'as_val=${'$as_ac_Header'}
17164 $as_echo "$as_val"'`
17165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17166 $as_echo "$ac_res" >&6; }
17168 # Is the header compilable?
17169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17170 $as_echo_n "checking $ac_header usability... " >&6; }
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17178 #include <$ac_header>
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17184 *) ac_try_echo
=$ac_try;;
17186 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17187 $as_echo "$ac_try_echo") >&5
17188 (eval "$ac_compile") 2>conftest.er1
17190 grep -v '^ *+' conftest.er1
>conftest.err
17192 cat conftest.err
>&5
17193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } && {
17195 test -z "$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17197 } && test -s conftest.
$ac_objext; then
17198 ac_header_compiler
=yes
17200 $as_echo "$as_me: failed program was:" >&5
17201 sed 's/^/| /' conftest.
$ac_ext >&5
17203 ac_header_compiler
=no
17206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17208 $as_echo "$ac_header_compiler" >&6; }
17210 # Is the header present?
17211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17212 $as_echo_n "checking $ac_header presence... " >&6; }
17213 cat >conftest.
$ac_ext <<_ACEOF
17216 cat confdefs.h
>>conftest.
$ac_ext
17217 cat >>conftest.
$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219 #include <$ac_header>
17221 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17222 case "(($ac_try" in
17223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17224 *) ac_try_echo=$ac_try;;
17226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17227 $as_echo "$ac_try_echo") >&5
17228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1 >conftest.err
17232 cat conftest.err >&5
17233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } >/dev/null && {
17235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17238 ac_header_preproc=yes
17240 $as_echo "$as_me: failed program was:" >&5
17241 sed 's/^/| /' conftest.$ac_ext >&5
17243 ac_header_preproc=no
17246 rm -f conftest.err conftest.$ac_ext
17247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17248 $as_echo "$ac_header_preproc" >&6; }
17250 # So? What about this header?
17251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17257 ac_header_preproc=yes
17260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17276 $as_echo_n "checking for $ac_header... " >&6; }
17277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17278 $as_echo_n "(cached) " >&6
17280 eval "$as_ac_Header=\$ac_header_preproc"
17282 ac_res=`eval 'as_val=${'$as_ac_Header'}
17283 $as_echo "$as_val"'`
17284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17285 $as_echo "$ac_res" >&6; }
17288 as_val=`eval 'as_val=${'$as_ac_Header'}
17289 $as_echo "$as_val"'`
17290 if test "x$as_val" = x""yes; then
17291 cat >>confdefs.h <<_ACEOF
17292 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17300 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17301 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17302 LIBS=`echo $LIBS |
sed s
/-ldl//`
17303 PERL_LIBS="$PERL_LIBS -ldl"
17307 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17308 && test "x$GUITYPE" != "xCARBONGUI"; then
17309 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17310 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17311 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17312 || test "x$features" = "xhuge"; then
17313 LIBS="$LIBS -framework Carbon"
17314 { $as_echo "$as_me:$LINENO: result: yes" >&5
17315 $as_echo "yes" >&6; }
17317 { $as_echo "$as_me:$LINENO: result: no" >&5
17318 $as_echo "no" >&6; }
17321 if test "x$MACARCH" = "xboth"; then
17322 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17325 DEPEND_CFLAGS_FILTER=
17326 if test "$GCC" = yes; then
17327 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17328 $as_echo_n "checking for GCC 3 or later... " >&6; }
17329 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
17330 if test "$gccmajor" -gt "2"; then
17331 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17332 { $as_echo "$as_me:$LINENO: result: yes" >&5
17333 $as_echo "yes" >&6; }
17335 { $as_echo "$as_me:$LINENO: result: no" >&5
17336 $as_echo "no" >&6; }
17338 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17339 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17340 if test "$gccmajor" -gt "3"; then
17341 CFLAGS=`echo "$CFLAGS" |
sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17342 { $as_echo "$as_me:$LINENO: result: yes" >&5
17343 $as_echo "yes" >&6; }
17345 { $as_echo "$as_me:$LINENO: result: no" >&5
17346 $as_echo "no" >&6; }
17351 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17353 cat >confcache <<\_ACEOF
17354 # This file is a shell script that caches the results of configure
17355 # tests run on this system so they can be shared between configure
17356 # scripts and configure runs, see configure's option --config-cache.
17357 # It is not useful on other systems. If it contains results you don't
17358 # want to keep, you may remove or edit it.
17360 # config.status only pays attention to the cache file if you give it
17361 # the --recheck option to rerun configure.
17363 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
17364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17365 # following values.
17369 # The following way of writing the cache mishandles newlines in values,
17370 # but we know of no workaround that is simple, portable, and efficient.
17371 # So, we kill variables containing newlines.
17372 # Ultrix sh set writes to stderr and can't be redirected directly,
17373 # and sets the high bit in the cache file unless we assign to the vars.
17375 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17376 eval ac_val
=\$
$ac_var
17380 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17384 _ | IFS | as_nl
) ;; #(
17385 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17386 *) $as_unset $ac_var ;;
17392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17393 *${as_nl}ac_space
=\
*)
17394 # `set' does not quote correctly, so add quotes (double-quote
17395 # substitution turns \\\\ into \\, and sed turns \\ into \).
17398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17401 # `set' quotes correctly as required by POSIX, so do not add quotes.
17402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17415 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17416 if test -w "$cache_file"; then
17417 test "x$cache_file" != "x/dev/null" &&
17418 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17419 $as_echo "$as_me: updating cache $cache_file" >&6;}
17420 cat confcache
>$cache_file
17422 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17423 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17428 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17429 # Let make expand exec_prefix.
17430 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17432 DEFS
=-DHAVE_CONFIG_H
17436 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17437 # 1. Remove the extension, and $U if already installed.
17438 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17439 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17440 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17441 # will be set to the directory where LIBOBJS objects are built.
17442 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17443 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17445 LIBOBJS
=$ac_libobjs
17447 LTLIBOBJS
=$ac_ltlibobjs
17451 : ${CONFIG_STATUS=./config.status}
17453 ac_clean_files_save
=$ac_clean_files
17454 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17455 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17456 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17457 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17459 # Generated by $as_me.
17460 # Run this file to recreate the current configuration.
17461 # Compiler output produced by configure, useful for debugging
17462 # configure, is in config.log if it exists.
17465 ac_cs_recheck=false
17467 SHELL=\${CONFIG_SHELL-$SHELL}
17470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17471 ## --------------------- ##
17472 ## M4sh Initialization. ##
17473 ## --------------------- ##
17475 # Be more Bourne compatible
17476 DUALCASE
=1; export DUALCASE
# for MKS sh
17477 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17480 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17481 # is contrary to our usage. Disable this feature.
17482 alias -g '${1+"$@"}'='"$@"'
17483 setopt NO_GLOB_SUBST
17485 case `(set -o) 2>/dev/null` in
17486 *posix
*) set -o posix
;;
17495 # Avoid depending upon Character Ranges.
17496 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17497 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17498 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17499 as_cr_digits
='0123456789'
17500 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17505 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17506 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17507 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17509 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17510 as_echo='printf %s
\n'
17511 as_echo_n='printf %s
'
17513 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17514 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17515 as_echo_n='/usr
/ucb
/echo -n'
17517 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17518 as_echo_n_body='eval
17522 expr "X$arg" : "X\\(.*\\)$as_nl";
17523 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17525 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17527 export as_echo_n_body
17528 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17530 export as_echo_body
17531 as_echo='sh
-c $as_echo_body as_echo
'
17534 # The user is always right.
17535 if test "${PATH_SEPARATOR+set}" != set; then
17537 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17538 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17543 # Support unset when possible.
17544 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17552 # We need space, tab and new line, in precisely that order. Quoting is
17553 # there to prevent editors from complaining about space-tab.
17554 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17555 # splitting by setting IFS to empty value.)
17558 # Find who we are. Look in the path if we contain no directory separator.
17560 *[\\/]* ) as_myself=$0 ;;
17561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17562 for as_dir in $PATH
17565 test -z "$as_dir" && as_dir=.
17566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17572 # We did not find ourselves, most probably we were run as `sh COMMAND'
17573 # in which case we are not to be found in the path.
17574 if test "x$as_myself" = x
; then
17577 if test ! -f "$as_myself"; then
17578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17579 { (exit 1); exit 1; }
17582 # Work around bugs in pre-3.0 UWIN ksh.
17583 for as_var
in ENV MAIL MAILPATH
17584 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17596 # Required to use basename.
17597 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17598 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17604 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17605 as_basename
=basename
17611 # Name of the executable.
17612 as_me
=`$as_basename -- "$0" ||
17613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17614 X"$0" : 'X\(//\)$' \| \
17615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17617 sed '/^.*\/\([^/][^/]*\)\/*$/{
17636 as_lineno_1
=$LINENO
17637 as_lineno_2
=$LINENO
17638 test "x$as_lineno_1" != "x$as_lineno_2" &&
17639 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17642 # uniformly replaced by the line number. The first 'sed' inserts a
17643 # line-number line after each line using $LINENO; the second 'sed'
17644 # does the real work. The second script uses 'N' to pair each
17645 # line-number line with the line containing $LINENO, and appends
17646 # trailing '-' during substitution so that $LINENO is not a special
17647 # case at line end.
17648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17649 # scripts with optimization help from Paolo Bonzini. Blame Lee
17650 # E. McMahon (1931-1989) for sed's syntax. :-)
17662 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17665 ' >$as_me.lineno
&&
17666 chmod +x
"$as_me.lineno" ||
17667 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17668 { (exit 1); exit 1; }; }
17670 # Don't try to exec as it changes $[0], causing all sort of problems
17671 # (the dirname of $[0] is not the place where we might find the
17672 # original and so on. Autoconf is especially sensitive to this).
17673 .
"./$as_me.lineno"
17674 # Exit status is that of the last command.
17679 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17685 ECHO_C
= ECHO_N
= ECHO_T
=
17686 case `echo -n x` in
17688 case `echo 'x\c'` in
17689 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17695 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17696 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17702 rm -f conf$$ conf$$.exe conf$$.
file
17703 if test -d conf$$.dir
; then
17704 rm -f conf$$.dir
/conf$$.
file
17707 mkdir conf$$.dir
2>/dev
/null
17709 if (echo >conf$$.
file) 2>/dev
/null
; then
17710 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17712 # ... but there are two gotchas:
17713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17715 # In both cases, we have to default to `cp -p'.
17716 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17718 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17726 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17727 rmdir conf$$.dir
2>/dev
/null
17729 if mkdir
-p .
2>/dev
/null
; then
17732 test -d .
/-p && rmdir .
/-p
17736 if test -x / >/dev
/null
2>&1; then
17737 as_test_x
='test -x'
17739 if ls -dL / >/dev
/null
2>&1; then
17746 if test -d "$1"; then
17752 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17753 ???[sx]*):;;*)false;;esac;fi
17757 as_executable_p
=$as_test_x
17759 # Sed expression to map a string onto a valid CPP name.
17760 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17762 # Sed expression to map a string onto a valid variable name.
17763 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17768 # Save the log message, to keep $[0] and so on meaningful, and to
17769 # report actual input values of CONFIG_FILES etc. instead of their
17770 # values after options handling.
17772 This file was extended by $as_me, which was
17773 generated by GNU Autoconf 2.63. Invocation command line was
17775 CONFIG_FILES = $CONFIG_FILES
17776 CONFIG_HEADERS = $CONFIG_HEADERS
17777 CONFIG_LINKS = $CONFIG_LINKS
17778 CONFIG_COMMANDS = $CONFIG_COMMANDS
17781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17786 case $ac_config_files in *"
17787 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17790 case $ac_config_headers in *"
17791 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 # Files that config.status was made for.
17797 config_files="$ac_config_files"
17798 config_headers="$ac_config_headers"
17802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17804 \`$as_me' instantiates files from templates according to the
17805 current configuration.
17807 Usage: $0 [OPTION]... [FILE]...
17809 -h, --help print this help, then exit
17810 -V, --version print version number and configuration settings, then exit
17811 -q, --quiet, --silent
17812 do not print progress messages
17813 -d, --debug don't remove temporary files
17814 --recheck update $as_me by reconfiguring in the same conditions
17815 --file=FILE[:TEMPLATE]
17816 instantiate the configuration file FILE
17817 --header=FILE[:TEMPLATE]
17818 instantiate the configuration header FILE
17820 Configuration files:
17823 Configuration headers:
17826 Report bugs to <bug-autoconf@gnu.org>."
17829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17832 configured by $0, generated by GNU Autoconf 2.63,
17833 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17835 Copyright (C) 2008 Free Software Foundation, Inc.
17836 This config.status script is free software; the Free Software Foundation
17837 gives unlimited permission to copy, distribute and modify it."
17842 test -n "\$AWK" || AWK=awk
17845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17846 # The default lists apply if the user does not specify any file.
17852 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17853 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17864 # Handling of the options.
17865 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17867 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17868 $as_echo "$ac_cs_version"; exit ;;
17869 --debug |
--debu |
--deb |
--de |
--d |
-d )
17871 --file |
--fil |
--fi |
--f )
17874 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17876 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17877 ac_need_defaults
=false
;;
17878 --header |
--heade |
--head |
--hea )
17881 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17883 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17884 ac_need_defaults
=false
;;
17886 # Conflict between --help and --header
17887 { $as_echo "$as_me: error: ambiguous option: $1
17888 Try \`$0 --help' for more information." >&2
17889 { (exit 1); exit 1; }; };;
17890 --help |
--hel |
-h )
17891 $as_echo "$ac_cs_usage"; exit ;;
17892 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17893 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17896 # This is an error.
17897 -*) { $as_echo "$as_me: error: unrecognized option: $1
17898 Try \`$0 --help' for more information." >&2
17899 { (exit 1); exit 1; }; } ;;
17901 *) ac_config_targets
="$ac_config_targets $1"
17902 ac_need_defaults
=false
;;
17908 ac_configure_extra_args
=
17910 if $ac_cs_silent; then
17912 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917 if \$ac_cs_recheck; then
17918 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17920 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17921 CONFIG_SHELL='$SHELL'
17922 export CONFIG_SHELL
17927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17928 exec 5>>auto
/config.log
17931 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17932 ## Running $as_me. ##
17938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17943 # Handling of arguments.
17944 for ac_config_target
in $ac_config_targets
17946 case $ac_config_target in
17947 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17948 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17950 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17951 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17952 { (exit 1); exit 1; }; };;
17957 # If the user did not use the arguments to specify the items to instantiate,
17958 # then the envvar interface is used. Set only those that are not.
17959 # We use the long form for the default assignment because of an extremely
17960 # bizarre bug on SunOS 4.1.3.
17961 if $ac_need_defaults; then
17962 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17963 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17966 # Have a temporary directory for convenience. Make it in the build tree
17967 # simply because there is no reason against having it here, and in addition,
17968 # creating and moving files from /tmp can sometimes cause problems.
17969 # Hook for its removal unless debugging.
17970 # Note that there is a small window in which the directory will not be cleaned:
17971 # after its creation but before its name has been assigned to `$tmp'.
17975 trap 'exit_status=$?
17976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17978 trap '{ (exit 1); exit 1; }' 1 2 13 15
17980 # Create a (secure) tmp directory for tmp files.
17983 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17984 test -n "$tmp" && test -d "$tmp"
17987 tmp
=.
/conf$$
-$RANDOM
17988 (umask 077 && mkdir
"$tmp")
17991 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17992 { (exit 1); exit 1; }
17995 # Set up the scripts for CONFIG_FILES section.
17996 # No need to generate them if there are no CONFIG_FILES.
17997 # This happens for instance with `./config.status config.h'.
17998 if test -n "$CONFIG_FILES"; then
18002 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18003 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18006 ac_cs_awk_cr
=$ac_cr
18009 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18014 echo "cat >conf$$subs.awk <<_ACEOF" &&
18015 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18017 } >conf$$subs.sh ||
18018 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18019 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18020 { (exit 1); exit 1; }; }
18021 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18023 for ac_last_try in false false false false false :; do
18024 . ./conf$$subs.sh ||
18025 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18026 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18027 { (exit 1); exit 1; }; }
18029 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18030 if test $ac_delim_n = $ac_delim_num; then
18032 elif $ac_last_try; then
18033 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18034 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18035 { (exit 1); exit 1; }; }
18037 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18040 rm -f conf$$subs.sh
18042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18043 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18047 s/^/S["/; s
/!.
*/"]=/
18057 s/\(.\{148\}\).*/\1/
18059 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18064 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18071 s/\(.\{148\}\).*/\1/
18073 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18077 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18082 ' <conf$$subs.awk | sed '
18087 ' >>$CONFIG_STATUS || ac_write_fail=1
18088 rm -f conf$$subs.awk
18089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18091 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18092 for (key in S) S_is_set[key] = 1
18098 nfields = split(line, field, "@
")
18100 len = length(field[1])
18101 for (i = 2; i < nfields; i++) {
18103 keylen = length(key)
18104 if (S_is_set[key]) {
18106 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18107 len += length(value) + length(field[++i])
18118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18119 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18120 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18123 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18124 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
18125 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
18126 { (exit 1); exit 1; }; }
18129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18131 # trailing colons and then remove the whole line if VPATH becomes empty
18132 # (actually we leave an empty line to preserve line numbers).
18133 if test "x
$srcdir" = x.; then
18134 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18135 s/:*\$(srcdir):*/:/
18136 s/:*\${srcdir}:*/:/
18138 s/^\([^=]*=[ ]*\):*/\1/
18144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18145 fi # test -n "$CONFIG_FILES"
18147 # Set up the scripts for CONFIG_HEADERS section.
18148 # No need to generate them if there are no CONFIG_HEADERS.
18149 # This happens for instance with `./config.status Makefile'.
18150 if test -n "$CONFIG_HEADERS"; then
18151 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18155 # Transform confdefs.h into an awk script `defines.awk', embedded as
18156 # here-document in config.status, that substitutes the proper values into
18157 # config.h.in to produce config.h.
18159 # Create a delimiter string that does not exist in confdefs.h, to ease
18160 # handling of long lines.
18162 for ac_last_try in false false :; do
18163 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18164 if test -z "$ac_t"; then
18166 elif $ac_last_try; then
18167 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18168 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18169 { (exit 1); exit 1; }; }
18171 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18175 # For the awk script, D is an array of macro values keyed by name,
18176 # likewise P contains macro parameters if any. Preserve backslash
18177 # newline sequences.
18179 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18181 s/.\{148\}/&'"$ac_delim"'/g
18184 s/^[ ]*#[ ]*define[ ][ ]*/ /
18191 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18193 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18197 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18198 D["\
1"]=" \
3\\\\\\n
"\\/p
18200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18205 s/.\{148\}/&'"$ac_delim"'/g
18210 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18213 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18215 ' <confdefs.h | sed '
18216 s/'"$ac_delim"'/"\\\
18217 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18220 for (key in D) D_is_set[key] = 1
18223 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18225 split(line, arg, " ")
18226 if (arg[1] == "#") {
18230 defundef
= substr
(arg
[1], 2)
18233 split(mac1
, mac2
, "(") #)
18235 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18236 if (D_is_set
[macro
]) {
18237 # Preserve the white space surrounding the "#".
18238 print prefix
"define", macro P
[macro
] D
[macro
]
18241 # Replace #undef with comments. This is necessary, for example,
18242 # in the case of _POSIX_SOURCE, which is predefined and required
18243 # on some systems where configure will not decide to define it.
18244 if (defundef
== "undef") {
18245 print
"/*", prefix defundef
, macro
, "*/"
18253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18254 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18255 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18256 { (exit 1); exit 1; }; }
18257 fi # test -n "$CONFIG_HEADERS"
18260 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
18265 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18267 case $ac_mode$ac_tag in
18269 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18270 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18271 { (exit 1); exit 1; }; };;
18272 :[FH
]-) ac_tag
=-:-;;
18273 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18290 -) ac_f
="$tmp/stdin";;
18291 *) # Look for the file first in the build tree, then in the source tree
18292 # (if the path is not absolute). The absolute path cannot be DOS-style,
18293 # because $ac_f cannot contain `:'.
18297 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18299 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18300 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18301 { (exit 1); exit 1; }; };;
18303 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18304 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18307 # Let's still pretend it is `configure' which instantiates (i.e., don't
18308 # use $as_me), people would be surprised to read:
18309 # /* config.h. Generated by config.status. */
18310 configure_input
='Generated from '`
18311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18313 if test x
"$ac_file" != x-
; then
18314 configure_input
="$ac_file. $configure_input"
18315 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18316 $as_echo "$as_me: creating $ac_file" >&6;}
18318 # Neutralize special characters interpreted by sed in replacement strings.
18319 case $configure_input in #(
18320 *\
&* |
*\|
* |
*\\* )
18321 ac_sed_conf_input
=`$as_echo "$configure_input" |
18322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18323 *) ac_sed_conf_input
=$configure_input;;
18327 *:-:* |
*:-) cat >"$tmp/stdin" \
18328 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18329 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18330 { (exit 1); exit 1; }; } ;;
18335 ac_dir
=`$as_dirname -- "$ac_file" ||
18336 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18337 X"$ac_file" : 'X\(//\)[^/]' \| \
18338 X"$ac_file" : 'X\(//\)$' \| \
18339 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18340 $as_echo X"$ac_file" |
18341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18345 /^X\(\/\/\)[^/].*/{
18360 -*) as_dir
=.
/$as_dir;;
18362 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18366 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18367 *) as_qdir
=$as_dir;;
18369 as_dirs
="'$as_qdir' $as_dirs"
18370 as_dir
=`$as_dirname -- "$as_dir" ||
18371 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18372 X"$as_dir" : 'X\(//\)[^/]' \| \
18373 X"$as_dir" : 'X\(//\)$' \| \
18374 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18375 $as_echo X"$as_dir" |
18376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18380 /^X\(\/\/\)[^/].*/{
18393 test -d "$as_dir" && break
18395 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18396 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18397 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18398 { (exit 1); exit 1; }; }; }
18402 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18404 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18405 # A ".." for each directory in $ac_dir_suffix.
18406 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18407 case $ac_top_builddir_sub in
18408 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18409 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18412 ac_abs_top_builddir
=$ac_pwd
18413 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18414 # for backward compatibility:
18415 ac_top_builddir
=$ac_top_build_prefix
18418 .
) # We are building in place.
18420 ac_top_srcdir
=$ac_top_builddir_sub
18421 ac_abs_top_srcdir
=$ac_pwd ;;
18422 [\\/]* | ?
:[\\/]* ) # Absolute name.
18423 ac_srcdir
=$srcdir$ac_dir_suffix;
18424 ac_top_srcdir
=$srcdir
18425 ac_abs_top_srcdir
=$srcdir ;;
18426 *) # Relative name.
18427 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18428 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18429 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18431 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18443 # If the template does not know about datarootdir, expand it.
18444 # FIXME: This hack should be removed a few years after 2.60.
18445 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18458 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18459 *datarootdir
*) ac_datarootdir_seen
=yes;;
18460 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18461 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18462 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18465 ac_datarootdir_hack='
18466 s&@datadir@&$datadir&g
18467 s&@docdir@&$docdir&g
18468 s&@infodir@&$infodir&g
18469 s&@localedir@&$localedir&g
18470 s&@mandir@&$mandir&g
18471 s&\\\${datarootdir}&$datarootdir&g' ;;
18475 # Neutralize VPATH when `$srcdir' = `.'.
18476 # Shell code in configure.ac might set extrasub.
18477 # FIXME: do we really want to maintain this feature?
18478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18479 ac_sed_extra="$ac_vpsub
18482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18484 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18485 s|@configure_input@|
$ac_sed_conf_input|
;t t
18486 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18487 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18488 s
&@srcdir@
&$ac_srcdir&;t t
18489 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18490 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18491 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18492 s
&@builddir@
&$ac_builddir&;t t
18493 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18494 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18495 $ac_datarootdir_hack
18497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18498 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18499 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18500 { (exit 1); exit 1; }; }
18502 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18503 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18504 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18505 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18506 which seems to be undefined. Please make sure it is defined." >&5
18507 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18508 which seems to be undefined. Please make sure it is defined." >&2;}
18512 -) cat "$tmp/out" && rm -f "$tmp/out";;
18513 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18515 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18516 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18517 { (exit 1); exit 1; }; }
18523 if test x"$ac_file" != x-; then
18525 $as_echo "/* $configure_input */" \
18526 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18527 } >"$tmp/config.h" \
18528 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18529 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18530 { (exit 1); exit 1; }; }
18531 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18532 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18533 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18536 mv "$tmp/config.h" "$ac_file" \
18537 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18538 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18539 { (exit 1); exit 1; }; }
18542 $as_echo "/* $configure_input */" \
18543 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18544 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18545 $as_echo "$as_me: error: could not create -" >&2;}
18546 { (exit 1); exit 1; }; }
18556 { (exit 0); exit 0; }
18558 chmod +x $CONFIG_STATUS
18559 ac_clean_files=$ac_clean_files_save
18561 test $ac_write_fail = 0 ||
18562 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18563 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18564 { (exit 1); exit 1; }; }
18567 # configure is writing to config.log, and then calls config.status.
18568 # config.status does its own redirection, appending to config.log.
18569 # Unfortunately, on DOS this fails, as config.log is still kept open
18570 # by configure, so config.status won't be able to
write to it
; its
18571 # output is simply discarded. So we exec the FD to /dev/null,
18572 # effectively closing config.log, so it can be properly (re)opened and
18573 # appended to by config.status. When coming back to configure, we
18574 # need to make the FD available again.
18575 if test "$no_create" != yes; then
18577 ac_config_status_args
=
18578 test "$silent" = yes &&
18579 ac_config_status_args
="$ac_config_status_args --quiet"
18581 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18582 exec 5>>auto
/config.log
18583 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18584 # would make configure fail if this is the last instruction.
18585 $ac_cs_success ||
{ (exit 1); exit 1; }
18587 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18588 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18589 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}