2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
692 PYTHON_GETPATH_CFLAGS
763 program_transform_name
775 enable_option_checking
790 enable_mzschemeinterp
794 with_python_config_dir
830 ac_precious_vars
='build_alias
842 # Initialize some variables set by options.
844 ac_init_version
=false
845 ac_unrecognized_opts
=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name
=s
,x
,x
,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir
='${exec_prefix}/bin'
871 sbindir
='${exec_prefix}/sbin'
872 libexecdir
='${exec_prefix}/libexec'
873 datarootdir
='${prefix}/share'
874 datadir
='${datarootdir}'
875 sysconfdir
='${prefix}/etc'
876 sharedstatedir
='${prefix}/com'
877 localstatedir
='${prefix}/var'
878 includedir
='${prefix}/include'
879 oldincludedir
='/usr/include'
880 docdir
='${datarootdir}/doc/${PACKAGE}'
881 infodir
='${datarootdir}/info'
886 libdir
='${exec_prefix}/lib'
887 localedir
='${datarootdir}/locale'
888 mandir
='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\
$ac_option
902 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
914 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
917 -build |
--build |
--buil |
--bui |
--bu)
918 ac_prev
=build_alias
;;
919 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
920 build_alias
=$ac_optarg ;;
922 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
923 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
924 ac_prev
=cache_file
;;
925 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
926 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
927 cache_file
=$ac_optarg ;;
930 cache_file
=config.cache
;;
932 -datadir |
--datadir |
--datadi |
--datad)
934 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
935 datadir
=$ac_optarg ;;
937 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
938 |
--dataroo |
--dataro |
--datar)
939 ac_prev
=datarootdir
;;
940 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
941 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
942 datarootdir
=$ac_optarg ;;
944 -disable-* |
--disable-*)
945 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
948 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
949 { (exit 1); exit 1; }; }
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=no
;;
961 -docdir |
--docdir |
--docdi |
--doc |
--do)
963 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
966 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
968 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
971 -enable-* |
--enable-*)
972 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
976 { (exit 1); exit 1; }; }
977 ac_useropt_orig
=$ac_useropt
978 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep
=', ';;
986 eval enable_
$ac_useropt=\
$ac_optarg ;;
988 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
989 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
990 |
--exec |
--exe |
--ex)
991 ac_prev
=exec_prefix
;;
992 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
993 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
994 |
--exec=* |
--exe=* |
--ex=*)
995 exec_prefix
=$ac_optarg ;;
997 -gas |
--gas |
--ga |
--g)
998 # Obsolete; use --with-gas.
1001 -help |
--help |
--hel |
--he |
-h)
1002 ac_init_help
=long
;;
1003 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1004 ac_init_help
=recursive
;;
1005 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1006 ac_init_help
=short
;;
1008 -host |
--host |
--hos |
--ho)
1009 ac_prev
=host_alias
;;
1010 -host=* |
--host=* |
--hos=* |
--ho=*)
1011 host_alias
=$ac_optarg ;;
1013 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1015 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1017 htmldir
=$ac_optarg ;;
1019 -includedir |
--includedir |
--includedi |
--included |
--include \
1020 |
--includ |
--inclu |
--incl |
--inc)
1021 ac_prev
=includedir
;;
1022 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1023 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1024 includedir
=$ac_optarg ;;
1026 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1028 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1029 infodir
=$ac_optarg ;;
1031 -libdir |
--libdir |
--libdi |
--libd)
1033 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1034 libdir
=$ac_optarg ;;
1036 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1037 |
--libexe |
--libex |
--libe)
1038 ac_prev
=libexecdir
;;
1039 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1040 |
--libexe=* |
--libex=* |
--libe=*)
1041 libexecdir
=$ac_optarg ;;
1043 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1044 ac_prev
=localedir
;;
1045 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1046 localedir
=$ac_optarg ;;
1048 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1049 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1050 ac_prev
=localstatedir
;;
1051 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1052 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1053 localstatedir
=$ac_optarg ;;
1055 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1057 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1058 mandir
=$ac_optarg ;;
1060 -nfp |
--nfp |
--nf)
1061 # Obsolete; use --without-fp.
1064 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1065 |
--no-cr |
--no-c |
-n)
1068 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1069 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1072 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1073 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1074 |
--oldin |
--oldi |
--old |
--ol |
--o)
1075 ac_prev
=oldincludedir
;;
1076 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1077 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1078 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1079 oldincludedir
=$ac_optarg ;;
1081 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1083 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1084 prefix
=$ac_optarg ;;
1086 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1087 |
--program-pre |
--program-pr |
--program-p)
1088 ac_prev
=program_prefix
;;
1089 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1090 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1091 program_prefix
=$ac_optarg ;;
1093 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1094 |
--program-suf |
--program-su |
--program-s)
1095 ac_prev
=program_suffix
;;
1096 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1097 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1098 program_suffix
=$ac_optarg ;;
1100 -program-transform-name |
--program-transform-name \
1101 |
--program-transform-nam |
--program-transform-na \
1102 |
--program-transform-n |
--program-transform- \
1103 |
--program-transform |
--program-transfor \
1104 |
--program-transfo |
--program-transf \
1105 |
--program-trans |
--program-tran \
1106 |
--progr-tra |
--program-tr |
--program-t)
1107 ac_prev
=program_transform_name
;;
1108 -program-transform-name=* |
--program-transform-name=* \
1109 |
--program-transform-nam=* |
--program-transform-na=* \
1110 |
--program-transform-n=* |
--program-transform-=* \
1111 |
--program-transform=* |
--program-transfor=* \
1112 |
--program-transfo=* |
--program-transf=* \
1113 |
--program-trans=* |
--program-tran=* \
1114 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1115 program_transform_name
=$ac_optarg ;;
1117 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1119 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1120 pdfdir
=$ac_optarg ;;
1122 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1124 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1127 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1128 |
-silent |
--silent |
--silen |
--sile |
--sil)
1131 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1133 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1135 sbindir
=$ac_optarg ;;
1137 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1138 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1139 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1141 ac_prev
=sharedstatedir
;;
1142 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1143 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1144 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1146 sharedstatedir
=$ac_optarg ;;
1148 -site |
--site |
--sit)
1150 -site=* |
--site=* |
--sit=*)
1153 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1155 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1156 srcdir
=$ac_optarg ;;
1158 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1159 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1160 ac_prev
=sysconfdir
;;
1161 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1162 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1163 sysconfdir
=$ac_optarg ;;
1165 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1166 ac_prev
=target_alias
;;
1167 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1168 target_alias
=$ac_optarg ;;
1170 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1173 -version |
--version |
--versio |
--versi |
--vers |
-V)
1174 ac_init_version
=: ;;
1177 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1180 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1181 { (exit 1); exit 1; }; }
1182 ac_useropt_orig
=$ac_useropt
1183 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep
=', ';;
1191 eval with_
$ac_useropt=\
$ac_optarg ;;
1193 -without-* |
--without-*)
1194 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1197 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1198 { (exit 1); exit 1; }; }
1199 ac_useropt_orig
=$ac_useropt
1200 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep
=', ';;
1208 eval with_
$ac_useropt=no
;;
1211 # Obsolete; use --with-x.
1214 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1215 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1216 ac_prev
=x_includes
;;
1217 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1218 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1219 x_includes
=$ac_optarg ;;
1221 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1222 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1223 ac_prev
=x_libraries
;;
1224 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1225 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1226 x_libraries
=$ac_optarg ;;
1228 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1229 Try \`$0 --help' for more information." >&2
1230 { (exit 1); exit 1; }; }
1234 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1237 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1238 { (exit 1); exit 1; }; }
1239 eval $ac_envvar=\
$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253 if test -n "$ac_prev"; then
1254 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1255 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1256 { (exit 1); exit 1; }; }
1259 if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1262 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1263 { (exit 1); exit 1; }; } ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 # Check all directory arguments for consistency.
1269 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val
=\$
$ac_var
1275 # Remove trailing slashes.
1278 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\
$ac_val;;
1281 # Be sure to have absolute directory names.
1283 [\\/$
]* | ?
:[\\/]* ) continue;;
1284 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1286 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1287 { (exit 1); exit 1; }; }
1290 # There might be people who depend on the old broken behavior: `$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1295 target
=$target_alias
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x
; then
1299 if test "x$build_alias" = x
; then
1300 cross_compiling
=maybe
1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1309 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1311 test "$silent" = yes && exec 6>/dev
/null
1314 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di
=`ls -di .` &&
1316 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1317 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1318 { (exit 1); exit 1; }; }
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1321 { (exit 1); exit 1; }; }
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted
=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir
=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1356 ac_srcdir_defaulted
=no
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1360 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1361 { (exit 1); exit 1; }; }
1363 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1366 { (exit 1); exit 1; }; }
1368 # When building in place, set srcdir=.
1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 # Remove unnecessary trailing slashes from srcdir.
1373 # Double slashes in file names in object file debugging info
1374 # mess up M-x gdb in Emacs.
1376 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 for ac_var
in $ac_precious_vars; do
1379 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1380 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1381 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1382 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1386 # Report the --help message.
1388 if test "$ac_init_help" = "long"; then
1389 # Omit some internal or obsolete options to make the list less imposing.
1390 # This message is too long to be a string in the A/UX 3.1 sh.
1392 \`configure' configures this package to adapt to many kinds of systems.
1394 Usage: $0 [OPTION]... [VAR=VALUE]...
1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1397 VAR=VALUE. See below for descriptions of some of the useful variables.
1399 Defaults for the options are specified in brackets.
1402 -h, --help display this help and exit
1403 --help=short display options specific to this package
1404 --help=recursive display the short help of all the included packages
1405 -V, --version display version information and exit
1406 -q, --quiet, --silent do not print \`checking...' messages
1407 --cache-file=FILE cache test results in FILE [disabled]
1408 -C, --config-cache alias for \`--cache-file=config.cache'
1409 -n, --no-create do not create output files
1410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412 Installation directories:
1413 --prefix=PREFIX install architecture-independent files in PREFIX
1414 [$ac_default_prefix]
1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 By default, \`make install' will install all the files in
1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1421 for instance \`--prefix=\$HOME'.
1423 For better control, use the options below.
1425 Fine tuning of the installation directories:
1426 --bindir=DIR user executables [EPREFIX/bin]
1427 --sbindir=DIR system admin executables [EPREFIX/sbin]
1428 --libexecdir=DIR program executables [EPREFIX/libexec]
1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1432 --libdir=DIR object code libraries [EPREFIX/lib]
1433 --includedir=DIR C header files [PREFIX/include]
1434 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1437 --infodir=DIR info documentation [DATAROOTDIR/info]
1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1439 --mandir=DIR man documentation [DATAROOTDIR/man]
1440 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1441 --htmldir=DIR html documentation [DOCDIR]
1442 --dvidir=DIR dvi documentation [DOCDIR]
1443 --pdfdir=DIR pdf documentation [DOCDIR]
1444 --psdir=DIR ps documentation [DOCDIR]
1450 --x-includes=DIR X include files are
in DIR
1451 --x-libraries=DIR X library files are
in DIR
1455 if test -n "$ac_init_help"; then
1460 --disable-option-checking ignore unrecognized
--enable/--with options
1461 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1462 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1463 --disable-darwin Disable Darwin
(Mac OS X
) support.
1464 --disable-selinux Don
't check for SELinux support.
1465 --disable-xsmp Disable XSMP session management
1466 --disable-xsmp-interact Disable XSMP interaction
1467 --enable-mzschemeinterp Include MzScheme interpreter.
1468 --enable-perlinterp Include Perl interpreter.
1469 --enable-pythoninterp Include Python interpreter.
1470 --enable-tclinterp Include Tcl interpreter.
1471 --enable-rubyinterp Include Ruby interpreter.
1472 --enable-cscope Include cscope interface.
1473 --enable-workshop Include Sun Visual Workshop support.
1474 --disable-netbeans Disable NetBeans integration support.
1475 --enable-sniff Include Sniff interface.
1476 --enable-multibyte Include multibyte editing support.
1477 --enable-hangulinput Include Hangul input support.
1478 --enable-xim Include XIM input support.
1479 --enable-fontset Include X fontset output support.
1480 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1481 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1482 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1483 --enable-gnome-check If GTK GUI, check for GNOME default=no
1484 --enable-motif-check If auto-select GUI, check for Motif default=yes
1485 --enable-athena-check If auto-select GUI, check for Athena default=yes
1486 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1487 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1488 --disable-gtktest Do not try to compile and run a test GTK program
1489 --disable-largefile omit support for large files
1490 --disable-acl Don't check
for ACL support.
1491 --disable-gpm Don
't use gpm (Linux mouse daemon).
1492 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1493 --disable-nls Don
't support NLS (gettext()).
1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1498 --with-mac-arch=ARCH current, intel, ppc or both
1499 --with-developer-dir=PATH use PATH as location for Xcode developer tools
1500 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1501 --without-local-dir do not search /usr/local for local libraries.
1502 --with-vim-name=NAME what to call the Vim executable
1503 --with-ex-name=NAME what to call the Ex executable
1504 --with-view-name=NAME what to call the View executable
1505 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1506 --with-modified-by=NAME name of who modified a release version
1507 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1508 --with-compiledby=NAME name to show in :version message
1509 --with-plthome=PLTHOME Use PLTHOME.
1510 --with-python-config-dir=PATH Python's config directory
1511 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1512 --with-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1513 --with-x use the X Window System
1514 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1515 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1516 --with-gnome-includes=DIR Specify location of GNOME headers
1517 --with-gnome-libs=DIR Specify location of GNOME libs
1518 --with-gnome Specify prefix
for GNOME files
1519 --with-motif-lib=STRING Library
for Motif
1520 --with-tlib=library terminal library to be used
1522 Some influential environment variables
:
1523 CC C compiler
command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1526 nonstandard directory
<lib dir
>
1527 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1528 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1529 you have headers
in a nonstandard directory
<include dir
>
1531 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1533 Use these variables to override the choices made by
`configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1540 if test "$ac_init_help" = "recursive"; then
1541 # If there are subdirs, report their specific --help.
1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543 test -d "$ac_dir" ||
1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1565 .) # We are building in place.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1599 generated by GNU Autoconf 2.63
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1608 cat >auto/config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1612 It was created by $as_me, which was
1613 generated by GNU Autoconf 2.63. Invocation command line was
1618 exec 5>>auto/config.log
1625 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1626 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1627 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1628 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1629 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1631 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1632 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1634 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1635 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1636 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1637 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1638 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1639 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1640 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 $as_echo "PATH: $as_dir"
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_must_keep_next=false
1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1684 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal.
1694 *=* | --config-cache | -C | -disable-* | --disable-* \
1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697 | -with-* | --with-* | -without-* | --without-* | --x)
1698 case "$ac_configure_args0 " in
1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702 -* ) ac_must_keep_next=true ;;
1705 ac_configure_args="$ac_configure_args '$ac_arg'"
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719 # Save into config.log some information that might help in debugging.
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1729 # The following way of writing the cache mishandles newlines in values,
1731 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1732 eval ac_val=\$$ac_var
1736 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1740 _ | IFS | as_nl) ;; #(
1741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742 *) $as_unset $ac_var ;;
1747 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1748 *${as_nl}ac_space=\ *)
1750 "s/'\''/'\''\\\\'\'''\''/g;
1751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1767 for ac_var in $ac_subst_vars
1769 eval ac_val=\$$ac_var
1771 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 $as_echo "$ac_var='\''$ac_val'\''"
1777 if test -n "$ac_subst_files"; then
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1784 for ac_var in $ac_subst_files
1786 eval ac_val=\$$ac_var
1788 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 $as_echo "$ac_var='\''$ac_val'\''"
1795 if test -s confdefs.h; then
1805 test "$ac_signal" != 0 &&
1806 $as_echo "$as_me: caught signal $ac_signal"
1807 $as_echo "$as_me: exit $exit_status"
1809 rm -f core *.core core.conftest.* &&
1810 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813 for ac_signal in 1 2 13 15; do
1814 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1821 # Predefined preprocessor variables.
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer an explicitly selected file to automatically selected ones.
1852 if test -n "$CONFIG_SITE"; then
1853 ac_site_file1=$CONFIG_SITE
1854 elif test "x$prefix" != xNONE; then
1855 ac_site_file1=$prefix/share/config.site
1856 ac_site_file2=$prefix/etc/config.site
1858 ac_site_file1=$ac_default_prefix/share/config.site
1859 ac_site_file2=$ac_default_prefix/etc/config.site
1861 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1863 test "x$ac_site_file" = xNONE && continue
1864 if test -r "$ac_site_file"; then
1865 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867 sed 's/^/| /' "$ac_site_file" >&5
1872 if test -r "$cache_file"; then
1873 # Some versions of bash will fail to source /dev/null (special
1874 # files actually), so we avoid doing that.
1875 if test -f "$cache_file"; then
1876 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 $as_echo "$as_me: loading cache $cache_file" >&6;}
1879 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880 *) . "./$cache_file";;
1884 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 $as_echo "$as_me: creating cache $cache_file" >&6;}
1889 # Check that the precious variables saved in the cache have kept the same
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894 eval ac_new_set=\$ac_env_${ac_var}_set
1895 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896 eval ac_new_val=\$ac_env_${ac_var}_value
1897 case $ac_old_set,$ac_new_set in
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1900 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1903 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1904 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1908 if test "x$ac_old_val" != "x$ac_new_val"; then
1909 # differences in whitespace do not lead to failure.
1910 ac_old_val_w=`echo x
$ac_old_val`
1911 ac_new_val_w=`echo x
$ac_new_val`
1912 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1913 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1915 ac_cache_corrupted=:
1917 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1918 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1919 eval $ac_var=\$ac_old_val
1921 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1922 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1923 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1924 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1927 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then
1930 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;;
1933 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1939 if $ac_cache_corrupted; then
1940 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1946 { (exit 1); exit 1; }; }
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972 ac_config_headers="$ac_config_headers auto
/config.h
:config.h.
in"
1975 cat >>confdefs.h <<\_ACEOF
1979 { $as_echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
1980 $as_echo_n "checking whether
${MAKE-make} sets \$
(MAKE
)...
" >&6; }
1982 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1983 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1984 $as_echo_n "(cached
) " >&6
1986 cat >conftest.make <<\_ACEOF
1989 @echo '@@@%%%=$(MAKE)=@@@%%%'
1991 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
1992 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1994 eval ac_cv_prog_make_${ac_make}_set=yes;;
1996 eval ac_cv_prog_make_${ac_make}_set=no;;
2000 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2001 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2002 $as_echo "yes" >&6; }
2005 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2006 $as_echo "no
" >&6; }
2007 SET_MAKE="MAKE
=${MAKE-make}"
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2018 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2019 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2020 $as_echo_n "checking
for $ac_word...
" >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 $as_echo_n "(cached
) " >&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2035 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2045 if test -n "$CC"; then
2046 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2047 $as_echo "$CC" >&6; }
2049 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2050 $as_echo "no
" >&6; }
2055 if test -z "$ac_cv_prog_CC"; then
2057 # Extract the first word of "gcc
", so it can be a program name with args.
2058 set dummy gcc; ac_word=$2
2059 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2060 $as_echo_n "checking
for $ac_word...
" >&6; }
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 $as_echo_n "(cached
) " >&6
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_ac_ct_CC="gcc
"
2075 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2085 if test -n "$ac_ct_CC"; then
2086 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2087 $as_echo "$ac_ct_CC" >&6; }
2089 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2090 $as_echo "no
" >&6; }
2093 if test "x
$ac_ct_CC" = x; then
2096 case $cross_compiling:$ac_tool_warned in
2098 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2099 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2100 ac_tool_warned=yes ;;
2108 if test -z "$CC"; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}cc; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2113 $as_echo_n "checking
for $ac_word...
" >&6; }
2114 if test "${ac_cv_prog_CC+set}" = set; then
2115 $as_echo_n "(cached
) " >&6
2117 if test -n "$CC"; then
2118 ac_cv_prog_CC="$CC" # Let the user override the test.
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2128 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2138 if test -n "$CC"; then
2139 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2140 $as_echo "$CC" >&6; }
2142 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2143 $as_echo "no
" >&6; }
2149 if test -z "$CC"; then
2150 # Extract the first word of "cc
", so it can be a program name with args.
2151 set dummy cc; ac_word=$2
2152 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2153 $as_echo_n "checking
for $ac_word...
" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155 $as_echo_n "(cached
) " >&6
2157 if test -n "$CC"; then
2158 ac_cv_prog_CC="$CC" # Let the user override the test.
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2169 ac_prog_rejected=yes
2173 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2180 if test $ac_prog_rejected = yes; then
2181 # We found a bogon in the path, so make sure we never use it.
2182 set dummy $ac_cv_prog_CC
2184 if test $# != 0; then
2185 # We chose a different compiler from the bogus one.
2186 # However, it has the same basename, so the bogon will be chosen
2187 # first if we set CC to just the basename; use the full file name.
2189 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2195 if test -n "$CC"; then
2196 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2197 $as_echo "$CC" >&6; }
2199 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2200 $as_echo "no
" >&6; }
2205 if test -z "$CC"; then
2206 if test -n "$ac_tool_prefix"; then
2207 for ac_prog in cl.exe
2209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2211 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2212 $as_echo_n "checking
for $ac_word...
" >&6; }
2213 if test "${ac_cv_prog_CC+set}" = set; then
2214 $as_echo_n "(cached
) " >&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC="$CC" # Let the user override the test.
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2237 if test -n "$CC"; then
2238 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2239 $as_echo "$CC" >&6; }
2241 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2242 $as_echo "no
" >&6; }
2246 test -n "$CC" && break
2249 if test -z "$CC"; then
2251 for ac_prog in cl.exe
2253 # Extract the first word of "$ac_prog", so it can be a program name with args.
2254 set dummy $ac_prog; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2256 $as_echo_n "checking
for $ac_word...
" >&6; }
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 $as_echo_n "(cached
) " >&6
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="$ac_prog"
2271 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; }
2285 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2286 $as_echo "no
" >&6; }
2290 test -n "$ac_ct_CC" && break
2293 if test "x
$ac_ct_CC" = x; then
2296 case $cross_compiling:$ac_tool_warned in
2298 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2299 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2300 ac_tool_warned=yes ;;
2309 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2311 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details.
" >&5
2313 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2314 See \
`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }; }
2317 # Provide some information about the compiler.
2318 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2321 { (ac_try="$ac_compiler --version >&5"
2323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2324 *) ac_try_echo
=$ac_try;;
2326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2327 $as_echo "$ac_try_echo") >&5
2328 (eval "$ac_compiler --version >&5") 2>&5
2330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (ac_try
="$ac_compiler -v >&5"
2334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2338 $as_echo "$ac_try_echo") >&5
2339 (eval "$ac_compiler -v >&5") 2>&5
2341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2346 *) ac_try_echo
=$ac_try;;
2348 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2349 $as_echo "$ac_try_echo") >&5
2350 (eval "$ac_compiler -V >&5") 2>&5
2352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
2355 cat >conftest.
$ac_ext <<_ACEOF
2358 cat confdefs.h
>>conftest.
$ac_ext
2359 cat >>conftest.
$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2370 ac_clean_files_save
=$ac_clean_files
2371 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2372 # Try to create an executable without -o first, disregard a.out.
2373 # It will help us diagnose broken compilers, and finding out an intuition
2375 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2376 $as_echo_n "checking for C compiler default output file name... " >&6; }
2377 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2379 # The possible output files:
2380 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2383 for ac_file
in $ac_files
2386 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2387 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2392 if { (ac_try
="$ac_link_default"
2394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2398 $as_echo "$ac_try_echo") >&5
2399 (eval "$ac_link_default") 2>&5
2401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; then
2403 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2404 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2405 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2406 # so that the user can short-circuit this test for compilers unknown to
2408 for ac_file in $ac_files ''
2410 test -f "$ac_file" || continue
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2415 # We found the default executable, but exeext='' is most
2419 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2423 # We set ac_cv_exeext here because the later test for it is not
2424 # safe: cross compilers may not add the suffix if given an `-o'
2425 # argument, so we may need to know it at that point already.
2426 # Even if this section looks crufty: it has the advantage of
2433 test "$ac_cv_exeext" = no && ac_cv_exeext=
2439 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2440 $as_echo "$ac_file" >&6; }
2441 if test -z "$ac_file"; then
2442 $as_echo "$as_me: failed program was:" >&5
2443 sed 's
/^
/|
/' conftest.$ac_ext >&5
2445 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2447 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2448 See \`config.log
' for more details." >&5
2449 $as_echo "$as_me: error: C compiler cannot create executables
2450 See \`config.log' for more details.
" >&2;}
2451 { (exit 77); exit 77; }; }; }
2454 ac_exeext=$ac_cv_exeext
2456 # Check that the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2459 $as_echo_n "checking whether the C compiler works...
" >&6; }
2460 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2461 # If not cross compiling, check that we can run a simple program.
2462 if test "$cross_compiling" != yes; then
2463 if { ac_try='./$ac_file'
2464 { (case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2469 $as_echo "$ac_try_echo") >&5
2470 (eval "$ac_try") 2>&5
2472 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 if test "$cross_compiling" = maybe; then
2479 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2481 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \
`config.log' for more details." >&5
2484 $as_echo "$as_me: error: cannot run C compiled programs.
2485 If you meant to cross compile, use \`--host'.
2486 See \`config.log' for more details.
" >&2;}
2487 { (exit 1); exit 1; }; }; }
2491 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2492 $as_echo "yes" >&6; }
2494 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2495 ac_clean_files=$ac_clean_files_save
2496 # Check that the compiler produces executables we can run. If not, either
2497 # the compiler is broken, or we cross compile.
2498 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2499 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2500 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2501 $as_echo "$cross_compiling" >&6; }
2503 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2504 $as_echo_n "checking
for suffix of executables...
" >&6; }
2505 if { (ac_try="$ac_link"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2511 $as_echo "$ac_try_echo") >&5
2512 (eval "$ac_link") 2>&5
2514 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2515 (exit $ac_status); }; then
2516 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2517 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2518 # work properly (i.e., refer to `conftest.exe'), while it won't with
2520 for ac_file in conftest.exe conftest conftest.*; do
2521 test -f "$ac_file" || continue
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2530 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2533 See \`config.log' for more details.
" >&5
2534 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2535 See \
`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }; }
2539 rm -f conftest$ac_cv_exeext
2540 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2541 $as_echo "$ac_cv_exeext" >&6; }
2543 rm -f conftest.$ac_ext
2544 EXEEXT=$ac_cv_exeext
2546 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2547 $as_echo_n "checking for suffix of object files... " >&6; }
2548 if test "${ac_cv_objext+set}" = set; then
2549 $as_echo_n "(cached) " >&6
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2566 rm -f conftest.o conftest.obj
2567 if { (ac_try="$ac_compile"
2569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2570 *) ac_try_echo
=$ac_try;;
2572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2573 $as_echo "$ac_try_echo") >&5
2574 (eval "$ac_compile") 2>&5
2576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; then
2578 for ac_file
in conftest.o conftest.obj conftest.
*; do
2579 test -f "$ac_file" ||
continue;
2581 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2582 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2587 $as_echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.
$ac_ext >&5
2590 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2593 See \`config.log' for more details." >&5
2594 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2595 See \`config.log' for more details." >&2;}
2596 { (exit 1); exit 1; }; }; }
2599 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2601 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2602 $as_echo "$ac_cv_objext" >&6; }
2603 OBJEXT
=$ac_cv_objext
2605 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2607 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2608 $as_echo_n "(cached) " >&6
2610 cat >conftest.
$ac_ext <<_ACEOF
2613 cat confdefs.h
>>conftest.
$ac_ext
2614 cat >>conftest.
$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2628 rm -f conftest.
$ac_objext
2629 if { (ac_try
="$ac_compile"
2631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636 (eval "$ac_compile") 2>conftest.er1
2638 grep -v '^ *+' conftest.er1 >conftest.err
2640 cat conftest.err >&5
2641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } && {
2643 test -z "$ac_c_werror_flag" ||
2644 test ! -s conftest.err
2645 } && test -s conftest.$ac_objext; then
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2659 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2660 if test $ac_compiler_gnu = yes; then
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2669 if test "${ac_cv_prog_cc_g+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2695 *) ac_try_echo
=$ac_try;;
2697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2698 $as_echo "$ac_try_echo") >&5
2699 (eval "$ac_compile") 2>conftest.er1
2701 grep -v '^ *+' conftest.er1
>conftest.err
2703 cat conftest.err
>&5
2704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } && {
2706 test -z "$ac_c_werror_flag" ||
2707 test ! -s conftest.err
2708 } && test -s conftest.
$ac_objext; then
2711 $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.
$ac_ext >&5
2715 cat >conftest.
$ac_ext <<_ACEOF
2718 cat confdefs.h
>>conftest.
$ac_ext
2719 cat >>conftest.
$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2730 rm -f conftest.
$ac_objext
2731 if { (ac_try
="$ac_compile"
2733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2750 $as_echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2753 ac_c_werror_flag=$ac_save_c_werror_flag
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2774 *) ac_try_echo
=$ac_try;;
2776 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2780 grep -v '^ *+' conftest.er1
>conftest.err
2782 cat conftest.err
>&5
2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.
$ac_objext; then
2790 $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.
$ac_ext >&5
2796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2803 ac_c_werror_flag
=$ac_save_c_werror_flag
2805 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2806 $as_echo "$ac_cv_prog_cc_g" >&6; }
2807 if test "$ac_test_CFLAGS" = set; then
2808 CFLAGS
=$ac_save_CFLAGS
2809 elif test $ac_cv_prog_cc_g = yes; then
2810 if test "$GCC" = yes; then
2816 if test "$GCC" = yes; then
2822 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2823 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2824 if test "${ac_cv_prog_cc_c89+set}" = set; then
2825 $as_echo_n "(cached) " >&6
2827 ac_cv_prog_cc_c89
=no
2829 cat >conftest.
$ac_ext <<_ACEOF
2832 cat confdefs.h
>>conftest.
$ac_ext
2833 cat >>conftest.
$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2837 #include <sys/types.h>
2838 #include <sys/stat.h>
2839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2840 struct buf { int x; };
2841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2842 static char *e (p, i)
2848 static char *f (char * (*g) (char **, int), char **p, ...)
2853 s = g (p, va_arg (v,int));
2858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2859 function prototypes and stuff, but not '\xHH' hex character constants.
2860 These don't provoke an error unfortunately, instead are silently treated
2861 as 'x'. The following induces an error, until -std is added to get
2862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2863 array size at least. It's necessary to write '\x00'==0 to get something
2864 that's true only with -std. */
2865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2868 inside strings and character constants. */
2870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2872 int test (int i, double x);
2873 struct s1 {int (*f) (int a);};
2874 struct s2 {int (*f) (double a);};
2875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2886 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
2887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2889 CC
="$ac_save_CC $ac_arg"
2890 rm -f conftest.
$ac_objext
2891 if { (ac_try
="$ac_compile"
2893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2900 grep -v '^ *+' conftest.er1 >conftest.err
2902 cat conftest.err >&5
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2908 ac_cv_prog_cc_c89=$ac_arg
2910 $as_echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2916 rm -f core conftest.err conftest.$ac_objext
2917 test "x$ac_cv_prog_cc_c89" != "xno" && break
2919 rm -f conftest.$ac_ext
2924 case "x$ac_cv_prog_cc_c89" in
2926 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2927 $as_echo "none needed" >&6; } ;;
2929 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2930 $as_echo "unsupported" >&6; } ;;
2932 CC="$CC $ac_cv_prog_cc_c89"
2933 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2934 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
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
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2954 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 $as_echo_n "(cached) " >&6
2958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 for ac_c_preproc_warn_flag in '' yes
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h. */
2977 # include <limits.h>
2979 # include <assert.h>
2983 if { (ac_try="$ac_cpp conftest.$ac_ext"
2985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2986 *) ac_try_echo
=$ac_try;;
2988 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2989 $as_echo "$ac_try_echo") >&5
2990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2992 grep -v '^ *+' conftest.er1
>conftest.err
2994 cat conftest.err
>&5
2995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev
/null
&& {
2997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2998 test ! -s conftest.err
3002 $as_echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.
$ac_ext >&5
3005 # Broken: fails on valid input.
3009 rm -f conftest.err conftest.
$ac_ext
3011 # OK, works on sane cases. Now check whether nonexistent headers
3012 # can be detected and how.
3013 cat >conftest.
$ac_ext <<_ACEOF
3016 cat confdefs.h
>>conftest.
$ac_ext
3017 cat >>conftest.
$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 #include <ac_nonexistent.h>
3021 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3027 $as_echo "$ac_try_echo") >&5
3028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3030 grep -v '^ *+' conftest.er1 >conftest.err
3032 cat conftest.err >&5
3033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } >/dev/null && {
3035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3036 test ! -s conftest.err
3038 # Broken: success on invalid input.
3041 $as_echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 # Passes both tests.
3049 rm -f conftest.err conftest.$ac_ext
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.
$ac_ext
3054 if $ac_preproc_ok; then
3066 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3067 $as_echo "$CPP" >&6; }
3069 for ac_c_preproc_warn_flag
in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.
$ac_ext <<_ACEOF
3080 cat confdefs.h
>>conftest.
$ac_ext
3081 cat >>conftest.
$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3084 # include <limits.h>
3086 # include <assert.h>
3090 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } >/dev/null && {
3104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether nonexistent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <ac_nonexistent.h>
3128 if { (ac_try="$ac_cpp conftest.$ac_ext"
3130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3131 *) ac_try_echo
=$ac_try;;
3133 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3134 $as_echo "$ac_try_echo") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1
>conftest.err
3139 cat conftest.err
>&5
3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev
/null
&& {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3145 # Broken: success on invalid input.
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.
$ac_ext >&5
3151 # Passes both tests.
3156 rm -f conftest.err conftest.
$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.
$ac_ext
3161 if $ac_preproc_ok; then
3164 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }; }
3174 ac_cpp
='$CPP $CPPFLAGS'
3175 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3180 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3181 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3182 if test "${ac_cv_path_GREP+set}" = set; then
3183 $as_echo_n "(cached) " >&6
3185 if test -z "$GREP"; then
3186 ac_path_GREP_found
=false
3187 # Loop through the user's path and test for each of PROGNAME-LIST
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3189 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_prog
in grep ggrep
; do
3194 for ac_exec_ext
in '' $ac_executable_extensions; do
3195 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3196 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3197 # Check for GNU ac_path_GREP and select it if it is found.
3198 # Check for GNU $ac_path_GREP
3199 case `"$ac_path_GREP" --version 2>&1` in
3201 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3204 $as_echo_n 0123456789 >"conftest.in"
3207 cat "conftest.in" "conftest.in" >"conftest.tmp"
3208 mv "conftest.tmp" "conftest.in"
3209 cp "conftest.in" "conftest.nl"
3210 $as_echo 'GREP' >> "conftest.nl"
3211 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3212 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3213 ac_count
=`expr $ac_count + 1`
3214 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3215 # Best one so far, save it but keep looking for a better one
3216 ac_cv_path_GREP
="$ac_path_GREP"
3217 ac_path_GREP_max
=$ac_count
3219 # 10*(2^10) chars as input seems more than enough
3220 test $ac_count -gt 10 && break
3222 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3225 $ac_path_GREP_found && break 3
3230 if test -z "$ac_cv_path_GREP"; then
3231 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3232 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3233 { (exit 1); exit 1; }; }
3236 ac_cv_path_GREP
=$GREP
3240 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3241 $as_echo "$ac_cv_path_GREP" >&6; }
3242 GREP
="$ac_cv_path_GREP"
3245 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3246 $as_echo_n "checking for egrep... " >&6; }
3247 if test "${ac_cv_path_EGREP+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3251 then ac_cv_path_EGREP
="$GREP -E"
3253 if test -z "$EGREP"; then
3254 ac_path_EGREP_found
=false
3255 # Loop through the user's path and test for each of PROGNAME-LIST
3256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3260 test -z "$as_dir" && as_dir
=.
3261 for ac_prog
in egrep; do
3262 for ac_exec_ext
in '' $ac_executable_extensions; do
3263 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3265 # Check for GNU ac_path_EGREP and select it if it is found.
3266 # Check for GNU $ac_path_EGREP
3267 case `"$ac_path_EGREP" --version 2>&1` in
3269 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3272 $as_echo_n 0123456789 >"conftest.in"
3275 cat "conftest.in" "conftest.in" >"conftest.tmp"
3276 mv "conftest.tmp" "conftest.in"
3277 cp "conftest.in" "conftest.nl"
3278 $as_echo 'EGREP' >> "conftest.nl"
3279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3280 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3281 ac_count
=`expr $ac_count + 1`
3282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3283 # Best one so far, save it but keep looking for a better one
3284 ac_cv_path_EGREP
="$ac_path_EGREP"
3285 ac_path_EGREP_max
=$ac_count
3287 # 10*(2^10) chars as input seems more than enough
3288 test $ac_count -gt 10 && break
3290 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3293 $ac_path_EGREP_found && break 3
3298 if test -z "$ac_cv_path_EGREP"; then
3299 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3300 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3301 { (exit 1); exit 1; }; }
3304 ac_cv_path_EGREP
=$EGREP
3309 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3310 $as_echo "$ac_cv_path_EGREP" >&6; }
3311 EGREP
="$ac_cv_path_EGREP"
3314 cat >conftest.
$ac_ext <<_ACEOF
3317 cat confdefs.h
>>conftest.
$ac_ext
3318 cat >>conftest.
$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3323 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3324 $as_echo_n "checking for library containing strerror... " >&6; }
3325 if test "${ac_cv_search_strerror+set}" = set; then
3326 $as_echo_n "(cached) " >&6
3328 ac_func_search_save_LIBS
=$LIBS
3329 cat >conftest.
$ac_ext <<_ACEOF
3332 cat confdefs.h
>>conftest.
$ac_ext
3333 cat >>conftest.
$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3336 /* Override any GCC internal prototype to avoid an error.
3337 Use char because int might match the return type of a GCC
3338 builtin and then its argument prototype would still apply. */
3351 for ac_lib
in '' cposix
; do
3352 if test -z "$ac_lib"; then
3353 ac_res
="none required"
3356 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3358 rm -f conftest.
$ac_objext conftest
$ac_exeext
3359 if { (ac_try
="$ac_link"
3361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365 $as_echo "$ac_try_echo") >&5
3366 (eval "$ac_link") 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } && {
3373 test -z "$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 } && test -s conftest$ac_exeext && {
3376 test "$cross_compiling" = yes ||
3377 $as_test_x conftest$ac_exeext
3379 ac_cv_search_strerror=$ac_res
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3387 rm -rf conftest.dSYM
3388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3390 if test "${ac_cv_search_strerror+set}" = set; then
3394 if test "${ac_cv_search_strerror+set}" = set; then
3397 ac_cv_search_strerror=no
3400 LIBS=$ac_func_search_save_LIBS
3402 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3403 $as_echo "$ac_cv_search_strerror" >&6; }
3404 ac_res=$ac_cv_search_strerror
3405 if test "$ac_res" != no; then
3406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3409 for ac_prog in gawk mawk nawk awk
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_AWK+set}" = set; then
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$AWK"; then
3419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_AWK="$ac_prog"
3429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 if test -n "$AWK"; then
3440 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3441 $as_echo "$AWK" >&6; }
3443 { $as_echo "$as_me:$LINENO: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$AWK" && break
3451 # Extract the first word of "strip", so it can be a program name with args.
3452 set dummy strip; ac_word=$2
3453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if test "${ac_cv_prog_STRIP+set}" = set; then
3456 $as_echo_n "(cached) " >&6
3458 if test -n "$STRIP"; then
3459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_STRIP="strip"
3469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3479 STRIP=$ac_cv_prog_STRIP
3480 if test -n "$STRIP"; then
3481 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3482 $as_echo "$STRIP" >&6; }
3484 { $as_echo "$as_me:$LINENO: result: no" >&5
3485 $as_echo "no" >&6; }
3492 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3493 $as_echo_n "checking for ANSI C header files... " >&6; }
3494 if test "${ac_cv_header_stdc+set}" = set; then
3495 $as_echo_n "(cached) " >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3520 *) ac_try_echo
=$ac_try;;
3522 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524 (eval "$ac_compile") 2>conftest.er1
3526 grep -v '^ *+' conftest.er1
>conftest.err
3528 cat conftest.err
>&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } && {
3531 test -z "$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3533 } && test -s conftest.
$ac_objext; then
3534 ac_cv_header_stdc
=yes
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.
$ac_ext >&5
3539 ac_cv_header_stdc
=no
3542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3544 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "memchr" >/dev
/null
2>&1; then
3559 ac_cv_header_stdc
=no
3565 if test $ac_cv_header_stdc = yes; then
3566 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3567 cat >conftest.
$ac_ext <<_ACEOF
3570 cat confdefs.h
>>conftest.
$ac_ext
3571 cat >>conftest.
$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev
/null
2>&1; then
3580 ac_cv_header_stdc
=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then
3591 cat >conftest.
$ac_ext <<_ACEOF
3594 cat confdefs.h
>>conftest.
$ac_ext
3595 cat >>conftest.
$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3599 #if ((' ' & 0x0FF) == 0x020)
3600 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3601 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3603 # define ISLOWER(c) \
3604 (('a' <= (c) && (c) <= 'i') \
3605 || ('j' <= (c) && (c) <= 'r') \
3606 || ('s' <= (c) && (c) <= 'z'))
3607 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3610 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3615 for (i = 0; i < 256; i++)
3616 if (XOR (islower (i), ISLOWER (i))
3617 || toupper (i) != TOUPPER (i))
3622 rm -f conftest
$ac_exeext
3623 if { (ac_try
="$ac_link"
3625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_link") 2>&5
3632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3634 { (case "(($ac_try" in
3635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3636 *) ac_try_echo
=$ac_try;;
3638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3639 $as_echo "$ac_try_echo") >&5
3640 (eval "$ac_try") 2>&5
3642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3646 $as_echo "$as_me: program exited with status $ac_status" >&5
3647 $as_echo "$as_me: failed program was:" >&5
3648 sed 's/^/| /' conftest.
$ac_ext >&5
3651 ac_cv_header_stdc
=no
3653 rm -rf conftest.dSYM
3654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3660 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3661 $as_echo "$ac_cv_header_stdc" >&6; }
3662 if test $ac_cv_header_stdc = yes; then
3664 cat >>confdefs.h
<<\_ACEOF
3665 #define STDC_HEADERS 1
3670 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3671 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3672 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3673 $as_echo_n "(cached) " >&6
3675 cat >conftest.
$ac_ext <<_ACEOF
3678 cat confdefs.h
>>conftest.
$ac_ext
3679 cat >>conftest.
$ac_ext <<_ACEOF
3680 /* end confdefs.h. */
3681 #include <sys/types.h>
3682 #include <sys/wait.h>
3684 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3687 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3695 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3700 rm -f conftest.
$ac_objext
3701 if { (ac_try
="$ac_compile"
3703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_cv_header_sys_wait_h=yes
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 ac_cv_header_sys_wait_h=no
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3729 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3730 if test $ac_cv_header_sys_wait_h = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define HAVE_SYS_WAIT_H 1
3739 if test -z "$CFLAGS"; then
3741 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3743 if test "$GCC" = yes; then
3744 gccversion=`"$CC" -dumpversion`
3745 if test "x$gccversion" = "x"; then
3746 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3748 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3749 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3750 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3752 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3753 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3754 CFLAGS="$CFLAGS -fno-strength-reduce"
3759 if test "$cross_compiling" = yes; then
3760 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3761 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3764 test "$GCC" = yes && CPP_MM=M;
3766 if test -f ./toolcheck; then
3767 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3768 $as_echo "$as_me: checking for buggy tools..." >&6;}
3772 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3774 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3775 $as_echo_n "checking for BeOS... " >&6; }
3777 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3778 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3779 $as_echo "yes" >&6; };;
3780 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3781 $as_echo "no" >&6; };;
3784 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3785 $as_echo_n "checking for QNX... " >&6; }
3787 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3788 test -z "$with_x" && with_x=no
3789 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3790 $as_echo "yes" >&6; };;
3791 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3792 $as_echo "no" >&6; };;
3795 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3796 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3797 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3798 { $as_echo "$as_me:$LINENO: result: yes" >&5
3799 $as_echo "yes" >&6; }
3801 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3802 $as_echo_n "checking --disable-darwin argument... " >&6; }
3803 # Check whether --enable-darwin was given.
3804 if test "${enable_darwin+set}" = set; then
3805 enableval=$enable_darwin;
3810 if test "$enable_darwin" = "yes"; then
3811 { $as_echo "$as_me:$LINENO: result: no" >&5
3812 $as_echo "no" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3814 $as_echo_n "checking if Darwin files are there... " >&6; }
3815 if test -f os_macosx.c; then
3816 { $as_echo "$as_me:$LINENO: result: yes" >&5
3817 $as_echo "yes" >&6; }
3819 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3820 $as_echo "no, Darwin support disabled" >&6; }
3824 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3825 $as_echo "yes, Darwin support excluded" >&6; }
3828 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3829 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3831 # Check whether --with-mac-arch was given.
3832 if test "${with_mac_arch+set}" = set; then
3833 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3834 $as_echo "$MACARCH" >&6; }
3836 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3837 $as_echo "defaulting to $MACARCH" >&6; }
3841 { $as_echo "$as_me:$LINENO: checking --with-developer-dir argument" >&5
3842 $as_echo_n "checking --with-developer-dir argument... " >&6; }
3844 # Check whether --with-developer-dir was given.
3845 if test "${with_developer_dir+set}" = set; then
3846 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3847 $as_echo "$DEVELOPER_DIR" >&6; }
3849 DEVELOPER_DIR=""; { $as_echo "$as_me:$LINENO: result: not present" >&5
3850 $as_echo "not present" >&6; }
3854 if test "x$DEVELOPER_DIR" = "x"; then
3855 # Extract the first word of "xcode-select", so it can be a program name with args.
3856 set dummy xcode-select; ac_word=$2
3857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if test "${ac_cv_path_XCODE_SELECT+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3862 case $XCODE_SELECT in
3864 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
3875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 XCODE_SELECT=$ac_cv_path_XCODE_SELECT
3886 if test -n "$XCODE_SELECT"; then
3887 { $as_echo "$as_me:$LINENO: result: $XCODE_SELECT" >&5
3888 $as_echo "$XCODE_SELECT" >&6; }
3890 { $as_echo "$as_me:$LINENO: result: no" >&5
3891 $as_echo "no" >&6; }
3895 if test "x$XCODE_SELECT" != "x"; then
3896 { $as_echo "$as_me:$LINENO: checking for developer dir using xcode-select" >&5
3897 $as_echo_n "checking for developer dir using xcode-select... " >&6; }
3898 DEVELOPER_DIR=`$XCODE_SELECT -print-path`
3899 { $as_echo "$as_me:$LINENO: result: $DEVELOPER_DIR" >&5
3900 $as_echo "$DEVELOPER_DIR" >&6; }
3902 DEVELOPER_DIR=/Developer
3906 if test "x$MACARCH" = "xboth"; then
3907 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3908 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3909 save_cppflags="$CPPFLAGS"
3910 save_cflags="$CFLAGS"
3911 save_ldflags="$LDFLAGS"
3912 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3913 cat >conftest.$ac_ext <<_ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h. */
3928 rm -f conftest.$ac_objext conftest$ac_exeext
3929 if { (ac_try="$ac_link"
3931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3932 *) ac_try_echo
=$ac_try;;
3934 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3935 $as_echo "$ac_try_echo") >&5
3936 (eval "$ac_link") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1
>conftest.err
3940 cat conftest.err
>&5
3941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest
$ac_exeext && {
3946 test "$cross_compiling" = yes ||
3947 $as_test_x conftest
$ac_exeext
3949 { $as_echo "$as_me:$LINENO: result: found" >&5
3950 $as_echo "found" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.
$ac_ext >&5
3955 { $as_echo "$as_me:$LINENO: result: not found" >&5
3956 $as_echo "not found" >&6; }
3957 CFLAGS
="$save_cflags"
3958 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3959 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3960 CPPFLAGS
="$CPPFLAGS -arch i386"
3961 LDFLAGS
="$save_ldflags -arch i386"
3962 cat >conftest.
$ac_ext <<_ACEOF
3965 cat confdefs.h
>>conftest.
$ac_ext
3966 cat >>conftest.
$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3977 rm -f conftest.
$ac_objext conftest
$ac_exeext
3978 if { (ac_try
="$ac_link"
3980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985 (eval "$ac_link") 2>conftest.er1
3987 grep -v '^ *+' conftest.er1 >conftest.err
3989 cat conftest.err >&5
3990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } && {
3992 test -z "$ac_c_werror_flag" ||
3993 test ! -s conftest.err
3994 } && test -s conftest$ac_exeext && {
3995 test "$cross_compiling" = yes ||
3996 $as_test_x conftest$ac_exeext
3998 { $as_echo "$as_me:$LINENO: result: yes" >&5
3999 $as_echo "yes" >&6; }; MACARCH="intel"
4001 $as_echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 { $as_echo "$as_me:$LINENO: result: no" >&5
4005 $as_echo "no" >&6; }
4007 CPPFLAGS="$save_cppflags -arch ppc"
4008 LDFLAGS="$save_ldflags -arch ppc"
4011 rm -rf conftest.dSYM
4012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4013 conftest$ac_exeext conftest.$ac_ext
4016 rm -rf conftest.dSYM
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
4019 elif test "x$MACARCH" = "xintel"; then
4020 CPPFLAGS="$CPPFLAGS -arch intel"
4021 LDFLAGS="$LDFLAGS -arch intel"
4022 elif test "x$MACARCH" = "xppc"; then
4023 CPPFLAGS="$CPPFLAGS -arch ppc"
4024 LDFLAGS="$LDFLAGS -arch ppc"
4027 if test "$enable_darwin" = "yes"; then
4029 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4030 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4031 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4032 if test "x$MACARCH" = "xboth"; then
4033 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4035 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4048 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4049 inttypes.h stdint.h unistd.h
4051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4053 $as_echo_n "checking for $ac_header... " >&6; }
4054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4055 $as_echo_n "(cached) " >&6
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 $ac_includes_default
4065 #include <$ac_header>
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4071 *) ac_try_echo
=$ac_try;;
4073 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1
>conftest.err
4079 cat conftest.err
>&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && {
4082 test -z "$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 } && test -s conftest.
$ac_objext; then
4085 eval "$as_ac_Header=yes"
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.
$ac_ext >&5
4090 eval "$as_ac_Header=no"
4093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4096 $as_echo "$as_val"'`
4097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4098 $as_echo "$ac_res" >&6; }
4099 as_val
=`eval 'as_val=${'$as_ac_Header'}
4100 $as_echo "$as_val"'`
4101 if test "x$as_val" = x
""yes; then
4102 cat >>confdefs.h
<<_ACEOF
4103 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4111 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4112 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4113 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4114 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4115 $as_echo_n "(cached) " >&6
4117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4118 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4120 # Is the header compilable?
4121 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4122 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4123 cat >conftest.
$ac_ext <<_ACEOF
4126 cat confdefs.h
>>conftest.
$ac_ext
4127 cat >>conftest.
$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 $ac_includes_default
4130 #include <Carbon/Carbon.h>
4132 rm -f conftest.
$ac_objext
4133 if { (ac_try
="$ac_compile"
4135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_header_compiler=yes
4152 $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 ac_header_compiler=no
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4160 $as_echo "$ac_header_compiler" >&6; }
4162 # Is the header present?
4163 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4164 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <Carbon/Carbon.h>
4173 if { (ac_try="$ac_cpp conftest.$ac_ext"
4175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4176 *) ac_try_echo
=$ac_try;;
4178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1
>conftest.err
4184 cat conftest.err
>&5
4185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev
/null
&& {
4187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4190 ac_header_preproc
=yes
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.
$ac_ext >&5
4195 ac_header_preproc
=no
4198 rm -f conftest.err conftest.
$ac_ext
4199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4200 $as_echo "$ac_header_preproc" >&6; }
4202 # So? What about this header?
4203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4205 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4206 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4207 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4208 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4209 ac_header_preproc
=yes
4212 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4213 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4214 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4215 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4216 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4217 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4218 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4219 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4220 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4221 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4222 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4223 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4227 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4228 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4229 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4230 $as_echo_n "(cached) " >&6
4232 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4235 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4238 if test "x$ac_cv_header_Carbon_Carbon_h" = x
""yes; then
4243 if test "x$CARBON" = "xyes"; then
4244 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
4250 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4251 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4255 { $as_echo "$as_me:$LINENO: result: no" >&5
4256 $as_echo "no" >&6; }
4262 if test "$cross_compiling" = no
; then
4263 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4264 $as_echo_n "checking --with-local-dir argument... " >&6; }
4265 have_local_include
=''
4268 # Check whether --with-local-dir was given.
4269 if test "${with_local_dir+set}" = set; then
4270 withval
=$with_local_dir;
4271 local_dir
="$withval"
4275 # avoid adding local dir to LDFLAGS and CPPFLAGS
4279 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4280 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4281 { (exit 1); exit 1; }; } ;;
4283 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4284 $as_echo "$local_dir" >&6; }
4288 local_dir
=/usr
/local
4289 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4290 $as_echo "Defaulting to $local_dir" >&6; }
4294 if test "$GCC" = yes -a "$local_dir" != no
; then
4295 echo 'void f(){}' > conftest.c
4296 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4297 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4298 rm -f conftest.c conftest.o
4300 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4301 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4302 if test "$tt" = "$LDFLAGS"; then
4303 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4306 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4307 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4308 if test "$tt" = "$CPPFLAGS"; then
4309 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4314 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4315 $as_echo_n "checking --with-vim-name argument... " >&6; }
4317 # Check whether --with-vim-name was given.
4318 if test "${with_vim_name+set}" = set; then
4319 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4320 $as_echo "$VIMNAME" >&6; }
4322 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4323 $as_echo "Defaulting to $VIMNAME" >&6; }
4327 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4328 $as_echo_n "checking --with-ex-name argument... " >&6; }
4330 # Check whether --with-ex-name was given.
4331 if test "${with_ex_name+set}" = set; then
4332 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4333 $as_echo "$EXNAME" >&6; }
4335 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4336 $as_echo "Defaulting to ex" >&6; }
4340 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4341 $as_echo_n "checking --with-view-name argument... " >&6; }
4343 # Check whether --with-view-name was given.
4344 if test "${with_view_name+set}" = set; then
4345 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4346 $as_echo "$VIEWNAME" >&6; }
4348 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4349 $as_echo "Defaulting to view" >&6; }
4354 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4355 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4357 # Check whether --with-global-runtime was given.
4358 if test "${with_global_runtime+set}" = set; then
4359 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4360 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4361 #define RUNTIME_GLOBAL "$withval"
4365 { $as_echo "$as_me:$LINENO: result: no" >&5
4366 $as_echo "no" >&6; }
4370 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4371 $as_echo_n "checking --with-modified-by argument... " >&6; }
4373 # Check whether --with-modified-by was given.
4374 if test "${with_modified_by+set}" = set; then
4375 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4376 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4377 #define MODIFIED_BY "$withval"
4381 { $as_echo "$as_me:$LINENO: result: no" >&5
4382 $as_echo "no" >&6; }
4386 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4387 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4388 cat >conftest.
$ac_ext <<_ACEOF
4391 cat confdefs.h
>>conftest.
$ac_ext
4392 cat >>conftest.
$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4398 /* TryCompile function for CharSet.
4399 Treat any failure as ASCII for compatibility with existing art.
4400 Use compile-time rather than run-time tests for cross-compiler
4403 make an error "Character set is not EBCDIC"
4409 rm -f conftest.
$ac_objext
4410 if { (ac_try
="$ac_compile"
4412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4416 $as_echo "$ac_try_echo") >&5
4417 (eval "$ac_compile") 2>conftest.er1
4419 grep -v '^ *+' conftest.er1 >conftest.err
4421 cat conftest.err >&5
4422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && {
4424 test -z "$ac_c_werror_flag" ||
4425 test ! -s conftest.err
4426 } && test -s conftest.$ac_objext; then
4427 # TryCompile action if true
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 # TryCompile action if false
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 # end of TryCompile ])
4439 # end of CacheVal CvEbcdic
4440 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4441 $as_echo "$cf_cv_ebcdic" >&6; }
4442 case "$cf_cv_ebcdic" in #(vi
4443 yes) cat >>confdefs.h <<\_ACEOF
4449 *) line_break='"\\012"';;
4453 if test "$cf_cv_ebcdic" = "yes"; then
4454 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4455 $as_echo_n "checking for OS/390 Unix... " >&6; }
4457 OS/390) OS390Unix="yes";
4458 if test "$CC" = "cc"; then
4462 if test "$CC" = "c89"; then
4469 if test "$ccm" != "1"; then
4471 echo "------------------------------------------"
4472 echo " On OS/390 Unix, the environment variable"
4473 echo " __CC_${ccn}MODE must be set to \"1\"!"
4475 echo " export _CC_${ccn}MODE=1"
4476 echo " and then call configure again."
4477 echo "------------------------------------------"
4480 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4481 { $as_echo "$as_me:$LINENO: result: yes" >&5
4482 $as_echo "yes" >&6; }
4485 { $as_echo "$as_me:$LINENO: result: no" >&5
4486 $as_echo "no" >&6; }
4491 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4492 $as_echo_n "checking --disable-selinux argument... " >&6; }
4493 # Check whether --enable-selinux was given.
4494 if test "${enable_selinux+set}" = set; then
4495 enableval=$enable_selinux;
4497 enable_selinux="yes"
4500 if test "$enable_selinux" = "yes"; then
4501 { $as_echo "$as_me:$LINENO: result: no" >&5
4502 $as_echo "no" >&6; }
4503 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4504 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4505 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4506 $as_echo_n "(cached) " >&6
4508 ac_check_lib_save_LIBS=$LIBS
4509 LIBS="-lselinux $LIBS"
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4517 /* Override any GCC internal prototype to avoid an error.
4518 Use char because int might match the return type of a GCC
4519 builtin and then its argument prototype would still apply. */
4523 char is_selinux_enabled ();
4527 return is_selinux_enabled ();
4532 rm -f conftest.$ac_objext conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4536 *) ac_try_echo
=$ac_try;;
4538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest
$ac_exeext && {
4550 test "$cross_compiling" = yes ||
4551 $as_test_x conftest
$ac_exeext
4553 ac_cv_lib_selinux_is_selinux_enabled
=yes
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.
$ac_ext >&5
4558 ac_cv_lib_selinux_is_selinux_enabled
=no
4561 rm -rf conftest.dSYM
4562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4563 conftest
$ac_exeext conftest.
$ac_ext
4564 LIBS
=$ac_check_lib_save_LIBS
4566 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4567 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4568 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
4569 LIBS
="$LIBS -lselinux"
4570 cat >>confdefs.h
<<\_ACEOF
4571 #define HAVE_SELINUX 1
4577 { $as_echo "$as_me:$LINENO: result: yes" >&5
4578 $as_echo "yes" >&6; }
4582 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4583 $as_echo_n "checking --with-features argument... " >&6; }
4585 # Check whether --with-features was given.
4586 if test "${with_features+set}" = set; then
4587 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4588 $as_echo "$features" >&6; }
4590 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4591 $as_echo "Defaulting to normal" >&6; }
4598 tiny
) cat >>confdefs.h
<<\_ACEOF
4602 small
) cat >>confdefs.h
<<\_ACEOF
4603 #define FEAT_SMALL 1
4606 normal
) cat >>confdefs.h
<<\_ACEOF
4607 #define FEAT_NORMAL 1
4609 dovimdiff
="installvimdiff";
4610 dogvimdiff
="installgvimdiff" ;;
4611 big
) cat >>confdefs.h
<<\_ACEOF
4614 dovimdiff
="installvimdiff";
4615 dogvimdiff
="installgvimdiff" ;;
4616 huge
) cat >>confdefs.h
<<\_ACEOF
4619 dovimdiff
="installvimdiff";
4620 dogvimdiff
="installgvimdiff" ;;
4621 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4622 $as_echo "Sorry, $features is not supported" >&6; } ;;
4628 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4629 $as_echo_n "checking --with-compiledby argument... " >&6; }
4631 # Check whether --with-compiledby was given.
4632 if test "${with_compiledby+set}" = set; then
4633 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4634 $as_echo "$withval" >&6; }
4636 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4637 $as_echo "no" >&6; }
4642 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4643 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4644 # Check whether --enable-xsmp was given.
4645 if test "${enable_xsmp+set}" = set; then
4646 enableval
=$enable_xsmp;
4652 if test "$enable_xsmp" = "yes"; then
4653 { $as_echo "$as_me:$LINENO: result: no" >&5
4654 $as_echo "no" >&6; }
4655 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4656 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4657 # Check whether --enable-xsmp-interact was given.
4658 if test "${enable_xsmp_interact+set}" = set; then
4659 enableval
=$enable_xsmp_interact;
4661 enable_xsmp_interact
="yes"
4664 if test "$enable_xsmp_interact" = "yes"; then
4665 { $as_echo "$as_me:$LINENO: result: no" >&5
4666 $as_echo "no" >&6; }
4667 cat >>confdefs.h
<<\_ACEOF
4668 #define USE_XSMP_INTERACT 1
4672 { $as_echo "$as_me:$LINENO: result: yes" >&5
4673 $as_echo "yes" >&6; }
4676 { $as_echo "$as_me:$LINENO: result: yes" >&5
4677 $as_echo "yes" >&6; }
4680 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4681 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4682 # Check whether --enable-mzschemeinterp was given.
4683 if test "${enable_mzschemeinterp+set}" = set; then
4684 enableval
=$enable_mzschemeinterp;
4686 enable_mzschemeinterp
="no"
4689 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4690 $as_echo "$enable_mzschemeinterp" >&6; }
4692 if test "$enable_mzschemeinterp" = "yes"; then
4695 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4696 $as_echo_n "checking --with-plthome argument... " >&6; }
4698 # Check whether --with-plthome was given.
4699 if test "${with_plthome+set}" = set; then
4700 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4701 $as_echo "$with_plthome" >&6; }
4703 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4704 $as_echo "\"no\"" >&6; }
4708 if test "X$with_plthome" != "X"; then
4709 vi_cv_path_mzscheme_pfx
="$with_plthome"
4711 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4712 $as_echo_n "checking PLTHOME environment var... " >&6; }
4713 if test "X$PLTHOME" != "X"; then
4714 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4715 $as_echo "\"$PLTHOME\"" >&6; }
4716 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4718 { $as_echo "$as_me:$LINENO: result: not set" >&5
4719 $as_echo "not set" >&6; }
4720 # Extract the first word of "mzscheme", so it can be a program name with args.
4721 set dummy mzscheme
; ac_word
=$2
4722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4725 $as_echo_n "(cached) " >&6
4727 case $vi_cv_path_mzscheme in
4729 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir
=.
4737 for ac_exec_ext
in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4751 if test -n "$vi_cv_path_mzscheme"; then
4752 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4753 $as_echo "$vi_cv_path_mzscheme" >&6; }
4755 { $as_echo "$as_me:$LINENO: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test "X$vi_cv_path_mzscheme" != "X"; then
4762 lsout
=`ls -l $vi_cv_path_mzscheme`
4763 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4764 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4768 if test "X$vi_cv_path_mzscheme" != "X"; then
4769 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4770 $as_echo_n "checking MzScheme install prefix... " >&6; }
4771 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4774 echo "(display (simplify-path \
4775 (build-path (call-with-values \
4776 (lambda () (split-path (find-system-path (quote exec-file)))) \
4777 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4778 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4781 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4782 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4789 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4790 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4791 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4792 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4793 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4794 { $as_echo "$as_me:$LINENO: result: yes" >&5
4795 $as_echo "yes" >&6; }
4797 { $as_echo "$as_me:$LINENO: result: no" >&5
4798 $as_echo "no" >&6; }
4799 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4800 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4801 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4802 { $as_echo "$as_me:$LINENO: result: yes" >&5
4803 $as_echo "yes" >&6; }
4804 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4806 { $as_echo "$as_me:$LINENO: result: no" >&5
4807 $as_echo "no" >&6; }
4808 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4809 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4810 if test -f /usr
/include
/plt
/scheme.h
; then
4811 { $as_echo "$as_me:$LINENO: result: yes" >&5
4812 $as_echo "yes" >&6; }
4813 SCHEME_INC
=/usr
/include
/plt
4815 { $as_echo "$as_me:$LINENO: result: no" >&5
4816 $as_echo "no" >&6; }
4817 vi_cv_path_mzscheme_pfx
=
4823 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4824 if test "x$MACOSX" = "xyes"; then
4825 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4826 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4827 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4828 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4829 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4830 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4832 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4833 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4834 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4836 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4838 if test "$GCC" = yes; then
4839 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4840 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4841 uname
-r |
grep '^5' >/dev
/null
; then
4842 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4845 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4846 SCHEME_COLLECTS
=lib
/plt
/
4848 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4849 MZSCHEME_EXTRA
="mzscheme_base.c"
4850 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4851 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4853 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4854 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4855 MZSCHEME_SRC
="if_mzsch.c"
4856 MZSCHEME_OBJ
="objects/if_mzsch.o"
4857 MZSCHEME_PRO
="if_mzsch.pro"
4858 cat >>confdefs.h
<<\_ACEOF
4859 #define FEAT_MZSCHEME 1
4873 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4874 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4875 # Check whether --enable-perlinterp was given.
4876 if test "${enable_perlinterp+set}" = set; then
4877 enableval
=$enable_perlinterp;
4879 enable_perlinterp
="no"
4882 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4883 $as_echo "$enable_perlinterp" >&6; }
4884 if test "$enable_perlinterp" = "yes"; then
4886 # Extract the first word of "perl", so it can be a program name with args.
4887 set dummy perl
; ac_word
=$2
4888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4891 $as_echo_n "(cached) " >&6
4893 case $vi_cv_path_perl in
4895 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir
=.
4903 for ac_exec_ext
in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4917 if test -n "$vi_cv_path_perl"; then
4918 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4919 $as_echo "$vi_cv_path_perl" >&6; }
4921 { $as_echo "$as_me:$LINENO: result: no" >&5
4922 $as_echo "no" >&6; }
4926 if test "X$vi_cv_path_perl" != "X"; then
4927 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4928 $as_echo_n "checking Perl version... " >&6; }
4929 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4930 eval `$vi_cv_path_perl -V:usethreads`
4931 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4934 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4935 eval `$vi_cv_path_perl -V:use5005threads`
4936 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4940 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4941 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4945 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4946 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4949 if test $badthreads = no
; then
4950 { $as_echo "$as_me:$LINENO: result: OK" >&5
4951 $as_echo "OK" >&6; }
4952 eval `$vi_cv_path_perl -V:shrpenv`
4953 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4956 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4958 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4959 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4960 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4961 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4962 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4963 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4964 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4966 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4967 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4970 ldflags_save
=$LDFLAGS
4971 CFLAGS
="$CFLAGS $perlcppflags"
4972 LIBS
="$LIBS $perllibs"
4973 LDFLAGS
="$perlldflags $LDFLAGS"
4974 cat >conftest.
$ac_ext <<_ACEOF
4977 cat confdefs.h
>>conftest.
$ac_ext
4978 cat >>conftest.
$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4989 rm -f conftest.
$ac_objext conftest
$ac_exeext
4990 if { (ac_try
="$ac_link"
4992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_link") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1 >conftest.err
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest$ac_exeext && {
5007 test "$cross_compiling" = yes ||
5008 $as_test_x conftest$ac_exeext
5010 { $as_echo "$as_me:$LINENO: result: yes" >&5
5011 $as_echo "yes" >&6; }; perl_ok=yes
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5016 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
5017 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
5020 rm -rf conftest.dSYM
5021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5022 conftest$ac_exeext conftest.$ac_ext
5025 LDFLAGS=$ldflags_save
5026 if test $perl_ok = yes; then
5027 if test "X$perlcppflags" != "X"; then
5028 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
5030 if test "X$perlldflags" != "X"; then
5031 LDFLAGS="$perlldflags $LDFLAGS"
5034 PERL_SRC="auto/if_perl.c if_perlsfio.c"
5035 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
5036 PERL_PRO="if_perl.pro if_perlsfio.pro"
5037 cat >>confdefs.h <<\_ACEOF
5044 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
5045 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
5049 if test "x$MACOSX" = "xyes"; then
5050 dir=/System/Library/Perl
5051 darwindir=$dir/darwin
5052 if test -d $darwindir; then
5055 dir=/System/Library/Perl/5.8.1
5056 darwindir=$dir/darwin-thread-multi-2level
5057 if test -d $darwindir; then
5061 if test -n "$PERL"; then
5063 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
5064 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
5065 PERL_LIBS="-L$darwindir/CORE -lperl"
5076 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5077 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5078 # Check whether --enable-pythoninterp was given.
5079 if test "${enable_pythoninterp+set}" = set; then
5080 enableval=$enable_pythoninterp;
5082 enable_pythoninterp="no"
5085 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5086 $as_echo "$enable_pythoninterp" >&6; }
5087 if test "$enable_pythoninterp" = "yes"; then
5088 # Extract the first word of "python", so it can be a program name with args.
5089 set dummy python; ac_word=$2
5090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5093 $as_echo_n "(cached) " >&6
5095 case $vi_cv_path_python in
5097 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5107 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5119 if test -n "$vi_cv_path_python"; then
5120 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5121 $as_echo "$vi_cv_path_python" >&6; }
5123 { $as_echo "$as_me:$LINENO: result: no" >&5
5124 $as_echo "no" >&6; }
5128 if test "X$vi_cv_path_python" != "X"; then
5130 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5131 $as_echo_n "checking Python version... " >&6; }
5132 if test "${vi_cv_var_python_version+set}" = set; then
5133 $as_echo_n "(cached) " >&6
5135 vi_cv_var_python_version=`
5136 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5139 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5140 $as_echo "$vi_cv_var_python_version" >&6; }
5142 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5143 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5144 if ${vi_cv_path_python} -c \
5145 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5147 { $as_echo "$as_me:$LINENO: result: yep" >&5
5148 $as_echo "yep" >&6; }
5150 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5151 $as_echo_n "checking Python's install prefix... " >&6; }
5152 if test "${vi_cv_path_python_pfx+set}" = set; then
5153 $as_echo_n "(cached) " >&6
5155 vi_cv_path_python_pfx=`
5156 ${vi_cv_path_python} -c \
5157 "import sys; print sys.prefix"`
5159 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5160 $as_echo "$vi_cv_path_python_pfx" >&6; }
5162 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5163 $as_echo_n "checking Python's execution prefix... " >&6; }
5164 if test "${vi_cv_path_python_epfx+set}" = set; then
5165 $as_echo_n "(cached) " >&6
5167 vi_cv_path_python_epfx=`
5168 ${vi_cv_path_python} -c \
5169 "import sys; print sys.exec_prefix"`
5171 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5172 $as_echo "$vi_cv_path_python_epfx" >&6; }
5175 if test "${vi_cv_path_pythonpath+set}" = set; then
5176 $as_echo_n "(cached) " >&6
5178 vi_cv_path_pythonpath=`
5180 ${vi_cv_path_python} -c \
5181 "import sys, string; print string.join(sys.path,':')"`
5187 # Check whether --with-python-config-dir was given.
5188 if test "${with_python_config_dir+set}" = set; then
5189 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5193 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5194 $as_echo_n "checking Python's configuration directory... " >&6; }
5195 if test "${vi_cv_path_python_conf+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5199 vi_cv_path_python_conf=
5200 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5201 for subdir in lib64 lib share; do
5202 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5203 if test -d "$d" && test -f "$d/config.c"; then
5204 vi_cv_path_python_conf="$d"
5210 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5211 $as_echo "$vi_cv_path_python_conf" >&6; }
5213 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5215 if test "X$PYTHON_CONFDIR" = "X"; then
5216 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5217 $as_echo "can't find it!" >&6; }
5220 if test "${vi_cv_path_python_plibs+set}" = set; then
5221 $as_echo_n "(cached) " >&6
5225 tmp_mkf="$pwd/config-PyMake$$"
5226 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5228 @echo "python_MODLIBS='$(MODLIBS)'"
5229 @echo "python_LIBS='$(LIBS)'"
5230 @echo "python_SYSLIBS='$(SYSLIBS)'"
5231 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5233 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5234 rm -f -- "${tmp_mkf}"
5235 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5236 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5237 vi_cv_path_python_plibs="-framework Python"
5239 if test "${vi_cv_var_python_version}" = "1.4"; then
5240 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5242 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5244 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5245 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5251 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5252 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5253 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5255 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}"
5257 PYTHON_SRC="if_python.c"
5258 if test "x$MACOSX" = "xyes"; then
5259 PYTHON_OBJ="objects/if_python.o"
5261 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5263 if test "${vi_cv_var_python_version}" = "1.4"; then
5264 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5266 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5268 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5269 $as_echo_n "checking if -pthread should be used... " >&6; }
5272 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5273 test "$GCC" = yes && threadsafe_flag="-pthread"
5274 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5275 threadsafe_flag="-D_THREAD_SAFE"
5276 thread_lib="-pthread"
5280 if test -n "$threadsafe_flag"; then
5282 CFLAGS="$CFLAGS $threadsafe_flag"
5283 LIBS="$LIBS $thread_lib"
5284 cat >conftest.$ac_ext <<_ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5299 rm -f conftest.$ac_objext conftest$ac_exeext
5300 if { (ac_try="$ac_link"
5302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5303 *) ac_try_echo
=$ac_try;;
5305 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$ac_try_echo") >&5
5307 (eval "$ac_link") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1
>conftest.err
5311 cat conftest.err
>&5
5312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest
$ac_exeext && {
5317 test "$cross_compiling" = yes ||
5318 $as_test_x conftest
$ac_exeext
5320 { $as_echo "$as_me:$LINENO: result: yes" >&5
5321 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5323 $as_echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.
$ac_ext >&5
5326 { $as_echo "$as_me:$LINENO: result: no" >&5
5327 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5331 rm -rf conftest.dSYM
5332 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5333 conftest
$ac_exeext conftest.
$ac_ext
5336 { $as_echo "$as_me:$LINENO: result: no" >&5
5337 $as_echo "no" >&6; }
5340 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5341 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5344 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5345 LIBS
="$LIBS $PYTHON_LIBS"
5346 cat >conftest.
$ac_ext <<_ACEOF
5349 cat confdefs.h
>>conftest.
$ac_ext
5350 cat >>conftest.
$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5361 rm -f conftest.
$ac_objext conftest
$ac_exeext
5362 if { (ac_try
="$ac_link"
5364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5368 $as_echo "$ac_try_echo") >&5
5369 (eval "$ac_link") 2>conftest.er1
5371 grep -v '^ *+' conftest.er1 >conftest.err
5373 cat conftest.err >&5
5374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && {
5376 test -z "$ac_c_werror_flag" ||
5377 test ! -s conftest.err
5378 } && test -s conftest$ac_exeext && {
5379 test "$cross_compiling" = yes ||
5380 $as_test_x conftest$ac_exeext
5382 { $as_echo "$as_me:$LINENO: result: yes" >&5
5383 $as_echo "yes" >&6; }; python_ok=yes
5385 $as_echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5389 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5392 rm -rf conftest.dSYM
5393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5394 conftest$ac_exeext conftest.$ac_ext
5397 if test $python_ok = yes; then
5398 cat >>confdefs.h <<\_ACEOF
5399 #define FEAT_PYTHON 1
5412 { $as_echo "$as_me:$LINENO: result: too old" >&5
5413 $as_echo "too old" >&6; }
5424 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5425 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5426 # Check whether --enable-tclinterp was given.
5427 if test "${enable_tclinterp+set}" = set; then
5428 enableval=$enable_tclinterp;
5430 enable_tclinterp="no"
5433 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5434 $as_echo "$enable_tclinterp" >&6; }
5436 if test "$enable_tclinterp" = "yes"; then
5438 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5439 $as_echo_n "checking --with-tclsh argument... " >&6; }
5441 # Check whether --with-tclsh was given.
5442 if test "${with_tclsh+set}" = set; then
5443 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5444 $as_echo "$tclsh_name" >&6; }
5446 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5447 $as_echo "no" >&6; }
5450 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5451 set dummy $tclsh_name; ac_word=$2
5452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5457 case $vi_cv_path_tcl in
5459 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5469 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5481 if test -n "$vi_cv_path_tcl"; then
5482 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5483 $as_echo "$vi_cv_path_tcl" >&6; }
5485 { $as_echo "$as_me:$LINENO: result: no" >&5
5486 $as_echo "no" >&6; }
5492 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5493 tclsh_name="tclsh8.4"
5494 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5495 set dummy $tclsh_name; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5499 $as_echo_n "(cached) " >&6
5501 case $vi_cv_path_tcl in
5503 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5525 if test -n "$vi_cv_path_tcl"; then
5526 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5527 $as_echo "$vi_cv_path_tcl" >&6; }
5529 { $as_echo "$as_me:$LINENO: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5536 tclsh_name="tclsh8.2"
5537 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5538 set dummy $tclsh_name; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 case $vi_cv_path_tcl in
5546 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5568 if test -n "$vi_cv_path_tcl"; then
5569 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5570 $as_echo "$vi_cv_path_tcl" >&6; }
5572 { $as_echo "$as_me:$LINENO: result: no" >&5
5573 $as_echo "no" >&6; }
5578 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5579 tclsh_name="tclsh8.0"
5580 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5581 set dummy $tclsh_name; ac_word=$2
5582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5585 $as_echo_n "(cached) " >&6
5587 case $vi_cv_path_tcl in
5589 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5611 if test -n "$vi_cv_path_tcl"; then
5612 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5613 $as_echo "$vi_cv_path_tcl" >&6; }
5615 { $as_echo "$as_me:$LINENO: result: no" >&5
5616 $as_echo "no" >&6; }
5621 if test "X$vi_cv_path_tcl" = "X"; then
5623 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5624 set dummy $tclsh_name; ac_word=$2
5625 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5630 case $vi_cv_path_tcl in
5632 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5654 if test -n "$vi_cv_path_tcl"; then
5655 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5656 $as_echo "$vi_cv_path_tcl" >&6; }
5658 { $as_echo "$as_me:$LINENO: result: no" >&5
5659 $as_echo "no" >&6; }
5664 if test "X$vi_cv_path_tcl" != "X"; then
5665 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5666 $as_echo_n "checking Tcl version... " >&6; }
5667 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5668 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5669 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5670 $as_echo "$tclver - OK" >&6; };
5671 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 -`
5673 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5674 $as_echo_n "checking for location of Tcl include... " >&6; }
5675 if test "x$MACOSX" != "xyes"; then
5676 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5678 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5681 for try in $tclinc; do
5682 if test -f "$try/tcl.h"; then
5683 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5684 $as_echo "$try/tcl.h" >&6; }
5689 if test -z "$TCL_INC"; then
5690 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5691 $as_echo "<not found>" >&6; }
5694 if test -z "$SKIP_TCL"; then
5695 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5696 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5697 if test "x$MACOSX" != "xyes"; then
5698 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5699 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5701 tclcnf="/System/Library/Frameworks/Tcl.framework"
5703 for try in $tclcnf; do
5704 if test -f $try/tclConfig.sh; then
5705 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5706 $as_echo "$try/tclConfig.sh" >&6; }
5708 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5709 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'`
5713 if test -z "$TCL_LIBS"; then
5714 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5715 $as_echo "<not found>" >&6; }
5716 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5717 $as_echo_n "checking for Tcl library by myself... " >&6; }
5718 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5719 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5720 for ext in .so .a ; do
5721 for ver in "" $tclver ; do
5722 for try in $tcllib ; do
5724 if test -f $try/lib$trylib ; then
5725 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5726 $as_echo "$try/lib$trylib" >&6; }
5727 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5728 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5729 uname -r | grep '^5' >/dev/null; then
5730 TCL_LIBS="$TCL_LIBS -R $try"
5737 if test -z "$TCL_LIBS"; then
5738 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5739 $as_echo "<not found>" >&6; }
5743 if test -z "$SKIP_TCL"; then
5744 cat >>confdefs.h <<\_ACEOF
5749 TCL_OBJ=objects/if_tcl.o
5751 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5755 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5756 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5766 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5767 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5768 # Check whether --enable-rubyinterp was given.
5769 if test "${enable_rubyinterp+set}" = set; then
5770 enableval=$enable_rubyinterp;
5772 enable_rubyinterp="no"
5775 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5776 $as_echo "$enable_rubyinterp" >&6; }
5777 if test "$enable_rubyinterp" = "yes"; then
5778 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5779 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5781 # Check whether --with-ruby-command was given.
5782 if test "${with_ruby_command+set}" = set; then
5783 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5784 $as_echo "$RUBY_CMD" >&6; }
5786 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5787 $as_echo "defaulting to $RUBY_CMD" >&6; }
5791 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5792 set dummy $RUBY_CMD; ac_word=$2
5793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5798 case $vi_cv_path_ruby in
5800 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5822 if test -n "$vi_cv_path_ruby"; then
5823 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5824 $as_echo "$vi_cv_path_ruby" >&6; }
5826 { $as_echo "$as_me:$LINENO: result: no" >&5
5827 $as_echo "no" >&6; }
5831 if test "X$vi_cv_path_ruby" != "X"; then
5832 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5833 $as_echo_n "checking Ruby version... " >&6; }
5834 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5835 { $as_echo "$as_me:$LINENO: result: OK" >&5
5836 $as_echo "OK" >&6; }
5837 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5838 $as_echo_n "checking Ruby header files... " >&6; }
5839 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5840 if test "X$rubyhdrdir" != "X"; then
5841 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5842 $as_echo "$rubyhdrdir" >&6; }
5843 RUBY_CFLAGS="-I$rubyhdrdir"
5844 rubyarch=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["arch"]'`
5845 if test -d "$rubyhdrdir/$rubyarch"; then
5846 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5848 rubyversion=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5849 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5850 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5851 if test "X$rubylibs" != "X"; then
5852 RUBY_LIBS="$rubylibs"
5854 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5855 if test -f "$rubyhdrdir/$librubyarg"; then
5856 librubyarg="$rubyhdrdir/$librubyarg"
5858 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5859 if test -f "$rubylibdir/$librubyarg"; then
5860 librubyarg="$rubylibdir/$librubyarg"
5861 elif test "$librubyarg" = "libruby.a"; then
5864 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5868 if test "X$librubyarg" != "X"; then
5869 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5871 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5872 if test "X$rubyldflags" != "X"; then
5873 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5874 if test "X$rubyldflags" != "X"; then
5875 LDFLAGS="$rubyldflags $LDFLAGS"
5878 RUBY_SRC="if_ruby.c"
5879 RUBY_OBJ="objects/if_ruby.o"
5880 RUBY_PRO="if_ruby.pro"
5881 cat >>confdefs.h <<\_ACEOF
5886 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5887 $as_echo "not found; disabling Ruby" >&6; }
5890 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5891 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5901 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5902 $as_echo_n "checking --enable-cscope argument... " >&6; }
5903 # Check whether --enable-cscope was given.
5904 if test "${enable_cscope+set}" = set; then
5905 enableval=$enable_cscope;
5910 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5911 $as_echo "$enable_cscope" >&6; }
5912 if test "$enable_cscope" = "yes"; then
5913 cat >>confdefs.h <<\_ACEOF
5914 #define FEAT_CSCOPE 1
5919 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5920 $as_echo_n "checking --enable-workshop argument... " >&6; }
5921 # Check whether --enable-workshop was given.
5922 if test "${enable_workshop+set}" = set; then
5923 enableval=$enable_workshop;
5925 enable_workshop="no"
5928 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5929 $as_echo "$enable_workshop" >&6; }
5930 if test "$enable_workshop" = "yes"; then
5931 cat >>confdefs.h <<\_ACEOF
5932 #define FEAT_SUN_WORKSHOP 1
5935 WORKSHOP_SRC="workshop.c integration.c"
5937 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5939 if test "${enable_gui-xxx}" = xxx; then
5944 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5945 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5946 # Check whether --enable-netbeans was given.
5947 if test "${enable_netbeans+set}" = set; then
5948 enableval=$enable_netbeans;
5950 enable_netbeans="yes"
5953 if test "$enable_netbeans" = "yes"; then
5954 { $as_echo "$as_me:$LINENO: result: no" >&5
5955 $as_echo "no" >&6; }
5957 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5958 $as_echo_n "checking for socket in -lsocket... " >&6; }
5959 if test "${ac_cv_lib_socket_socket+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5962 ac_check_lib_save_LIBS=$LIBS
5963 LIBS="-lsocket $LIBS"
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5971 /* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5990 *) ac_try_echo
=$ac_try;;
5992 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5993 $as_echo "$ac_try_echo") >&5
5994 (eval "$ac_link") 2>conftest.er1
5996 grep -v '^ *+' conftest.er1
>conftest.err
5998 cat conftest.err
>&5
5999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest
$ac_exeext && {
6004 test "$cross_compiling" = yes ||
6005 $as_test_x conftest
$ac_exeext
6007 ac_cv_lib_socket_socket
=yes
6009 $as_echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6012 ac_cv_lib_socket_socket
=no
6015 rm -rf conftest.dSYM
6016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6017 conftest
$ac_exeext conftest.
$ac_ext
6018 LIBS
=$ac_check_lib_save_LIBS
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
6021 $as_echo "$ac_cv_lib_socket_socket" >&6; }
6022 if test "x$ac_cv_lib_socket_socket" = x
""yes; then
6023 cat >>confdefs.h
<<_ACEOF
6024 #define HAVE_LIBSOCKET 1
6027 LIBS
="-lsocket $LIBS"
6032 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6033 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6034 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6035 $as_echo_n "(cached) " >&6
6037 ac_check_lib_save_LIBS
=$LIBS
6039 cat >conftest.
$ac_ext <<_ACEOF
6042 cat confdefs.h
>>conftest.
$ac_ext
6043 cat >>conftest.
$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6046 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */
6052 char gethostbyname ();
6056 return gethostbyname ();
6061 rm -f conftest.
$ac_objext conftest
$ac_exeext
6062 if { (ac_try
="$ac_link"
6064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069 (eval "$ac_link") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext && {
6079 test "$cross_compiling" = yes ||
6080 $as_test_x conftest$ac_exeext
6082 ac_cv_lib_nsl_gethostbyname=yes
6084 $as_echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 ac_cv_lib_nsl_gethostbyname=no
6090 rm -rf conftest.dSYM
6091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6092 conftest$ac_exeext conftest.$ac_ext
6093 LIBS=$ac_check_lib_save_LIBS
6095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6096 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6097 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_LIBNSL 1
6106 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6107 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6120 #include <netinet/in.h>
6122 #include <sys/types.h>
6123 #include <sys/socket.h>
6124 /* Check bitfields */
6126 unsigned int initDone:1;
6134 /* Check creating a socket. */
6135 struct sockaddr_in server;
6136 (void)socket(AF_INET, SOCK_STREAM, 0);
6138 (void)gethostbyname("microsoft.com");
6139 if (errno == ECONNREFUSED)
6140 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (ac_try="$ac_link"
6149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6150 *) ac_try_echo
=$ac_try;;
6152 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6153 $as_echo "$ac_try_echo") >&5
6154 (eval "$ac_link") 2>conftest.er1
6156 grep -v '^ *+' conftest.er1
>conftest.err
6158 cat conftest.err
>&5
6159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } && {
6161 test -z "$ac_c_werror_flag" ||
6162 test ! -s conftest.err
6163 } && test -s conftest
$ac_exeext && {
6164 test "$cross_compiling" = yes ||
6165 $as_test_x conftest
$ac_exeext
6167 { $as_echo "$as_me:$LINENO: result: yes" >&5
6168 $as_echo "yes" >&6; }
6170 $as_echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.
$ac_ext >&5
6173 { $as_echo "$as_me:$LINENO: result: no" >&5
6174 $as_echo "no" >&6; }; enable_netbeans
="no"
6177 rm -rf conftest.dSYM
6178 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6179 conftest
$ac_exeext conftest.
$ac_ext
6181 { $as_echo "$as_me:$LINENO: result: yes" >&5
6182 $as_echo "yes" >&6; }
6184 if test "$enable_netbeans" = "yes"; then
6185 cat >>confdefs.h
<<\_ACEOF
6186 #define FEAT_NETBEANS_INTG 1
6189 NETBEANS_SRC
="netbeans.c"
6191 NETBEANS_OBJ
="objects/netbeans.o"
6195 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6196 $as_echo_n "checking --enable-sniff argument... " >&6; }
6197 # Check whether --enable-sniff was given.
6198 if test "${enable_sniff+set}" = set; then
6199 enableval
=$enable_sniff;
6204 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6205 $as_echo "$enable_sniff" >&6; }
6206 if test "$enable_sniff" = "yes"; then
6207 cat >>confdefs.h
<<\_ACEOF
6208 #define FEAT_SNIFF 1
6211 SNIFF_SRC
="if_sniff.c"
6213 SNIFF_OBJ
="objects/if_sniff.o"
6217 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6218 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6219 # Check whether --enable-multibyte was given.
6220 if test "${enable_multibyte+set}" = set; then
6221 enableval
=$enable_multibyte;
6223 enable_multibyte
="no"
6226 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6227 $as_echo "$enable_multibyte" >&6; }
6228 if test "$enable_multibyte" = "yes"; then
6229 cat >>confdefs.h
<<\_ACEOF
6230 #define FEAT_MBYTE 1
6235 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6236 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6237 # Check whether --enable-hangulinput was given.
6238 if test "${enable_hangulinput+set}" = set; then
6239 enableval
=$enable_hangulinput;
6241 enable_hangulinput
="no"
6244 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6245 $as_echo "$enable_hangulinput" >&6; }
6247 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6248 $as_echo_n "checking --enable-xim argument... " >&6; }
6249 # Check whether --enable-xim was given.
6250 if test "${enable_xim+set}" = set; then
6251 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6252 $as_echo "$enable_xim" >&6; }
6254 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6255 $as_echo "defaulting to auto" >&6; }
6259 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6260 $as_echo_n "checking --enable-fontset argument... " >&6; }
6261 # Check whether --enable-fontset was given.
6262 if test "${enable_fontset+set}" = set; then
6263 enableval
=$enable_fontset;
6268 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6269 $as_echo "$enable_fontset" >&6; }
6271 test -z "$with_x" && with_x
=yes
6272 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6273 if test "$with_x" = no
; then
6274 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6275 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6278 # Extract the first word of "xmkmf", so it can be a program name with args.
6279 set dummy xmkmf
; ac_word
=$2
6280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6283 $as_echo_n "(cached) " >&6
6287 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir
=.
6295 for ac_exec_ext
in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 xmkmfpath
=$ac_cv_path_xmkmfpath
6309 if test -n "$xmkmfpath"; then
6310 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6311 $as_echo "$xmkmfpath" >&6; }
6313 { $as_echo "$as_me:$LINENO: result: no" >&5
6314 $as_echo "no" >&6; }
6319 { $as_echo "$as_me:$LINENO: checking for X" >&5
6320 $as_echo_n "checking for X... " >&6; }
6323 # Check whether --with-x was given.
6324 if test "${with_x+set}" = set; then
6328 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6329 if test "x$with_x" = xno
; then
6330 # The user explicitly disabled X.
6333 case $x_includes,$x_libraries in #(
6334 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6335 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6336 { (exit 1); exit 1; }; };; #(
6337 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6340 # One or both of the vars are not set, and there is no cached value.
6341 ac_x_includes
=no ac_x_libraries
=no
6342 rm -f -r conftest.dir
6343 if mkdir conftest.dir
; then
6345 cat >Imakefile
<<'_ACEOF'
6347 @echo incroot='${INCROOT}'
6349 @echo usrlibdir='${USRLIBDIR}'
6351 @echo libdir='${LIBDIR}'
6353 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6354 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6355 for ac_var
in incroot usrlibdir libdir
; do
6356 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6358 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6359 for ac_extension
in a so sl dylib la dll
; do
6360 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6361 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6362 ac_im_usrlibdir
=$ac_im_libdir; break
6365 # Screen out bogus values from the imake configuration. They are
6366 # bogus both because they are the default anyway, and because
6367 # using them would break gcc on systems where it needs fixed includes.
6368 case $ac_im_incroot in
6369 /usr
/include
) ac_x_includes
= ;;
6370 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6372 case $ac_im_usrlibdir in
6373 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6374 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6378 rm -f -r conftest.dir
6381 # Standard set of common directories for X headers.
6382 # Check X11 before X11Rn because it is often a symlink to the current release.
6394 /usr/local/X11/include
6395 /usr/local/X11R6/include
6396 /usr/local/X11R5/include
6397 /usr/local/X11R4/include
6399 /usr/local/include/X11
6400 /usr/local/include/X11R6
6401 /usr/local/include/X11R5
6402 /usr/local/include/X11R4
6406 /usr/XFree86/include/X11
6410 /usr/unsupported/include
6412 /usr/local/x11r5/include
6413 /usr/lpp/Xamples/include
6415 /usr/openwin/include
6416 /usr/openwin/share/include'
6418 if test "$ac_x_includes" = no
; then
6419 # Guess where to find include files, by looking for Xlib.h.
6420 # First, try using that file with no special directory specified.
6421 cat >conftest.
$ac_ext <<_ACEOF
6424 cat confdefs.h
>>conftest.
$ac_ext
6425 cat >>conftest.
$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <X11/Xlib.h>
6429 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6435 $as_echo "$ac_try_echo") >&5
6436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6438 grep -v '^ *+' conftest.er1 >conftest.err
6440 cat conftest.err >&5
6441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } >/dev/null && {
6443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6446 # We can compile using X headers with no special include directory.
6449 $as_echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 for ac_dir in $ac_x_header_dirs; do
6453 if test -r "$ac_dir/X11/Xlib.h"; then
6454 ac_x_includes=$ac_dir
6460 rm -f conftest.err conftest.$ac_ext
6461 fi # $ac_x_includes = no
6463 if test "$ac_x_libraries" = no; then
6464 # Check for the libraries.
6465 # See if we find them without any special options.
6466 # Don't add to $LIBS permanently.
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 #include <X11/Xlib.h>
6484 rm -f conftest.$ac_objext conftest$ac_exeext
6485 if { (ac_try="$ac_link"
6487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6488 *) ac_try_echo
=$ac_try;;
6490 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_link") 2>conftest.er1
6494 grep -v '^ *+' conftest.er1
>conftest.err
6496 cat conftest.err
>&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest
$ac_exeext && {
6502 test "$cross_compiling" = yes ||
6503 $as_test_x conftest
$ac_exeext
6506 # We can link X programs with no special library path.
6509 $as_echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.
$ac_ext >&5
6513 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6515 # Don't even attempt the hair of trying to link an X program!
6516 for ac_extension
in a so sl dylib la dll
; do
6517 if test -r "$ac_dir/libX11.$ac_extension"; then
6518 ac_x_libraries
=$ac_dir
6525 rm -rf conftest.dSYM
6526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6527 conftest
$ac_exeext conftest.
$ac_ext
6528 fi # $ac_x_libraries = no
6530 case $ac_x_includes,$ac_x_libraries in #(
6532 # Didn't find X, or a directory has "'" in its name.
6533 ac_cv_have_x
="have_x=no";; #(
6535 # Record where we found X for the cache.
6536 ac_cv_have_x
="have_x=yes\
6537 ac_x_includes='$ac_x_includes'\
6538 ac_x_libraries='$ac_x_libraries'"
6544 eval "$ac_cv_have_x"
6547 if test "$have_x" != yes; then
6548 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6549 $as_echo "$have_x" >&6; }
6552 # If each of the values was on the command line, it overrides each guess.
6553 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6554 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6555 # Update the cache value to reflect the command line values.
6556 ac_cv_have_x
="have_x=yes\
6557 ac_x_includes='$x_includes'\
6558 ac_x_libraries='$x_libraries'"
6559 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6560 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6563 if test "$no_x" = yes; then
6564 # Not all programs may use this symbol, but it does not hurt to define it.
6566 cat >>confdefs.h
<<\_ACEOF
6567 #define X_DISPLAY_MISSING 1
6570 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6572 if test -n "$x_includes"; then
6573 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6576 # It would also be nice to do this for all -L options, not just this one.
6577 if test -n "$x_libraries"; then
6578 X_LIBS
="$X_LIBS -L$x_libraries"
6579 # For Solaris; some versions of Sun CC require a space after -R and
6580 # others require no space. Words are not sufficient . . . .
6581 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6582 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6583 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6584 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6585 ac_c_werror_flag
=yes
6586 cat >conftest.
$ac_ext <<_ACEOF
6589 cat confdefs.h
>>conftest.
$ac_ext
6590 cat >>conftest.
$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6601 rm -f conftest.
$ac_objext conftest
$ac_exeext
6602 if { (ac_try
="$ac_link"
6604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6608 $as_echo "$ac_try_echo") >&5
6609 (eval "$ac_link") 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } && {
6616 test -z "$ac_c_werror_flag" ||
6617 test ! -s conftest.err
6618 } && test -s conftest$ac_exeext && {
6619 test "$cross_compiling" = yes ||
6620 $as_test_x conftest$ac_exeext
6622 { $as_echo "$as_me:$LINENO: result: no" >&5
6623 $as_echo "no" >&6; }
6624 X_LIBS="$X_LIBS -R$x_libraries"
6626 $as_echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 LIBS="$ac_xsave_LIBS -R $x_libraries"
6630 cat >conftest.$ac_ext <<_ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6645 rm -f conftest.$ac_objext conftest$ac_exeext
6646 if { (ac_try="$ac_link"
6648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6649 *) ac_try_echo
=$ac_try;;
6651 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6652 $as_echo "$ac_try_echo") >&5
6653 (eval "$ac_link") 2>conftest.er1
6655 grep -v '^ *+' conftest.er1
>conftest.err
6657 cat conftest.err
>&5
6658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest
$ac_exeext && {
6663 test "$cross_compiling" = yes ||
6664 $as_test_x conftest
$ac_exeext
6666 { $as_echo "$as_me:$LINENO: result: yes" >&5
6667 $as_echo "yes" >&6; }
6668 X_LIBS
="$X_LIBS -R $x_libraries"
6670 $as_echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.
$ac_ext >&5
6673 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6674 $as_echo "neither works" >&6; }
6677 rm -rf conftest.dSYM
6678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6679 conftest
$ac_exeext conftest.
$ac_ext
6682 rm -rf conftest.dSYM
6683 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6684 conftest
$ac_exeext conftest.
$ac_ext
6685 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6689 # Check for system-dependent libraries X programs must link with.
6690 # Do this before checking for the system-independent R6 libraries
6691 # (-lICE), since we may need -lsocket or whatever for X linking.
6693 if test "$ISC" = yes; then
6694 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6696 # Martyn Johnson says this is needed for Ultrix, if the X
6697 # libraries were built with DECnet support. And Karl Berry says
6698 # the Alpha needs dnet_stub (dnet does not exist).
6699 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6700 cat >conftest.
$ac_ext <<_ACEOF
6703 cat confdefs.h
>>conftest.
$ac_ext
6704 cat >>conftest.
$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6707 /* Override any GCC internal prototype to avoid an error.
6708 Use char because int might match the return type of a GCC
6709 builtin and then its argument prototype would still apply. */
6713 char XOpenDisplay ();
6717 return XOpenDisplay ();
6722 rm -f conftest.
$ac_objext conftest
$ac_exeext
6723 if { (ac_try
="$ac_link"
6725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_link") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1 >conftest.err
6734 cat conftest.err >&5
6735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest$ac_exeext && {
6740 test "$cross_compiling" = yes ||
6741 $as_test_x conftest$ac_exeext
6745 $as_echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6749 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6750 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6753 ac_check_lib_save_LIBS=$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_dnet_ntoa
=yes
6800 $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.
$ac_ext >&5
6803 ac_cv_lib_dnet_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_dnet_ntoa" >&5
6812 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6813 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
6814 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6817 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6818 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6819 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6820 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6821 $as_echo_n "(cached) " >&6
6823 ac_check_lib_save_LIBS
=$LIBS
6824 LIBS
="-ldnet_stub $LIBS"
6825 cat >conftest.
$ac_ext <<_ACEOF
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6832 /* Override any GCC internal prototype to avoid an error.
6833 Use char because int might match the return type of a GCC
6834 builtin and then its argument prototype would still apply. */
6842 return dnet_ntoa ();
6847 rm -f conftest.
$ac_objext conftest
$ac_exeext
6848 if { (ac_try
="$ac_link"
6850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6851 *) ac_try_echo=$ac_try;;
6853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6854 $as_echo "$ac_try_echo") >&5
6855 (eval "$ac_link") 2>conftest.er1
6857 grep -v '^ *+' conftest.er1 >conftest.err
6859 cat conftest.err >&5
6860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && {
6862 test -z "$ac_c_werror_flag" ||
6863 test ! -s conftest.err
6864 } && test -s conftest$ac_exeext && {
6865 test "$cross_compiling" = yes ||
6866 $as_test_x conftest$ac_exeext
6868 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6870 $as_echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_cv_lib_dnet_stub_dnet_ntoa=no
6876 rm -rf conftest.dSYM
6877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6878 conftest$ac_exeext conftest.$ac_ext
6879 LIBS=$ac_check_lib_save_LIBS
6881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6882 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6883 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6890 rm -rf conftest.dSYM
6891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6892 conftest$ac_exeext conftest.$ac_ext
6893 LIBS="$ac_xsave_LIBS"
6895 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6896 # to get the SysV transport functions.
6897 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6899 # The nsl library prevents programs from opening the X display
6900 # on Irix 5.2, according to T.E. Dickey.
6901 # The functions gethostbyname, getservbyname, and inet_addr are
6902 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6903 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6904 $as_echo_n "checking for gethostbyname... " >&6; }
6905 if test "${ac_cv_func_gethostbyname+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6916 #define gethostbyname innocuous_gethostbyname
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char gethostbyname (); below.
6920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 <limits.h> exists even on freestanding compilers. */
6924 # include <limits.h>
6926 # include <assert.h>
6929 #undef gethostbyname
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6937 char gethostbyname ();
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6948 return gethostbyname ();
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (ac_try="$ac_link"
6956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6957 *) ac_try_echo
=$ac_try;;
6959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961 (eval "$ac_link") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1
>conftest.err
6965 cat conftest.err
>&5
6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest
$ac_exeext && {
6971 test "$cross_compiling" = yes ||
6972 $as_test_x conftest
$ac_exeext
6974 ac_cv_func_gethostbyname
=yes
6976 $as_echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.
$ac_ext >&5
6979 ac_cv_func_gethostbyname
=no
6982 rm -rf conftest.dSYM
6983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6984 conftest
$ac_exeext conftest.
$ac_ext
6986 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6987 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6989 if test $ac_cv_func_gethostbyname = no
; then
6990 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6991 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6992 if test "${ac_cv_lib_nsl_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_nsl_gethostbyname=yes
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_lib_nsl_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_nsl_gethostbyname" >&5
7054 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7055 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7059 if test $ac_cv_lib_nsl_gethostbyname = no; then
7060 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7061 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7062 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7063 $as_echo_n "(cached) " >&6
7065 ac_check_lib_save_LIBS=$LIBS
7067 cat >conftest.$ac_ext <<_ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7074 /* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7080 char gethostbyname ();
7084 return gethostbyname ();
7089 rm -f conftest.$ac_objext conftest$ac_exeext
7090 if { (ac_try="$ac_link"
7092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7093 *) ac_try_echo
=$ac_try;;
7095 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7096 $as_echo "$ac_try_echo") >&5
7097 (eval "$ac_link") 2>conftest.er1
7099 grep -v '^ *+' conftest.er1
>conftest.err
7101 cat conftest.err
>&5
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest
$ac_exeext && {
7107 test "$cross_compiling" = yes ||
7108 $as_test_x conftest
$ac_exeext
7110 ac_cv_lib_bsd_gethostbyname
=yes
7112 $as_echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.
$ac_ext >&5
7115 ac_cv_lib_bsd_gethostbyname
=no
7118 rm -rf conftest.dSYM
7119 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7120 conftest
$ac_exeext conftest.
$ac_ext
7121 LIBS
=$ac_check_lib_save_LIBS
7123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7124 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7125 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then
7126 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7132 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7133 # socket/setsockopt and other routines are undefined under SCO ODT
7134 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7135 # on later versions), says Simon Leinen: it contains gethostby*
7136 # variants that don't use the name server (or something). -lsocket
7137 # must be given before -lnsl if both are needed. We assume that
7138 # if connect needs -lnsl, so does gethostbyname.
7139 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7140 $as_echo_n "checking for connect... " >&6; }
7141 if test "${ac_cv_func_connect+set}" = set; then
7142 $as_echo_n "(cached) " >&6
7144 cat >conftest.
$ac_ext <<_ACEOF
7147 cat confdefs.h
>>conftest.
$ac_ext
7148 cat >>conftest.
$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7150 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7152 #define connect innocuous_connect
7154 /* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char connect (); below.
7156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 <limits.h> exists even on freestanding compilers. */
7160 # include <limits.h>
7162 # include <assert.h>
7167 /* Override any GCC internal prototype to avoid an error.
7168 Use char because int might match the return type of a GCC
7169 builtin and then its argument prototype would still apply. */
7174 /* The GNU C library defines this for functions which it implements
7175 to always fail with ENOSYS. Some functions are actually named
7176 something starting with __ and the normal name is an alias. */
7177 #if defined __stub_connect || defined __stub___connect
7189 rm -f conftest.
$ac_objext conftest
$ac_exeext
7190 if { (ac_try
="$ac_link"
7192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7196 $as_echo "$ac_try_echo") >&5
7197 (eval "$ac_link") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest$ac_exeext && {
7207 test "$cross_compiling" = yes ||
7208 $as_test_x conftest$ac_exeext
7210 ac_cv_func_connect=yes
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_cv_func_connect=no
7218 rm -rf conftest.dSYM
7219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7220 conftest$ac_exeext conftest.$ac_ext
7222 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7223 $as_echo "$ac_cv_func_connect" >&6; }
7225 if test $ac_cv_func_connect = no; then
7226 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7227 $as_echo_n "checking for connect in -lsocket... " >&6; }
7228 if test "${ac_cv_lib_socket_connect+set}" = set; then
7229 $as_echo_n "(cached) " >&6
7231 ac_check_lib_save_LIBS=$LIBS
7232 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7240 /* Override any GCC internal prototype to avoid an error.
7241 Use char because int might match the return type of a GCC
7242 builtin and then its argument prototype would still apply. */
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (ac_try="$ac_link"
7258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7259 *) ac_try_echo
=$ac_try;;
7261 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7262 $as_echo "$ac_try_echo") >&5
7263 (eval "$ac_link") 2>conftest.er1
7265 grep -v '^ *+' conftest.er1
>conftest.err
7267 cat conftest.err
>&5
7268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest
$ac_exeext && {
7273 test "$cross_compiling" = yes ||
7274 $as_test_x conftest
$ac_exeext
7276 ac_cv_lib_socket_connect
=yes
7278 $as_echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.
$ac_ext >&5
7281 ac_cv_lib_socket_connect
=no
7284 rm -rf conftest.dSYM
7285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7286 conftest
$ac_exeext conftest.
$ac_ext
7287 LIBS
=$ac_check_lib_save_LIBS
7289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7290 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7291 if test "x$ac_cv_lib_socket_connect" = x
""yes; then
7292 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7297 # Guillermo Gomez says -lposix is necessary on A/UX.
7298 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7299 $as_echo_n "checking for remove... " >&6; }
7300 if test "${ac_cv_func_remove+set}" = set; then
7301 $as_echo_n "(cached) " >&6
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7311 #define remove innocuous_remove
7313 /* System header to define __stub macros and hopefully few prototypes,
7314 which can conflict with char remove (); below.
7315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7316 <limits.h> exists even on freestanding compilers. */
7319 # include <limits.h>
7321 # include <assert.h>
7326 /* Override any GCC internal prototype to avoid an error.
7327 Use char because int might match the return type of a GCC
7328 builtin and then its argument prototype would still apply. */
7333 /* The GNU C library defines this for functions which it implements
7334 to always fail with ENOSYS. Some functions are actually named
7335 something starting with __ and the normal name is an alias. */
7336 #if defined __stub_remove || defined __stub___remove
7348 rm -f conftest.
$ac_objext conftest
$ac_exeext
7349 if { (ac_try
="$ac_link"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_link") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1 >conftest.err
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest$ac_exeext && {
7366 test "$cross_compiling" = yes ||
7367 $as_test_x conftest$ac_exeext
7369 ac_cv_func_remove=yes
7371 $as_echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_cv_func_remove=no
7377 rm -rf conftest.dSYM
7378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7379 conftest$ac_exeext conftest.$ac_ext
7381 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7382 $as_echo "$ac_cv_func_remove" >&6; }
7384 if test $ac_cv_func_remove = no; then
7385 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7386 $as_echo_n "checking for remove in -lposix... " >&6; }
7387 if test "${ac_cv_lib_posix_remove+set}" = set; then
7388 $as_echo_n "(cached) " >&6
7390 ac_check_lib_save_LIBS=$LIBS
7391 LIBS="-lposix $LIBS"
7392 cat >conftest.$ac_ext <<_ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7418 *) ac_try_echo
=$ac_try;;
7420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7421 $as_echo "$ac_try_echo") >&5
7422 (eval "$ac_link") 2>conftest.er1
7424 grep -v '^ *+' conftest.er1
>conftest.err
7426 cat conftest.err
>&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest
$ac_exeext && {
7432 test "$cross_compiling" = yes ||
7433 $as_test_x conftest
$ac_exeext
7435 ac_cv_lib_posix_remove
=yes
7437 $as_echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.
$ac_ext >&5
7440 ac_cv_lib_posix_remove
=no
7443 rm -rf conftest.dSYM
7444 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7445 conftest
$ac_exeext conftest.
$ac_ext
7446 LIBS
=$ac_check_lib_save_LIBS
7448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7449 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7450 if test "x$ac_cv_lib_posix_remove" = x
""yes; then
7451 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7456 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7457 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7458 $as_echo_n "checking for shmat... " >&6; }
7459 if test "${ac_cv_func_shmat+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7470 #define shmat innocuous_shmat
7472 /* System header to define __stub macros and hopefully few prototypes,
7473 which can conflict with char shmat (); below.
7474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7475 <limits.h> exists even on freestanding compilers. */
7478 # include <limits.h>
7480 # include <assert.h>
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7492 /* The GNU C library defines this for functions which it implements
7493 to always fail with ENOSYS. Some functions are actually named
7494 something starting with __ and the normal name is an alias. */
7495 #if defined __stub_shmat || defined __stub___shmat
7507 rm -f conftest.
$ac_objext conftest
$ac_exeext
7508 if { (ac_try
="$ac_link"
7510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7511 *) ac_try_echo=$ac_try;;
7513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7514 $as_echo "$ac_try_echo") >&5
7515 (eval "$ac_link") 2>conftest.er1
7517 grep -v '^ *+' conftest.er1 >conftest.err
7519 cat conftest.err >&5
7520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } && {
7522 test -z "$ac_c_werror_flag" ||
7523 test ! -s conftest.err
7524 } && test -s conftest$ac_exeext && {
7525 test "$cross_compiling" = yes ||
7526 $as_test_x conftest$ac_exeext
7528 ac_cv_func_shmat=yes
7530 $as_echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7536 rm -rf conftest.dSYM
7537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7538 conftest$ac_exeext conftest.$ac_ext
7540 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7541 $as_echo "$ac_cv_func_shmat" >&6; }
7543 if test $ac_cv_func_shmat = no; then
7544 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7545 $as_echo_n "checking for shmat in -lipc... " >&6; }
7546 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7549 ac_check_lib_save_LIBS=$LIBS
7551 cat >conftest.$ac_ext <<_ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7558 /* Override any GCC internal prototype to avoid an error.
7559 Use char because int might match the return type of a GCC
7560 builtin and then its argument prototype would still apply. */
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
7576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7577 *) ac_try_echo
=$ac_try;;
7579 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7580 $as_echo "$ac_try_echo") >&5
7581 (eval "$ac_link") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1
>conftest.err
7585 cat conftest.err
>&5
7586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest
$ac_exeext && {
7591 test "$cross_compiling" = yes ||
7592 $as_test_x conftest
$ac_exeext
7594 ac_cv_lib_ipc_shmat
=yes
7596 $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.
$ac_ext >&5
7599 ac_cv_lib_ipc_shmat
=no
7602 rm -rf conftest.dSYM
7603 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7604 conftest
$ac_exeext conftest.
$ac_ext
7605 LIBS
=$ac_check_lib_save_LIBS
7607 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7608 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7609 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then
7610 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7616 # Check for libraries that X11R6 Xt/Xaw programs need.
7617 ac_save_LDFLAGS
=$LDFLAGS
7618 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7619 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7620 # check for ICE first), but we must link in the order -lSM -lICE or
7621 # we get undefined symbols. So assume we have SM if we have ICE.
7622 # These have to be linked with before -lX11, unlike the other
7623 # libraries we check for below, so use a different variable.
7624 # John Interrante, Karl Berry
7625 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7626 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7627 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7628 $as_echo_n "(cached) " >&6
7630 ac_check_lib_save_LIBS
=$LIBS
7631 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7632 cat >conftest.
$ac_ext <<_ACEOF
7635 cat confdefs.h
>>conftest.
$ac_ext
7636 cat >>conftest.
$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7639 /* Override any GCC internal prototype to avoid an error.
7640 Use char because int might match the return type of a GCC
7641 builtin and then its argument prototype would still apply. */
7645 char IceConnectionNumber ();
7649 return IceConnectionNumber ();
7654 rm -f conftest.
$ac_objext conftest
$ac_exeext
7655 if { (ac_try
="$ac_link"
7657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7661 $as_echo "$ac_try_echo") >&5
7662 (eval "$ac_link") 2>conftest.er1
7664 grep -v '^ *+' conftest.er1 >conftest.err
7666 cat conftest.err >&5
7667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && {
7669 test -z "$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7671 } && test -s conftest$ac_exeext && {
7672 test "$cross_compiling" = yes ||
7673 $as_test_x conftest$ac_exeext
7675 ac_cv_lib_ICE_IceConnectionNumber=yes
7677 $as_echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_cv_lib_ICE_IceConnectionNumber=no
7683 rm -rf conftest.dSYM
7684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7685 conftest$ac_exeext conftest.$ac_ext
7686 LIBS=$ac_check_lib_save_LIBS
7688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7691 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7694 LDFLAGS=$ac_save_LDFLAGS
7699 if test "$OS390Unix" = "yes"; then
7700 CFLAGS="$CFLAGS -W c,dll"
7701 LDFLAGS="$LDFLAGS -W l,dll"
7702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7706 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7707 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7708 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7709 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7710 X_LIBS="$X_LIBS -L$x_libraries"
7711 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7712 uname -r | grep '^5' >/dev/null; then
7713 X_LIBS="$X_LIBS -R $x_libraries"
7717 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7718 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7719 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7720 $as_echo "Corrected X includes to $x_includes" >&6; }
7721 X_CFLAGS="$X_CFLAGS -I$x_includes"
7724 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7725 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7726 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7729 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7730 $as_echo_n "checking if X11 header files can be found... " >&6; }
7732 CFLAGS="$CFLAGS $X_CFLAGS"
7733 cat >conftest.$ac_ext <<_ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7739 #include <X11/Xlib.h>
7740 #include <X11/Intrinsic.h>
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7753 *) ac_try_echo
=$ac_try;;
7755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757 (eval "$ac_compile") 2>conftest.er1
7759 grep -v '^ *+' conftest.er1
>conftest.err
7761 cat conftest.err
>&5
7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest.
$ac_objext; then
7767 { $as_echo "$as_me:$LINENO: result: yes" >&5
7768 $as_echo "yes" >&6; }
7770 $as_echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.
$ac_ext >&5
7773 { $as_echo "$as_me:$LINENO: result: no" >&5
7774 $as_echo "no" >&6; }; no_x
=yes
7777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7780 if test "${no_x-no}" = yes; then
7783 cat >>confdefs.h
<<\_ACEOF
7790 ac_save_LDFLAGS
="$LDFLAGS"
7791 LDFLAGS
="-L$x_libraries $LDFLAGS"
7793 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7794 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7795 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7798 ac_check_lib_save_LIBS
=$LIBS
7799 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $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 _XdmcpAuthDoIt ();
7817 return _XdmcpAuthDoIt ();
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_Xdmcp__XdmcpAuthDoIt=yes
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=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_Xdmcp__XdmcpAuthDoIt" >&5
7857 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7858 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7859 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7863 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7864 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7865 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7866 $as_echo_n "(cached) " >&6
7868 ac_check_lib_save_LIBS=$LIBS
7869 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7870 cat >conftest.$ac_ext <<_ACEOF
7873 cat confdefs.h >>conftest.$ac_ext
7874 cat >>conftest.$ac_ext <<_ACEOF
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7883 char IceOpenConnection ();
7887 return IceOpenConnection ();
7892 rm -f conftest.$ac_objext conftest$ac_exeext
7893 if { (ac_try="$ac_link"
7895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7896 *) ac_try_echo
=$ac_try;;
7898 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7899 $as_echo "$ac_try_echo") >&5
7900 (eval "$ac_link") 2>conftest.er1
7902 grep -v '^ *+' conftest.er1
>conftest.err
7904 cat conftest.err
>&5
7905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest
$ac_exeext && {
7910 test "$cross_compiling" = yes ||
7911 $as_test_x conftest
$ac_exeext
7913 ac_cv_lib_ICE_IceOpenConnection
=yes
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7918 ac_cv_lib_ICE_IceOpenConnection
=no
7921 rm -rf conftest.dSYM
7922 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7923 conftest
$ac_exeext conftest.
$ac_ext
7924 LIBS
=$ac_check_lib_save_LIBS
7926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7927 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7928 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x
""yes; then
7929 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7933 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7934 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7935 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7936 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7937 $as_echo_n "(cached) " >&6
7939 ac_check_lib_save_LIBS
=$LIBS
7940 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7941 cat >conftest.
$ac_ext <<_ACEOF
7944 cat confdefs.h
>>conftest.
$ac_ext
7945 cat >>conftest.
$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7948 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7954 char XpmCreatePixmapFromData ();
7958 return XpmCreatePixmapFromData ();
7963 rm -f conftest.
$ac_objext conftest
$ac_exeext
7964 if { (ac_try
="$ac_link"
7966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7970 $as_echo "$ac_try_echo") >&5
7971 (eval "$ac_link") 2>conftest.er1
7973 grep -v '^ *+' conftest.er1 >conftest.err
7975 cat conftest.err >&5
7976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } && {
7978 test -z "$ac_c_werror_flag" ||
7979 test ! -s conftest.err
7980 } && test -s conftest$ac_exeext && {
7981 test "$cross_compiling" = yes ||
7982 $as_test_x conftest$ac_exeext
7984 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7986 $as_echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7992 rm -rf conftest.dSYM
7993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7997 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7998 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7999 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
8000 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
8004 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
8005 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
8007 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
8008 cat >conftest.$ac_ext <<_ACEOF
8011 cat confdefs.h >>conftest.$ac_ext
8012 cat >>conftest.$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8014 #include <X11/Xlib.h>
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8027 *) ac_try_echo
=$ac_try;;
8029 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1
>conftest.err
8035 cat conftest.err
>&5
8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.
$ac_objext; then
8041 { $as_echo "$as_me:$LINENO: result: no" >&5
8042 $as_echo "no" >&6; }
8044 $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.
$ac_ext >&5
8047 CFLAGS
="$CFLAGS -Wno-implicit-int"
8048 cat >conftest.
$ac_ext <<_ACEOF
8051 cat confdefs.h
>>conftest.
$ac_ext
8052 cat >>conftest.
$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <X11/Xlib.h>
8063 rm -f conftest.
$ac_objext
8064 if { (ac_try
="$ac_compile"
8066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8067 *) ac_try_echo=$ac_try;;
8069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8070 $as_echo "$ac_try_echo") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8081 { $as_echo "$as_me:$LINENO: result: yes" >&5
8082 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8084 $as_echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8087 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8088 $as_echo "test failed" >&6; }
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 LDFLAGS="$ac_save_LDFLAGS"
8101 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8102 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8103 if test "${ac_cv_small_wchar_t+set}" = set; then
8104 $as_echo_n "(cached) " >&6
8106 if test "$cross_compiling" = yes; then
8107 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8108 $as_echo "$as_me: error: failed to compile test program" >&2;}
8109 { (exit 1); exit 1; }; }
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8118 #include <X11/Xlib.h>
8120 # include <stdlib.h>
8121 # include <stddef.h>
8125 if (sizeof(wchar_t) <= 2)
8130 rm -f conftest$ac_exeext
8131 if { (ac_try="$ac_link"
8133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8134 *) ac_try_echo
=$ac_try;;
8136 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8137 $as_echo "$ac_try_echo") >&5
8138 (eval "$ac_link") 2>&5
8140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8142 { (case "(($ac_try" in
8143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8147 $as_echo "$ac_try_echo") >&5
8148 (eval "$ac_try") 2>&5
8150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_cv_small_wchar_t="no"
8154 $as_echo "$as_me: program exited with status $ac_status" >&5
8155 $as_echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8159 ac_cv_small_wchar_t="yes"
8161 rm -rf conftest.dSYM
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8168 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8169 $as_echo "$ac_cv_small_wchar_t" >&6; }
8170 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8171 cat >>confdefs.h <<\_ACEOF
8172 #define SMALL_WCHAR_T 1
8180 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8182 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8183 $as_echo_n "checking --enable-gui argument... " >&6; }
8184 # Check whether --enable-gui was given.
8185 if test "${enable_gui+set}" = set; then
8186 enableval=$enable_gui;
8192 enable_gui_canon=`echo "_$enable_gui" | \
8193 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8205 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8207 case "$enable_gui_canon" in
8208 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8209 $as_echo "no GUI support" >&6; }
8211 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8212 $as_echo "yes - automatic GUI support" >&6; } ;;
8213 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8214 $as_echo "auto - automatic GUI support" >&6; } ;;
8215 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8216 $as_echo "Photon GUI support" >&6; } ;;
8217 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8218 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8222 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8224 case "$enable_gui_canon" in
8225 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8226 $as_echo "no GUI support" >&6; }
8228 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8229 $as_echo "yes - automatic GUI support" >&6; } ;;
8230 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8231 $as_echo "auto - automatic GUI support" >&6; } ;;
8232 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8233 $as_echo "Carbon GUI support" >&6; } ;;
8234 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8235 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8241 case "$enable_gui_canon" in
8242 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8243 $as_echo "no GUI support" >&6; } ;;
8244 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8245 $as_echo "yes/auto - automatic GUI support" >&6; }
8253 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8254 $as_echo "GTK+ 1.x GUI support" >&6; }
8256 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8257 $as_echo "GTK+ 2.x GUI support" >&6; }
8260 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8261 $as_echo "GNOME 1.x GUI support" >&6; }
8264 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8265 $as_echo "GNOME 2.x GUI support" >&6; }
8269 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8270 $as_echo "Motif GUI support" >&6; }
8272 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8273 $as_echo "Athena GUI support" >&6; }
8275 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8276 $as_echo "neXtaw GUI support" >&6; }
8278 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8279 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8284 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8285 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8286 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8287 # Check whether --enable-gtk-check was given.
8288 if test "${enable_gtk_check+set}" = set; then
8289 enableval=$enable_gtk_check;
8291 enable_gtk_check="yes"
8294 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8295 $as_echo "$enable_gtk_check" >&6; }
8296 if test "x$enable_gtk_check" = "xno"; then
8302 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8303 -a "$enable_gui_canon" != "gnome2"; then
8304 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8305 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8306 # Check whether --enable-gtk2-check was given.
8307 if test "${enable_gtk2_check+set}" = set; then
8308 enableval=$enable_gtk2_check;
8310 enable_gtk2_check="yes"
8313 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8314 $as_echo "$enable_gtk2_check" >&6; }
8315 if test "x$enable_gtk2_check" = "xno"; then
8320 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8321 -a "$enable_gui_canon" != "gnome2"; then
8322 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8323 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8324 # Check whether --enable-gnome-check was given.
8325 if test "${enable_gnome_check+set}" = set; then
8326 enableval=$enable_gnome_check;
8328 enable_gnome_check="no"
8331 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8332 $as_echo "$enable_gnome_check" >&6; }
8333 if test "x$enable_gnome_check" = "xno"; then
8338 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8339 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8340 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8341 # Check whether --enable-motif-check was given.
8342 if test "${enable_motif_check+set}" = set; then
8343 enableval=$enable_motif_check;
8345 enable_motif_check="yes"
8348 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8349 $as_echo "$enable_motif_check" >&6; }
8350 if test "x$enable_motif_check" = "xno"; then
8355 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8356 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8357 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8358 # Check whether --enable-athena-check was given.
8359 if test "${enable_athena_check+set}" = set; then
8360 enableval=$enable_athena_check;
8362 enable_athena_check="yes"
8365 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8366 $as_echo "$enable_athena_check" >&6; }
8367 if test "x$enable_athena_check" = "xno"; then
8372 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8373 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8374 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8375 # Check whether --enable-nextaw-check was given.
8376 if test "${enable_nextaw_check+set}" = set; then
8377 enableval=$enable_nextaw_check;
8379 enable_nextaw_check="yes"
8382 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8383 $as_echo "$enable_nextaw_check" >&6; };
8384 if test "x$enable_nextaw_check" = "xno"; then
8389 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8390 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8391 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8392 # Check whether --enable-carbon-check was given.
8393 if test "${enable_carbon_check+set}" = set; then
8394 enableval=$enable_carbon_check;
8396 enable_carbon_check="yes"
8399 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8400 $as_echo "$enable_carbon_check" >&6; };
8401 if test "x$enable_carbon_check" = "xno"; then
8407 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8408 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8409 $as_echo_n "checking for Carbon GUI... " >&6; }
8410 { $as_echo "$as_me:$LINENO: result: yes" >&5
8411 $as_echo "yes" >&6; };
8413 if test "$VIMNAME" = "vim"; then
8417 if test x$prefix = xNONE; then
8418 prefix=/Applications
8421 datadir='${prefix}/Vim.app/Contents/Resources'
8441 if test -z "$SKIP_GTK"; then
8443 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8444 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8446 # Check whether --with-gtk-prefix was given.
8447 if test "${with_gtk_prefix+set}" = set; then
8448 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8449 $as_echo "$gtk_config_prefix" >&6; }
8451 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8452 $as_echo "no" >&6; }
8456 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8457 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8459 # Check whether --with-gtk-exec-prefix was given.
8460 if test "${with_gtk_exec_prefix+set}" = set; then
8461 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8462 $as_echo "$gtk_config_prefix" >&6; }
8464 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8465 $as_echo "no" >&6; }
8469 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8470 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8471 # Check whether --enable-gtktest was given.
8472 if test "${enable_gtktest+set}" = set; then
8473 enableval=$enable_gtktest;
8478 if test "x$enable_gtktest" = "xyes" ; then
8479 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8480 $as_echo "gtk test enabled" >&6; }
8482 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8483 $as_echo "gtk test disabled" >&6; }
8486 if test "x$gtk_config_prefix" != "x" ; then
8487 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8488 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8490 if test "x$gtk_config_exec_prefix" != "x" ; then
8491 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8492 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8494 if test "X$GTK_CONFIG" = "X"; then
8495 # Extract the first word of "gtk-config", so it can be a program name with args.
8496 set dummy gtk-config; ac_word=$2
8497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8504 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8526 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8527 if test -n "$GTK_CONFIG"; then
8528 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8529 $as_echo "$GTK_CONFIG" >&6; }
8531 { $as_echo "$as_me:$LINENO: result: no" >&5
8532 $as_echo "no" >&6; }
8536 if test "X$GTK_CONFIG" = "Xno"; then
8537 # Extract the first word of "gtk12-config", so it can be a program name with args.
8538 set dummy gtk12-config; ac_word=$2
8539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8542 $as_echo_n "(cached) " >&6
8544 case $GTK12_CONFIG in
8546 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8564 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8568 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8569 if test -n "$GTK12_CONFIG"; then
8570 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8571 $as_echo "$GTK12_CONFIG" >&6; }
8573 { $as_echo "$as_me:$LINENO: result: no" >&5
8574 $as_echo "no" >&6; }
8578 GTK_CONFIG="$GTK12_CONFIG"
8581 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8582 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8584 if test "X$PKG_CONFIG" = "X"; then
8585 # Extract the first word of "pkg-config", so it can be a program name with args.
8586 set dummy pkg-config; ac_word=$2
8587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8590 $as_echo_n "(cached) " >&6
8594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8617 if test -n "$PKG_CONFIG"; then
8618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8619 $as_echo "$PKG_CONFIG" >&6; }
8621 { $as_echo "$as_me:$LINENO: result: no" >&5
8622 $as_echo "no" >&6; }
8628 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8629 if test "X$SKIP_GTK2" != "XYES"; then
8631 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8633 min_gtk_version=2.2.0
8634 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8635 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8637 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8638 && $PKG_CONFIG --exists gtk+-2.0; then
8640 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8641 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8642 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8643 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8644 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8645 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8647 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8648 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8650 elif test "X$GTK_CONFIG" != "Xno"; then
8652 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8654 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8655 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8656 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8657 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8658 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8659 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8660 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8666 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8668 ac_save_CFLAGS="$CFLAGS"
8669 ac_save_LIBS="$LIBS"
8670 CFLAGS="$CFLAGS $GTK_CFLAGS"
8671 LIBS="$LIBS $GTK_LIBS"
8674 if test "$cross_compiling" = yes; then
8675 echo $ac_n "cross compiling; assumed OK... $ac_c"
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8684 #include <gtk/gtk.h>
8687 # include <stdlib.h>
8688 # include <stddef.h>
8694 int major, minor, micro;
8697 system ("touch conf.gtktest");
8699 /* HP/UX 9 (%@#!) writes to sscanf strings */
8700 tmp_version = g_strdup("$min_gtk_version");
8701 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8702 printf("%s, bad version string\n", "$min_gtk_version");
8706 if ((gtk_major_version > major) ||
8707 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8708 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8709 (gtk_micro_version >= micro)))
8717 rm -f conftest$ac_exeext
8718 if { (ac_try="$ac_link"
8720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8721 *) ac_try_echo
=$ac_try;;
8723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8724 $as_echo "$ac_try_echo") >&5
8725 (eval "$ac_link") 2>&5
8727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8729 { (case "(($ac_try" in
8730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734 $as_echo "$ac_try_echo") >&5
8735 (eval "$ac_try") 2>&5
8737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8741 $as_echo "$as_me: program exited with status $ac_status" >&5
8742 $as_echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8748 rm -rf conftest.dSYM
8749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8753 CFLAGS="$ac_save_CFLAGS"
8754 LIBS="$ac_save_LIBS"
8757 if test "x$no_gtk" = x ; then
8758 if test "x$enable_gtktest" = "xyes"; then
8759 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8760 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8762 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8763 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8765 GUI_LIB_LOC="$GTK_LIBDIR"
8766 GTK_LIBNAME="$GTK_LIBS"
8767 GUI_INC_LOC="$GTK_CFLAGS"
8770 { $as_echo "$as_me:$LINENO: result: no" >&5
8771 $as_echo "no" >&6; }
8787 if test "x$GTK_CFLAGS" != "x"; then
8796 if test "x$GUITYPE" != "xGTK"; then
8799 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8801 min_gtk_version=1.1.16
8802 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8803 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8805 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8806 && $PKG_CONFIG --exists gtk+-2.0; then
8808 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8809 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8810 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8811 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8812 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8813 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8814 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8815 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8816 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8818 elif test "X$GTK_CONFIG" != "Xno"; then
8820 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8822 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8823 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8824 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8825 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8826 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8827 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8828 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8834 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8836 ac_save_CFLAGS="$CFLAGS"
8837 ac_save_LIBS="$LIBS"
8838 CFLAGS="$CFLAGS $GTK_CFLAGS"
8839 LIBS="$LIBS $GTK_LIBS"
8842 if test "$cross_compiling" = yes; then
8843 echo $ac_n "cross compiling; assumed OK... $ac_c"
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 #include <gtk/gtk.h>
8855 # include <stdlib.h>
8856 # include <stddef.h>
8862 int major, minor, micro;
8865 system ("touch conf.gtktest");
8867 /* HP/UX 9 (%@#!) writes to sscanf strings */
8868 tmp_version = g_strdup("$min_gtk_version");
8869 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8870 printf("%s, bad version string\n", "$min_gtk_version");
8874 if ((gtk_major_version > major) ||
8875 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8876 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8877 (gtk_micro_version >= micro)))
8885 rm -f conftest$ac_exeext
8886 if { (ac_try="$ac_link"
8888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8889 *) ac_try_echo
=$ac_try;;
8891 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8892 $as_echo "$ac_try_echo") >&5
8893 (eval "$ac_link") 2>&5
8895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8897 { (case "(($ac_try" in
8898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8902 $as_echo "$ac_try_echo") >&5
8903 (eval "$ac_try") 2>&5
8905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8909 $as_echo "$as_me: program exited with status $ac_status" >&5
8910 $as_echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8916 rm -rf conftest.dSYM
8917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8921 CFLAGS="$ac_save_CFLAGS"
8922 LIBS="$ac_save_LIBS"
8925 if test "x$no_gtk" = x ; then
8926 if test "x$enable_gtktest" = "xyes"; then
8927 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8928 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8930 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8931 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8933 GTK_LIBNAME="$GTK_LIBS"
8934 GUI_INC_LOC="$GTK_CFLAGS"
8937 { $as_echo "$as_me:$LINENO: result: no" >&5
8938 $as_echo "no" >&6; }
8954 if test "x$GTK_CFLAGS" != "x"; then
8963 if test "x$GUITYPE" = "xGTK"; then
8964 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8965 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8966 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8967 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8970 if test "0$gtk_major_version" -ge 2; then
8971 cat >>confdefs.h <<\_ACEOF
8975 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8976 || test "0$gtk_minor_version" -ge 2 \
8977 || test "0$gtk_major_version" -gt 2; then
8978 cat >>confdefs.h <<\_ACEOF
8979 #define HAVE_GTK_MULTIHEAD 1
8984 if test -z "$SKIP_GNOME"; then
8992 # Check whether --with-gnome-includes was given.
8993 if test "${with_gnome_includes+set}" = set; then
8994 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
9000 # Check whether --with-gnome-libs was given.
9001 if test "${with_gnome_libs+set}" = set; then
9002 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
9008 # Check whether --with-gnome was given.
9009 if test "${with_gnome+set}" = set; then
9010 withval=$with_gnome; if test x$withval = xyes; then
9014 if test "x$withval" = xno; then
9018 LDFLAGS="$LDFLAGS -L$withval/lib"
9019 CFLAGS="$CFLAGS -I$withval/include"
9020 gnome_prefix=$withval/lib
9028 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
9030 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
9031 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
9032 if $PKG_CONFIG --exists libgnomeui-2.0; then
9033 { $as_echo "$as_me:$LINENO: result: yes" >&5
9034 $as_echo "yes" >&6; }
9035 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
9036 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
9037 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
9039 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
9040 $as_echo_n "checking for FreeBSD... " >&6; }
9041 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
9042 { $as_echo "$as_me:$LINENO: result: yes" >&5
9043 $as_echo "yes" >&6; }
9044 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
9045 GNOME_LIBS="$GNOME_LIBS -pthread"
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9052 { $as_echo "$as_me:$LINENO: result: not found" >&5
9053 $as_echo "not found" >&6; }
9054 if test "x" = xfail; then
9055 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
9056 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
9057 { (exit 1); exit 1; }; }
9061 elif test "x$want_gnome" = xyes; then
9063 # Extract the first word of "gnome-config", so it can be a program name with args.
9064 set dummy gnome-config; ac_word=$2
9065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
9068 $as_echo_n "(cached) " >&6
9070 case $GNOME_CONFIG in
9072 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9094 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9095 if test -n "$GNOME_CONFIG"; then
9096 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9097 $as_echo "$GNOME_CONFIG" >&6; }
9099 { $as_echo "$as_me:$LINENO: result: no" >&5
9100 $as_echo "no" >&6; }
9104 if test "$GNOME_CONFIG" = "no"; then
9105 no_gnome_config="yes"
9107 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9108 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9109 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9110 { $as_echo "$as_me:$LINENO: result: yes" >&5
9111 $as_echo "yes" >&6; }
9112 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9113 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9114 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9117 { $as_echo "$as_me:$LINENO: result: no" >&5
9118 $as_echo "no" >&6; }
9119 no_gnome_config="yes"
9123 if test x$exec_prefix = xNONE; then
9124 if test x$prefix = xNONE; then
9125 gnome_prefix=$ac_default_prefix/lib
9127 gnome_prefix=$prefix/lib
9130 gnome_prefix=`eval echo \
`echo $libdir\``
9133 if test "$no_gnome_config" = "yes"; then
9134 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9135 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9136 if test -f $gnome_prefix/gnomeConf.sh; then
9137 { $as_echo "$as_me:$LINENO: result: found" >&5
9138 $as_echo "found" >&6; }
9139 echo "loading gnome configuration from" \
9140 "$gnome_prefix/gnomeConf.sh"
9141 . $gnome_prefix/gnomeConf.sh
9144 { $as_echo "$as_me:$LINENO: result: not found" >&5
9145 $as_echo "not found" >&6; }
9146 if test x = xfail; then
9147 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9148 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9149 { (exit 1); exit 1; }; }
9156 if test x$have_gnome = xyes ; then
9157 cat >>confdefs.h <<\_ACEOF
9158 #define FEAT_GUI_GNOME 1
9161 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9162 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9172 if test -z "$SKIP_MOTIF"; then
9173 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"
9174 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9176 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9177 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9178 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9180 for try in $gui_includes; do
9181 if test -f "$try/Xm/Xm.h"; then
9185 if test -n "$GUI_INC_LOC"; then
9186 if test "$GUI_INC_LOC" = /usr/include; then
9188 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9189 $as_echo "in default path" >&6; }
9191 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9192 $as_echo "$GUI_INC_LOC" >&6; }
9195 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9196 $as_echo "<not found>" >&6; }
9202 if test -z "$SKIP_MOTIF"; then
9203 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9204 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9206 # Check whether --with-motif-lib was given.
9207 if test "${with_motif_lib+set}" = set; then
9208 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9212 if test -n "$MOTIF_LIBNAME"; then
9213 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9214 $as_echo "$MOTIF_LIBNAME" >&6; }
9217 { $as_echo "$as_me:$LINENO: result: no" >&5
9218 $as_echo "no" >&6; }
9220 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9222 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9223 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9224 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"
9226 for try in $gui_libs; do
9227 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9228 if test -f "$libtry"; then
9233 if test -n "$GUI_LIB_LOC"; then
9234 if test "$GUI_LIB_LOC" = /usr/lib; then
9236 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9237 $as_echo "in default path" >&6; }
9239 if test -n "$GUI_LIB_LOC"; then
9240 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9241 $as_echo "$GUI_LIB_LOC" >&6; }
9242 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9243 uname -r | grep '^5' >/dev/null; then
9244 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9250 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9251 $as_echo "<not found>" >&6; }
9257 if test -z "$SKIP_MOTIF"; then
9267 if test -z "$SKIP_ATHENA"; then
9268 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9269 $as_echo_n "checking if Athena header files can be found... " >&6; }
9271 CFLAGS="$CFLAGS $X_CFLAGS"
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 #include <X11/Intrinsic.h>
9280 #include <X11/Xaw/Paned.h>
9289 rm -f conftest.$ac_objext
9290 if { (ac_try="$ac_compile"
9292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9293 *) ac_try_echo
=$ac_try;;
9295 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9296 $as_echo "$ac_try_echo") >&5
9297 (eval "$ac_compile") 2>conftest.er1
9299 grep -v '^ *+' conftest.er1
>conftest.err
9301 cat conftest.err
>&5
9302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } && {
9304 test -z "$ac_c_werror_flag" ||
9305 test ! -s conftest.err
9306 } && test -s conftest.
$ac_objext; then
9307 { $as_echo "$as_me:$LINENO: result: yes" >&5
9308 $as_echo "yes" >&6; }
9310 $as_echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.
$ac_ext >&5
9313 { $as_echo "$as_me:$LINENO: result: no" >&5
9314 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9321 if test -z "$SKIP_ATHENA"; then
9325 if test -z "$SKIP_NEXTAW"; then
9326 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9327 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9329 CFLAGS
="$CFLAGS $X_CFLAGS"
9330 cat >conftest.
$ac_ext <<_ACEOF
9333 cat confdefs.h
>>conftest.
$ac_ext
9334 cat >>conftest.
$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 #include <X11/Intrinsic.h>
9338 #include <X11/neXtaw/Paned.h>
9347 rm -f conftest.
$ac_objext
9348 if { (ac_try
="$ac_compile"
9350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.$ac_objext; then
9365 { $as_echo "$as_me:$LINENO: result: yes" >&5
9366 $as_echo "yes" >&6; }
9368 $as_echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9371 { $as_echo "$as_me:$LINENO: result: no" >&5
9372 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 if test -z "$SKIP_NEXTAW"; then
9383 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9384 if test -n "$GUI_INC_LOC"; then
9385 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9387 if test -n "$GUI_LIB_LOC"; then
9388 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9391 ldflags_save=$LDFLAGS
9392 LDFLAGS="$X_LIBS $LDFLAGS"
9393 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9394 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9395 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9396 $as_echo_n "(cached) " >&6
9398 ac_check_lib_save_LIBS=$LIBS
9399 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF
9403 cat confdefs.h >>conftest.$ac_ext
9404 cat >>conftest.$ac_ext <<_ACEOF
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9413 char XShapeQueryExtension ();
9417 return XShapeQueryExtension ();
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9426 *) ac_try_echo
=$ac_try;;
9428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_link") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1
>conftest.err
9434 cat conftest.err
>&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest
$ac_exeext && {
9440 test "$cross_compiling" = yes ||
9441 $as_test_x conftest
$ac_exeext
9443 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9445 $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.
$ac_ext >&5
9448 ac_cv_lib_Xext_XShapeQueryExtension
=no
9451 rm -rf conftest.dSYM
9452 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9453 conftest
$ac_exeext conftest.
$ac_ext
9454 LIBS
=$ac_check_lib_save_LIBS
9456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9457 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9458 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then
9462 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9463 $as_echo_n "checking for wslen in -lw... " >&6; }
9464 if test "${ac_cv_lib_w_wslen+set}" = set; then
9465 $as_echo_n "(cached) " >&6
9467 ac_check_lib_save_LIBS
=$LIBS
9468 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9469 cat >conftest.
$ac_ext <<_ACEOF
9472 cat confdefs.h
>>conftest.
$ac_ext
9473 cat >>conftest.
$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9476 /* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9491 rm -f conftest.
$ac_objext conftest
$ac_exeext
9492 if { (ac_try
="$ac_link"
9494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1 >conftest.err
9503 cat conftest.err >&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest$ac_exeext
9512 ac_cv_lib_w_wslen=yes
9514 $as_echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9517 ac_cv_lib_w_wslen=no
9520 rm -rf conftest.dSYM
9521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9522 conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS
9525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9526 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9527 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9531 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9532 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9533 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9534 $as_echo_n "(cached) " >&6
9536 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9545 /* Override any GCC internal prototype to avoid an error.
9546 Use char because int might match the return type of a GCC
9547 builtin and then its argument prototype would still apply. */
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9564 *) ac_try_echo
=$ac_try;;
9566 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9567 $as_echo "$ac_try_echo") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1
>conftest.err
9572 cat conftest.err
>&5
9573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest
$ac_exeext && {
9578 test "$cross_compiling" = yes ||
9579 $as_test_x conftest
$ac_exeext
9581 ac_cv_lib_dl_dlsym
=yes
9583 $as_echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9586 ac_cv_lib_dl_dlsym
=no
9589 rm -rf conftest.dSYM
9590 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9591 conftest
$ac_exeext conftest.
$ac_ext
9592 LIBS
=$ac_check_lib_save_LIBS
9594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9595 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9596 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then
9597 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9600 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9601 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9602 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9605 ac_check_lib_save_LIBS
=$LIBS
9606 LIBS
="-lXmu $GUI_X_LIBS -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. */
9620 char XmuCreateStippledPixmap ();
9624 return XmuCreateStippledPixmap ();
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_Xmu_XmuCreateStippledPixmap=yes
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_lib_Xmu_XmuCreateStippledPixmap=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_Xmu_XmuCreateStippledPixmap" >&5
9664 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9665 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9666 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9669 if test -z "$SKIP_MOTIF"; then
9670 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9671 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9672 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9673 $as_echo_n "(cached) " >&6
9675 ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (ac_try="$ac_link"
9702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9703 *) ac_try_echo
=$ac_try;;
9705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9706 $as_echo "$ac_try_echo") >&5
9707 (eval "$ac_link") 2>conftest.er1
9709 grep -v '^ *+' conftest.er1
>conftest.err
9711 cat conftest.err
>&5
9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest
$ac_exeext && {
9717 test "$cross_compiling" = yes ||
9718 $as_test_x conftest
$ac_exeext
9720 ac_cv_lib_Xp_XpEndJob
=yes
9722 $as_echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.
$ac_ext >&5
9725 ac_cv_lib_Xp_XpEndJob
=no
9728 rm -rf conftest.dSYM
9729 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9730 conftest
$ac_exeext conftest.
$ac_ext
9731 LIBS
=$ac_check_lib_save_LIBS
9733 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9734 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9735 if test "x$ac_cv_lib_Xp_XpEndJob" = x
""yes; then
9736 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9740 LDFLAGS
=$ldflags_save
9742 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9743 $as_echo_n "checking for extra X11 defines... " >&6; }
9746 if mkdir conftestdir
; then
9748 cat > Imakefile
<<'EOF'
9750 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9752 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9753 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9758 if test -z "$NARROW_PROTO"; then
9759 { $as_echo "$as_me:$LINENO: result: no" >&5
9760 $as_echo "no" >&6; }
9762 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9763 $as_echo "$NARROW_PROTO" >&6; }
9768 if test "$enable_xsmp" = "yes"; then
9769 cppflags_save
=$CPPFLAGS
9770 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9772 for ac_header
in X11
/SM
/SMlib.h
9774 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9775 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 $as_echo_n "checking for $ac_header... " >&6; }
9778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 $as_echo_n "(cached) " >&6
9781 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9782 $as_echo "$as_val"'`
9783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9784 $as_echo "$ac_res" >&6; }
9786 # Is the header compilable?
9787 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9788 $as_echo_n "checking $ac_header usability... " >&6; }
9789 cat >conftest.
$ac_ext <<_ACEOF
9792 cat confdefs.h
>>conftest.
$ac_ext
9793 cat >>conftest.
$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 $ac_includes_default
9796 #include <$ac_header>
9798 rm -f conftest.
$ac_objext
9799 if { (ac_try
="$ac_compile"
9801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9805 $as_echo "$ac_try_echo") >&5
9806 (eval "$ac_compile") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1 >conftest.err
9810 cat conftest.err >&5
9811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest.$ac_objext; then
9816 ac_header_compiler=yes
9818 $as_echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9821 ac_header_compiler=no
9824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9825 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9826 $as_echo "$ac_header_compiler" >&6; }
9828 # Is the header present?
9829 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9830 $as_echo_n "checking $ac_header presence... " >&6; }
9831 cat >conftest.$ac_ext <<_ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 #include <$ac_header>
9839 if { (ac_try="$ac_cpp conftest.$ac_ext"
9841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9842 *) ac_try_echo
=$ac_try;;
9844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9845 $as_echo "$ac_try_echo") >&5
9846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9848 grep -v '^ *+' conftest.er1
>conftest.err
9850 cat conftest.err
>&5
9851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev
/null
&& {
9853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9856 ac_header_preproc
=yes
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.
$ac_ext >&5
9861 ac_header_preproc
=no
9864 rm -f conftest.err conftest.
$ac_ext
9865 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9866 $as_echo "$ac_header_preproc" >&6; }
9868 # So? What about this header?
9869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9872 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9874 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9875 ac_header_preproc
=yes
9878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9879 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9885 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9889 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9893 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9894 $as_echo_n "checking for $ac_header... " >&6; }
9895 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9896 $as_echo_n "(cached) " >&6
9898 eval "$as_ac_Header=\$ac_header_preproc"
9900 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9901 $as_echo "$as_val"'`
9902 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9903 $as_echo "$ac_res" >&6; }
9906 as_val
=`eval 'as_val=${'$as_ac_Header'}
9907 $as_echo "$as_val"'`
9908 if test "x$as_val" = x
""yes; then
9909 cat >>confdefs.h
<<_ACEOF
9910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917 CPPFLAGS
=$cppflags_save
9921 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9922 cppflags_save
=$CPPFLAGS
9923 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9926 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9928 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9931 $as_echo_n "checking for $ac_header... " >&6; }
9932 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9933 $as_echo_n "(cached) " >&6
9935 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9936 $as_echo "$as_val"'`
9937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9938 $as_echo "$ac_res" >&6; }
9940 # Is the header compilable?
9941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9942 $as_echo_n "checking $ac_header usability... " >&6; }
9943 cat >conftest.
$ac_ext <<_ACEOF
9946 cat confdefs.h
>>conftest.
$ac_ext
9947 cat >>conftest.
$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 #include <$ac_header>
9952 rm -f conftest.
$ac_objext
9953 if { (ac_try
="$ac_compile"
9955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959 $as_echo "$ac_try_echo") >&5
9960 (eval "$ac_compile") 2>conftest.er1
9962 grep -v '^ *+' conftest.er1 >conftest.err
9964 cat conftest.err >&5
9965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && {
9967 test -z "$ac_c_werror_flag" ||
9968 test ! -s conftest.err
9969 } && test -s conftest.$ac_objext; then
9970 ac_header_compiler=yes
9972 $as_echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975 ac_header_compiler=no
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9980 $as_echo "$ac_header_compiler" >&6; }
9982 # Is the header present?
9983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9984 $as_echo_n "checking $ac_header presence... " >&6; }
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <$ac_header>
9993 if { (ac_try="$ac_cpp conftest.$ac_ext"
9995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9996 *) ac_try_echo
=$ac_try;;
9998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1
>conftest.err
10004 cat conftest.err
>&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } >/dev
/null
&& {
10007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10010 ac_header_preproc
=yes
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.
$ac_ext >&5
10015 ac_header_preproc
=no
10018 rm -f conftest.err conftest.
$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10020 $as_echo "$ac_header_preproc" >&6; }
10022 # So? What about this header?
10023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10029 ac_header_preproc
=yes
10032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 $as_echo_n "checking for $ac_header... " >&6; }
10049 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 $as_echo_n "(cached) " >&6
10052 eval "$as_ac_Header=\$ac_header_preproc"
10054 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10055 $as_echo "$as_val"'`
10056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10057 $as_echo "$ac_res" >&6; }
10060 as_val
=`eval 'as_val=${'$as_ac_Header'}
10061 $as_echo "$as_val"'`
10062 if test "x$as_val" = x
""yes; then
10063 cat >>confdefs.h
<<_ACEOF
10064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10072 if test ! "$enable_xim" = "no"; then
10073 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10074 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10075 cat >conftest.
$ac_ext <<_ACEOF
10078 cat confdefs.h
>>conftest.
$ac_ext
10079 cat >>conftest.
$ac_ext <<_ACEOF
10080 /* end confdefs.h. */
10081 #include <X11/Xlib.h>
10083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10084 $EGREP "XIMText" >/dev
/null
2>&1; then
10085 { $as_echo "$as_me:$LINENO: result: yes" >&5
10086 $as_echo "yes" >&6; }
10088 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10089 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
10094 CPPFLAGS
=$cppflags_save
10096 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10097 -a "x$GUITYPE" != "xNONE" ; then
10098 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10099 $as_echo "X GUI selected; xim has been enabled" >&6; }
10104 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10105 cppflags_save
=$CPPFLAGS
10106 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10107 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10108 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10109 cat >conftest.
$ac_ext <<_ACEOF
10112 cat confdefs.h
>>conftest.
$ac_ext
10113 cat >>conftest.
$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 #include <X11/Intrinsic.h>
10117 #include <X11/Xmu/Editres.h>
10126 rm -f conftest.
$ac_objext
10127 if { (ac_try
="$ac_compile"
10128 case "(($ac_try" in
10129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10133 $as_echo "$ac_try_echo") >&5
10134 (eval "$ac_compile") 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest.$ac_objext; then
10144 { $as_echo "$as_me:$LINENO: result: yes" >&5
10145 $as_echo "yes" >&6; }
10146 cat >>confdefs.h <<\_ACEOF
10147 #define HAVE_X11_XMU_EDITRES_H 1
10151 $as_echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10154 { $as_echo "$as_me:$LINENO: result: no" >&5
10155 $as_echo "no" >&6; }
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 CPPFLAGS=$cppflags_save
10162 if test -z "$SKIP_MOTIF"; then
10163 cppflags_save=$CPPFLAGS
10164 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10172 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10173 Xm/UnhighlightT.h Xm/Notebook.h
10175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10178 $as_echo_n "checking for $ac_header... " >&6; }
10179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10180 $as_echo_n "(cached) " >&6
10182 ac_res=`eval 'as_val=${'$as_ac_Header'}
10183 $as_echo "$as_val"'`
10184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10185 $as_echo "$ac_res" >&6; }
10187 # Is the header compilable?
10188 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10189 $as_echo_n "checking $ac_header usability... " >&6; }
10190 cat >conftest.$ac_ext <<_ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 $ac_includes_default
10197 #include <$ac_header>
10199 rm -f conftest.$ac_objext
10200 if { (ac_try="$ac_compile"
10201 case "(($ac_try" in
10202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10203 *) ac_try_echo
=$ac_try;;
10205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10206 $as_echo "$ac_try_echo") >&5
10207 (eval "$ac_compile") 2>conftest.er1
10209 grep -v '^ *+' conftest.er1
>conftest.err
10211 cat conftest.err
>&5
10212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest.
$ac_objext; then
10217 ac_header_compiler
=yes
10219 $as_echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.
$ac_ext >&5
10222 ac_header_compiler
=no
10225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10226 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10227 $as_echo "$ac_header_compiler" >&6; }
10229 # Is the header present?
10230 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10231 $as_echo_n "checking $ac_header presence... " >&6; }
10232 cat >conftest.
$ac_ext <<_ACEOF
10235 cat confdefs.h
>>conftest.
$ac_ext
10236 cat >>conftest.
$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #include <$ac_header>
10240 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10241 case "(($ac_try" in
10242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } >/dev/null && {
10254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10257 ac_header_preproc=yes
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_header_preproc=no
10265 rm -f conftest.err conftest.$ac_ext
10266 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10267 $as_echo "$ac_header_preproc" >&6; }
10269 # So? What about this header?
10270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10273 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10275 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10276 ac_header_preproc=yes
10279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10282 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10290 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10295 $as_echo_n "checking for $ac_header... " >&6; }
10296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10297 $as_echo_n "(cached) " >&6
10299 eval "$as_ac_Header=\$ac_header_preproc"
10301 ac_res=`eval 'as_val=${'$as_ac_Header'}
10302 $as_echo "$as_val"'`
10303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10304 $as_echo "$ac_res" >&6; }
10307 as_val=`eval 'as_val=${'$as_ac_Header'}
10308 $as_echo "$as_val"'`
10309 if test "x$as_val" = x""yes; then
10310 cat >>confdefs.h <<_ACEOF
10311 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10319 if test $ac_cv_header_Xm_XpmP_h = yes; then
10320 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10321 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <Xm/XpmP.h>
10332 XpmAttributes_21 attr;
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10341 *) ac_try_echo
=$ac_try;;
10343 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10344 $as_echo "$ac_try_echo") >&5
10345 (eval "$ac_compile") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1
>conftest.err
10349 cat conftest.err
>&5
10350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest.
$ac_objext; then
10355 { $as_echo "$as_me:$LINENO: result: yes" >&5
10356 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10357 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10361 $as_echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.
$ac_ext >&5
10364 { $as_echo "$as_me:$LINENO: result: no" >&5
10365 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10366 #define XPMATTRIBUTES_TYPE XpmAttributes
10372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10374 cat >>confdefs.h
<<\_ACEOF
10375 #define XPMATTRIBUTES_TYPE XpmAttributes
10379 CPPFLAGS
=$cppflags_save
10382 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10383 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10384 $as_echo "no GUI selected; xim has been disabled" >&6; }
10387 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10388 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10389 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10390 enable_fontset
="no"
10392 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10393 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10394 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10395 enable_fontset
="no"
10398 if test -z "$SKIP_PHOTON"; then
10407 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10408 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10409 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10410 { (exit 1); exit 1; }; }
10413 if test "$enable_xim" = "yes"; then
10414 cat >>confdefs.h
<<\_ACEOF
10419 if test "$enable_fontset" = "yes"; then
10420 cat >>confdefs.h
<<\_ACEOF
10421 #define FEAT_XFONTSET 1
10429 if test "$enable_hangulinput" = "yes"; then
10430 if test "x$GUITYPE" = "xNONE"; then
10431 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10432 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10433 enable_hangulinput
=no
10435 cat >>confdefs.h
<<\_ACEOF
10436 #define FEAT_HANGULIN 1
10439 HANGULIN_SRC
=hangulin.c
10441 HANGULIN_OBJ
=objects
/hangulin.o
10447 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10448 $as_echo_n "checking whether toupper is broken... " >&6; }
10449 if test "${vim_cv_toupper_broken+set}" = set; then
10450 $as_echo_n "(cached) " >&6
10453 if test "$cross_compiling" = yes; then
10455 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10456 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10457 { (exit 1); exit 1; }; }
10460 cat >conftest.
$ac_ext <<_ACEOF
10462 #include "confdefs.h"
10465 # include <stdlib.h>
10466 # include <stddef.h>
10468 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10471 rm -f conftest
$ac_exeext
10472 if { (ac_try
="$ac_link"
10473 case "(($ac_try" in
10474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10478 $as_echo "$ac_try_echo") >&5
10479 (eval "$ac_link") 2>&5
10481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10485 *) ac_try_echo
=$ac_try;;
10487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10488 $as_echo "$ac_try_echo") >&5
10489 (eval "$ac_try") 2>&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10494 vim_cv_toupper_broken
=yes
10497 $as_echo "$as_me: program exited with status $ac_status" >&5
10498 $as_echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.
$ac_ext >&5
10501 ( exit $ac_status )
10503 vim_cv_toupper_broken
=no
10506 rm -rf conftest.dSYM
10507 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10512 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10513 $as_echo "$vim_cv_toupper_broken" >&6; }
10515 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10516 cat >>confdefs.h
<<\_ACEOF
10517 #define BROKEN_TOUPPER 1
10522 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10523 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10524 cat >conftest.
$ac_ext <<_ACEOF
10527 cat confdefs.h
>>conftest.
$ac_ext
10528 cat >>conftest.
$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10534 printf("(" __DATE__ " " __TIME__ ")");
10539 rm -f conftest.
$ac_objext
10540 if { (ac_try
="$ac_compile"
10541 case "(($ac_try" in
10542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10549 grep -v '^ *+' conftest.er1 >conftest.err
10551 cat conftest.err >&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.$ac_objext; then
10557 { $as_echo "$as_me:$LINENO: result: yes" >&5
10558 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_DATE_TIME 1
10563 $as_echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 { $as_echo "$as_me:$LINENO: result: no" >&5
10567 $as_echo "no" >&6; }
10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10573 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10574 cat >conftest.$ac_ext <<_ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10584 int x __attribute__((unused));
10589 rm -f conftest.$ac_objext
10590 if { (ac_try="$ac_compile"
10591 case "(($ac_try" in
10592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10593 *) ac_try_echo
=$ac_try;;
10595 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10596 $as_echo "$ac_try_echo") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10599 grep -v '^ *+' conftest.er1
>conftest.err
10601 cat conftest.err
>&5
10602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest.
$ac_objext; then
10607 { $as_echo "$as_me:$LINENO: result: yes" >&5
10608 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10609 #define HAVE_ATTRIBUTE_UNUSED 1
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.
$ac_ext >&5
10616 { $as_echo "$as_me:$LINENO: result: no" >&5
10617 $as_echo "no" >&6; }
10620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10622 if test "${ac_cv_header_elf_h+set}" = set; then
10623 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10624 $as_echo_n "checking for elf.h... " >&6; }
10625 if test "${ac_cv_header_elf_h+set}" = set; then
10626 $as_echo_n "(cached) " >&6
10628 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10629 $as_echo "$ac_cv_header_elf_h" >&6; }
10631 # Is the header compilable?
10632 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10633 $as_echo_n "checking elf.h usability... " >&6; }
10634 cat >conftest.
$ac_ext <<_ACEOF
10637 cat confdefs.h
>>conftest.
$ac_ext
10638 cat >>conftest.
$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 $ac_includes_default
10643 rm -f conftest.
$ac_objext
10644 if { (ac_try
="$ac_compile"
10645 case "(($ac_try" in
10646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_compile") 2>conftest.er1
10653 grep -v '^ *+' conftest.er1 >conftest.err
10655 cat conftest.err >&5
10656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } && {
10658 test -z "$ac_c_werror_flag" ||
10659 test ! -s conftest.err
10660 } && test -s conftest.$ac_objext; then
10661 ac_header_compiler=yes
10663 $as_echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 ac_header_compiler=no
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10671 $as_echo "$ac_header_compiler" >&6; }
10673 # Is the header present?
10674 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10675 $as_echo_n "checking elf.h presence... " >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10684 if { (ac_try="$ac_cpp conftest.$ac_ext"
10685 case "(($ac_try" in
10686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10687 *) ac_try_echo
=$ac_try;;
10689 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1
>conftest.err
10695 cat conftest.err
>&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } >/dev
/null
&& {
10698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10701 ac_header_preproc
=yes
10703 $as_echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.
$ac_ext >&5
10706 ac_header_preproc
=no
10709 rm -f conftest.err conftest.
$ac_ext
10710 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711 $as_echo "$ac_header_preproc" >&6; }
10713 # So? What about this header?
10714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10716 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10717 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10719 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10720 ac_header_preproc
=yes
10723 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10724 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10725 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10726 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10727 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10728 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10729 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10730 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10732 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10733 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10734 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10738 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10739 $as_echo_n "checking for elf.h... " >&6; }
10740 if test "${ac_cv_header_elf_h+set}" = set; then
10741 $as_echo_n "(cached) " >&6
10743 ac_cv_header_elf_h
=$ac_header_preproc
10745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10746 $as_echo "$ac_cv_header_elf_h" >&6; }
10749 if test "x$ac_cv_header_elf_h" = x
""yes; then
10754 if test "$HAS_ELF" = 1; then
10756 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10757 $as_echo_n "checking for main in -lelf... " >&6; }
10758 if test "${ac_cv_lib_elf_main+set}" = set; then
10759 $as_echo_n "(cached) " >&6
10761 ac_check_lib_save_LIBS
=$LIBS
10763 cat >conftest.
$ac_ext <<_ACEOF
10766 cat confdefs.h
>>conftest.
$ac_ext
10767 cat >>conftest.
$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10779 rm -f conftest.
$ac_objext conftest
$ac_exeext
10780 if { (ac_try
="$ac_link"
10781 case "(($ac_try" in
10782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10786 $as_echo "$ac_try_echo") >&5
10787 (eval "$ac_link") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest$ac_exeext && {
10797 test "$cross_compiling" = yes ||
10798 $as_test_x conftest$ac_exeext
10800 ac_cv_lib_elf_main=yes
10802 $as_echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10805 ac_cv_lib_elf_main=no
10808 rm -rf conftest.dSYM
10809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10810 conftest$ac_exeext conftest.$ac_ext
10811 LIBS=$ac_check_lib_save_LIBS
10813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10814 $as_echo "$ac_cv_lib_elf_main" >&6; }
10815 if test "x$ac_cv_lib_elf_main" = x""yes; then
10816 cat >>confdefs.h <<_ACEOF
10817 #define HAVE_LIBELF 1
10831 ac_header_dirent=no
10832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10833 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10834 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10835 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837 $as_echo_n "(cached) " >&6
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10845 #include <sys/types.h>
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10861 *) ac_try_echo
=$ac_try;;
10863 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10867 grep -v '^ *+' conftest.er1
>conftest.err
10869 cat conftest.err
>&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.
$ac_objext; then
10875 eval "$as_ac_Header=yes"
10877 $as_echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.
$ac_ext >&5
10880 eval "$as_ac_Header=no"
10883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10885 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10886 $as_echo "$as_val"'`
10887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10888 $as_echo "$ac_res" >&6; }
10889 as_val
=`eval 'as_val=${'$as_ac_Header'}
10890 $as_echo "$as_val"'`
10891 if test "x$as_val" = x
""yes; then
10892 cat >>confdefs.h
<<_ACEOF
10893 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10896 ac_header_dirent
=$ac_hdr; break
10900 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10901 if test $ac_header_dirent = dirent.h
; then
10902 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10903 $as_echo_n "checking for library containing opendir... " >&6; }
10904 if test "${ac_cv_search_opendir+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10907 ac_func_search_save_LIBS
=$LIBS
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10930 for ac_lib
in '' dir
; do
10931 if test -z "$ac_lib"; then
10932 ac_res
="none required"
10935 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10937 rm -f conftest.
$ac_objext conftest
$ac_exeext
10938 if { (ac_try
="$ac_link"
10939 case "(($ac_try" in
10940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944 $as_echo "$ac_try_echo") >&5
10945 (eval "$ac_link") 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest$ac_exeext && {
10955 test "$cross_compiling" = yes ||
10956 $as_test_x conftest$ac_exeext
10958 ac_cv_search_opendir=$ac_res
10960 $as_echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10966 rm -rf conftest.dSYM
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 if test "${ac_cv_search_opendir+set}" = set; then
10973 if test "${ac_cv_search_opendir+set}" = set; then
10976 ac_cv_search_opendir=no
10978 rm conftest.$ac_ext
10979 LIBS=$ac_func_search_save_LIBS
10981 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10982 $as_echo "$ac_cv_search_opendir" >&6; }
10983 ac_res=$ac_cv_search_opendir
10984 if test "$ac_res" != no; then
10985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10991 $as_echo_n "checking for library containing opendir... " >&6; }
10992 if test "${ac_cv_search_opendir+set}" = set; then
10993 $as_echo_n "(cached) " >&6
10995 ac_func_search_save_LIBS=$LIBS
10996 cat >conftest.$ac_ext <<_ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11018 for ac_lib in '' x; do
11019 if test -z "$ac_lib"; then
11020 ac_res="none required"
11023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11029 *) ac_try_echo
=$ac_try;;
11031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11032 $as_echo "$ac_try_echo") >&5
11033 (eval "$ac_link") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1
>conftest.err
11037 cat conftest.err
>&5
11038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest
$ac_exeext && {
11043 test "$cross_compiling" = yes ||
11044 $as_test_x conftest
$ac_exeext
11046 ac_cv_search_opendir
=$ac_res
11048 $as_echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.
$ac_ext >&5
11054 rm -rf conftest.dSYM
11055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11057 if test "${ac_cv_search_opendir+set}" = set; then
11061 if test "${ac_cv_search_opendir+set}" = set; then
11064 ac_cv_search_opendir
=no
11066 rm conftest.
$ac_ext
11067 LIBS
=$ac_func_search_save_LIBS
11069 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11070 $as_echo "$ac_cv_search_opendir" >&6; }
11071 ac_res
=$ac_cv_search_opendir
11072 if test "$ac_res" != no
; then
11073 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11080 if test $ac_cv_header_sys_wait_h = no
; then
11081 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11082 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11083 cat >conftest.
$ac_ext <<_ACEOF
11086 cat confdefs.h
>>conftest.
$ac_ext
11087 cat >>conftest.
$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 #include <sys/wait.h>
11093 union wait xx, yy; xx = yy
11098 rm -f conftest.
$ac_objext
11099 if { (ac_try
="$ac_compile"
11100 case "(($ac_try" in
11101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105 $as_echo "$ac_try_echo") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest.$ac_objext; then
11116 { $as_echo "$as_me:$LINENO: result: yes" >&5
11117 $as_echo "yes" >&6; }
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HAVE_SYS_WAIT_H 1
11122 cat >>confdefs.h <<\_ACEOF
11123 #define HAVE_UNION_WAIT 1
11127 $as_echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 { $as_echo "$as_me:$LINENO: result: no" >&5
11131 $as_echo "no" >&6; }
11134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11178 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11179 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11180 sys/resource.h sys/systeminfo.h locale.h \
11181 sys/stream.h termios.h libc.h sys/statfs.h \
11182 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11183 libgen.h util/debug.h util/msg18n.h frame.h \
11184 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11189 $as_echo_n "checking for $ac_header... " >&6; }
11190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11191 $as_echo_n "(cached) " >&6
11193 ac_res=`eval 'as_val=${'$as_ac_Header'}
11194 $as_echo "$as_val"'`
11195 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11196 $as_echo "$ac_res" >&6; }
11198 # Is the header compilable?
11199 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11200 $as_echo_n "checking $ac_header usability... " >&6; }
11201 cat >conftest.$ac_ext <<_ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 $ac_includes_default
11208 #include <$ac_header>
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11214 *) ac_try_echo
=$ac_try;;
11216 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11217 $as_echo "$ac_try_echo") >&5
11218 (eval "$ac_compile") 2>conftest.er1
11220 grep -v '^ *+' conftest.er1
>conftest.err
11222 cat conftest.err
>&5
11223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } && {
11225 test -z "$ac_c_werror_flag" ||
11226 test ! -s conftest.err
11227 } && test -s conftest.
$ac_objext; then
11228 ac_header_compiler
=yes
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.
$ac_ext >&5
11233 ac_header_compiler
=no
11236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11237 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238 $as_echo "$ac_header_compiler" >&6; }
11240 # Is the header present?
11241 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242 $as_echo_n "checking $ac_header presence... " >&6; }
11243 cat >conftest.
$ac_ext <<_ACEOF
11246 cat confdefs.h
>>conftest.
$ac_ext
11247 cat >>conftest.
$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 #include <$ac_header>
11251 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11252 case "(($ac_try" in
11253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null && {
11265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11266 test ! -s conftest.err
11268 ac_header_preproc=yes
11270 $as_echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11273 ac_header_preproc=no
11276 rm -f conftest.err conftest.$ac_ext
11277 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11278 $as_echo "$ac_header_preproc" >&6; }
11280 # So? What about this header?
11281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11287 ac_header_preproc=yes
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11295 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11305 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11306 $as_echo_n "checking for $ac_header... " >&6; }
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 $as_echo_n "(cached) " >&6
11310 eval "$as_ac_Header=\$ac_header_preproc"
11312 ac_res=`eval 'as_val=${'$as_ac_Header'}
11313 $as_echo "$as_val"'`
11314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11315 $as_echo "$ac_res" >&6; }
11318 as_val=`eval 'as_val=${'$as_ac_Header'}
11319 $as_echo "$as_val"'`
11320 if test "x$as_val" = x""yes; then
11321 cat >>confdefs.h <<_ACEOF
11322 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11331 for ac_header in sys/ptem.h
11333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11335 $as_echo_n "checking for $ac_header... " >&6; }
11336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 $as_echo_n "(cached) " >&6
11339 cat >conftest.$ac_ext <<_ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #if defined HAVE_SYS_STREAM_H
11346 # include <sys/stream.h>
11349 #include <$ac_header>
11351 rm -f conftest.$ac_objext
11352 if { (ac_try="$ac_compile"
11353 case "(($ac_try" in
11354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11355 *) ac_try_echo
=$ac_try;;
11357 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11358 $as_echo "$ac_try_echo") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1
>conftest.err
11363 cat conftest.err
>&5
11364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.
$ac_objext; then
11369 eval "$as_ac_Header=yes"
11371 $as_echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.
$ac_ext >&5
11374 eval "$as_ac_Header=no"
11377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11379 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11380 $as_echo "$as_val"'`
11381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11382 $as_echo "$ac_res" >&6; }
11383 as_val
=`eval 'as_val=${'$as_ac_Header'}
11384 $as_echo "$as_val"'`
11385 if test "x$as_val" = x
""yes; then
11386 cat >>confdefs.h
<<_ACEOF
11387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 for ac_header
in sys
/sysctl.h
11398 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 $as_echo_n "checking for $ac_header... " >&6; }
11401 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 $as_echo_n "(cached) " >&6
11404 cat >conftest.
$ac_ext <<_ACEOF
11407 cat confdefs.h
>>conftest.
$ac_ext
11408 cat >>conftest.
$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 #if defined HAVE_SYS_PARAM_H
11411 # include <sys/param.h>
11414 #include <$ac_header>
11416 rm -f conftest.
$ac_objext
11417 if { (ac_try
="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11423 $as_echo "$ac_try_echo") >&5
11424 (eval "$ac_compile") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest.$ac_objext; then
11434 eval "$as_ac_Header=yes"
11436 $as_echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 eval "$as_ac_Header=no"
11442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 ac_res=`eval 'as_val=${'$as_ac_Header'}
11445 $as_echo "$as_val"'`
11446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11447 $as_echo "$ac_res" >&6; }
11448 as_val=`eval 'as_val=${'$as_ac_Header'}
11449 $as_echo "$as_val"'`
11450 if test "x$as_val" = x""yes; then
11451 cat >>confdefs.h <<_ACEOF
11452 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11461 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11462 $as_echo_n "checking for pthread_np.h... " >&6; }
11463 cat >conftest.$ac_ext <<_ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h. */
11470 #include <pthread.h>
11471 #include <pthread_np.h>
11480 rm -f conftest.$ac_objext
11481 if { (ac_try="$ac_compile"
11482 case "(($ac_try" in
11483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11484 *) ac_try_echo
=$ac_try;;
11486 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11487 $as_echo "$ac_try_echo") >&5
11488 (eval "$ac_compile") 2>conftest.er1
11490 grep -v '^ *+' conftest.er1
>conftest.err
11492 cat conftest.err
>&5
11493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_c_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest.
$ac_objext; then
11498 { $as_echo "$as_me:$LINENO: result: yes" >&5
11499 $as_echo "yes" >&6; }
11500 cat >>confdefs.h
<<\_ACEOF
11501 #define HAVE_PTHREAD_NP_H 1
11505 $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.
$ac_ext >&5
11508 { $as_echo "$as_me:$LINENO: result: no" >&5
11509 $as_echo "no" >&6; }
11512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11515 for ac_header
in strings.h
11517 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11518 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11520 $as_echo_n "checking for $ac_header... " >&6; }
11521 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11522 $as_echo_n "(cached) " >&6
11524 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11525 $as_echo "$as_val"'`
11526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11527 $as_echo "$ac_res" >&6; }
11529 # Is the header compilable?
11530 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11531 $as_echo_n "checking $ac_header usability... " >&6; }
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 $ac_includes_default
11539 #include <$ac_header>
11541 rm -f conftest.
$ac_objext
11542 if { (ac_try
="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11548 $as_echo "$ac_try_echo") >&5
11549 (eval "$ac_compile") 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest.$ac_objext; then
11559 ac_header_compiler=yes
11561 $as_echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11564 ac_header_compiler=no
11567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11569 $as_echo "$ac_header_compiler" >&6; }
11571 # Is the header present?
11572 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11573 $as_echo_n "checking $ac_header presence... " >&6; }
11574 cat >conftest.$ac_ext <<_ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11580 #include <$ac_header>
11582 if { (ac_try="$ac_cpp conftest.$ac_ext"
11583 case "(($ac_try" in
11584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11585 *) ac_try_echo
=$ac_try;;
11587 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11588 $as_echo "$ac_try_echo") >&5
11589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11591 grep -v '^ *+' conftest.er1
>conftest.err
11593 cat conftest.err
>&5
11594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev
/null
&& {
11596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11597 test ! -s conftest.err
11599 ac_header_preproc
=yes
11601 $as_echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.
$ac_ext >&5
11604 ac_header_preproc
=no
11607 rm -f conftest.err conftest.
$ac_ext
11608 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11609 $as_echo "$ac_header_preproc" >&6; }
11611 # So? What about this header?
11612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11618 ac_header_preproc
=yes
11621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11622 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 $as_echo_n "checking for $ac_header... " >&6; }
11638 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 $as_echo_n "(cached) " >&6
11641 eval "$as_ac_Header=\$ac_header_preproc"
11643 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11644 $as_echo "$as_val"'`
11645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11646 $as_echo "$ac_res" >&6; }
11649 as_val
=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 if test "x$as_val" = x
""yes; then
11652 cat >>confdefs.h
<<_ACEOF
11653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11660 if test "x$MACOSX" = "xyes"; then
11661 cat >>confdefs.h
<<\_ACEOF
11662 #define NO_STRINGS_WITH_STRING_H 1
11667 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11668 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11669 cppflags_save
=$CPPFLAGS
11670 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11671 cat >conftest.
$ac_ext <<_ACEOF
11674 cat confdefs.h
>>conftest.
$ac_ext
11675 cat >>conftest.
$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11678 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11679 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11680 /* but don't do it on AIX 5.1 (Uribarri) */
11682 #ifdef HAVE_XM_XM_H
11683 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11685 #ifdef HAVE_STRING_H
11686 # include <string.h>
11688 #if defined(HAVE_STRINGS_H)
11689 # include <strings.h>
11700 rm -f conftest.
$ac_objext
11701 if { (ac_try
="$ac_compile"
11702 case "(($ac_try" in
11703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11704 *) ac_try_echo=$ac_try;;
11706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11707 $as_echo "$ac_try_echo") >&5
11708 (eval "$ac_compile") 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && {
11715 test -z "$ac_c_werror_flag" ||
11716 test ! -s conftest.err
11717 } && test -s conftest.$ac_objext; then
11718 { $as_echo "$as_me:$LINENO: result: yes" >&5
11719 $as_echo "yes" >&6; }
11721 $as_echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11724 cat >>confdefs.h <<\_ACEOF
11725 #define NO_STRINGS_WITH_STRING_H 1
11728 { $as_echo "$as_me:$LINENO: result: no" >&5
11729 $as_echo "no" >&6; }
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11733 CPPFLAGS=$cppflags_save
11736 if test $ac_cv_c_compiler_gnu = yes; then
11737 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11738 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11739 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11740 $as_echo_n "(cached) " >&6
11742 ac_pattern="Autoconf.*'x'"
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11753 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11754 ac_cv_prog_gcc_traditional=yes
11756 ac_cv_prog_gcc_traditional=no
11761 if test $ac_cv_prog_gcc_traditional = no; then
11762 cat >conftest.$ac_ext <<_ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 #include <termio.h>
11771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11772 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11773 ac_cv_prog_gcc_traditional=yes
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11780 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11781 if test $ac_cv_prog_gcc_traditional = yes; then
11782 CC="$CC -traditional"
11786 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11787 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11788 if test "${ac_cv_c_const+set}" = set; then
11789 $as_echo_n "(cached) " >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11801 /* FIXME: Include the comments suggested by Paul. */
11802 #ifndef __cplusplus
11803 /* Ultrix mips cc rejects this. */
11804 typedef int charset[2];
11806 /* SunOS 4.1.1 cc rejects this. */
11807 char const *const *pcpcc;
11809 /* NEC SVR4.0.2 mips cc rejects this. */
11810 struct point {int x, y;};
11811 static struct point const zero = {0,0};
11812 /* AIX XL C 1.02.0.0 rejects this.
11813 It does not let you subtract one const X* pointer from another in
11814 an arm of an if-expression whose if-part is not a constant
11816 const char *g = "string";
11817 pcpcc = &g + (g ? g-g : 0);
11818 /* HPUX 7.0 cc rejects these. */
11820 ppc = (char**) pcpcc;
11821 pcpcc = (char const *const *) ppc;
11822 { /* SCO 3.2v4 cc rejects this. */
11824 char const *s = 0 ? (char *) 0 : (char const *) 0;
11829 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11830 int x[] = {25, 17};
11831 const int *foo = &x[0];
11834 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11835 typedef const int *iptr;
11839 { /* AIX XL C 1.02.0.0 rejects this saying
11840 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11841 struct s { int j; const int *ap[3]; };
11842 struct s *b; b->j = 5;
11844 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11845 const int foo = 10;
11846 if (!foo) return 0;
11848 return !cs[0] && !zero.x;
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11859 *) ac_try_echo
=$ac_try;;
11861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11865 grep -v '^ *+' conftest.er1
>conftest.err
11867 cat conftest.err
>&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.
$ac_objext; then
11875 $as_echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.
$ac_ext >&5
11881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11883 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11884 $as_echo "$ac_cv_c_const" >&6; }
11885 if test $ac_cv_c_const = no
; then
11887 cat >>confdefs.h
<<\_ACEOF
11893 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11894 $as_echo_n "checking for working volatile... " >&6; }
11895 if test "${ac_cv_c_volatile+set}" = set; then
11896 $as_echo_n "(cached) " >&6
11898 cat >conftest.
$ac_ext <<_ACEOF
11901 cat confdefs.h
>>conftest.
$ac_ext
11902 cat >>conftest.
$ac_ext <<_ACEOF
11903 /* end confdefs.h. */
11910 int * volatile y = (int *) 0;
11916 rm -f conftest.
$ac_objext
11917 if { (ac_try
="$ac_compile"
11918 case "(($ac_try" in
11919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923 $as_echo "$ac_try_echo") >&5
11924 (eval "$ac_compile") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest.$ac_objext; then
11934 ac_cv_c_volatile=yes
11936 $as_echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_c_volatile=no
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11945 $as_echo "$ac_cv_c_volatile" >&6; }
11946 if test $ac_cv_c_volatile = no; then
11948 cat >>confdefs.h <<\_ACEOF
11949 #define volatile /**/
11954 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11955 $as_echo_n "checking for mode_t... " >&6; }
11956 if test "${ac_cv_type_mode_t+set}" = set; then
11957 $as_echo_n "(cached) " >&6
11959 ac_cv_type_mode_t=no
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11966 $ac_includes_default
11970 if (sizeof (mode_t))
11976 rm -f conftest.$ac_objext
11977 if { (ac_try="$ac_compile"
11978 case "(($ac_try" in
11979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11980 *) ac_try_echo
=$ac_try;;
11982 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984 (eval "$ac_compile") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1
>conftest.err
11988 cat conftest.err
>&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest.
$ac_objext; then
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 ((mode_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
12030 $as_echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_type_mode_t=yes
12036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 $as_echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12047 $as_echo "$ac_cv_type_mode_t" >&6; }
12048 if test "x$ac_cv_type_mode_t" = x""yes; then
12052 cat >>confdefs.h <<_ACEOF
12058 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
12059 $as_echo_n "checking for off_t... " >&6; }
12060 if test "${ac_cv_type_off_t+set}" = set; then
12061 $as_echo_n "(cached) " >&6
12063 ac_cv_type_off_t=no
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 $ac_includes_default
12074 if (sizeof (off_t))
12080 rm -f conftest.$ac_objext
12081 if { (ac_try="$ac_compile"
12082 case "(($ac_try" in
12083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12084 *) ac_try_echo
=$ac_try;;
12086 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12087 $as_echo "$ac_try_echo") >&5
12088 (eval "$ac_compile") 2>conftest.er1
12090 grep -v '^ *+' conftest.er1
>conftest.err
12092 cat conftest.err
>&5
12093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } && {
12095 test -z "$ac_c_werror_flag" ||
12096 test ! -s conftest.err
12097 } && test -s conftest.
$ac_objext; then
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 ((off_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
12134 $as_echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 ac_cv_type_off_t=yes
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 $as_echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12151 $as_echo "$ac_cv_type_off_t" >&6; }
12152 if test "x$ac_cv_type_off_t" = x""yes; then
12156 cat >>confdefs.h <<_ACEOF
12157 #define off_t long int
12162 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12163 $as_echo_n "checking for pid_t... " >&6; }
12164 if test "${ac_cv_type_pid_t+set}" = set; then
12165 $as_echo_n "(cached) " >&6
12167 ac_cv_type_pid_t=no
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 $ac_includes_default
12178 if (sizeof (pid_t))
12184 rm -f conftest.$ac_objext
12185 if { (ac_try="$ac_compile"
12186 case "(($ac_try" in
12187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12188 *) ac_try_echo
=$ac_try;;
12190 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12191 $as_echo "$ac_try_echo") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1
>conftest.err
12196 cat conftest.err
>&5
12197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest.
$ac_objext; then
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 ((pid_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
12238 $as_echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12241 ac_cv_type_pid_t=yes
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 $as_echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12255 $as_echo "$ac_cv_type_pid_t" >&6; }
12256 if test "x$ac_cv_type_pid_t" = x""yes; then
12260 cat >>confdefs.h <<_ACEOF
12266 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12267 $as_echo_n "checking for size_t... " >&6; }
12268 if test "${ac_cv_type_size_t+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12271 ac_cv_type_size_t=no
12272 cat >conftest.$ac_ext <<_ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12278 $ac_includes_default
12282 if (sizeof (size_t))
12288 rm -f conftest.$ac_objext
12289 if { (ac_try="$ac_compile"
12290 case "(($ac_try" in
12291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12292 *) ac_try_echo
=$ac_try;;
12294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12295 $as_echo "$ac_try_echo") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1
>conftest.err
12300 cat conftest.err
>&5
12301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.
$ac_objext; then
12306 cat >conftest.
$ac_ext <<_ACEOF
12309 cat confdefs.h
>>conftest.
$ac_ext
12310 cat >>conftest.
$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12316 if (sizeof ((size_t)))
12322 rm -f conftest.
$ac_objext
12323 if { (ac_try
="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12329 $as_echo "$ac_try_echo") >&5
12330 (eval "$ac_compile") 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
12342 $as_echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ac_cv_type_size_t=yes
12348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 $as_echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12359 $as_echo "$ac_cv_type_size_t" >&6; }
12360 if test "x$ac_cv_type_size_t" = x""yes; then
12364 cat >>confdefs.h <<_ACEOF
12365 #define size_t unsigned int
12370 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12371 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12372 if test "${ac_cv_type_uid_t+set}" = set; then
12373 $as_echo_n "(cached) " >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 #include <sys/types.h>
12384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12385 $EGREP "uid_t" >/dev/null 2>&1; then
12386 ac_cv_type_uid_t=yes
12388 ac_cv_type_uid_t=no
12393 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12394 $as_echo "$ac_cv_type_uid_t" >&6; }
12395 if test $ac_cv_type_uid_t = no; then
12397 cat >>confdefs.h <<\_ACEOF
12402 cat >>confdefs.h <<\_ACEOF
12408 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12409 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12410 if test "${ac_cv_header_time+set}" = set; then
12411 $as_echo_n "(cached) " >&6
12413 cat >conftest.$ac_ext <<_ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 #include <sys/types.h>
12420 #include <sys/time.h>
12426 if ((struct tm *) 0)
12432 rm -f conftest.$ac_objext
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12436 *) ac_try_echo
=$ac_try;;
12438 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12439 $as_echo "$ac_try_echo") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1
>conftest.err
12444 cat conftest.err
>&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.
$ac_objext; then
12450 ac_cv_header_time
=yes
12452 $as_echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.
$ac_ext >&5
12455 ac_cv_header_time
=no
12458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12461 $as_echo "$ac_cv_header_time" >&6; }
12462 if test $ac_cv_header_time = yes; then
12464 cat >>confdefs.h
<<\_ACEOF
12465 #define TIME_WITH_SYS_TIME 1
12470 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12471 $as_echo_n "checking for ino_t... " >&6; }
12472 if test "${ac_cv_type_ino_t+set}" = set; then
12473 $as_echo_n "(cached) " >&6
12475 ac_cv_type_ino_t
=no
12476 cat >conftest.
$ac_ext <<_ACEOF
12479 cat confdefs.h
>>conftest.
$ac_ext
12480 cat >>conftest.
$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 $ac_includes_default
12486 if (sizeof (ino_t))
12492 rm -f conftest.
$ac_objext
12493 if { (ac_try
="$ac_compile"
12494 case "(($ac_try" in
12495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12499 $as_echo "$ac_try_echo") >&5
12500 (eval "$ac_compile") 2>conftest.er1
12502 grep -v '^ *+' conftest.er1 >conftest.err
12504 cat conftest.err >&5
12505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest.$ac_objext; then
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 ((ino_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
12546 $as_echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.
$ac_ext >&5
12549 ac_cv_type_ino_t
=yes
12552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12554 $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12563 $as_echo "$ac_cv_type_ino_t" >&6; }
12564 if test "x$ac_cv_type_ino_t" = x
""yes; then
12568 cat >>confdefs.h
<<_ACEOF
12574 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12575 $as_echo_n "checking for dev_t... " >&6; }
12576 if test "${ac_cv_type_dev_t+set}" = set; then
12577 $as_echo_n "(cached) " >&6
12579 ac_cv_type_dev_t
=no
12580 cat >conftest.
$ac_ext <<_ACEOF
12583 cat confdefs.h
>>conftest.
$ac_ext
12584 cat >>conftest.
$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12590 if (sizeof (dev_t))
12596 rm -f conftest.
$ac_objext
12597 if { (ac_try
="$ac_compile"
12598 case "(($ac_try" in
12599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12603 $as_echo "$ac_try_echo") >&5
12604 (eval "$ac_compile") 2>conftest.er1
12606 grep -v '^ *+' conftest.er1 >conftest.err
12608 cat conftest.err >&5
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_c_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest.$ac_objext; then
12614 cat >conftest.$ac_ext <<_ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12624 if (sizeof ((dev_t)))
12630 rm -f conftest.$ac_objext
12631 if { (ac_try="$ac_compile"
12632 case "(($ac_try" in
12633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12634 *) ac_try_echo
=$ac_try;;
12636 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12637 $as_echo "$ac_try_echo") >&5
12638 (eval "$ac_compile") 2>conftest.er1
12640 grep -v '^ *+' conftest.er1
>conftest.err
12642 cat conftest.err
>&5
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_c_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest.
$ac_objext; then
12650 $as_echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.
$ac_ext >&5
12653 ac_cv_type_dev_t
=yes
12656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12658 $as_echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.
$ac_ext >&5
12664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12666 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12667 $as_echo "$ac_cv_type_dev_t" >&6; }
12668 if test "x$ac_cv_type_dev_t" = x
""yes; then
12672 cat >>confdefs.h
<<_ACEOF
12673 #define dev_t unsigned
12679 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12680 $as_echo_n "checking for rlim_t... " >&6; }
12681 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12682 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12683 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12685 cat >conftest.
$ac_ext <<_ACEOF
12688 cat confdefs.h
>>conftest.
$ac_ext
12689 cat >>conftest.
$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 #include <sys/types.h>
12694 # include <stdlib.h>
12695 # include <stddef.h>
12697 #ifdef HAVE_SYS_RESOURCE_H
12698 # include <sys/resource.h>
12702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12703 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12704 ac_cv_type_rlim_t
=yes
12706 ac_cv_type_rlim_t
=no
12710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12711 $as_echo "$ac_cv_type_rlim_t" >&6; }
12713 if test $ac_cv_type_rlim_t = no
; then
12714 cat >> confdefs.h
<<\EOF
12715 #define rlim_t unsigned long
12719 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12720 $as_echo_n "checking for stack_t... " >&6; }
12721 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12722 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12723 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12725 cat >conftest.
$ac_ext <<_ACEOF
12728 cat confdefs.h
>>conftest.
$ac_ext
12729 cat >>conftest.
$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 #include <sys/types.h>
12734 # include <stdlib.h>
12735 # include <stddef.h>
12737 #include <signal.h>
12740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12741 $EGREP "stack_t" >/dev
/null
2>&1; then
12742 ac_cv_type_stack_t
=yes
12744 ac_cv_type_stack_t
=no
12748 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12749 $as_echo "$ac_cv_type_stack_t" >&6; }
12751 if test $ac_cv_type_stack_t = no
; then
12752 cat >> confdefs.h
<<\EOF
12753 #define stack_t struct sigaltstack
12757 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12758 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12759 cat >conftest.
$ac_ext <<_ACEOF
12762 cat confdefs.h
>>conftest.
$ac_ext
12763 cat >>conftest.
$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 #include <sys/types.h>
12768 # include <stdlib.h>
12769 # include <stddef.h>
12771 #include <signal.h>
12772 #include "confdefs.h"
12777 stack_t sigstk; sigstk.ss_base = 0;
12782 rm -f conftest.
$ac_objext
12783 if { (ac_try
="$ac_compile"
12784 case "(($ac_try" in
12785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12789 $as_echo "$ac_try_echo") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12792 grep -v '^ *+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.$ac_objext; then
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12802 #define HAVE_SS_BASE 1
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 { $as_echo "$as_me:$LINENO: result: no" >&5
12810 $as_echo "no" >&6; }
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12817 $as_echo_n "checking --with-tlib argument... " >&6; }
12819 # Check whether --with-tlib was given.
12820 if test "${with_tlib+set}" = set; then
12821 withval=$with_tlib;
12824 if test -n "$with_tlib"; then
12825 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12826 $as_echo "$with_tlib" >&6; }
12827 LIBS="$LIBS -l$with_tlib"
12828 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12829 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12830 cat >conftest.$ac_ext <<_ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12845 rm -f conftest.$ac_objext conftest$ac_exeext
12846 if { (ac_try="$ac_link"
12847 case "(($ac_try" in
12848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12849 *) ac_try_echo
=$ac_try;;
12851 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12852 $as_echo "$ac_try_echo") >&5
12853 (eval "$ac_link") 2>conftest.er1
12855 grep -v '^ *+' conftest.er1
>conftest.err
12857 cat conftest.err
>&5
12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest
$ac_exeext && {
12863 test "$cross_compiling" = yes ||
12864 $as_test_x conftest
$ac_exeext
12866 { $as_echo "$as_me:$LINENO: result: OK" >&5
12867 $as_echo "OK" >&6; }
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.
$ac_ext >&5
12872 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12873 $as_echo "$as_me: error: FAILED" >&2;}
12874 { (exit 1); exit 1; }; }
12877 rm -rf conftest.dSYM
12878 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12879 conftest
$ac_exeext conftest.
$ac_ext
12882 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12883 $as_echo "empty: automatic terminal library selection" >&6; }
12884 case "`uname -s 2>/dev/null`" in
12885 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12886 *) tlibs
="ncurses termlib termcap curses";;
12888 for libname
in $tlibs; do
12890 as_ac_Lib
=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12891 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12892 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12893 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12894 $as_echo_n "(cached) " >&6
12896 ac_check_lib_save_LIBS
=$LIBS
12897 LIBS
="-l${libname} $LIBS"
12898 cat >conftest.
$ac_ext <<_ACEOF
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12920 rm -f conftest.
$ac_objext conftest
$ac_exeext
12921 if { (ac_try
="$ac_link"
12922 case "(($ac_try" in
12923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12927 $as_echo "$ac_try_echo") >&5
12928 (eval "$ac_link") 2>conftest.er1
12930 grep -v '^ *+' conftest.er1 >conftest.err
12932 cat conftest.err >&5
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest$ac_exeext && {
12938 test "$cross_compiling" = yes ||
12939 $as_test_x conftest$ac_exeext
12941 eval "$as_ac_Lib=yes"
12943 $as_echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 eval "$as_ac_Lib=no"
12949 rm -rf conftest.dSYM
12950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12951 conftest$ac_exeext conftest.$ac_ext
12952 LIBS=$ac_check_lib_save_LIBS
12954 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12958 as_val=`eval 'as_val=${'$as_ac_Lib'}
12959 $as_echo "$as_val"'`
12960 if test "x$as_val" = x""yes; then
12961 cat >>confdefs.h <<_ACEOF
12962 #define `$as_echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12965 LIBS="-l${libname} $LIBS"
12969 if test "x$olibs" != "x$LIBS"; then
12970 if test "$cross_compiling" = yes; then
12973 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12980 #ifdef HAVE_TERMCAP_H
12981 # include <termcap.h>
12984 # include <stdlib.h>
12985 # include <stddef.h>
12987 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12989 rm -f conftest$ac_exeext
12990 if { (ac_try="$ac_link"
12991 case "(($ac_try" in
12992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12993 *) ac_try_echo
=$ac_try;;
12995 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997 (eval "$ac_link") 2>&5
12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13001 { (case "(($ac_try" in
13002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006 $as_echo "$ac_try_echo") >&5
13007 (eval "$ac_try") 2>&5
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13013 $as_echo "$as_me: program exited with status $ac_status" >&5
13014 $as_echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13017 ( exit $ac_status )
13020 rm -rf conftest.dSYM
13021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13025 if test "$res" = "OK"; then
13028 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
13029 $as_echo "$libname library is not usable" >&6; }
13033 if test "x$olibs" = "x$LIBS"; then
13034 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
13035 $as_echo "no terminal library found" >&6; }
13039 if test "x$olibs" = "x$LIBS"; then
13040 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
13041 $as_echo_n "checking for tgetent()... " >&6; }
13042 cat >conftest.$ac_ext <<_ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h. */
13052 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (ac_try="$ac_link"
13059 case "(($ac_try" in
13060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13061 *) ac_try_echo
=$ac_try;;
13063 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13064 $as_echo "$ac_try_echo") >&5
13065 (eval "$ac_link") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1
>conftest.err
13069 cat conftest.err
>&5
13070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest
$ac_exeext && {
13075 test "$cross_compiling" = yes ||
13076 $as_test_x conftest
$ac_exeext
13078 { $as_echo "$as_me:$LINENO: result: yes" >&5
13079 $as_echo "yes" >&6; }
13081 $as_echo "$as_me: failed program was:" >&5
13082 sed 's/^/| /' conftest.
$ac_ext >&5
13084 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13085 You need to install a terminal library; for example ncurses.
13086 Or specify the name of the library with --with-tlib." >&5
13087 $as_echo "$as_me: error: NOT FOUND!
13088 You need to install a terminal library; for example ncurses.
13089 Or specify the name of the library with --with-tlib." >&2;}
13090 { (exit 1); exit 1; }; }
13093 rm -rf conftest.dSYM
13094 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13095 conftest
$ac_exeext conftest.
$ac_ext
13098 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13099 $as_echo_n "checking whether we talk terminfo... " >&6; }
13100 if test "${vim_cv_terminfo+set}" = set; then
13101 $as_echo_n "(cached) " >&6
13104 if test "$cross_compiling" = yes; then
13106 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13107 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13108 { (exit 1); exit 1; }; }
13111 cat >conftest.
$ac_ext <<_ACEOF
13113 #include "confdefs.h"
13114 #ifdef HAVE_TERMCAP_H
13115 # include <termcap.h>
13117 #ifdef HAVE_STRING_H
13118 # include <string.h>
13121 # include <stdlib.h>
13122 # include <stddef.h>
13125 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13128 rm -f conftest
$ac_exeext
13129 if { (ac_try
="$ac_link"
13130 case "(($ac_try" in
13131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135 $as_echo "$ac_try_echo") >&5
13136 (eval "$ac_link") 2>&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13154 $as_echo "$as_me: program exited with status $ac_status" >&5
13155 $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.
$ac_ext >&5
13158 ( exit $ac_status )
13160 vim_cv_terminfo
=yes
13163 rm -rf conftest.dSYM
13164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13170 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13171 $as_echo "$vim_cv_terminfo" >&6; }
13173 if test "x$vim_cv_terminfo" = "xyes" ; then
13174 cat >>confdefs.h
<<\_ACEOF
13180 if test "x$olibs" != "x$LIBS"; then
13181 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13182 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13183 if test "${vim_cv_tgent+set}" = set; then
13184 $as_echo_n "(cached) " >&6
13187 if test "$cross_compiling" = yes; then
13189 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13190 $as_echo "$as_me: error: failed to compile test program." >&2;}
13191 { (exit 1); exit 1; }; }
13194 cat >conftest.
$ac_ext <<_ACEOF
13196 #include "confdefs.h"
13197 #ifdef HAVE_TERMCAP_H
13198 # include <termcap.h>
13201 # include <stdlib.h>
13202 # include <stddef.h>
13205 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13208 rm -f conftest
$ac_exeext
13209 if { (ac_try
="$ac_link"
13210 case "(($ac_try" in
13211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13215 $as_echo "$ac_try_echo") >&5
13216 (eval "$ac_link") 2>&5
13218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13222 *) ac_try_echo
=$ac_try;;
13224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13225 $as_echo "$ac_try_echo") >&5
13226 (eval "$ac_try") 2>&5
13228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13234 $as_echo "$as_me: program exited with status $ac_status" >&5
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.
$ac_ext >&5
13238 ( exit $ac_status )
13240 vim_cv_tgent
=non-zero
13243 rm -rf conftest.dSYM
13244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13250 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13251 $as_echo "$vim_cv_tgent" >&6; }
13253 if test "x$vim_cv_tgent" = "xzero" ; then
13254 cat >>confdefs.h
<<\_ACEOF
13255 #define TGETENT_ZERO_ERR 0
13261 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13262 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13263 cat >conftest.
$ac_ext <<_ACEOF
13266 cat confdefs.h
>>conftest.
$ac_ext
13267 cat >>conftest.
$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13270 #ifdef HAVE_TERMCAP_H
13271 # include <termcap.h>
13282 rm -f conftest.
$ac_objext conftest
$ac_exeext
13283 if { (ac_try
="$ac_link"
13284 case "(($ac_try" in
13285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13289 $as_echo "$ac_try_echo") >&5
13290 (eval "$ac_link") 2>conftest.er1
13292 grep -v '^ *+' conftest.er1 >conftest.err
13294 cat conftest.err >&5
13295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } && {
13297 test -z "$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 } && test -s conftest$ac_exeext && {
13300 test "$cross_compiling" = yes ||
13301 $as_test_x conftest$ac_exeext
13303 { $as_echo "$as_me:$LINENO: result: yes" >&5
13304 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_OSPEED 1
13309 $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 { $as_echo "$as_me:$LINENO: result: no" >&5
13313 $as_echo "no" >&6; }
13314 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13315 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13316 cat >conftest.$ac_ext <<_ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13323 #ifdef HAVE_TERMCAP_H
13324 # include <termcap.h>
13326 extern short ospeed;
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (ac_try="$ac_link"
13338 case "(($ac_try" in
13339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13340 *) ac_try_echo
=$ac_try;;
13342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13343 $as_echo "$ac_try_echo") >&5
13344 (eval "$ac_link") 2>conftest.er1
13346 grep -v '^ *+' conftest.er1
>conftest.err
13348 cat conftest.err
>&5
13349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } && {
13351 test -z "$ac_c_werror_flag" ||
13352 test ! -s conftest.err
13353 } && test -s conftest
$ac_exeext && {
13354 test "$cross_compiling" = yes ||
13355 $as_test_x conftest
$ac_exeext
13357 { $as_echo "$as_me:$LINENO: result: yes" >&5
13358 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13359 #define OSPEED_EXTERN 1
13363 $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.
$ac_ext >&5
13366 { $as_echo "$as_me:$LINENO: result: no" >&5
13367 $as_echo "no" >&6; }
13370 rm -rf conftest.dSYM
13371 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13372 conftest
$ac_exeext conftest.
$ac_ext
13376 rm -rf conftest.dSYM
13377 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13378 conftest
$ac_exeext conftest.
$ac_ext
13380 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13381 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13382 cat >conftest.
$ac_ext <<_ACEOF
13385 cat confdefs.h
>>conftest.
$ac_ext
13386 cat >>conftest.
$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 #ifdef HAVE_TERMCAP_H
13390 # include <termcap.h>
13396 if (UP == 0 && BC == 0) PC = 1
13401 rm -f conftest.
$ac_objext conftest
$ac_exeext
13402 if { (ac_try
="$ac_link"
13403 case "(($ac_try" in
13404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13408 $as_echo "$ac_try_echo") >&5
13409 (eval "$ac_link") 2>conftest.er1
13411 grep -v '^ *+' conftest.er1 >conftest.err
13413 cat conftest.err >&5
13414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && {
13416 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest$ac_exeext && {
13419 test "$cross_compiling" = yes ||
13420 $as_test_x conftest$ac_exeext
13422 { $as_echo "$as_me:$LINENO: result: yes" >&5
13423 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13424 #define HAVE_UP_BC_PC 1
13428 $as_echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 { $as_echo "$as_me:$LINENO: result: no" >&5
13432 $as_echo "no" >&6; }
13433 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13434 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13442 #ifdef HAVE_TERMCAP_H
13443 # include <termcap.h>
13445 extern char *UP, *BC, PC;
13450 if (UP == 0 && BC == 0) PC = 1
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (ac_try="$ac_link"
13457 case "(($ac_try" in
13458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13459 *) ac_try_echo
=$ac_try;;
13461 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13462 $as_echo "$ac_try_echo") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1
>conftest.err
13467 cat conftest.err
>&5
13468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest
$ac_exeext && {
13473 test "$cross_compiling" = yes ||
13474 $as_test_x conftest
$ac_exeext
13476 { $as_echo "$as_me:$LINENO: result: yes" >&5
13477 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13478 #define UP_BC_PC_EXTERN 1
13482 $as_echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.
$ac_ext >&5
13485 { $as_echo "$as_me:$LINENO: result: no" >&5
13486 $as_echo "no" >&6; }
13489 rm -rf conftest.dSYM
13490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13491 conftest
$ac_exeext conftest.
$ac_ext
13495 rm -rf conftest.dSYM
13496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13497 conftest
$ac_exeext conftest.
$ac_ext
13499 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13500 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13501 cat >conftest.
$ac_ext <<_ACEOF
13504 cat confdefs.h
>>conftest.
$ac_ext
13505 cat >>conftest.
$ac_ext <<_ACEOF
13506 /* end confdefs.h. */
13508 #ifdef HAVE_TERMCAP_H
13509 # include <termcap.h>
13515 extern int xx(); tputs("test", 1, (outfuntype)xx)
13520 rm -f conftest.
$ac_objext
13521 if { (ac_try
="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1 >conftest.err
13532 cat conftest.err >&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.$ac_objext; then
13538 { $as_echo "$as_me:$LINENO: result: yes" >&5
13539 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13540 #define HAVE_OUTFUNTYPE 1
13544 $as_echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 { $as_echo "$as_me:$LINENO: result: no" >&5
13548 $as_echo "no" >&6; }
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13554 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13555 cat >conftest.$ac_ext <<_ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13562 #include <sys/types.h>
13563 #include <sys/time.h>
13564 #include <sys/select.h>
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13577 *) ac_try_echo
=$ac_try;;
13579 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13580 $as_echo "$ac_try_echo") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1
>conftest.err
13585 cat conftest.err
>&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.
$ac_objext; then
13591 { $as_echo "$as_me:$LINENO: result: yes" >&5
13592 $as_echo "yes" >&6; }
13593 cat >>confdefs.h
<<\_ACEOF
13594 #define SYS_SELECT_WITH_SYS_TIME 1
13598 $as_echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.
$ac_ext >&5
13601 { $as_echo "$as_me:$LINENO: result: no" >&5
13602 $as_echo "no" >&6; }
13605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13608 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13609 $as_echo_n "checking for /dev/ptc... " >&6; }
13610 if test -r /dev
/ptc
; then
13611 cat >>confdefs.h
<<\_ACEOF
13612 #define HAVE_DEV_PTC 1
13615 { $as_echo "$as_me:$LINENO: result: yes" >&5
13616 $as_echo "yes" >&6; }
13618 { $as_echo "$as_me:$LINENO: result: no" >&5
13619 $as_echo "no" >&6; }
13622 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13623 $as_echo_n "checking for SVR4 ptys... " >&6; }
13624 if test -c /dev
/ptmx
; then
13625 cat >conftest.
$ac_ext <<_ACEOF
13628 cat confdefs.h
>>conftest.
$ac_ext
13629 cat >>conftest.
$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13635 ptsname(0);grantpt(0);unlockpt(0);
13640 rm -f conftest.
$ac_objext conftest
$ac_exeext
13641 if { (ac_try
="$ac_link"
13642 case "(($ac_try" in
13643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13647 $as_echo "$ac_try_echo") >&5
13648 (eval "$ac_link") 2>conftest.er1
13650 grep -v '^ *+' conftest.er1 >conftest.err
13652 cat conftest.err >&5
13653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } && {
13655 test -z "$ac_c_werror_flag" ||
13656 test ! -s conftest.err
13657 } && test -s conftest$ac_exeext && {
13658 test "$cross_compiling" = yes ||
13659 $as_test_x conftest$ac_exeext
13661 { $as_echo "$as_me:$LINENO: result: yes" >&5
13662 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_SVR4_PTYS 1
13667 $as_echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13670 { $as_echo "$as_me:$LINENO: result: no" >&5
13671 $as_echo "no" >&6; }
13674 rm -rf conftest.dSYM
13675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13676 conftest$ac_exeext conftest.$ac_ext
13678 { $as_echo "$as_me:$LINENO: result: no" >&5
13679 $as_echo "no" >&6; }
13682 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13683 $as_echo_n "checking for ptyranges... " >&6; }
13684 if test -d /dev/ptym ; then
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701 $EGREP "yes" >/dev/null 2>&1; then
13702 ptys=`echo /dev
/ptyp??
`
13704 ptys=`echo $pdir/pty??
`
13708 if test "$ptys" != "$pdir/pty??" ; then
13709 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13710 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13711 cat >>confdefs.h <<_ACEOF
13712 #define PTYRANGE0 "$p0"
13715 cat >>confdefs.h <<_ACEOF
13716 #define PTYRANGE1 "$p1"
13719 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13720 $as_echo "$p0 / $p1" >&6; }
13722 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13723 $as_echo "don't know" >&6; }
13727 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13728 $as_echo_n "checking default tty permissions/group... " >&6; }
13729 if test "${vim_cv_tty_group+set}" = set; then
13730 $as_echo_n "(cached) " >&6
13733 if test "$cross_compiling" = yes; then
13735 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13736 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13737 { (exit 1); exit 1; }; }
13740 cat >conftest.$ac_ext <<_ACEOF
13742 #include "confdefs.h"
13743 #include <sys/types.h>
13745 # include <stdlib.h>
13746 # include <stddef.h>
13748 #ifdef HAVE_UNISTD_H
13749 #include <unistd.h>
13751 #include <sys/stat.h>
13756 char *x,*ttyname();
13760 if (!(x = ttyname(0))) exit(1);
13761 if (stat(x, &sb)) exit(1);
13763 if (om & 002) exit(0);
13764 m = system("mesg y");
13765 if (m == -1 || m == 127) exit(1);
13766 if (stat(x, &sb)) exit(1);
13768 if (chmod(x, om)) exit(1);
13769 if (m & 002) exit(0);
13770 if (sb.st_gid == getgid()) exit(1);
13771 if (!(fp=fopen("conftest_grp", "w")))
13773 fprintf(fp, "%d\n", sb.st_gid);
13779 rm -f conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13783 *) ac_try_echo
=$ac_try;;
13785 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13786 $as_echo "$ac_try_echo") >&5
13787 (eval "$ac_link") 2>&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13791 { (case "(($ac_try" in
13792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13796 $as_echo "$ac_try_echo") >&5
13797 (eval "$ac_try") 2>&5
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13802 if test -f conftest_grp; then
13803 vim_cv_tty_group=`cat conftest_grp
`
13804 if test "x$vim_cv_tty_mode" = "x" ; then
13805 vim_cv_tty_mode=0620
13807 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13808 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13810 vim_cv_tty_group=world
13811 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13812 $as_echo "ptys are world accessible" >&6; }
13816 $as_echo "$as_me: program exited with status $ac_status" >&5
13817 $as_echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ( exit $ac_status )
13822 vim_cv_tty_group=world
13823 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13824 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13827 rm -rf conftest.dSYM
13828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13834 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13835 $as_echo "$vim_cv_tty_group" >&6; }
13838 if test "x$vim_cv_tty_group" != "xworld" ; then
13839 cat >>confdefs.h <<_ACEOF
13840 #define PTYGROUP $vim_cv_tty_group
13843 if test "x$vim_cv_tty_mode" = "x" ; then
13844 { { $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
13845 $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;}
13846 { (exit 1); exit 1; }; }
13848 cat >>confdefs.h <<\_ACEOF
13849 #define PTYMODE 0620
13856 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13857 $as_echo_n "checking return type of signal handlers... " >&6; }
13858 if test "${ac_cv_type_signal+set}" = set; then
13859 $as_echo_n "(cached) " >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #include <sys/types.h>
13868 #include <signal.h>
13873 return *(signal (0, 0)) (0) == 1;
13878 rm -f conftest.$ac_objext
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13882 *) ac_try_echo
=$ac_try;;
13884 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1
>conftest.err
13890 cat conftest.err
>&5
13891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.
$ac_objext; then
13896 ac_cv_type_signal
=int
13898 $as_echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.
$ac_ext >&5
13901 ac_cv_type_signal
=void
13904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13906 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13907 $as_echo "$ac_cv_type_signal" >&6; }
13909 cat >>confdefs.h
<<_ACEOF
13910 #define RETSIGTYPE $ac_cv_type_signal
13915 if test $ac_cv_type_signal = void
; then
13916 cat >>confdefs.h
<<\_ACEOF
13917 #define SIGRETURN return
13921 cat >>confdefs.h
<<\_ACEOF
13922 #define SIGRETURN return 0
13927 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13928 $as_echo_n "checking for struct sigcontext... " >&6; }
13929 cat >conftest.
$ac_ext <<_ACEOF
13932 cat confdefs.h
>>conftest.
$ac_ext
13933 cat >>conftest.
$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13936 #include <signal.h>
13939 struct sigcontext *scont;
13940 scont = (struct sigcontext *)0;
13951 rm -f conftest.
$ac_objext
13952 if { (ac_try
="$ac_compile"
13953 case "(($ac_try" in
13954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13955 *) ac_try_echo=$ac_try;;
13957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13958 $as_echo "$ac_try_echo") >&5
13959 (eval "$ac_compile") 2>conftest.er1
13961 grep -v '^ *+' conftest.er1 >conftest.err
13963 cat conftest.err >&5
13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } && {
13966 test -z "$ac_c_werror_flag" ||
13967 test ! -s conftest.err
13968 } && test -s conftest.$ac_objext; then
13969 { $as_echo "$as_me:$LINENO: result: yes" >&5
13970 $as_echo "yes" >&6; }
13971 cat >>confdefs.h <<\_ACEOF
13972 #define HAVE_SIGCONTEXT 1
13976 $as_echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 { $as_echo "$as_me:$LINENO: result: no" >&5
13980 $as_echo "no" >&6; }
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13986 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13987 if test "${vim_cv_getcwd_broken+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13991 if test "$cross_compiling" = yes; then
13993 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13994 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13995 { (exit 1); exit 1; }; }
13998 cat >conftest.$ac_ext <<_ACEOF
14000 #include "confdefs.h"
14001 #ifdef HAVE_UNISTD_H
14002 #include <unistd.h>
14004 char *dagger[] = { "IFS=pwd", 0 };
14008 extern char **environ;
14010 return getcwd(buffer, 500) ? 0 : 1;
14014 rm -f conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14018 *) ac_try_echo
=$ac_try;;
14020 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14021 $as_echo "$ac_try_echo") >&5
14022 (eval "$ac_link") 2>&5
14024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14026 { (case "(($ac_try" in
14027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032 (eval "$ac_try") 2>&5
14034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14037 vim_cv_getcwd_broken=no
14040 $as_echo "$as_me: program exited with status $ac_status" >&5
14041 $as_echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ( exit $ac_status )
14046 vim_cv_getcwd_broken=yes
14049 rm -rf conftest.dSYM
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14056 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
14057 $as_echo "$vim_cv_getcwd_broken" >&6; }
14059 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
14060 cat >>confdefs.h <<\_ACEOF
14061 #define BAD_GETCWD 1
14111 for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
14112 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14113 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14114 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14115 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14116 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14117 usleep utime utimes
14119 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14120 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14121 $as_echo_n "checking for $ac_func... " >&6; }
14122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14123 $as_echo_n "(cached) " >&6
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14133 #define $ac_func innocuous_$ac_func
14135 /* System header to define __stub macros and hopefully few prototypes,
14136 which can conflict with char $ac_func (); below.
14137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14138 <limits.h> exists even on freestanding compilers. */
14141 # include <limits.h>
14143 # include <assert.h>
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14155 /* The GNU C library defines this for functions which it implements
14156 to always fail with ENOSYS. Some functions are actually named
14157 something starting with __ and the normal name is an alias. */
14158 #if defined __stub_$ac_func || defined __stub___$ac_func
14165 return $ac_func ();
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 eval "$as_ac_var=yes"
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.
$ac_ext >&5
14196 eval "$as_ac_var=no"
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
14203 ac_res
=`eval 'as_val=${'$as_ac_var'}
14204 $as_echo "$as_val"'`
14205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14206 $as_echo "$ac_res" >&6; }
14207 as_val
=`eval 'as_val=${'$as_ac_var'}
14208 $as_echo "$as_val"'`
14209 if test "x$as_val" = x
""yes; then
14210 cat >>confdefs.h
<<_ACEOF
14211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14217 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14218 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14219 if test "${ac_cv_sys_largefile_source+set}" = set; then
14220 $as_echo_n "(cached) " >&6
14223 cat >conftest.
$ac_ext <<_ACEOF
14226 cat confdefs.h
>>conftest.
$ac_ext
14227 cat >>conftest.
$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 #include <sys/types.h> /* for off_t */
14234 int (*fp) (FILE *, off_t, int) = fseeko;
14235 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14240 rm -f conftest.
$ac_objext conftest
$ac_exeext
14241 if { (ac_try
="$ac_link"
14242 case "(($ac_try" in
14243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_link") 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest$ac_exeext && {
14258 test "$cross_compiling" = yes ||
14259 $as_test_x conftest$ac_exeext
14261 ac_cv_sys_largefile_source=no; break
14263 $as_echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14269 rm -rf conftest.dSYM
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #define _LARGEFILE_SOURCE 1
14279 #include <sys/types.h> /* for off_t */
14284 int (*fp) (FILE *, off_t, int) = fseeko;
14285 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14290 rm -f conftest.$ac_objext conftest$ac_exeext
14291 if { (ac_try="$ac_link"
14292 case "(($ac_try" in
14293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14294 *) ac_try_echo
=$ac_try;;
14296 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14297 $as_echo "$ac_try_echo") >&5
14298 (eval "$ac_link") 2>conftest.er1
14300 grep -v '^ *+' conftest.er1
>conftest.err
14302 cat conftest.err
>&5
14303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } && {
14305 test -z "$ac_c_werror_flag" ||
14306 test ! -s conftest.err
14307 } && test -s conftest
$ac_exeext && {
14308 test "$cross_compiling" = yes ||
14309 $as_test_x conftest
$ac_exeext
14311 ac_cv_sys_largefile_source
=1; break
14313 $as_echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.
$ac_ext >&5
14319 rm -rf conftest.dSYM
14320 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14321 conftest
$ac_exeext conftest.
$ac_ext
14322 ac_cv_sys_largefile_source
=unknown
14326 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
14327 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14328 case $ac_cv_sys_largefile_source in #(
14331 cat >>confdefs.h
<<_ACEOF
14332 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14338 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14339 # in glibc 2.1.3, but that breaks too many other things.
14340 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14341 if test $ac_cv_sys_largefile_source != unknown
; then
14343 cat >>confdefs.h
<<\_ACEOF
14344 #define HAVE_FSEEKO 1
14350 # Check whether --enable-largefile was given.
14351 if test "${enable_largefile+set}" = set; then
14352 enableval
=$enable_largefile;
14355 if test "$enable_largefile" != no
; then
14357 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14358 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14359 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14360 $as_echo_n "(cached) " >&6
14362 ac_cv_sys_largefile_CC
=no
14363 if test "$GCC" != yes; then
14366 # IRIX 6.2 and later do not support large files by default,
14367 # so use the C compiler's -n32 option if that helps.
14368 cat >conftest.
$ac_ext <<_ACEOF
14371 cat confdefs.h
>>conftest.
$ac_ext
14372 cat >>conftest.
$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14375 /* Check that off_t can represent 2**63 - 1 correctly.
14376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14377 since some C++ compilers masquerading as C compilers
14378 incorrectly reject 9223372036854775807. */
14379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14381 && LARGE_OFF_T % 2147483647 == 1)
14391 rm -f conftest.
$ac_objext
14392 if { (ac_try
="$ac_compile"
14393 case "(($ac_try" in
14394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14398 $as_echo "$ac_try_echo") >&5
14399 (eval "$ac_compile") 2>conftest.er1
14401 grep -v '^ *+' conftest.er1 >conftest.err
14403 cat conftest.err >&5
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); } && {
14406 test -z "$ac_c_werror_flag" ||
14407 test ! -s conftest.err
14408 } && test -s conftest.$ac_objext; then
14411 $as_echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14417 rm -f core conftest.err conftest.$ac_objext
14419 rm -f conftest.$ac_objext
14420 if { (ac_try="$ac_compile"
14421 case "(($ac_try" in
14422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14423 *) ac_try_echo
=$ac_try;;
14425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1
>conftest.err
14431 cat conftest.err
>&5
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_c_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest.
$ac_objext; then
14437 ac_cv_sys_largefile_CC
=' -n32'; break
14439 $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.
$ac_ext >&5
14445 rm -f core conftest.err conftest.
$ac_objext
14449 rm -f conftest.
$ac_ext
14452 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14453 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14454 if test "$ac_cv_sys_largefile_CC" != no
; then
14455 CC
=$CC$ac_cv_sys_largefile_CC
14458 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14459 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14460 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14461 $as_echo_n "(cached) " >&6
14464 cat >conftest.
$ac_ext <<_ACEOF
14467 cat confdefs.h
>>conftest.
$ac_ext
14468 cat >>conftest.
$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <sys/types.h>
14471 /* Check that off_t can represent 2**63 - 1 correctly.
14472 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14473 since some C++ compilers masquerading as C compilers
14474 incorrectly reject 9223372036854775807. */
14475 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14476 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14477 && LARGE_OFF_T % 2147483647 == 1)
14487 rm -f conftest.
$ac_objext
14488 if { (ac_try
="$ac_compile"
14489 case "(($ac_try" in
14490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14494 $as_echo "$ac_try_echo") >&5
14495 (eval "$ac_compile") 2>conftest.er1
14497 grep -v '^ *+' conftest.er1 >conftest.err
14499 cat conftest.err >&5
14500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } && {
14502 test -z "$ac_c_werror_flag" ||
14503 test ! -s conftest.err
14504 } && test -s conftest.$ac_objext; then
14505 ac_cv_sys_file_offset_bits=no; break
14507 $as_echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #define _FILE_OFFSET_BITS 64
14521 #include <sys/types.h>
14522 /* Check that off_t can represent 2**63 - 1 correctly.
14523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14524 since some C++ compilers masquerading as C compilers
14525 incorrectly reject 9223372036854775807. */
14526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14528 && LARGE_OFF_T % 2147483647 == 1)
14538 rm -f conftest.$ac_objext
14539 if { (ac_try="$ac_compile"
14540 case "(($ac_try" in
14541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14542 *) ac_try_echo
=$ac_try;;
14544 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_compile") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1
>conftest.err
14550 cat conftest.err
>&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest.
$ac_objext; then
14556 ac_cv_sys_file_offset_bits
=64; break
14558 $as_echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.
$ac_ext >&5
14564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14565 ac_cv_sys_file_offset_bits
=unknown
14569 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14570 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14571 case $ac_cv_sys_file_offset_bits in #(
14574 cat >>confdefs.h
<<_ACEOF
14575 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14580 if test $ac_cv_sys_file_offset_bits = unknown
; then
14581 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14582 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14583 if test "${ac_cv_sys_large_files+set}" = set; then
14584 $as_echo_n "(cached) " >&6
14587 cat >conftest.
$ac_ext <<_ACEOF
14590 cat confdefs.h
>>conftest.
$ac_ext
14591 cat >>conftest.
$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 #include <sys/types.h>
14594 /* Check that off_t can represent 2**63 - 1 correctly.
14595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14596 since some C++ compilers masquerading as C compilers
14597 incorrectly reject 9223372036854775807. */
14598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14600 && LARGE_OFF_T % 2147483647 == 1)
14610 rm -f conftest.
$ac_objext
14611 if { (ac_try
="$ac_compile"
14612 case "(($ac_try" in
14613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617 $as_echo "$ac_try_echo") >&5
14618 (eval "$ac_compile") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest.$ac_objext; then
14628 ac_cv_sys_large_files=no; break
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 #define _LARGE_FILES 1
14644 #include <sys/types.h>
14645 /* Check that off_t can represent 2**63 - 1 correctly.
14646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14647 since some C++ compilers masquerading as C compilers
14648 incorrectly reject 9223372036854775807. */
14649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14651 && LARGE_OFF_T % 2147483647 == 1)
14661 rm -f conftest.$ac_objext
14662 if { (ac_try="$ac_compile"
14663 case "(($ac_try" in
14664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14665 *) ac_try_echo
=$ac_try;;
14667 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14668 $as_echo "$ac_try_echo") >&5
14669 (eval "$ac_compile") 2>conftest.er1
14671 grep -v '^ *+' conftest.er1
>conftest.err
14673 cat conftest.err
>&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest.
$ac_objext; then
14679 ac_cv_sys_large_files
=1; break
14681 $as_echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.
$ac_ext >&5
14687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14688 ac_cv_sys_large_files
=unknown
14692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14693 $as_echo "$ac_cv_sys_large_files" >&6; }
14694 case $ac_cv_sys_large_files in #(
14697 cat >>confdefs.h
<<_ACEOF
14698 #define _LARGE_FILES $ac_cv_sys_large_files
14707 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14708 $as_echo_n "checking for st_blksize... " >&6; }
14709 cat >conftest.
$ac_ext <<_ACEOF
14712 cat confdefs.h
>>conftest.
$ac_ext
14713 cat >>conftest.
$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <sys/types.h>
14716 #include <sys/stat.h>
14724 n = (int)st.st_blksize;
14729 rm -f conftest.
$ac_objext
14730 if { (ac_try
="$ac_compile"
14731 case "(($ac_try" in
14732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_compile") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1 >conftest.err
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest.$ac_objext; then
14747 { $as_echo "$as_me:$LINENO: result: yes" >&5
14748 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_ST_BLKSIZE 1
14753 $as_echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757 $as_echo "no" >&6; }
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14762 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14763 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14764 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14765 $as_echo_n "(cached) " >&6
14768 if test "$cross_compiling" = yes; then
14770 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14771 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14772 { (exit 1); exit 1; }; }
14775 cat >conftest.$ac_ext <<_ACEOF
14777 #include "confdefs.h"
14779 # include <stdlib.h>
14780 # include <stddef.h>
14782 #include <sys/types.h>
14783 #include <sys/stat.h>
14784 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14787 rm -f conftest$ac_exeext
14788 if { (ac_try="$ac_link"
14789 case "(($ac_try" in
14790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14791 *) ac_try_echo
=$ac_try;;
14793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14794 $as_echo "$ac_try_echo") >&5
14795 (eval "$ac_link") 2>&5
14797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14799 { (case "(($ac_try" in
14800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14801 *) ac_try_echo=$ac_try;;
14803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14804 $as_echo "$ac_try_echo") >&5
14805 (eval "$ac_try") 2>&5
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14810 vim_cv_stat_ignores_slash=yes
14813 $as_echo "$as_me: program exited with status $ac_status" >&5
14814 $as_echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14817 ( exit $ac_status )
14819 vim_cv_stat_ignores_slash=no
14822 rm -rf conftest.dSYM
14823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14829 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14830 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14832 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define STAT_IGNORES_SLASH 1
14839 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14840 $as_echo_n "checking for iconv_open()... " >&6; }
14842 LIBS="$LIBS -liconv"
14843 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14850 #ifdef HAVE_ICONV_H
14851 # include <iconv.h>
14857 iconv_open("fr", "to");
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (ac_try="$ac_link"
14864 case "(($ac_try" in
14865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14866 *) ac_try_echo
=$ac_try;;
14868 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14869 $as_echo "$ac_try_echo") >&5
14870 (eval "$ac_link") 2>conftest.er1
14872 grep -v '^ *+' conftest.er1
>conftest.err
14874 cat conftest.err
>&5
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest
$ac_exeext && {
14880 test "$cross_compiling" = yes ||
14881 $as_test_x conftest
$ac_exeext
14883 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14884 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14885 #define HAVE_ICONV 1
14889 $as_echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.
$ac_ext >&5
14893 cat >conftest.
$ac_ext <<_ACEOF
14896 cat confdefs.h
>>conftest.
$ac_ext
14897 cat >>conftest.
$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14900 #ifdef HAVE_ICONV_H
14901 # include <iconv.h>
14907 iconv_open("fr", "to");
14912 rm -f conftest.
$ac_objext conftest
$ac_exeext
14913 if { (ac_try
="$ac_link"
14914 case "(($ac_try" in
14915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14919 $as_echo "$ac_try_echo") >&5
14920 (eval "$ac_link") 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14924 cat conftest.err >&5
14925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest$ac_exeext && {
14930 test "$cross_compiling" = yes ||
14931 $as_test_x conftest$ac_exeext
14933 { $as_echo "$as_me:$LINENO: result: yes" >&5
14934 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_ICONV 1
14939 $as_echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 { $as_echo "$as_me:$LINENO: result: no" >&5
14943 $as_echo "no" >&6; }
14946 rm -rf conftest.dSYM
14947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14948 conftest$ac_exeext conftest.$ac_ext
14951 rm -rf conftest.dSYM
14952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14953 conftest$ac_exeext conftest.$ac_ext
14956 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14957 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14958 cat >conftest.$ac_ext <<_ACEOF
14961 cat confdefs.h >>conftest.$ac_ext
14962 cat >>conftest.$ac_ext <<_ACEOF
14963 /* end confdefs.h. */
14965 #ifdef HAVE_LANGINFO_H
14966 # include <langinfo.h>
14972 char *cs = nl_langinfo(CODESET);
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14981 *) ac_try_echo
=$ac_try;;
14983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14984 $as_echo "$ac_try_echo") >&5
14985 (eval "$ac_link") 2>conftest.er1
14987 grep -v '^ *+' conftest.er1
>conftest.err
14989 cat conftest.err
>&5
14990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest
$ac_exeext && {
14995 test "$cross_compiling" = yes ||
14996 $as_test_x conftest
$ac_exeext
14998 { $as_echo "$as_me:$LINENO: result: yes" >&5
14999 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15000 #define HAVE_NL_LANGINFO_CODESET 1
15004 $as_echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.
$ac_ext >&5
15007 { $as_echo "$as_me:$LINENO: result: no" >&5
15008 $as_echo "no" >&6; }
15011 rm -rf conftest.dSYM
15012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15013 conftest
$ac_exeext conftest.
$ac_ext
15016 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
15017 $as_echo_n "checking for strtod in -lm... " >&6; }
15018 if test "${ac_cv_lib_m_strtod+set}" = set; then
15019 $as_echo_n "(cached) " >&6
15021 ac_check_lib_save_LIBS
=$LIBS
15023 cat >conftest.
$ac_ext <<_ACEOF
15026 cat confdefs.h
>>conftest.
$ac_ext
15027 cat >>conftest.
$ac_ext <<_ACEOF
15028 /* end confdefs.h. */
15030 /* Override any GCC internal prototype to avoid an error.
15031 Use char because int might match the return type of a GCC
15032 builtin and then its argument prototype would still apply. */
15045 rm -f conftest.
$ac_objext conftest
$ac_exeext
15046 if { (ac_try
="$ac_link"
15047 case "(($ac_try" in
15048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_link") 2>conftest.er1
15055 grep -v '^ *+' conftest.er1 >conftest.err
15057 cat conftest.err >&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext && {
15063 test "$cross_compiling" = yes ||
15064 $as_test_x conftest$ac_exeext
15066 ac_cv_lib_m_strtod=yes
15068 $as_echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15071 ac_cv_lib_m_strtod=no
15074 rm -rf conftest.dSYM
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15077 LIBS=$ac_check_lib_save_LIBS
15079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
15080 $as_echo "$ac_cv_lib_m_strtod" >&6; }
15081 if test "x$ac_cv_lib_m_strtod" = x""yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define HAVE_LIBM 1
15090 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
15091 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15103 # include <stdlib.h>
15104 # include <stddef.h>
15111 d = strtod("1.1", &s);
15116 d = pow(1.11, 2.22);
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15130 *) ac_try_echo
=$ac_try;;
15132 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_link") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1
>conftest.err
15138 cat conftest.err
>&5
15139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest
$ac_exeext && {
15144 test "$cross_compiling" = yes ||
15145 $as_test_x conftest
$ac_exeext
15147 { $as_echo "$as_me:$LINENO: result: yes" >&5
15148 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15149 #define HAVE_FLOAT_FUNCS 1
15153 $as_echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.
$ac_ext >&5
15156 { $as_echo "$as_me:$LINENO: result: no" >&5
15157 $as_echo "no" >&6; }
15160 rm -rf conftest.dSYM
15161 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15162 conftest
$ac_exeext conftest.
$ac_ext
15164 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
15165 $as_echo_n "checking --disable-acl argument... " >&6; }
15166 # Check whether --enable-acl was given.
15167 if test "${enable_acl+set}" = set; then
15168 enableval
=$enable_acl;
15173 if test "$enable_acl" = "yes"; then
15174 { $as_echo "$as_me:$LINENO: result: no" >&5
15175 $as_echo "no" >&6; }
15176 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
15177 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
15178 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
15179 $as_echo_n "(cached) " >&6
15181 ac_check_lib_save_LIBS
=$LIBS
15182 LIBS
="-lposix1e $LIBS"
15183 cat >conftest.
$ac_ext <<_ACEOF
15186 cat confdefs.h
>>conftest.
$ac_ext
15187 cat >>conftest.
$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15190 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
15196 char acl_get_file ();
15200 return acl_get_file ();
15205 rm -f conftest.
$ac_objext conftest
$ac_exeext
15206 if { (ac_try
="$ac_link"
15207 case "(($ac_try" in
15208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15212 $as_echo "$ac_try_echo") >&5
15213 (eval "$ac_link") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext && {
15223 test "$cross_compiling" = yes ||
15224 $as_test_x conftest$ac_exeext
15226 ac_cv_lib_posix1e_acl_get_file=yes
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ac_cv_lib_posix1e_acl_get_file=no
15234 rm -rf conftest.dSYM
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
15240 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
15241 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
15242 LIBS="$LIBS -lposix1e"
15244 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
15245 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
15246 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
15247 $as_echo_n "(cached) " >&6
15249 ac_check_lib_save_LIBS=$LIBS
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15264 char acl_get_file ();
15268 return acl_get_file ();
15273 rm -f conftest.$ac_objext conftest$ac_exeext
15274 if { (ac_try="$ac_link"
15275 case "(($ac_try" in
15276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15277 *) ac_try_echo
=$ac_try;;
15279 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15280 $as_echo "$ac_try_echo") >&5
15281 (eval "$ac_link") 2>conftest.er1
15283 grep -v '^ *+' conftest.er1
>conftest.err
15285 cat conftest.err
>&5
15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_c_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest
$ac_exeext && {
15291 test "$cross_compiling" = yes ||
15292 $as_test_x conftest
$ac_exeext
15294 ac_cv_lib_acl_acl_get_file
=yes
15296 $as_echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.
$ac_ext >&5
15299 ac_cv_lib_acl_acl_get_file
=no
15302 rm -rf conftest.dSYM
15303 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15304 conftest
$ac_exeext conftest.
$ac_ext
15305 LIBS
=$ac_check_lib_save_LIBS
15307 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
15308 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
15309 if test "x$ac_cv_lib_acl_acl_get_file" = x
""yes; then
15311 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
15312 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
15313 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
15314 $as_echo_n "(cached) " >&6
15316 ac_check_lib_save_LIBS
=$LIBS
15317 LIBS
="-lattr $LIBS"
15318 cat >conftest.
$ac_ext <<_ACEOF
15321 cat confdefs.h
>>conftest.
$ac_ext
15322 cat >>conftest.
$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15335 return fgetxattr ();
15340 rm -f conftest.
$ac_objext conftest
$ac_exeext
15341 if { (ac_try
="$ac_link"
15342 case "(($ac_try" in
15343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15347 $as_echo "$ac_try_echo") >&5
15348 (eval "$ac_link") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext && {
15358 test "$cross_compiling" = yes ||
15359 $as_test_x conftest$ac_exeext
15361 ac_cv_lib_attr_fgetxattr=yes
15363 $as_echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_lib_attr_fgetxattr=no
15369 rm -rf conftest.dSYM
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LIBS=$ac_check_lib_save_LIBS
15374 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
15375 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
15376 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
15377 LIBS="$LIBS -lattr"
15385 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
15386 $as_echo_n "checking for POSIX ACL support... " >&6; }
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 #include <sys/types.h>
15395 #ifdef HAVE_SYS_ACL_H
15396 # include <sys/acl.h>
15402 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
15403 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (ac_try="$ac_link"
15411 case "(($ac_try" in
15412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15413 *) ac_try_echo
=$ac_try;;
15415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_link") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1
>conftest.err
15421 cat conftest.err
>&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest
$ac_exeext && {
15427 test "$cross_compiling" = yes ||
15428 $as_test_x conftest
$ac_exeext
15430 { $as_echo "$as_me:$LINENO: result: yes" >&5
15431 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15432 #define HAVE_POSIX_ACL 1
15436 $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.
$ac_ext >&5
15439 { $as_echo "$as_me:$LINENO: result: no" >&5
15440 $as_echo "no" >&6; }
15443 rm -rf conftest.dSYM
15444 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15445 conftest
$ac_exeext conftest.
$ac_ext
15447 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
15448 $as_echo_n "checking for Solaris ACL support... " >&6; }
15449 cat >conftest.
$ac_ext <<_ACEOF
15452 cat confdefs.h
>>conftest.
$ac_ext
15453 cat >>conftest.
$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15456 #ifdef HAVE_SYS_ACL_H
15457 # include <sys/acl.h>
15462 acl("foo", GETACLCNT, 0, NULL);
15468 rm -f conftest.
$ac_objext conftest
$ac_exeext
15469 if { (ac_try
="$ac_link"
15470 case "(($ac_try" in
15471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15489 { $as_echo "$as_me:$LINENO: result: yes" >&5
15490 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_SOLARIS_ACL 1
15495 $as_echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15498 { $as_echo "$as_me:$LINENO: result: no" >&5
15499 $as_echo "no" >&6; }
15502 rm -rf conftest.dSYM
15503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15504 conftest$ac_exeext conftest.$ac_ext
15506 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
15507 $as_echo_n "checking for AIX ACL support... " >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15516 # include <stdlib.h>
15517 # include <stddef.h>
15519 #ifdef HAVE_SYS_ACL_H
15520 # include <sys/acl.h>
15522 #ifdef HAVE_SYS_ACCESS_H
15523 # include <sys/access.h>
15525 #define _ALL_SOURCE
15527 #include <sys/stat.h>
15530 struct acl *aclent;
15534 aclsize = sizeof(struct acl);
15535 aclent = (void *)malloc(aclsize);
15536 statacl("foo", STX_NORMAL, aclent, aclsize);
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
15544 case "(($ac_try" in
15545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15546 *) ac_try_echo
=$ac_try;;
15548 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_link") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1
>conftest.err
15554 cat conftest.err
>&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest
$ac_exeext && {
15560 test "$cross_compiling" = yes ||
15561 $as_test_x conftest
$ac_exeext
15563 { $as_echo "$as_me:$LINENO: result: yes" >&5
15564 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15565 #define HAVE_AIX_ACL 1
15569 $as_echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.
$ac_ext >&5
15572 { $as_echo "$as_me:$LINENO: result: no" >&5
15573 $as_echo "no" >&6; }
15576 rm -rf conftest.dSYM
15577 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15578 conftest
$ac_exeext conftest.
$ac_ext
15580 { $as_echo "$as_me:$LINENO: result: yes" >&5
15581 $as_echo "yes" >&6; }
15584 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15585 $as_echo_n "checking --disable-gpm argument... " >&6; }
15586 # Check whether --enable-gpm was given.
15587 if test "${enable_gpm+set}" = set; then
15588 enableval
=$enable_gpm;
15594 if test "$enable_gpm" = "yes"; then
15595 { $as_echo "$as_me:$LINENO: result: no" >&5
15596 $as_echo "no" >&6; }
15597 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15598 $as_echo_n "checking for gpm... " >&6; }
15599 if test "${vi_cv_have_gpm+set}" = set; then
15600 $as_echo_n "(cached) " >&6
15602 olibs
="$LIBS" ; LIBS
="-lgpm"
15603 cat >conftest.
$ac_ext <<_ACEOF
15606 cat confdefs.h
>>conftest.
$ac_ext
15607 cat >>conftest.
$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 #include <linux/keyboard.h>
15614 Gpm_GetLibVersion(NULL);
15619 rm -f conftest.
$ac_objext conftest
$ac_exeext
15620 if { (ac_try
="$ac_link"
15621 case "(($ac_try" in
15622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15626 $as_echo "$ac_try_echo") >&5
15627 (eval "$ac_link") 2>conftest.er1
15629 grep -v '^ *+' conftest.er1 >conftest.err
15631 cat conftest.err >&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); } && {
15634 test -z "$ac_c_werror_flag" ||
15635 test ! -s conftest.err
15636 } && test -s conftest$ac_exeext && {
15637 test "$cross_compiling" = yes ||
15638 $as_test_x conftest$ac_exeext
15642 $as_echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15648 rm -rf conftest.dSYM
15649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15650 conftest$ac_exeext conftest.$ac_ext
15654 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15655 $as_echo "$vi_cv_have_gpm" >&6; }
15656 if test $vi_cv_have_gpm = yes; then
15658 cat >>confdefs.h <<\_ACEOF
15664 { $as_echo "$as_me:$LINENO: result: yes" >&5
15665 $as_echo "yes" >&6; }
15668 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15669 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15670 # Check whether --enable-sysmouse was given.
15671 if test "${enable_sysmouse+set}" = set; then
15672 enableval=$enable_sysmouse;
15674 enable_sysmouse="yes"
15678 if test "$enable_sysmouse" = "yes"; then
15679 { $as_echo "$as_me:$LINENO: result: no" >&5
15680 $as_echo "no" >&6; }
15681 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15682 $as_echo_n "checking for sysmouse... " >&6; }
15683 if test "${vi_cv_have_sysmouse+set}" = set; then
15684 $as_echo_n "(cached) " >&6
15686 cat >conftest.$ac_ext <<_ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 #include <sys/consio.h>
15693 #include <signal.h>
15694 #include <sys/fbio.h>
15698 struct mouse_info mouse;
15699 mouse.operation = MOUSE_MODE;
15700 mouse.operation = MOUSE_SHOW;
15701 mouse.u.mode.mode = 0;
15702 mouse.u.mode.signal = SIGUSR2;
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15711 *) ac_try_echo
=$ac_try;;
15713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15714 $as_echo "$ac_try_echo") >&5
15715 (eval "$ac_link") 2>conftest.er1
15717 grep -v '^ *+' conftest.er1
>conftest.err
15719 cat conftest.err
>&5
15720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest
$ac_exeext && {
15725 test "$cross_compiling" = yes ||
15726 $as_test_x conftest
$ac_exeext
15728 vi_cv_have_sysmouse
=yes
15730 $as_echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.
$ac_ext >&5
15733 vi_cv_have_sysmouse
=no
15736 rm -rf conftest.dSYM
15737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15738 conftest
$ac_exeext conftest.
$ac_ext
15741 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15742 $as_echo "$vi_cv_have_sysmouse" >&6; }
15743 if test $vi_cv_have_sysmouse = yes; then
15744 cat >>confdefs.h
<<\_ACEOF
15745 #define HAVE_SYSMOUSE 1
15750 { $as_echo "$as_me:$LINENO: result: yes" >&5
15751 $as_echo "yes" >&6; }
15754 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15755 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15756 cat >conftest.
$ac_ext <<_ACEOF
15759 cat confdefs.h
>>conftest.
$ac_ext
15760 cat >>conftest.
$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15763 # include <fcntl.h>
15768 int flag = FD_CLOEXEC;
15773 rm -f conftest.
$ac_objext
15774 if { (ac_try
="$ac_compile"
15775 case "(($ac_try" in
15776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15780 $as_echo "$ac_try_echo") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } && {
15788 test -z "$ac_c_werror_flag" ||
15789 test ! -s conftest.err
15790 } && test -s conftest.$ac_objext; then
15791 { $as_echo "$as_me:$LINENO: result: yes" >&5
15792 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15793 #define HAVE_FD_CLOEXEC 1
15797 $as_echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15801 $as_echo "not usable" >&6; }
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15807 $as_echo_n "checking for rename... " >&6; }
15808 cat >conftest.$ac_ext <<_ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h. */
15818 rename("this", "that")
15823 rm -f conftest.$ac_objext conftest$ac_exeext
15824 if { (ac_try="$ac_link"
15825 case "(($ac_try" in
15826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15827 *) ac_try_echo
=$ac_try;;
15829 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15830 $as_echo "$ac_try_echo") >&5
15831 (eval "$ac_link") 2>conftest.er1
15833 grep -v '^ *+' conftest.er1
>conftest.err
15835 cat conftest.err
>&5
15836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest
$ac_exeext && {
15841 test "$cross_compiling" = yes ||
15842 $as_test_x conftest
$ac_exeext
15844 { $as_echo "$as_me:$LINENO: result: yes" >&5
15845 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15846 #define HAVE_RENAME 1
15850 $as_echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.
$ac_ext >&5
15853 { $as_echo "$as_me:$LINENO: result: no" >&5
15854 $as_echo "no" >&6; }
15857 rm -rf conftest.dSYM
15858 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15859 conftest
$ac_exeext conftest.
$ac_ext
15861 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15862 $as_echo_n "checking for sysctl... " >&6; }
15863 cat >conftest.
$ac_ext <<_ACEOF
15866 cat confdefs.h
>>conftest.
$ac_ext
15867 cat >>conftest.
$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 #include <sys/types.h>
15870 #include <sys/sysctl.h>
15878 mib[1] = HW_USERMEM;
15880 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15886 rm -f conftest.
$ac_objext
15887 if { (ac_try
="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15893 $as_echo "$ac_try_echo") >&5
15894 (eval "$ac_compile") 2>conftest.er1
15896 grep -v '^ *+' conftest.er1 >conftest.err
15898 cat conftest.err >&5
15899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } && {
15901 test -z "$ac_c_werror_flag" ||
15902 test ! -s conftest.err
15903 } && test -s conftest.$ac_objext; then
15904 { $as_echo "$as_me:$LINENO: result: yes" >&5
15905 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_SYSCTL 1
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15913 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15914 $as_echo "not usable" >&6; }
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15920 $as_echo_n "checking for sysinfo... " >&6; }
15921 cat >conftest.$ac_ext <<_ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927 #include <sys/types.h>
15928 #include <sys/sysinfo.h>
15932 struct sysinfo sinfo;
15935 (void)sysinfo(&sinfo);
15936 t = sinfo.totalram;
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15946 *) ac_try_echo
=$ac_try;;
15948 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1
>conftest.err
15954 cat conftest.err
>&5
15955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.
$ac_objext; then
15960 { $as_echo "$as_me:$LINENO: result: yes" >&5
15961 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15962 #define HAVE_SYSINFO 1
15966 $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.
$ac_ext >&5
15969 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15970 $as_echo "not usable" >&6; }
15973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15975 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15976 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15977 cat >conftest.
$ac_ext <<_ACEOF
15980 cat confdefs.h
>>conftest.
$ac_ext
15981 cat >>conftest.
$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <sys/types.h>
15984 #include <sys/sysinfo.h>
15988 struct sysinfo sinfo;
15989 sinfo.mem_unit = 1;
15995 rm -f conftest.
$ac_objext
15996 if { (ac_try
="$ac_compile"
15997 case "(($ac_try" in
15998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 { $as_echo "$as_me:$LINENO: result: yes" >&5
16014 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16015 #define HAVE_SYSINFO_MEM_UNIT 1
16019 $as_echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 { $as_echo "$as_me:$LINENO: result: no" >&5
16023 $as_echo "no" >&6; }
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
16029 $as_echo_n "checking for sysconf... " >&6; }
16030 cat >conftest.$ac_ext <<_ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16036 #include <unistd.h>
16040 (void)sysconf(_SC_PAGESIZE);
16041 (void)sysconf(_SC_PHYS_PAGES);
16047 rm -f conftest.$ac_objext
16048 if { (ac_try="$ac_compile"
16049 case "(($ac_try" in
16050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16051 *) ac_try_echo
=$ac_try;;
16053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16054 $as_echo "$ac_try_echo") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1
>conftest.err
16059 cat conftest.err
>&5
16060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest.
$ac_objext; then
16065 { $as_echo "$as_me:$LINENO: result: yes" >&5
16066 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
16067 #define HAVE_SYSCONF 1
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.
$ac_ext >&5
16074 { $as_echo "$as_me:$LINENO: result: not usable" >&5
16075 $as_echo "not usable" >&6; }
16078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16081 { $as_echo "$as_me:$LINENO: checking size of int" >&5
16082 $as_echo_n "checking size of int... " >&6; }
16083 if test "${ac_cv_sizeof_int+set}" = set; then
16084 $as_echo_n "(cached) " >&6
16086 if test "$cross_compiling" = yes; then
16087 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
16088 $as_echo "$as_me: error: failed to compile test program" >&2;}
16089 { (exit 1); exit 1; }; }
16091 cat >conftest.
$ac_ext <<_ACEOF
16094 cat confdefs.h
>>conftest.
$ac_ext
16095 cat >>conftest.
$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16100 # include <stdlib.h>
16101 # include <stddef.h>
16105 FILE *f=fopen("conftestval", "w");
16107 fprintf(f, "%d\n", (int)sizeof(int));
16111 rm -f conftest
$ac_exeext
16112 if { (ac_try
="$ac_link"
16113 case "(($ac_try" in
16114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16118 $as_echo "$ac_try_echo") >&5
16119 (eval "$ac_link") 2>&5
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16123 { (case "(($ac_try" in
16124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16125 *) ac_try_echo
=$ac_try;;
16127 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16128 $as_echo "$ac_try_echo") >&5
16129 (eval "$ac_try") 2>&5
16131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); }; }; then
16133 ac_cv_sizeof_int
=`cat conftestval`
16135 $as_echo "$as_me: program exited with status $ac_status" >&5
16136 $as_echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.
$ac_ext >&5
16139 ( exit $ac_status )
16142 rm -rf conftest.dSYM
16143 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16149 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16150 $as_echo "$ac_cv_sizeof_int" >&6; }
16151 cat >>confdefs.h
<<_ACEOF
16152 #define SIZEOF_INT $ac_cv_sizeof_int
16158 #include "confdefs.h"
16159 #ifdef HAVE_STRING_H
16160 # include <string.h>
16163 # include <stdlib.h>
16164 # include <stddef.h>
16168 strcpy(buf, "abcdefghi");
16169 mch_memmove(buf, buf + 2, 3);
16170 if (strncmp(buf, "ababcf", 6))
16172 strcpy(buf, "abcdefghi");
16173 mch_memmove(buf + 2, buf, 3);
16174 if (strncmp(buf, "cdedef", 6))
16176 exit(0); /* libc version works properly. */
16179 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
16180 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
16181 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
16182 $as_echo_n "(cached) " >&6
16185 if test "$cross_compiling" = yes; then
16187 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
16188 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
16189 { (exit 1); exit 1; }; }
16192 cat >conftest.
$ac_ext <<_ACEOF
16193 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
16195 rm -f conftest
$ac_exeext
16196 if { (ac_try
="$ac_link"
16197 case "(($ac_try" in
16198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16202 $as_echo "$ac_try_echo") >&5
16203 (eval "$ac_link") 2>&5
16205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16207 { (case "(($ac_try" in
16208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16209 *) ac_try_echo
=$ac_try;;
16211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16212 $as_echo "$ac_try_echo") >&5
16213 (eval "$ac_try") 2>&5
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16218 vim_cv_memmove_handles_overlap
=yes
16221 $as_echo "$as_me: program exited with status $ac_status" >&5
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.
$ac_ext >&5
16225 ( exit $ac_status )
16227 vim_cv_memmove_handles_overlap
=no
16230 rm -rf conftest.dSYM
16231 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16237 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
16238 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
16240 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
16241 cat >>confdefs.h
<<\_ACEOF
16242 #define USEMEMMOVE 1
16246 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
16247 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
16248 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
16249 $as_echo_n "(cached) " >&6
16252 if test "$cross_compiling" = yes; then
16254 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
16255 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
16256 { (exit 1); exit 1; }; }
16259 cat >conftest.
$ac_ext <<_ACEOF
16260 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
16262 rm -f conftest
$ac_exeext
16263 if { (ac_try
="$ac_link"
16264 case "(($ac_try" in
16265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_link") 2>&5
16272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16276 *) ac_try_echo
=$ac_try;;
16278 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16279 $as_echo "$ac_try_echo") >&5
16280 (eval "$ac_try") 2>&5
16282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; }; then
16285 vim_cv_bcopy_handles_overlap
=yes
16288 $as_echo "$as_me: program exited with status $ac_status" >&5
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.
$ac_ext >&5
16292 ( exit $ac_status )
16294 vim_cv_bcopy_handles_overlap
=no
16297 rm -rf conftest.dSYM
16298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16304 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
16305 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
16307 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
16308 cat >>confdefs.h
<<\_ACEOF
16313 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
16314 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
16315 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
16316 $as_echo_n "(cached) " >&6
16319 if test "$cross_compiling" = yes; then
16321 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
16322 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
16323 { (exit 1); exit 1; }; }
16326 cat >conftest.
$ac_ext <<_ACEOF
16327 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
16329 rm -f conftest
$ac_exeext
16330 if { (ac_try
="$ac_link"
16331 case "(($ac_try" in
16332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16336 $as_echo "$ac_try_echo") >&5
16337 (eval "$ac_link") 2>&5
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16341 { (case "(($ac_try" in
16342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16343 *) ac_try_echo
=$ac_try;;
16345 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16346 $as_echo "$ac_try_echo") >&5
16347 (eval "$ac_try") 2>&5
16349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16352 vim_cv_memcpy_handles_overlap
=yes
16355 $as_echo "$as_me: program exited with status $ac_status" >&5
16356 $as_echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.
$ac_ext >&5
16359 ( exit $ac_status )
16361 vim_cv_memcpy_handles_overlap
=no
16364 rm -rf conftest.dSYM
16365 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16371 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
16372 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
16374 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
16375 cat >>confdefs.h
<<\_ACEOF
16376 #define USEMEMCPY 1
16385 if test "$enable_multibyte" = "yes"; then
16386 cflags_save
=$CFLAGS
16387 ldflags_save
=$LDFLAGS
16388 if test "x$x_includes" != "xNONE" ; then
16389 CFLAGS
="$CFLAGS -I$x_includes"
16390 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
16391 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
16392 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
16393 cat >conftest.
$ac_ext <<_ACEOF
16396 cat confdefs.h
>>conftest.
$ac_ext
16397 cat >>conftest.
$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 #include <X11/Xlocale.h>
16408 rm -f conftest.
$ac_objext
16409 if { (ac_try
="$ac_compile"
16410 case "(($ac_try" in
16411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16415 $as_echo "$ac_try_echo") >&5
16416 (eval "$ac_compile") 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && {
16423 test -z "$ac_c_werror_flag" ||
16424 test ! -s conftest.err
16425 } && test -s conftest.$ac_objext; then
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16433 /* Override any GCC internal prototype to avoid an error.
16434 Use char because int might match the return type of a GCC
16435 builtin and then its argument prototype would still apply. */
16439 char _Xsetlocale ();
16443 return _Xsetlocale ();
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (ac_try="$ac_link"
16450 case "(($ac_try" in
16451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16452 *) ac_try_echo
=$ac_try;;
16454 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16455 $as_echo "$ac_try_echo") >&5
16456 (eval "$ac_link") 2>conftest.er1
16458 grep -v '^ *+' conftest.er1
>conftest.err
16460 cat conftest.err
>&5
16461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } && {
16463 test -z "$ac_c_werror_flag" ||
16464 test ! -s conftest.err
16465 } && test -s conftest
$ac_exeext && {
16466 test "$cross_compiling" = yes ||
16467 $as_test_x conftest
$ac_exeext
16469 { $as_echo "$as_me:$LINENO: result: yes" >&5
16470 $as_echo "yes" >&6; }
16471 cat >>confdefs.h
<<\_ACEOF
16476 $as_echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.
$ac_ext >&5
16479 { $as_echo "$as_me:$LINENO: result: no" >&5
16480 $as_echo "no" >&6; }
16483 rm -rf conftest.dSYM
16484 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16485 conftest
$ac_exeext conftest.
$ac_ext
16487 $as_echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.
$ac_ext >&5
16490 { $as_echo "$as_me:$LINENO: result: no" >&5
16491 $as_echo "no" >&6; }
16494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16496 CFLAGS
=$cflags_save
16497 LDFLAGS
=$ldflags_save
16500 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
16501 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
16502 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
16503 $as_echo_n "(cached) " >&6
16505 ac_check_lib_save_LIBS
=$LIBS
16506 LIBS
="-lxpg4 $LIBS"
16507 cat >conftest.
$ac_ext <<_ACEOF
16510 cat confdefs.h
>>conftest.
$ac_ext
16511 cat >>conftest.
$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16520 char _xpg4_setrunelocale ();
16524 return _xpg4_setrunelocale ();
16529 rm -f conftest.
$ac_objext conftest
$ac_exeext
16530 if { (ac_try
="$ac_link"
16531 case "(($ac_try" in
16532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16536 $as_echo "$ac_try_echo") >&5
16537 (eval "$ac_link") 2>conftest.er1
16539 grep -v '^ *+' conftest.er1 >conftest.err
16541 cat conftest.err >&5
16542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } && {
16544 test -z "$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16546 } && test -s conftest$ac_exeext && {
16547 test "$cross_compiling" = yes ||
16548 $as_test_x conftest$ac_exeext
16550 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
16552 $as_echo "$as_me: failed program was:" >&5
16553 sed 's/^/| /' conftest.$ac_ext >&5
16555 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16558 rm -rf conftest.dSYM
16559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16560 conftest$ac_exeext conftest.$ac_ext
16561 LIBS=$ac_check_lib_save_LIBS
16563 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16564 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16565 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16566 LIBS="$LIBS -lxpg4"
16570 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16571 $as_echo_n "checking how to create tags... " >&6; }
16572 test -f tags && mv tags tags.save
16573 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16574 TAGPRG="ctags -I INIT+ --fields=+S"
16577 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16578 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16579 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16580 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16581 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16582 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16583 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16585 test -f tags.save && mv tags.save tags
16586 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16587 $as_echo "$TAGPRG" >&6; }
16589 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16590 $as_echo_n "checking how to run man with a section nr... " >&6; }
16592 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16593 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16594 $as_echo "$MANDEF" >&6; }
16595 if test "$MANDEF" = "man -s"; then
16596 cat >>confdefs.h <<\_ACEOF
16602 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16603 $as_echo_n "checking --disable-nls argument... " >&6; }
16604 # Check whether --enable-nls was given.
16605 if test "${enable_nls+set}" = set; then
16606 enableval=$enable_nls;
16612 if test "$enable_nls" = "yes"; then
16613 { $as_echo "$as_me:$LINENO: result: no" >&5
16614 $as_echo "no" >&6; }
16616 INSTALL_LANGS=install-languages
16618 INSTALL_TOOL_LANGS=install-tool-languages
16621 # Extract the first word of "msgfmt", so it can be a program name with args.
16622 set dummy msgfmt; ac_word=$2
16623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; }
16625 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16626 $as_echo_n "(cached) " >&6
16628 if test -n "$MSGFMT"; then
16629 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16632 for as_dir in $PATH
16635 test -z "$as_dir" && as_dir=.
16636 for ac_exec_ext in '' $ac_executable_extensions; do
16637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16638 ac_cv_prog_MSGFMT="msgfmt"
16639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16648 MSGFMT=$ac_cv_prog_MSGFMT
16649 if test -n "$MSGFMT"; then
16650 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16651 $as_echo "$MSGFMT" >&6; }
16653 { $as_echo "$as_me:$LINENO: result: no" >&5
16654 $as_echo "no" >&6; }
16658 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16659 $as_echo_n "checking for NLS... " >&6; }
16660 if test -f po/Makefile; then
16662 if test -n "$MSGFMT"; then
16663 cat >conftest.$ac_ext <<_ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669 #include <libintl.h>
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16682 *) ac_try_echo
=$ac_try;;
16684 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16685 $as_echo "$ac_try_echo") >&5
16686 (eval "$ac_link") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1
>conftest.err
16690 cat conftest.err
>&5
16691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest
$ac_exeext && {
16696 test "$cross_compiling" = yes ||
16697 $as_test_x conftest
$ac_exeext
16699 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16700 $as_echo "gettext() works" >&6; }; have_gettext
="yes"
16702 $as_echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.
$ac_ext >&5
16706 LIBS
="$LIBS -lintl"
16707 cat >conftest.
$ac_ext <<_ACEOF
16710 cat confdefs.h
>>conftest.
$ac_ext
16711 cat >>conftest.
$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 #include <libintl.h>
16722 rm -f conftest.
$ac_objext conftest
$ac_exeext
16723 if { (ac_try
="$ac_link"
16724 case "(($ac_try" in
16725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729 $as_echo "$ac_try_echo") >&5
16730 (eval "$ac_link") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } && {
16737 test -z "$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16739 } && test -s conftest$ac_exeext && {
16740 test "$cross_compiling" = yes ||
16741 $as_test_x conftest$ac_exeext
16743 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16744 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16750 $as_echo "gettext() doesn't work" >&6; };
16754 rm -rf conftest.dSYM
16755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16756 conftest$ac_exeext conftest.$ac_ext
16759 rm -rf conftest.dSYM
16760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16761 conftest$ac_exeext conftest.$ac_ext
16763 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16764 $as_echo "msgfmt not found - disabled" >&6; };
16766 if test $have_gettext = "yes"; then
16767 cat >>confdefs.h <<\_ACEOF
16768 #define HAVE_GETTEXT 1
16774 for ac_func in bind_textdomain_codeset
16776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16777 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16778 $as_echo_n "checking for $ac_func... " >&6; }
16779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16780 $as_echo_n "(cached) " >&6
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16790 #define $ac_func innocuous_$ac_func
16792 /* System header to define __stub macros and hopefully few prototypes,
16793 which can conflict with char $ac_func (); below.
16794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16795 <limits.h> exists even on freestanding compilers. */
16798 # include <limits.h>
16800 # include <assert.h>
16805 /* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
16812 /* The GNU C library defines this for functions which it implements
16813 to always fail with ENOSYS. Some functions are actually named
16814 something starting with __ and the normal name is an alias. */
16815 #if defined __stub_$ac_func || defined __stub___$ac_func
16822 return $ac_func ();
16827 rm -f conftest.$ac_objext conftest$ac_exeext
16828 if { (ac_try="$ac_link"
16829 case "(($ac_try" in
16830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16831 *) ac_try_echo
=$ac_try;;
16833 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16834 $as_echo "$ac_try_echo") >&5
16835 (eval "$ac_link") 2>conftest.er1
16837 grep -v '^ *+' conftest.er1
>conftest.err
16839 cat conftest.err
>&5
16840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } && {
16842 test -z "$ac_c_werror_flag" ||
16843 test ! -s conftest.err
16844 } && test -s conftest
$ac_exeext && {
16845 test "$cross_compiling" = yes ||
16846 $as_test_x conftest
$ac_exeext
16848 eval "$as_ac_var=yes"
16850 $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.
$ac_ext >&5
16853 eval "$as_ac_var=no"
16856 rm -rf conftest.dSYM
16857 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16858 conftest
$ac_exeext conftest.
$ac_ext
16860 ac_res
=`eval 'as_val=${'$as_ac_var'}
16861 $as_echo "$as_val"'`
16862 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16863 $as_echo "$ac_res" >&6; }
16864 as_val
=`eval 'as_val=${'$as_ac_var'}
16865 $as_echo "$as_val"'`
16866 if test "x$as_val" = x
""yes; then
16867 cat >>confdefs.h
<<_ACEOF
16868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16874 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16875 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16876 cat >conftest.
$ac_ext <<_ACEOF
16879 cat confdefs.h
>>conftest.
$ac_ext
16880 cat >>conftest.
$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 #include <libintl.h>
16883 extern int _nl_msg_cat_cntr;
16887 ++_nl_msg_cat_cntr;
16892 rm -f conftest.
$ac_objext conftest
$ac_exeext
16893 if { (ac_try
="$ac_link"
16894 case "(($ac_try" in
16895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16899 $as_echo "$ac_try_echo") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext && {
16910 test "$cross_compiling" = yes ||
16911 $as_test_x conftest$ac_exeext
16913 { $as_echo "$as_me:$LINENO: result: yes" >&5
16914 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_NL_MSG_CAT_CNTR 1
16919 $as_echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 { $as_echo "$as_me:$LINENO: result: no" >&5
16923 $as_echo "no" >&6; }
16926 rm -rf conftest.dSYM
16927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16928 conftest$ac_exeext conftest.$ac_ext
16931 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16932 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16935 { $as_echo "$as_me:$LINENO: result: yes" >&5
16936 $as_echo "yes" >&6; }
16939 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16940 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16941 $as_echo_n "checking for dlfcn.h... " >&6; }
16942 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16943 $as_echo_n "(cached) " >&6
16945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16946 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16948 # Is the header compilable?
16949 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16950 $as_echo_n "checking dlfcn.h usability... " >&6; }
16951 cat >conftest.$ac_ext <<_ACEOF
16954 cat confdefs.h >>conftest.$ac_ext
16955 cat >>conftest.$ac_ext <<_ACEOF
16956 /* end confdefs.h. */
16957 $ac_includes_default
16960 rm -f conftest.$ac_objext
16961 if { (ac_try="$ac_compile"
16962 case "(($ac_try" in
16963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16964 *) ac_try_echo
=$ac_try;;
16966 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16967 $as_echo "$ac_try_echo") >&5
16968 (eval "$ac_compile") 2>conftest.er1
16970 grep -v '^ *+' conftest.er1
>conftest.err
16972 cat conftest.err
>&5
16973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } && {
16975 test -z "$ac_c_werror_flag" ||
16976 test ! -s conftest.err
16977 } && test -s conftest.
$ac_objext; then
16978 ac_header_compiler
=yes
16980 $as_echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.
$ac_ext >&5
16983 ac_header_compiler
=no
16986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16988 $as_echo "$ac_header_compiler" >&6; }
16990 # Is the header present?
16991 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16992 $as_echo_n "checking dlfcn.h presence... " >&6; }
16993 cat >conftest.
$ac_ext <<_ACEOF
16996 cat confdefs.h
>>conftest.
$ac_ext
16997 cat >>conftest.
$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17001 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17002 case "(($ac_try" in
17003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17010 grep -v '^ *+' conftest.er1 >conftest.err
17012 cat conftest.err >&5
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } >/dev/null && {
17015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17016 test ! -s conftest.err
17018 ac_header_preproc=yes
17020 $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ac_header_preproc=no
17026 rm -f conftest.err conftest.$ac_ext
17027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17028 $as_echo "$ac_header_preproc" >&6; }
17030 # So? What about this header?
17031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17033 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
17034 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17035 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
17036 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
17037 ac_header_preproc=yes
17040 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
17041 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
17042 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
17043 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
17044 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
17045 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
17046 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
17047 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
17048 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
17049 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
17050 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
17051 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
17055 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
17056 $as_echo_n "checking for dlfcn.h... " >&6; }
17057 if test "${ac_cv_header_dlfcn_h+set}" = set; then
17058 $as_echo_n "(cached) " >&6
17060 ac_cv_header_dlfcn_h=$ac_header_preproc
17062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
17063 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
17066 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
17069 if test "${ac_cv_header_dl_h+set}" = set; then
17070 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17071 $as_echo_n "checking for dl.h... " >&6; }
17072 if test "${ac_cv_header_dl_h+set}" = set; then
17073 $as_echo_n "(cached) " >&6
17075 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17076 $as_echo "$ac_cv_header_dl_h" >&6; }
17078 # Is the header compilable?
17079 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
17080 $as_echo_n "checking dl.h usability... " >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17094 *) ac_try_echo
=$ac_try;;
17096 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098 (eval "$ac_compile") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1
>conftest.err
17102 cat conftest.err
>&5
17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest.
$ac_objext; then
17108 ac_header_compiler
=yes
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.
$ac_ext >&5
17113 ac_header_compiler
=no
17116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17118 $as_echo "$ac_header_compiler" >&6; }
17120 # Is the header present?
17121 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
17122 $as_echo_n "checking dl.h presence... " >&6; }
17123 cat >conftest.
$ac_ext <<_ACEOF
17126 cat confdefs.h
>>conftest.
$ac_ext
17127 cat >>conftest.
$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17131 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17132 case "(($ac_try" in
17133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17137 $as_echo "$ac_try_echo") >&5
17138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17140 grep -v '^ *+' conftest.er1 >conftest.err
17142 cat conftest.err >&5
17143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } >/dev/null && {
17145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17146 test ! -s conftest.err
17148 ac_header_preproc=yes
17150 $as_echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 ac_header_preproc=no
17156 rm -f conftest.err conftest.$ac_ext
17157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17158 $as_echo "$ac_header_preproc" >&6; }
17160 # So? What about this header?
17161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17163 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17164 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
17166 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
17167 ac_header_preproc=yes
17170 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
17171 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
17172 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
17173 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
17174 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
17175 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
17176 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
17177 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17178 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
17179 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
17180 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
17181 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
17185 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
17186 $as_echo_n "checking for dl.h... " >&6; }
17187 if test "${ac_cv_header_dl_h+set}" = set; then
17188 $as_echo_n "(cached) " >&6
17190 ac_cv_header_dl_h=$ac_header_preproc
17192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
17193 $as_echo "$ac_cv_header_dl_h" >&6; }
17196 if test "x$ac_cv_header_dl_h" = x""yes; then
17204 if test x${DLL} = xdlfcn.h; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define HAVE_DLFCN_H 1
17210 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
17211 $as_echo_n "checking for dlopen()... " >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17223 extern void* dlopen();
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17234 *) ac_try_echo
=$ac_try;;
17236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17237 $as_echo "$ac_try_echo") >&5
17238 (eval "$ac_link") 2>conftest.er1
17240 grep -v '^ *+' conftest.er1
>conftest.err
17242 cat conftest.err
>&5
17243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } && {
17245 test -z "$ac_c_werror_flag" ||
17246 test ! -s conftest.err
17247 } && test -s conftest
$ac_exeext && {
17248 test "$cross_compiling" = yes ||
17249 $as_test_x conftest
$ac_exeext
17251 { $as_echo "$as_me:$LINENO: result: yes" >&5
17252 $as_echo "yes" >&6; };
17254 cat >>confdefs.h
<<\_ACEOF
17255 #define HAVE_DLOPEN 1
17259 $as_echo "$as_me: failed program was:" >&5
17260 sed 's/^/| /' conftest.
$ac_ext >&5
17262 { $as_echo "$as_me:$LINENO: result: no" >&5
17263 $as_echo "no" >&6; };
17264 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
17265 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
17268 cat >conftest.
$ac_ext <<_ACEOF
17271 cat confdefs.h
>>conftest.
$ac_ext
17272 cat >>conftest.
$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17279 extern void* dlopen();
17286 rm -f conftest.
$ac_objext conftest
$ac_exeext
17287 if { (ac_try
="$ac_link"
17288 case "(($ac_try" in
17289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294 (eval "$ac_link") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest$ac_exeext && {
17304 test "$cross_compiling" = yes ||
17305 $as_test_x conftest$ac_exeext
17307 { $as_echo "$as_me:$LINENO: result: yes" >&5
17308 $as_echo "yes" >&6; };
17310 cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_DLOPEN 1
17315 $as_echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17318 { $as_echo "$as_me:$LINENO: result: no" >&5
17319 $as_echo "no" >&6; };
17323 rm -rf conftest.dSYM
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17328 rm -rf conftest.dSYM
17329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17330 conftest$ac_exeext conftest.$ac_ext
17331 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
17332 $as_echo_n "checking for dlsym()... " >&6; }
17333 cat >conftest.$ac_ext <<_ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17344 extern void* dlsym();
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17355 *) ac_try_echo
=$ac_try;;
17357 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359 (eval "$ac_link") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1
>conftest.err
17363 cat conftest.err
>&5
17364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest
$ac_exeext && {
17369 test "$cross_compiling" = yes ||
17370 $as_test_x conftest
$ac_exeext
17372 { $as_echo "$as_me:$LINENO: result: yes" >&5
17373 $as_echo "yes" >&6; };
17375 cat >>confdefs.h
<<\_ACEOF
17376 #define HAVE_DLSYM 1
17380 $as_echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.
$ac_ext >&5
17383 { $as_echo "$as_me:$LINENO: result: no" >&5
17384 $as_echo "no" >&6; };
17385 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
17386 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
17389 cat >conftest.
$ac_ext <<_ACEOF
17392 cat confdefs.h
>>conftest.
$ac_ext
17393 cat >>conftest.
$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17400 extern void* dlsym();
17407 rm -f conftest.
$ac_objext conftest
$ac_exeext
17408 if { (ac_try
="$ac_link"
17409 case "(($ac_try" in
17410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17414 $as_echo "$ac_try_echo") >&5
17415 (eval "$ac_link") 2>conftest.er1
17417 grep -v '^ *+' conftest.er1 >conftest.err
17419 cat conftest.err >&5
17420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } && {
17422 test -z "$ac_c_werror_flag" ||
17423 test ! -s conftest.err
17424 } && test -s conftest$ac_exeext && {
17425 test "$cross_compiling" = yes ||
17426 $as_test_x conftest$ac_exeext
17428 { $as_echo "$as_me:$LINENO: result: yes" >&5
17429 $as_echo "yes" >&6; };
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_DLSYM 1
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 { $as_echo "$as_me:$LINENO: result: no" >&5
17440 $as_echo "no" >&6; };
17444 rm -rf conftest.dSYM
17445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17446 conftest$ac_exeext conftest.$ac_ext
17449 rm -rf conftest.dSYM
17450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17451 conftest$ac_exeext conftest.$ac_ext
17452 elif test x${DLL} = xdl.h; then
17454 cat >>confdefs.h <<\_ACEOF
17455 #define HAVE_DL_H 1
17458 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
17459 $as_echo_n "checking for shl_load()... " >&6; }
17460 cat >conftest.$ac_ext <<_ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17471 extern void* shl_load();
17478 rm -f conftest.$ac_objext conftest$ac_exeext
17479 if { (ac_try="$ac_link"
17480 case "(($ac_try" in
17481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17482 *) ac_try_echo
=$ac_try;;
17484 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17485 $as_echo "$ac_try_echo") >&5
17486 (eval "$ac_link") 2>conftest.er1
17488 grep -v '^ *+' conftest.er1
>conftest.err
17490 cat conftest.err
>&5
17491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest
$ac_exeext && {
17496 test "$cross_compiling" = yes ||
17497 $as_test_x conftest
$ac_exeext
17499 { $as_echo "$as_me:$LINENO: result: yes" >&5
17500 $as_echo "yes" >&6; };
17502 cat >>confdefs.h
<<\_ACEOF
17503 #define HAVE_SHL_LOAD 1
17507 $as_echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.
$ac_ext >&5
17510 { $as_echo "$as_me:$LINENO: result: no" >&5
17511 $as_echo "no" >&6; };
17512 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
17513 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
17516 cat >conftest.
$ac_ext <<_ACEOF
17519 cat confdefs.h
>>conftest.
$ac_ext
17520 cat >>conftest.
$ac_ext <<_ACEOF
17521 /* end confdefs.h. */
17527 extern void* shl_load();
17534 rm -f conftest.
$ac_objext conftest
$ac_exeext
17535 if { (ac_try
="$ac_link"
17536 case "(($ac_try" in
17537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17541 $as_echo "$ac_try_echo") >&5
17542 (eval "$ac_link") 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest$ac_exeext && {
17552 test "$cross_compiling" = yes ||
17553 $as_test_x conftest$ac_exeext
17555 { $as_echo "$as_me:$LINENO: result: yes" >&5
17556 $as_echo "yes" >&6; };
17558 cat >>confdefs.h <<\_ACEOF
17559 #define HAVE_SHL_LOAD 1
17563 $as_echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 { $as_echo "$as_me:$LINENO: result: no" >&5
17567 $as_echo "no" >&6; };
17571 rm -rf conftest.dSYM
17572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17573 conftest$ac_exeext conftest.$ac_ext
17576 rm -rf conftest.dSYM
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17581 for ac_header in setjmp.h
17583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17586 $as_echo_n "checking for $ac_header... " >&6; }
17587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17588 $as_echo_n "(cached) " >&6
17590 ac_res=`eval 'as_val=${'$as_ac_Header'}
17591 $as_echo "$as_val"'`
17592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17593 $as_echo "$ac_res" >&6; }
17595 # Is the header compilable?
17596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17597 $as_echo_n "checking $ac_header usability... " >&6; }
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #include <$ac_header>
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17611 *) ac_try_echo
=$ac_try;;
17613 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17614 $as_echo "$ac_try_echo") >&5
17615 (eval "$ac_compile") 2>conftest.er1
17617 grep -v '^ *+' conftest.er1
>conftest.err
17619 cat conftest.err
>&5
17620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest.
$ac_objext; then
17625 ac_header_compiler
=yes
17627 $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.
$ac_ext >&5
17630 ac_header_compiler
=no
17633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17635 $as_echo "$ac_header_compiler" >&6; }
17637 # Is the header present?
17638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17639 $as_echo_n "checking $ac_header presence... " >&6; }
17640 cat >conftest.
$ac_ext <<_ACEOF
17643 cat confdefs.h
>>conftest.
$ac_ext
17644 cat >>conftest.
$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <$ac_header>
17648 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17649 case "(($ac_try" in
17650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17654 $as_echo "$ac_try_echo") >&5
17655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17657 grep -v '^ *+' conftest.er1 >conftest.err
17659 cat conftest.err >&5
17660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } >/dev/null && {
17662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17663 test ! -s conftest.err
17665 ac_header_preproc=yes
17667 $as_echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_header_preproc=no
17673 rm -f conftest.err conftest.$ac_ext
17674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17675 $as_echo "$ac_header_preproc" >&6; }
17677 # So? What about this header?
17678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17684 ac_header_preproc=yes
17687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17703 $as_echo_n "checking for $ac_header... " >&6; }
17704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17705 $as_echo_n "(cached) " >&6
17707 eval "$as_ac_Header=\$ac_header_preproc"
17709 ac_res=`eval 'as_val=${'$as_ac_Header'}
17710 $as_echo "$as_val"'`
17711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17712 $as_echo "$ac_res" >&6; }
17715 as_val=`eval 'as_val=${'$as_ac_Header'}
17716 $as_echo "$as_val"'`
17717 if test "x$as_val" = x""yes; then
17718 cat >>confdefs.h <<_ACEOF
17719 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17727 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17728 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17729 LIBS=`echo $LIBS |
sed s
/-ldl//`
17730 PERL_LIBS="$PERL_LIBS -ldl"
17734 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17735 && test "x$GUITYPE" != "xCARBONGUI"; then
17736 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17737 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17738 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17739 || test "x$features" = "xhuge"; then
17740 LIBS="$LIBS -framework Carbon"
17741 { $as_echo "$as_me:$LINENO: result: yes" >&5
17742 $as_echo "yes" >&6; }
17744 { $as_echo "$as_me:$LINENO: result: no" >&5
17745 $as_echo "no" >&6; }
17748 if test "x$MACARCH" = "xboth"; then
17749 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17752 DEPEND_CFLAGS_FILTER=
17753 if test "$GCC" = yes; then
17754 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17755 $as_echo_n "checking for GCC 3 or later... " >&6; }
17756 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
17757 if test "$gccmajor" -gt "2"; then
17758 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17759 { $as_echo "$as_me:$LINENO: result: yes" >&5
17760 $as_echo "yes" >&6; }
17762 { $as_echo "$as_me:$LINENO: result: no" >&5
17763 $as_echo "no" >&6; }
17765 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17766 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17767 if test "$gccmajor" -gt "3"; then
17768 CFLAGS=`echo "$CFLAGS" |
sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17769 { $as_echo "$as_me:$LINENO: result: yes" >&5
17770 $as_echo "yes" >&6; }
17772 { $as_echo "$as_me:$LINENO: result: no" >&5
17773 $as_echo "no" >&6; }
17778 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17780 cat >confcache <<\_ACEOF
17781 # This file is a shell script that caches the results of configure
17782 # tests run on this system so they can be shared between configure
17783 # scripts and configure runs, see configure's option --config-cache.
17784 # It is not useful on other systems. If it contains results you don't
17785 # want to keep, you may remove or edit it.
17787 # config.status only pays attention to the cache file if you give it
17788 # the --recheck option to rerun configure.
17790 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
17791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17792 # following values.
17796 # The following way of writing the cache mishandles newlines in values,
17797 # but we know of no workaround that is simple, portable, and efficient.
17798 # So, we kill variables containing newlines.
17799 # Ultrix sh set writes to stderr and can't be redirected directly,
17800 # and sets the high bit in the cache file unless we assign to the vars.
17802 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17803 eval ac_val
=\$
$ac_var
17807 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17811 _ | IFS | as_nl
) ;; #(
17812 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17813 *) $as_unset $ac_var ;;
17819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17820 *${as_nl}ac_space
=\
*)
17821 # `set' does not quote correctly, so add quotes (double-quote
17822 # substitution turns \\\\ into \\, and sed turns \\ into \).
17825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17828 # `set' quotes correctly as required by POSIX, so do not add quotes.
17829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17842 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17843 if test -w "$cache_file"; then
17844 test "x$cache_file" != "x/dev/null" &&
17845 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17846 $as_echo "$as_me: updating cache $cache_file" >&6;}
17847 cat confcache
>$cache_file
17849 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17855 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17856 # Let make expand exec_prefix.
17857 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17859 DEFS
=-DHAVE_CONFIG_H
17863 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17864 # 1. Remove the extension, and $U if already installed.
17865 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17866 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17868 # will be set to the directory where LIBOBJS objects are built.
17869 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17870 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17872 LIBOBJS
=$ac_libobjs
17874 LTLIBOBJS
=$ac_ltlibobjs
17878 : ${CONFIG_STATUS=./config.status}
17880 ac_clean_files_save
=$ac_clean_files
17881 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17882 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17884 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17886 # Generated by $as_me.
17887 # Run this file to recreate the current configuration.
17888 # Compiler output produced by configure, useful for debugging
17889 # configure, is in config.log if it exists.
17892 ac_cs_recheck=false
17894 SHELL=\${CONFIG_SHELL-$SHELL}
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17898 ## --------------------- ##
17899 ## M4sh Initialization. ##
17900 ## --------------------- ##
17902 # Be more Bourne compatible
17903 DUALCASE
=1; export DUALCASE
# for MKS sh
17904 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17907 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17908 # is contrary to our usage. Disable this feature.
17909 alias -g '${1+"$@"}'='"$@"'
17910 setopt NO_GLOB_SUBST
17912 case `(set -o) 2>/dev/null` in
17913 *posix
*) set -o posix
;;
17922 # Avoid depending upon Character Ranges.
17923 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17924 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17925 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17926 as_cr_digits
='0123456789'
17927 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17932 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17933 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17936 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17937 as_echo='printf %s
\n'
17938 as_echo_n='printf %s
'
17940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17941 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17942 as_echo_n='/usr
/ucb
/echo -n'
17944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17945 as_echo_n_body='eval
17949 expr "X$arg" : "X\\(.*\\)$as_nl";
17950 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17952 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17954 export as_echo_n_body
17955 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17957 export as_echo_body
17958 as_echo='sh
-c $as_echo_body as_echo
'
17961 # The user is always right.
17962 if test "${PATH_SEPARATOR+set}" != set; then
17964 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17965 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17970 # Support unset when possible.
17971 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17979 # We need space, tab and new line, in precisely that order. Quoting is
17980 # there to prevent editors from complaining about space-tab.
17981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17982 # splitting by setting IFS to empty value.)
17985 # Find who we are. Look in the path if we contain no directory separator.
17987 *[\\/]* ) as_myself=$0 ;;
17988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989 for as_dir in $PATH
17992 test -z "$as_dir" && as_dir=.
17993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17999 # We did not find ourselves, most probably we were run as `sh COMMAND'
18000 # in which case we are not to be found in the path.
18001 if test "x$as_myself" = x
; then
18004 if test ! -f "$as_myself"; then
18005 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18006 { (exit 1); exit 1; }
18009 # Work around bugs in pre-3.0 UWIN ksh.
18010 for as_var
in ENV MAIL MAILPATH
18011 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
18023 # Required to use basename.
18024 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18025 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18031 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18032 as_basename
=basename
18038 # Name of the executable.
18039 as_me
=`$as_basename -- "$0" ||
18040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18041 X"$0" : 'X\(//\)$' \| \
18042 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18044 sed '/^.*\/\([^/][^/]*\)\/*$/{
18063 as_lineno_1
=$LINENO
18064 as_lineno_2
=$LINENO
18065 test "x$as_lineno_1" != "x$as_lineno_2" &&
18066 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
18068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18069 # uniformly replaced by the line number. The first 'sed' inserts a
18070 # line-number line after each line using $LINENO; the second 'sed'
18071 # does the real work. The second script uses 'N' to pair each
18072 # line-number line with the line containing $LINENO, and appends
18073 # trailing '-' during substitution so that $LINENO is not a special
18074 # case at line end.
18075 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18076 # scripts with optimization help from Paolo Bonzini. Blame Lee
18077 # E. McMahon (1931-1989) for sed's syntax. :-)
18089 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18092 ' >$as_me.lineno
&&
18093 chmod +x
"$as_me.lineno" ||
18094 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18095 { (exit 1); exit 1; }; }
18097 # Don't try to exec as it changes $[0], causing all sort of problems
18098 # (the dirname of $[0] is not the place where we might find the
18099 # original and so on. Autoconf is especially sensitive to this).
18100 .
"./$as_me.lineno"
18101 # Exit status is that of the last command.
18106 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18112 ECHO_C
= ECHO_N
= ECHO_T
=
18113 case `echo -n x` in
18115 case `echo 'x\c'` in
18116 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18122 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18123 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18129 rm -f conf$$ conf$$.exe conf$$.
file
18130 if test -d conf$$.dir
; then
18131 rm -f conf$$.dir
/conf$$.
file
18134 mkdir conf$$.dir
2>/dev
/null
18136 if (echo >conf$$.
file) 2>/dev
/null
; then
18137 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18139 # ... but there are two gotchas:
18140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18142 # In both cases, we have to default to `cp -p'.
18143 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18145 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18153 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18154 rmdir conf$$.dir
2>/dev
/null
18156 if mkdir
-p .
2>/dev
/null
; then
18159 test -d .
/-p && rmdir .
/-p
18163 if test -x / >/dev
/null
2>&1; then
18164 as_test_x
='test -x'
18166 if ls -dL / >/dev
/null
2>&1; then
18173 if test -d "$1"; then
18179 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18180 ???[sx]*):;;*)false;;esac;fi
18184 as_executable_p
=$as_test_x
18186 # Sed expression to map a string onto a valid CPP name.
18187 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18189 # Sed expression to map a string onto a valid variable name.
18190 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18195 # Save the log message, to keep $[0] and so on meaningful, and to
18196 # report actual input values of CONFIG_FILES etc. instead of their
18197 # values after options handling.
18199 This file was extended by $as_me, which was
18200 generated by GNU Autoconf 2.63. Invocation command line was
18202 CONFIG_FILES = $CONFIG_FILES
18203 CONFIG_HEADERS = $CONFIG_HEADERS
18204 CONFIG_LINKS = $CONFIG_LINKS
18205 CONFIG_COMMANDS = $CONFIG_COMMANDS
18208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18213 case $ac_config_files in *"
18214 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18217 case $ac_config_headers in *"
18218 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18223 # Files that config.status was made for.
18224 config_files="$ac_config_files"
18225 config_headers="$ac_config_headers"
18229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18231 \`$as_me' instantiates files from templates according to the
18232 current configuration.
18234 Usage: $0 [OPTION]... [FILE]...
18236 -h, --help print this help, then exit
18237 -V, --version print version number and configuration settings, then exit
18238 -q, --quiet, --silent
18239 do not print progress messages
18240 -d, --debug don't remove temporary files
18241 --recheck update $as_me by reconfiguring in the same conditions
18242 --file=FILE[:TEMPLATE]
18243 instantiate the configuration file FILE
18244 --header=FILE[:TEMPLATE]
18245 instantiate the configuration header FILE
18247 Configuration files:
18250 Configuration headers:
18253 Report bugs to <bug-autoconf@gnu.org>."
18256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18259 configured by $0, generated by GNU Autoconf 2.63,
18260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18262 Copyright (C) 2008 Free Software Foundation, Inc.
18263 This config.status script is free software; the Free Software Foundation
18264 gives unlimited permission to copy, distribute and modify it."
18269 test -n "\$AWK" || AWK=awk
18272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18273 # The default lists apply if the user does not specify any file.
18279 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18280 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18291 # Handling of the options.
18292 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18294 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18295 $as_echo "$ac_cs_version"; exit ;;
18296 --debug |
--debu |
--deb |
--de |
--d |
-d )
18298 --file |
--fil |
--fi |
--f )
18301 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18303 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
18304 ac_need_defaults
=false
;;
18305 --header |
--heade |
--head |
--hea )
18308 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18310 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
18311 ac_need_defaults
=false
;;
18313 # Conflict between --help and --header
18314 { $as_echo "$as_me: error: ambiguous option: $1
18315 Try \`$0 --help' for more information." >&2
18316 { (exit 1); exit 1; }; };;
18317 --help |
--hel |
-h )
18318 $as_echo "$ac_cs_usage"; exit ;;
18319 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18320 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18323 # This is an error.
18324 -*) { $as_echo "$as_me: error: unrecognized option: $1
18325 Try \`$0 --help' for more information." >&2
18326 { (exit 1); exit 1; }; } ;;
18328 *) ac_config_targets
="$ac_config_targets $1"
18329 ac_need_defaults
=false
;;
18335 ac_configure_extra_args
=
18337 if $ac_cs_silent; then
18339 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18344 if \$ac_cs_recheck; then
18345 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18348 CONFIG_SHELL='$SHELL'
18349 export CONFIG_SHELL
18354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18355 exec 5>>auto
/config.log
18358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18359 ## Running $as_me. ##
18365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18370 # Handling of arguments.
18371 for ac_config_target
in $ac_config_targets
18373 case $ac_config_target in
18374 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
18375 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
18377 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18378 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18379 { (exit 1); exit 1; }; };;
18384 # If the user did not use the arguments to specify the items to instantiate,
18385 # then the envvar interface is used. Set only those that are not.
18386 # We use the long form for the default assignment because of an extremely
18387 # bizarre bug on SunOS 4.1.3.
18388 if $ac_need_defaults; then
18389 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18390 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18393 # Have a temporary directory for convenience. Make it in the build tree
18394 # simply because there is no reason against having it here, and in addition,
18395 # creating and moving files from /tmp can sometimes cause problems.
18396 # Hook for its removal unless debugging.
18397 # Note that there is a small window in which the directory will not be cleaned:
18398 # after its creation but before its name has been assigned to `$tmp'.
18402 trap 'exit_status=$?
18403 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18405 trap '{ (exit 1); exit 1; }' 1 2 13 15
18407 # Create a (secure) tmp directory for tmp files.
18410 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18411 test -n "$tmp" && test -d "$tmp"
18414 tmp
=.
/conf$$
-$RANDOM
18415 (umask 077 && mkdir
"$tmp")
18418 $as_echo "$as_me: cannot create a temporary directory in ." >&2
18419 { (exit 1); exit 1; }
18422 # Set up the scripts for CONFIG_FILES section.
18423 # No need to generate them if there are no CONFIG_FILES.
18424 # This happens for instance with `./config.status config.h'.
18425 if test -n "$CONFIG_FILES"; then
18429 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18433 ac_cs_awk_cr
=$ac_cr
18436 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18441 echo "cat >conf$$subs.awk <<_ACEOF" &&
18442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18444 } >conf$$subs.sh ||
18445 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18446 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18447 { (exit 1); exit 1; }; }
18448 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18450 for ac_last_try in false false false false false :; do
18451 . ./conf$$subs.sh ||
18452 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18453 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18454 { (exit 1); exit 1; }; }
18456 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18457 if test $ac_delim_n = $ac_delim_num; then
18459 elif $ac_last_try; then
18460 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
18461 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
18462 { (exit 1); exit 1; }; }
18464 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18467 rm -f conf$$subs.sh
18469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18470 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18474 s/^/S["/; s
/!.
*/"]=/
18484 s/\(.\{148\}\).*/\1/
18486 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18491 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18498 s/\(.\{148\}\).*/\1/
18500 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18504 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18509 ' <conf$$subs.awk | sed '
18514 ' >>$CONFIG_STATUS || ac_write_fail=1
18515 rm -f conf$$subs.awk
18516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18518 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18519 for (key in S) S_is_set[key] = 1
18525 nfields = split(line, field, "@
")
18527 len = length(field[1])
18528 for (i = 2; i < nfields; i++) {
18530 keylen = length(key)
18531 if (S_is_set[key]) {
18533 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18534 len += length(value) + length(field[++i])
18545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18546 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18547 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18550 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18551 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
18552 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
18553 { (exit 1); exit 1; }; }
18556 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18557 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18558 # trailing colons and then remove the whole line if VPATH becomes empty
18559 # (actually we leave an empty line to preserve line numbers).
18560 if test "x
$srcdir" = x.; then
18561 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18562 s/:*\$(srcdir):*/:/
18563 s/:*\${srcdir}:*/:/
18565 s/^\([^=]*=[ ]*\):*/\1/
18571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18572 fi # test -n "$CONFIG_FILES"
18574 # Set up the scripts for CONFIG_HEADERS section.
18575 # No need to generate them if there are no CONFIG_HEADERS.
18576 # This happens for instance with `./config.status Makefile'.
18577 if test -n "$CONFIG_HEADERS"; then
18578 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18582 # Transform confdefs.h into an awk script `defines.awk', embedded as
18583 # here-document in config.status, that substitutes the proper values into
18584 # config.h.in to produce config.h.
18586 # Create a delimiter string that does not exist in confdefs.h, to ease
18587 # handling of long lines.
18589 for ac_last_try in false false :; do
18590 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18591 if test -z "$ac_t"; then
18593 elif $ac_last_try; then
18594 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18595 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18596 { (exit 1); exit 1; }; }
18598 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18602 # For the awk script, D is an array of macro values keyed by name,
18603 # likewise P contains macro parameters if any. Preserve backslash
18604 # newline sequences.
18606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18608 s/.\{148\}/&'"$ac_delim"'/g
18611 s/^[ ]*#[ ]*define[ ][ ]*/ /
18618 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18620 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18625 D["\
1"]=" \
3\\\\\\n
"\\/p
18627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18632 s/.\{148\}/&'"$ac_delim"'/g
18637 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18640 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18642 ' <confdefs.h | sed '
18643 s/'"$ac_delim"'/"\\\
18644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18647 for (key in D) D_is_set[key] = 1
18650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18652 split(line, arg, " ")
18653 if (arg[1] == "#") {
18657 defundef
= substr
(arg
[1], 2)
18660 split(mac1
, mac2
, "(") #)
18662 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18663 if (D_is_set
[macro
]) {
18664 # Preserve the white space surrounding the "#".
18665 print prefix
"define", macro P
[macro
] D
[macro
]
18668 # Replace #undef with comments. This is necessary, for example,
18669 # in the case of _POSIX_SOURCE, which is predefined and required
18670 # on some systems where configure will not decide to define it.
18671 if (defundef
== "undef") {
18672 print
"/*", prefix defundef
, macro
, "*/"
18680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18681 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18682 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18683 { (exit 1); exit 1; }; }
18684 fi # test -n "$CONFIG_HEADERS"
18687 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
18692 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18694 case $ac_mode$ac_tag in
18696 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18697 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18698 { (exit 1); exit 1; }; };;
18699 :[FH
]-) ac_tag
=-:-;;
18700 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18717 -) ac_f
="$tmp/stdin";;
18718 *) # Look for the file first in the build tree, then in the source tree
18719 # (if the path is not absolute). The absolute path cannot be DOS-style,
18720 # because $ac_f cannot contain `:'.
18724 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18726 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18727 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18728 { (exit 1); exit 1; }; };;
18730 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18731 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18734 # Let's still pretend it is `configure' which instantiates (i.e., don't
18735 # use $as_me), people would be surprised to read:
18736 # /* config.h. Generated by config.status. */
18737 configure_input
='Generated from '`
18738 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18740 if test x
"$ac_file" != x-
; then
18741 configure_input
="$ac_file. $configure_input"
18742 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18743 $as_echo "$as_me: creating $ac_file" >&6;}
18745 # Neutralize special characters interpreted by sed in replacement strings.
18746 case $configure_input in #(
18747 *\
&* |
*\|
* |
*\\* )
18748 ac_sed_conf_input
=`$as_echo "$configure_input" |
18749 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18750 *) ac_sed_conf_input
=$configure_input;;
18754 *:-:* |
*:-) cat >"$tmp/stdin" \
18755 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18756 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18757 { (exit 1); exit 1; }; } ;;
18762 ac_dir
=`$as_dirname -- "$ac_file" ||
18763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18764 X"$ac_file" : 'X\(//\)[^/]' \| \
18765 X"$ac_file" : 'X\(//\)$' \| \
18766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18767 $as_echo X"$ac_file" |
18768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18772 /^X\(\/\/\)[^/].*/{
18787 -*) as_dir
=.
/$as_dir;;
18789 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18793 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18794 *) as_qdir
=$as_dir;;
18796 as_dirs
="'$as_qdir' $as_dirs"
18797 as_dir
=`$as_dirname -- "$as_dir" ||
18798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18799 X"$as_dir" : 'X\(//\)[^/]' \| \
18800 X"$as_dir" : 'X\(//\)$' \| \
18801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18802 $as_echo X"$as_dir" |
18803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18807 /^X\(\/\/\)[^/].*/{
18820 test -d "$as_dir" && break
18822 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18823 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18824 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18825 { (exit 1); exit 1; }; }; }
18829 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18831 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18832 # A ".." for each directory in $ac_dir_suffix.
18833 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18834 case $ac_top_builddir_sub in
18835 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18836 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18839 ac_abs_top_builddir
=$ac_pwd
18840 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18841 # for backward compatibility:
18842 ac_top_builddir
=$ac_top_build_prefix
18845 .
) # We are building in place.
18847 ac_top_srcdir
=$ac_top_builddir_sub
18848 ac_abs_top_srcdir
=$ac_pwd ;;
18849 [\\/]* | ?
:[\\/]* ) # Absolute name.
18850 ac_srcdir
=$srcdir$ac_dir_suffix;
18851 ac_top_srcdir
=$srcdir
18852 ac_abs_top_srcdir
=$srcdir ;;
18853 *) # Relative name.
18854 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18855 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18856 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18858 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18870 # If the template does not know about datarootdir, expand it.
18871 # FIXME: This hack should be removed a few years after 2.60.
18872 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18885 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18886 *datarootdir
*) ac_datarootdir_seen
=yes;;
18887 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18888 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18889 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18892 ac_datarootdir_hack='
18893 s&@datadir@&$datadir&g
18894 s&@docdir@&$docdir&g
18895 s&@infodir@&$infodir&g
18896 s&@localedir@&$localedir&g
18897 s&@mandir@&$mandir&g
18898 s&\\\${datarootdir}&$datarootdir&g' ;;
18902 # Neutralize VPATH when `$srcdir' = `.'.
18903 # Shell code in configure.ac might set extrasub.
18904 # FIXME: do we really want to maintain this feature?
18905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18906 ac_sed_extra="$ac_vpsub
18909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18911 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18912 s|@configure_input@|
$ac_sed_conf_input|
;t t
18913 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18914 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18915 s
&@srcdir@
&$ac_srcdir&;t t
18916 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18917 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18918 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18919 s
&@builddir@
&$ac_builddir&;t t
18920 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18921 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18922 $ac_datarootdir_hack
18924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18925 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18926 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18927 { (exit 1); exit 1; }; }
18929 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18930 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18931 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18932 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18933 which seems to be undefined. Please make sure it is defined." >&5
18934 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18935 which seems to be undefined. Please make sure it is defined." >&2;}
18939 -) cat "$tmp/out" && rm -f "$tmp/out";;
18940 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18942 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18943 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18944 { (exit 1); exit 1; }; }
18950 if test x"$ac_file" != x-; then
18952 $as_echo "/* $configure_input */" \
18953 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18954 } >"$tmp/config.h" \
18955 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18956 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18957 { (exit 1); exit 1; }; }
18958 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18959 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18960 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18963 mv "$tmp/config.h" "$ac_file" \
18964 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18965 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18966 { (exit 1); exit 1; }; }
18969 $as_echo "/* $configure_input */" \
18970 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18971 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18972 $as_echo "$as_me: error: could not create -" >&2;}
18973 { (exit 1); exit 1; }; }
18983 { (exit 0); exit 0; }
18985 chmod +x $CONFIG_STATUS
18986 ac_clean_files=$ac_clean_files_save
18988 test $ac_write_fail = 0 ||
18989 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18990 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18991 { (exit 1); exit 1; }; }
18994 # configure is writing to config.log, and then calls config.status.
18995 # config.status does its own redirection, appending to config.log.
18996 # Unfortunately, on DOS this fails, as config.log is still kept open
18997 # by configure, so config.status won't be able to
write to it
; its
18998 # output is simply discarded. So we exec the FD to /dev/null,
18999 # effectively closing config.log, so it can be properly (re)opened and
19000 # appended to by config.status. When coming back to configure, we
19001 # need to make the FD available again.
19002 if test "$no_create" != yes; then
19004 ac_config_status_args
=
19005 test "$silent" = yes &&
19006 ac_config_status_args
="$ac_config_status_args --quiet"
19008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19009 exec 5>>auto
/config.log
19010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19011 # would make configure fail if this is the last instruction.
19012 $ac_cs_success ||
{ (exit 1); exit 1; }
19014 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19015 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19016 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}