2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
692 PYTHON_GETPATH_CFLAGS
762 program_transform_name
774 enable_option_checking
788 enable_mzschemeinterp
792 with_python_config_dir
827 ac_precious_vars
='build_alias
839 # Initialize some variables set by options.
841 ac_init_version
=false
842 ac_unrecognized_opts
=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name
=s
,x
,x
,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir
='${exec_prefix}/bin'
868 sbindir
='${exec_prefix}/sbin'
869 libexecdir
='${exec_prefix}/libexec'
870 datarootdir
='${prefix}/share'
871 datadir
='${datarootdir}'
872 sysconfdir
='${prefix}/etc'
873 sharedstatedir
='${prefix}/com'
874 localstatedir
='${prefix}/var'
875 includedir
='${prefix}/include'
876 oldincludedir
='/usr/include'
877 docdir
='${datarootdir}/doc/${PACKAGE}'
878 infodir
='${datarootdir}/info'
883 libdir
='${exec_prefix}/lib'
884 localedir
='${datarootdir}/locale'
885 mandir
='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\
$ac_option
899 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
911 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
914 -build |
--build |
--buil |
--bui |
--bu)
915 ac_prev
=build_alias
;;
916 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
917 build_alias
=$ac_optarg ;;
919 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
920 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
921 ac_prev
=cache_file
;;
922 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
923 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
924 cache_file
=$ac_optarg ;;
927 cache_file
=config.cache
;;
929 -datadir |
--datadir |
--datadi |
--datad)
931 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
932 datadir
=$ac_optarg ;;
934 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
935 |
--dataroo |
--dataro |
--datar)
936 ac_prev
=datarootdir
;;
937 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
938 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
939 datarootdir
=$ac_optarg ;;
941 -disable-* |
--disable-*)
942 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946 { (exit 1); exit 1; }; }
947 ac_useropt_orig
=$ac_useropt
948 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep
=', ';;
956 eval enable_
$ac_useropt=no
;;
958 -docdir |
--docdir |
--docdi |
--doc |
--do)
960 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
963 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
965 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
968 -enable-* |
--enable-*)
969 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig
=$ac_useropt
975 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep
=', ';;
983 eval enable_
$ac_useropt=\
$ac_optarg ;;
985 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
986 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
987 |
--exec |
--exe |
--ex)
988 ac_prev
=exec_prefix
;;
989 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
990 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
991 |
--exec=* |
--exe=* |
--ex=*)
992 exec_prefix
=$ac_optarg ;;
994 -gas |
--gas |
--ga |
--g)
995 # Obsolete; use --with-gas.
998 -help |
--help |
--hel |
--he |
-h)
1000 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1001 ac_init_help
=recursive
;;
1002 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1003 ac_init_help
=short
;;
1005 -host |
--host |
--hos |
--ho)
1006 ac_prev
=host_alias
;;
1007 -host=* |
--host=* |
--hos=* |
--ho=*)
1008 host_alias
=$ac_optarg ;;
1010 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1012 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1014 htmldir
=$ac_optarg ;;
1016 -includedir |
--includedir |
--includedi |
--included |
--include \
1017 |
--includ |
--inclu |
--incl |
--inc)
1018 ac_prev
=includedir
;;
1019 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1020 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1021 includedir
=$ac_optarg ;;
1023 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1025 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1026 infodir
=$ac_optarg ;;
1028 -libdir |
--libdir |
--libdi |
--libd)
1030 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1031 libdir
=$ac_optarg ;;
1033 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1034 |
--libexe |
--libex |
--libe)
1035 ac_prev
=libexecdir
;;
1036 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1037 |
--libexe=* |
--libex=* |
--libe=*)
1038 libexecdir
=$ac_optarg ;;
1040 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1041 ac_prev
=localedir
;;
1042 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1043 localedir
=$ac_optarg ;;
1045 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1046 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1047 ac_prev
=localstatedir
;;
1048 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1049 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1050 localstatedir
=$ac_optarg ;;
1052 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1054 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1055 mandir
=$ac_optarg ;;
1057 -nfp |
--nfp |
--nf)
1058 # Obsolete; use --without-fp.
1061 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1062 |
--no-cr |
--no-c |
-n)
1065 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1066 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1069 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1070 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1071 |
--oldin |
--oldi |
--old |
--ol |
--o)
1072 ac_prev
=oldincludedir
;;
1073 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1074 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1075 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1076 oldincludedir
=$ac_optarg ;;
1078 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1080 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1081 prefix
=$ac_optarg ;;
1083 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1084 |
--program-pre |
--program-pr |
--program-p)
1085 ac_prev
=program_prefix
;;
1086 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1087 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1088 program_prefix
=$ac_optarg ;;
1090 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1091 |
--program-suf |
--program-su |
--program-s)
1092 ac_prev
=program_suffix
;;
1093 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1094 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1095 program_suffix
=$ac_optarg ;;
1097 -program-transform-name |
--program-transform-name \
1098 |
--program-transform-nam |
--program-transform-na \
1099 |
--program-transform-n |
--program-transform- \
1100 |
--program-transform |
--program-transfor \
1101 |
--program-transfo |
--program-transf \
1102 |
--program-trans |
--program-tran \
1103 |
--progr-tra |
--program-tr |
--program-t)
1104 ac_prev
=program_transform_name
;;
1105 -program-transform-name=* |
--program-transform-name=* \
1106 |
--program-transform-nam=* |
--program-transform-na=* \
1107 |
--program-transform-n=* |
--program-transform-=* \
1108 |
--program-transform=* |
--program-transfor=* \
1109 |
--program-transfo=* |
--program-transf=* \
1110 |
--program-trans=* |
--program-tran=* \
1111 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1112 program_transform_name
=$ac_optarg ;;
1114 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1116 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1117 pdfdir
=$ac_optarg ;;
1119 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1121 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1124 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1125 |
-silent |
--silent |
--silen |
--sile |
--sil)
1128 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1130 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1132 sbindir
=$ac_optarg ;;
1134 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1135 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1136 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1138 ac_prev
=sharedstatedir
;;
1139 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1140 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1141 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1143 sharedstatedir
=$ac_optarg ;;
1145 -site |
--site |
--sit)
1147 -site=* |
--site=* |
--sit=*)
1150 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1152 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1153 srcdir
=$ac_optarg ;;
1155 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1156 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1157 ac_prev
=sysconfdir
;;
1158 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1159 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1160 sysconfdir
=$ac_optarg ;;
1162 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1163 ac_prev
=target_alias
;;
1164 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1165 target_alias
=$ac_optarg ;;
1167 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1170 -version |
--version |
--versio |
--versi |
--vers |
-V)
1171 ac_init_version
=: ;;
1174 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1177 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_useropt_orig
=$ac_useropt
1180 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep
=', ';;
1188 eval with_
$ac_useropt=\
$ac_optarg ;;
1190 -without-* |
--without-*)
1191 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig
=$ac_useropt
1197 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep
=', ';;
1205 eval with_
$ac_useropt=no
;;
1208 # Obsolete; use --with-x.
1211 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1212 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1213 ac_prev
=x_includes
;;
1214 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1215 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1216 x_includes
=$ac_optarg ;;
1218 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1219 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1220 ac_prev
=x_libraries
;;
1221 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1222 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1223 x_libraries
=$ac_optarg ;;
1225 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1231 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1234 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\
$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1252 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1259 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1260 { (exit 1); exit 1; }; } ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val
=\$
$ac_var
1272 # Remove trailing slashes.
1275 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\
$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$
]* | ?
:[\\/]* ) continue;;
1281 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1283 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284 { (exit 1); exit 1; }; }
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target
=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x
; then
1296 if test "x$build_alias" = x
; then
1297 cross_compiling
=maybe
1298 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used." >&2
1300 elif test "x$build_alias" != "x$host_alias"; then
1306 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1308 test "$silent" = yes && exec 6>/dev
/null
1311 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di
=`ls -di .` &&
1313 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1314 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1315 { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1318 { (exit 1); exit 1; }; }
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted
=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir
=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1353 ac_srcdir_defaulted
=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1357 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358 { (exit 1); exit 1; }; }
1360 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1362 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1363 { (exit 1); exit 1; }; }
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var
in $ac_precious_vars; do
1376 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1378 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --x-includes=DIR X include files are
in DIR
1448 --x-libraries=DIR X library files are
in DIR
1452 if test -n "$ac_init_help"; then
1457 --disable-option-checking ignore unrecognized
--enable/--with options
1458 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1459 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1460 --disable-darwin Disable Darwin
(Mac OS X
) support.
1461 --disable-selinux Don
't check for SELinux support.
1462 --disable-xsmp Disable XSMP session management
1463 --disable-xsmp-interact Disable XSMP interaction
1464 --enable-mzschemeinterp Include MzScheme interpreter.
1465 --enable-perlinterp Include Perl interpreter.
1466 --enable-pythoninterp Include Python interpreter.
1467 --enable-tclinterp Include Tcl interpreter.
1468 --enable-rubyinterp Include Ruby interpreter.
1469 --enable-cscope Include cscope interface.
1470 --enable-workshop Include Sun Visual Workshop support.
1471 --disable-netbeans Disable NetBeans integration support.
1472 --enable-sniff Include Sniff interface.
1473 --enable-multibyte Include multibyte editing support.
1474 --enable-hangulinput Include Hangul input support.
1475 --enable-xim Include XIM input support.
1476 --enable-fontset Include X fontset output support.
1477 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1478 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1479 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1480 --enable-gnome-check If GTK GUI, check for GNOME default=no
1481 --enable-motif-check If auto-select GUI, check for Motif default=yes
1482 --enable-athena-check If auto-select GUI, check for Athena default=yes
1483 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1484 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1485 --disable-gtktest Do not try to compile and run a test GTK program
1486 --disable-acl Don't check
for ACL support.
1487 --disable-gpm Don
't use gpm (Linux mouse daemon).
1488 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1489 --disable-nls Don
't support NLS (gettext()).
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-mac-arch=ARCH current, intel, ppc or both
1495 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1496 --without-local-dir do not search /usr/local for local libraries.
1497 --with-vim-name=NAME what to call the Vim executable
1498 --with-ex-name=NAME what to call the Ex executable
1499 --with-view-name=NAME what to call the View executable
1500 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1501 --with-modified-by=NAME name of who modified a release version
1502 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1503 --with-compiledby=NAME name to show in :version message
1504 --with-plthome=PLTHOME Use PLTHOME.
1505 --with-python-config-dir=PATH Python's config directory
1506 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1507 --with-ruby-command=RUBY name of the Ruby
command (default
: ruby
)
1508 --with-x use the X Window System
1509 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1510 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1511 --with-gnome-includes=DIR Specify location of GNOME headers
1512 --with-gnome-libs=DIR Specify location of GNOME libs
1513 --with-gnome Specify prefix
for GNOME files
1514 --with-motif-lib=STRING Library
for Motif
1515 --with-tlib=library terminal library to be used
1517 Some influential environment variables
:
1518 CC C compiler
command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1521 nonstandard directory
<lib dir
>
1522 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1523 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1524 you have headers
in a nonstandard directory
<include dir
>
1526 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1528 Use these variables to override the choices made by
`configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1535 if test "$ac_init_help" = "recursive"; then
1536 # If there are subdirs, report their specific --help.
1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538 test -d "$ac_dir" ||
1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1547 # A ".." for each directory in $ac_dir_suffix.
1548 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1549 case $ac_top_builddir_sub in
1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1560 .) # We are building in place.
1562 ac_top_srcdir=$ac_top_builddir_sub
1563 ac_abs_top_srcdir=$ac_pwd ;;
1564 [\\/]* | ?:[\\/]* ) # Absolute name.
1565 ac_srcdir=$srcdir$ac_dir_suffix;
1566 ac_top_srcdir=$srcdir
1567 ac_abs_top_srcdir=$srcdir ;;
1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570 ac_top_srcdir=$ac_top_build_prefix$srcdir
1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575 cd "$ac_dir" || { ac_status=$?; continue; }
1576 # Check for guested configure.
1577 if test -f "$ac_srcdir/configure.gnu"; then
1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580 elif test -f "$ac_srcdir/configure"; then
1582 $SHELL "$ac_srcdir/configure" --help=recursive
1584 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 cd "$ac_pwd" || { ac_status=$?; break; }
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1594 generated by GNU Autoconf 2.63
1596 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1597 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1603 cat >auto/config.log <<_ACEOF
1604 This file contains any messages produced by compilers while
1605 running configure, to aid debugging if configure makes a mistake.
1607 It was created by $as_me, which was
1608 generated by GNU Autoconf 2.63. Invocation command line was
1613 exec 5>>auto/config.log
1620 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1621 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1622 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1623 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1624 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1626 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1627 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1629 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1631 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1633 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1634 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1635 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 $as_echo "PATH: $as_dir"
1660 # Keep a trace of the command line.
1661 # Strip out --no-create and --no-recursion so they do not pile up.
1662 # Strip out --silent because we don't want to record it for future runs.
1663 # Also quote any args containing shell meta-characters.
1664 # Make two passes to allow for proper duplicate-argument suppression.
1668 ac_must_keep_next=false
1674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1676 | -silent | --silent | --silen | --sile | --sil)
1679 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1682 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1684 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1685 if test $ac_must_keep_next = true; then
1686 ac_must_keep_next=false # Got value, back to normal.
1689 *=* | --config-cache | -C | -disable-* | --disable-* \
1690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1692 | -with-* | --with-* | -without-* | --without-* | --x)
1693 case "$ac_configure_args0 " in
1694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697 -* ) ac_must_keep_next=true ;;
1700 ac_configure_args="$ac_configure_args '$ac_arg'"
1705 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1706 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1708 # When interrupted or exit'd, cleanup temporary files, and complete
1709 # config.log. We remove comments because anyway the quotes in there
1710 # would cause problems or look ugly.
1711 # WARNING: Use '\'' to represent an apostrophe within the trap.
1712 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1713 trap 'exit_status=$?
1714 # Save into config.log some information that might help in debugging.
1719 ## ---------------- ##
1720 ## Cache variables. ##
1721 ## ---------------- ##
1724 # The following way of writing the cache mishandles newlines in values,
1726 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1727 eval ac_val=\$$ac_var
1731 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1732 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1735 _ | IFS | as_nl) ;; #(
1736 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1737 *) $as_unset $ac_var ;;
1742 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 $as_echo "$ac_var='\''$ac_val'\''"
1772 if test -n "$ac_subst_files"; then
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1783 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785 $as_echo "$ac_var='\''$ac_val'\''"
1790 if test -s confdefs.h; then
1800 test "$ac_signal" != 0 &&
1801 $as_echo "$as_me: caught signal $ac_signal"
1802 $as_echo "$as_me: exit $exit_status"
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer an explicitly selected file to automatically selected ones.
1847 if test -n "$CONFIG_SITE"; then
1848 ac_site_file1=$CONFIG_SITE
1849 elif test "x$prefix" != xNONE; then
1850 ac_site_file1=$prefix/share/config.site
1851 ac_site_file2=$prefix/etc/config.site
1853 ac_site_file1=$ac_default_prefix/share/config.site
1854 ac_site_file2=$ac_default_prefix/etc/config.site
1856 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1858 test "x$ac_site_file" = xNONE && continue
1859 if test -r "$ac_site_file"; then
1860 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1861 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1862 sed 's/^/| /' "$ac_site_file" >&5
1867 if test -r "$cache_file"; then
1868 # Some versions of bash will fail to source /dev/null (special
1869 # files actually), so we avoid doing that.
1870 if test -f "$cache_file"; then
1871 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1872 $as_echo "$as_me: loading cache $cache_file" >&6;}
1874 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1875 *) . "./$cache_file";;
1879 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1880 $as_echo "$as_me: creating cache $cache_file" >&6;}
1884 # Check that the precious variables saved in the cache have kept the same
1886 ac_cache_corrupted=false
1887 for ac_var in $ac_precious_vars; do
1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1889 eval ac_new_set=\$ac_env_${ac_var}_set
1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1891 eval ac_new_val=\$ac_env_${ac_var}_value
1892 case $ac_old_set,$ac_new_set in
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1895 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1898 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1899 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1903 if test "x$ac_old_val" != "x$ac_new_val"; then
1904 # differences in whitespace do not lead to failure.
1905 ac_old_val_w=`echo x
$ac_old_val`
1906 ac_new_val_w=`echo x
$ac_new_val`
1907 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1910 ac_cache_corrupted=:
1912 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1913 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1914 eval $ac_var=\$ac_old_val
1916 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1917 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1918 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1919 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1922 # Pass precious variables to config.status.
1923 if test "$ac_new_set" = set; then
1925 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1926 *) ac_arg=$ac_var=$ac_new_val ;;
1928 case " $ac_configure_args " in
1929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1930 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1934 if $ac_cache_corrupted; then
1935 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1937 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1938 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1939 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1940 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1941 { (exit 1); exit 1; }; }
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967 ac_config_headers="$ac_config_headers auto
/config.h
:config.h.
in"
1970 cat >>confdefs.h <<\_ACEOF
1974 { $as_echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
1975 $as_echo_n "checking whether
${MAKE-make} sets \$
(MAKE
)...
" >&6; }
1977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1978 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1979 $as_echo_n "(cached
) " >&6
1981 cat >conftest.make <<\_ACEOF
1984 @echo '@@@%%%=$(MAKE)=@@@%%%'
1986 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
1987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1989 eval ac_cv_prog_make_${ac_make}_set=yes;;
1991 eval ac_cv_prog_make_${ac_make}_set=no;;
1995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1996 { $as_echo "$as_me:$LINENO: result
: yes" >&5
1997 $as_echo "yes" >&6; }
2000 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2001 $as_echo "no
" >&6; }
2002 SET_MAKE="MAKE
=${MAKE-make}"
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2013 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2014 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2015 $as_echo_n "checking
for $ac_word...
" >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 $as_echo_n "(cached
) " >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2029 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2030 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2040 if test -n "$CC"; then
2041 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2042 $as_echo "$CC" >&6; }
2044 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2045 $as_echo "no
" >&6; }
2050 if test -z "$ac_cv_prog_CC"; then
2052 # Extract the first word of "gcc
", so it can be a program name with args.
2053 set dummy gcc; ac_word=$2
2054 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2055 $as_echo_n "checking
for $ac_word...
" >&6; }
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 $as_echo_n "(cached
) " >&6
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_ac_ct_CC="gcc
"
2070 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2079 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080 if test -n "$ac_ct_CC"; then
2081 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2082 $as_echo "$ac_ct_CC" >&6; }
2084 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2085 $as_echo "no
" >&6; }
2088 if test "x
$ac_ct_CC" = x; then
2091 case $cross_compiling:$ac_tool_warned in
2093 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2094 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2095 ac_tool_warned=yes ;;
2103 if test -z "$CC"; then
2104 if test -n "$ac_tool_prefix"; then
2105 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}cc; ac_word=$2
2107 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2108 $as_echo_n "checking
for $ac_word...
" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110 $as_echo_n "(cached
) " >&6
2112 if test -n "$CC"; then
2113 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 test -z "$as_dir" && as_dir=.
2120 for ac_exec_ext in '' $ac_executable_extensions; do
2121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2123 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2133 if test -n "$CC"; then
2134 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2135 $as_echo "$CC" >&6; }
2137 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2138 $as_echo "no
" >&6; }
2144 if test -z "$CC"; then
2145 # Extract the first word of "cc
", so it can be a program name with args.
2146 set dummy cc; ac_word=$2
2147 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2148 $as_echo_n "checking
for $ac_word...
" >&6; }
2149 if test "${ac_cv_prog_CC+set}" = set; then
2150 $as_echo_n "(cached
) " >&6
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2164 ac_prog_rejected=yes
2168 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2175 if test $ac_prog_rejected = yes; then
2176 # We found a bogon in the path, so make sure we never use it.
2177 set dummy $ac_cv_prog_CC
2179 if test $# != 0; then
2180 # We chose a different compiler from the bogus one.
2181 # However, it has the same basename, so the bogon will be chosen
2182 # first if we set CC to just the basename; use the full file name.
2184 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2190 if test -n "$CC"; then
2191 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2192 $as_echo "$CC" >&6; }
2194 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2195 $as_echo "no
" >&6; }
2200 if test -z "$CC"; then
2201 if test -n "$ac_tool_prefix"; then
2202 for ac_prog in cl.exe
2204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2206 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2207 $as_echo_n "checking
for $ac_word...
" >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 $as_echo_n "(cached
) " >&6
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2222 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2232 if test -n "$CC"; then
2233 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2234 $as_echo "$CC" >&6; }
2236 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2237 $as_echo "no
" >&6; }
2241 test -n "$CC" && break
2244 if test -z "$CC"; then
2246 for ac_prog in cl.exe
2248 # Extract the first word of "$ac_prog", so it can be a program name with args.
2249 set dummy $ac_prog; ac_word=$2
2250 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2251 $as_echo_n "checking
for $ac_word...
" >&6; }
2252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2253 $as_echo_n "(cached
) " >&6
2255 if test -n "$ac_ct_CC"; then
2256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265 ac_cv_prog_ac_ct_CC="$ac_prog"
2266 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276 if test -n "$ac_ct_CC"; then
2277 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2278 $as_echo "$ac_ct_CC" >&6; }
2280 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2281 $as_echo "no
" >&6; }
2285 test -n "$ac_ct_CC" && break
2288 if test "x
$ac_ct_CC" = x; then
2291 case $cross_compiling:$ac_tool_warned in
2293 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2294 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2295 ac_tool_warned=yes ;;
2304 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2306 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details.
" >&5
2308 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2309 See \
`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }; }
2312 # Provide some information about the compiler.
2313 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2316 { (ac_try="$ac_compiler --version >&5"
2318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2319 *) ac_try_echo
=$ac_try;;
2321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2322 $as_echo "$ac_try_echo") >&5
2323 (eval "$ac_compiler --version >&5") 2>&5
2325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (ac_try
="$ac_compiler -v >&5"
2329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2333 $as_echo "$ac_try_echo") >&5
2334 (eval "$ac_compiler -v >&5") 2>&5
2336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338 { (ac_try="$ac_compiler -V >&5"
2340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2341 *) ac_try_echo
=$ac_try;;
2343 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345 (eval "$ac_compiler -V >&5") 2>&5
2347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }
2350 cat >conftest.
$ac_ext <<_ACEOF
2353 cat confdefs.h
>>conftest.
$ac_ext
2354 cat >>conftest.
$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 ac_clean_files_save
=$ac_clean_files
2366 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2367 # Try to create an executable without -o first, disregard a.out.
2368 # It will help us diagnose broken compilers, and finding out an intuition
2370 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2371 $as_echo_n "checking for C compiler default output file name... " >&6; }
2372 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 # The possible output files:
2375 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2378 for ac_file
in $ac_files
2381 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2382 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2387 if { (ac_try
="$ac_link_default"
2389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394 (eval "$ac_link_default") 2>&5
2396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; then
2398 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2399 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2400 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2401 # so that the user can short-circuit this test for compilers unknown to
2403 for ac_file in $ac_files ''
2405 test -f "$ac_file" || continue
2407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2410 # We found the default executable, but exeext='' is most
2414 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2416 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2418 # We set ac_cv_exeext here because the later test for it is not
2419 # safe: cross compilers may not add the suffix if given an `-o'
2420 # argument, so we may need to know it at that point already.
2421 # Even if this section looks crufty: it has the advantage of
2428 test "$ac_cv_exeext" = no && ac_cv_exeext=
2434 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2435 $as_echo "$ac_file" >&6; }
2436 if test -z "$ac_file"; then
2437 $as_echo "$as_me: failed program was:" >&5
2438 sed 's
/^
/|
/' conftest.$ac_ext >&5
2440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2442 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2443 See \`config.log
' for more details." >&5
2444 $as_echo "$as_me: error: C compiler cannot create executables
2445 See \`config.log' for more details.
" >&2;}
2446 { (exit 77); exit 77; }; }; }
2449 ac_exeext=$ac_cv_exeext
2451 # Check that the compiler produces executables we can run. If not, either
2452 # the compiler is broken, or we cross compile.
2453 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2454 $as_echo_n "checking whether the C compiler works...
" >&6; }
2455 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2456 # If not cross compiling, check that we can run a simple program.
2457 if test "$cross_compiling" != yes; then
2458 if { ac_try='./$ac_file'
2459 { (case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2464 $as_echo "$ac_try_echo") >&5
2465 (eval "$ac_try") 2>&5
2467 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2468 (exit $ac_status); }; }; then
2471 if test "$cross_compiling" = maybe; then
2474 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \
`config.log' for more details." >&5
2479 $as_echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details.
" >&2;}
2482 { (exit 1); exit 1; }; }; }
2486 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2487 $as_echo "yes" >&6; }
2489 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check that the compiler produces executables we can run. If not, either
2492 # the compiler is broken, or we cross compile.
2493 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2494 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2495 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2496 $as_echo "$cross_compiling" >&6; }
2498 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2499 $as_echo_n "checking
for suffix of executables...
" >&6; }
2500 if { (ac_try="$ac_link"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2506 $as_echo "$ac_try_echo") >&5
2507 (eval "$ac_link") 2>&5
2509 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2510 (exit $ac_status); }; then
2511 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2512 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2513 # work properly (i.e., refer to `conftest.exe'), while it won't with
2515 for ac_file in conftest.exe conftest conftest.*; do
2516 test -f "$ac_file" || continue
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details.
" >&5
2529 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2530 See \
`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }; }
2534 rm -f conftest$ac_cv_exeext
2535 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 $as_echo "$ac_cv_exeext" >&6; }
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2541 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 $as_echo_n "checking for suffix of object files... " >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2565 *) ac_try_echo
=$ac_try;;
2567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2568 $as_echo "$ac_try_echo") >&5
2569 (eval "$ac_compile") 2>&5
2571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; then
2573 for ac_file
in conftest.o conftest.obj conftest.
*; do
2574 test -f "$ac_file" ||
continue;
2576 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2577 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2582 $as_echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2585 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&5
2589 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2590 See \`config.log' for more details." >&2;}
2591 { (exit 1); exit 1; }; }; }
2594 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2596 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2597 $as_echo "$ac_cv_objext" >&6; }
2598 OBJEXT
=$ac_cv_objext
2600 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2605 cat >conftest.
$ac_ext <<_ACEOF
2608 cat confdefs.h
>>conftest.
$ac_ext
2609 cat >>conftest.
$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2623 rm -f conftest.
$ac_objext
2624 if { (ac_try
="$ac_compile"
2626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2630 $as_echo "$ac_try_echo") >&5
2631 (eval "$ac_compile") 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } && {
2638 test -z "$ac_c_werror_flag" ||
2639 test ! -s conftest.err
2640 } && test -s conftest.$ac_objext; then
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2653 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2654 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2655 if test $ac_compiler_gnu = yes; then
2660 ac_test_CFLAGS=${CFLAGS+set}
2661 ac_save_CFLAGS=$CFLAGS
2662 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2663 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2664 if test "${ac_cv_prog_cc_g+set}" = set; then
2665 $as_echo_n "(cached) " >&6
2667 ac_save_c_werror_flag=$ac_c_werror_flag
2668 ac_c_werror_flag=yes
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2686 rm -f conftest.$ac_objext
2687 if { (ac_try="$ac_compile"
2689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2690 *) ac_try_echo
=$ac_try;;
2692 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2693 $as_echo "$ac_try_echo") >&5
2694 (eval "$ac_compile") 2>conftest.er1
2696 grep -v '^ *+' conftest.er1
>conftest.err
2698 cat conftest.err
>&5
2699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } && {
2701 test -z "$ac_c_werror_flag" ||
2702 test ! -s conftest.err
2703 } && test -s conftest.
$ac_objext; then
2706 $as_echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.
$ac_ext >&5
2710 cat >conftest.
$ac_ext <<_ACEOF
2713 cat confdefs.h
>>conftest.
$ac_ext
2714 cat >>conftest.
$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.
$ac_objext
2726 if { (ac_try
="$ac_compile"
2728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732 $as_echo "$ac_try_echo") >&5
2733 (eval "$ac_compile") 2>conftest.er1
2735 grep -v '^ *+' conftest.er1 >conftest.err
2737 cat conftest.err >&5
2738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } && {
2740 test -z "$ac_c_werror_flag" ||
2741 test ! -s conftest.err
2742 } && test -s conftest.$ac_objext; then
2745 $as_echo "$as_me: failed program was:" >&5
2746 sed 's/^/| /' conftest.$ac_ext >&5
2748 ac_c_werror_flag=$ac_save_c_werror_flag
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (ac_try="$ac_compile"
2768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2769 *) ac_try_echo
=$ac_try;;
2771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2772 $as_echo "$ac_try_echo") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2775 grep -v '^ *+' conftest.er1
>conftest.err
2777 cat conftest.err
>&5
2778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.
$ac_objext; then
2785 $as_echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.
$ac_ext >&5
2791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2798 ac_c_werror_flag
=$ac_save_c_werror_flag
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2801 $as_echo "$ac_cv_prog_cc_g" >&6; }
2802 if test "$ac_test_CFLAGS" = set; then
2803 CFLAGS
=$ac_save_CFLAGS
2804 elif test $ac_cv_prog_cc_g = yes; then
2805 if test "$GCC" = yes; then
2811 if test "$GCC" = yes; then
2817 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2819 if test "${ac_cv_prog_cc_c89+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 ac_cv_prog_cc_c89
=no
2824 cat >conftest.
$ac_ext <<_ACEOF
2827 cat confdefs.h
>>conftest.
$ac_ext
2828 cat >>conftest.
$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2832 #include <sys/types.h>
2833 #include <sys/stat.h>
2834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2835 struct buf { int x; };
2836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2837 static char *e (p, i)
2843 static char *f (char * (*g) (char **, int), char **p, ...)
2848 s = g (p, va_arg (v,int));
2853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2854 function prototypes and stuff, but not '\xHH' hex character constants.
2855 These don't provoke an error unfortunately, instead are silently treated
2856 as 'x'. The following induces an error, until -std is added to get
2857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2858 array size at least. It's necessary to write '\x00'==0 to get something
2859 that's true only with -std. */
2860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2863 inside strings and character constants. */
2865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2867 int test (int i, double x);
2868 struct s1 {int (*f) (int a);};
2869 struct s2 {int (*f) (double a);};
2870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2881 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
2882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2884 CC
="$ac_save_CC $ac_arg"
2885 rm -f conftest.
$ac_objext
2886 if { (ac_try
="$ac_compile"
2888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2895 grep -v '^ *+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cc_c89=$ac_arg
2905 $as_echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2911 rm -f core conftest.err conftest.$ac_objext
2912 test "x$ac_cv_prog_cc_c89" != "xno" && break
2914 rm -f conftest.$ac_ext
2919 case "x$ac_cv_prog_cc_c89" in
2921 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2922 $as_echo "none needed" >&6; } ;;
2924 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2925 $as_echo "unsupported" >&6; } ;;
2927 CC="$CC $ac_cv_prog_cc_c89"
2928 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2929 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2944 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2945 # On Suns, sometimes $CPP names a directory.
2946 if test -n "$CPP" && test -d "$CPP"; then
2949 if test -z "$CPP"; then
2950 if test "${ac_cv_prog_CPP+set}" = set; then
2951 $as_echo_n "(cached) " >&6
2953 # Double quotes because CPP needs to be expanded
2954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2957 for ac_c_preproc_warn_flag in '' yes
2959 # Use a header file that comes with gcc, so configuring glibc
2960 # with a fresh cross-compiler works.
2961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962 # <limits.h> exists even on freestanding compilers.
2963 # On the NeXT, cc -E runs the code through the compiler's parser,
2964 # not just through cpp. "Syntax error" is here to catch this case.
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2972 # include <limits.h>
2974 # include <assert.h>
2978 if { (ac_try="$ac_cpp conftest.$ac_ext"
2980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2981 *) ac_try_echo
=$ac_try;;
2983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2984 $as_echo "$ac_try_echo") >&5
2985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2987 grep -v '^ *+' conftest.er1
>conftest.err
2989 cat conftest.err
>&5
2990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev
/null
&& {
2992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2993 test ! -s conftest.err
2997 $as_echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.
$ac_ext >&5
3000 # Broken: fails on valid input.
3004 rm -f conftest.err conftest.
$ac_ext
3006 # OK, works on sane cases. Now check whether nonexistent headers
3007 # can be detected and how.
3008 cat >conftest.
$ac_ext <<_ACEOF
3011 cat confdefs.h
>>conftest.
$ac_ext
3012 cat >>conftest.
$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3014 #include <ac_nonexistent.h>
3016 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022 $as_echo "$ac_try_echo") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3033 # Broken: success on invalid input.
3036 $as_echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3044 rm -f conftest.err conftest.$ac_ext
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.
$ac_ext
3049 if $ac_preproc_ok; then
3061 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3062 $as_echo "$CPP" >&6; }
3064 for ac_c_preproc_warn_flag
in '' yes
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.
$ac_ext <<_ACEOF
3075 cat confdefs.h
>>conftest.
$ac_ext
3076 cat >>conftest.
$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3079 # include <limits.h>
3081 # include <assert.h>
3085 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null && {
3099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Broken: fails on valid input.
3111 rm -f conftest.err conftest.$ac_ext
3113 # OK, works on sane cases. Now check whether nonexistent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3121 #include <ac_nonexistent.h>
3123 if { (ac_try="$ac_cpp conftest.$ac_ext"
3125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3126 *) ac_try_echo
=$ac_try;;
3128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3129 $as_echo "$ac_try_echo") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1
>conftest.err
3134 cat conftest.err
>&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev
/null
&& {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3140 # Broken: success on invalid input.
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.
$ac_ext >&5
3146 # Passes both tests.
3151 rm -f conftest.err conftest.
$ac_ext
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.
$ac_ext
3156 if $ac_preproc_ok; then
3159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&5
3163 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3164 See \`config.log' for more details." >&2;}
3165 { (exit 1); exit 1; }; }; }
3169 ac_cpp
='$CPP $CPPFLAGS'
3170 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3175 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3177 if test "${ac_cv_path_GREP+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3180 if test -z "$GREP"; then
3181 ac_path_GREP_found
=false
3182 # Loop through the user's path and test for each of PROGNAME-LIST
3183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3184 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3187 test -z "$as_dir" && as_dir
=.
3188 for ac_prog
in grep ggrep
; do
3189 for ac_exec_ext
in '' $ac_executable_extensions; do
3190 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3191 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3192 # Check for GNU ac_path_GREP and select it if it is found.
3193 # Check for GNU $ac_path_GREP
3194 case `"$ac_path_GREP" --version 2>&1` in
3196 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3199 $as_echo_n 0123456789 >"conftest.in"
3202 cat "conftest.in" "conftest.in" >"conftest.tmp"
3203 mv "conftest.tmp" "conftest.in"
3204 cp "conftest.in" "conftest.nl"
3205 $as_echo 'GREP' >> "conftest.nl"
3206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3207 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3208 ac_count
=`expr $ac_count + 1`
3209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3210 # Best one so far, save it but keep looking for a better one
3211 ac_cv_path_GREP
="$ac_path_GREP"
3212 ac_path_GREP_max
=$ac_count
3214 # 10*(2^10) chars as input seems more than enough
3215 test $ac_count -gt 10 && break
3217 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3220 $ac_path_GREP_found && break 3
3225 if test -z "$ac_cv_path_GREP"; then
3226 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3227 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3228 { (exit 1); exit 1; }; }
3231 ac_cv_path_GREP
=$GREP
3235 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3236 $as_echo "$ac_cv_path_GREP" >&6; }
3237 GREP
="$ac_cv_path_GREP"
3240 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3241 $as_echo_n "checking for egrep... " >&6; }
3242 if test "${ac_cv_path_EGREP+set}" = set; then
3243 $as_echo_n "(cached) " >&6
3245 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3246 then ac_cv_path_EGREP
="$GREP -E"
3248 if test -z "$EGREP"; then
3249 ac_path_EGREP_found
=false
3250 # Loop through the user's path and test for each of PROGNAME-LIST
3251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3255 test -z "$as_dir" && as_dir
=.
3256 for ac_prog
in egrep; do
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3259 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3260 # Check for GNU ac_path_EGREP and select it if it is found.
3261 # Check for GNU $ac_path_EGREP
3262 case `"$ac_path_EGREP" --version 2>&1` in
3264 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3267 $as_echo_n 0123456789 >"conftest.in"
3270 cat "conftest.in" "conftest.in" >"conftest.tmp"
3271 mv "conftest.tmp" "conftest.in"
3272 cp "conftest.in" "conftest.nl"
3273 $as_echo 'EGREP' >> "conftest.nl"
3274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3275 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3276 ac_count
=`expr $ac_count + 1`
3277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3278 # Best one so far, save it but keep looking for a better one
3279 ac_cv_path_EGREP
="$ac_path_EGREP"
3280 ac_path_EGREP_max
=$ac_count
3282 # 10*(2^10) chars as input seems more than enough
3283 test $ac_count -gt 10 && break
3285 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3288 $ac_path_EGREP_found && break 3
3293 if test -z "$ac_cv_path_EGREP"; then
3294 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3295 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3296 { (exit 1); exit 1; }; }
3299 ac_cv_path_EGREP
=$EGREP
3304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3305 $as_echo "$ac_cv_path_EGREP" >&6; }
3306 EGREP
="$ac_cv_path_EGREP"
3309 cat >conftest.
$ac_ext <<_ACEOF
3312 cat confdefs.h
>>conftest.
$ac_ext
3313 cat >>conftest.
$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3318 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3319 $as_echo_n "checking for library containing strerror... " >&6; }
3320 if test "${ac_cv_search_strerror+set}" = set; then
3321 $as_echo_n "(cached) " >&6
3323 ac_func_search_save_LIBS
=$LIBS
3324 cat >conftest.
$ac_ext <<_ACEOF
3327 cat confdefs.h
>>conftest.
$ac_ext
3328 cat >>conftest.
$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 /* Override any GCC internal prototype to avoid an error.
3332 Use char because int might match the return type of a GCC
3333 builtin and then its argument prototype would still apply. */
3346 for ac_lib
in '' cposix
; do
3347 if test -z "$ac_lib"; then
3348 ac_res
="none required"
3351 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3353 rm -f conftest.
$ac_objext conftest
$ac_exeext
3354 if { (ac_try
="$ac_link"
3356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_link") 2>conftest.er1
3363 grep -v '^ *+' conftest.er1 >conftest.err
3365 cat conftest.err >&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } && {
3368 test -z "$ac_c_werror_flag" ||
3369 test ! -s conftest.err
3370 } && test -s conftest$ac_exeext && {
3371 test "$cross_compiling" = yes ||
3372 $as_test_x conftest$ac_exeext
3374 ac_cv_search_strerror=$ac_res
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -rf conftest.dSYM
3383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3385 if test "${ac_cv_search_strerror+set}" = set; then
3389 if test "${ac_cv_search_strerror+set}" = set; then
3392 ac_cv_search_strerror=no
3395 LIBS=$ac_func_search_save_LIBS
3397 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3398 $as_echo "$ac_cv_search_strerror" >&6; }
3399 ac_res=$ac_cv_search_strerror
3400 if test "$ac_res" != no; then
3401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3404 for ac_prog in gawk mawk nawk awk
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_AWK+set}" = set; then
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$AWK"; then
3414 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_AWK="$ac_prog"
3424 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test -n "$AWK"; then
3435 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3436 $as_echo "$AWK" >&6; }
3438 { $as_echo "$as_me:$LINENO: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$AWK" && break
3446 # Extract the first word of "strip", so it can be a program name with args.
3447 set dummy strip; ac_word=$2
3448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if test "${ac_cv_prog_STRIP+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$STRIP"; then
3454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_STRIP="strip"
3464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3474 STRIP=$ac_cv_prog_STRIP
3475 if test -n "$STRIP"; then
3476 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3477 $as_echo "$STRIP" >&6; }
3479 { $as_echo "$as_me:$LINENO: result: no" >&5
3480 $as_echo "no" >&6; }
3487 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3488 $as_echo_n "checking for ANSI C header files... " >&6; }
3489 if test "${ac_cv_header_stdc+set}" = set; then
3490 $as_echo_n "(cached) " >&6
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3511 rm -f conftest.$ac_objext
3512 if { (ac_try="$ac_compile"
3514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3515 *) ac_try_echo
=$ac_try;;
3517 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3518 $as_echo "$ac_try_echo") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3521 grep -v '^ *+' conftest.er1
>conftest.err
3523 cat conftest.err
>&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } && {
3526 test -z "$ac_c_werror_flag" ||
3527 test ! -s conftest.err
3528 } && test -s conftest.
$ac_objext; then
3529 ac_cv_header_stdc
=yes
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.
$ac_ext >&5
3534 ac_cv_header_stdc
=no
3537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3539 if test $ac_cv_header_stdc = yes; then
3540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3541 cat >conftest.
$ac_ext <<_ACEOF
3544 cat confdefs.h
>>conftest.
$ac_ext
3545 cat >>conftest.
$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 $EGREP "memchr" >/dev
/null
2>&1; then
3554 ac_cv_header_stdc
=no
3560 if test $ac_cv_header_stdc = yes; then
3561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3562 cat >conftest.
$ac_ext <<_ACEOF
3565 cat confdefs.h
>>conftest.
$ac_ext
3566 cat >>conftest.
$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572 $EGREP "free" >/dev
/null
2>&1; then
3575 ac_cv_header_stdc
=no
3581 if test $ac_cv_header_stdc = yes; then
3582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3583 if test "$cross_compiling" = yes; then
3586 cat >conftest.
$ac_ext <<_ACEOF
3589 cat confdefs.h
>>conftest.
$ac_ext
3590 cat >>conftest.
$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3594 #if ((' ' & 0x0FF) == 0x020)
3595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3598 # define ISLOWER(c) \
3599 (('a' <= (c) && (c) <= 'i') \
3600 || ('j' <= (c) && (c) <= 'r') \
3601 || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3610 for (i = 0; i < 256; i++)
3611 if (XOR (islower (i), ISLOWER (i))
3612 || toupper (i) != TOUPPER (i))
3617 rm -f conftest
$ac_exeext
3618 if { (ac_try
="$ac_link"
3620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_link") 2>&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3629 { (case "(($ac_try" in
3630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3631 *) ac_try_echo
=$ac_try;;
3633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3634 $as_echo "$ac_try_echo") >&5
3635 (eval "$ac_try") 2>&5
3637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3641 $as_echo "$as_me: program exited with status $ac_status" >&5
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3646 ac_cv_header_stdc
=no
3648 rm -rf conftest.dSYM
3649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3656 $as_echo "$ac_cv_header_stdc" >&6; }
3657 if test $ac_cv_header_stdc = yes; then
3659 cat >>confdefs.h
<<\_ACEOF
3660 #define STDC_HEADERS 1
3665 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3666 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3667 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3670 cat >conftest.
$ac_ext <<_ACEOF
3673 cat confdefs.h
>>conftest.
$ac_ext
3674 cat >>conftest.
$ac_ext <<_ACEOF
3675 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 #include <sys/wait.h>
3679 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3682 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3690 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3695 rm -f conftest.
$ac_objext
3696 if { (ac_try
="$ac_compile"
3698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3713 ac_cv_header_sys_wait_h=yes
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 ac_cv_header_sys_wait_h=no
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3724 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3725 if test $ac_cv_header_sys_wait_h = yes; then
3727 cat >>confdefs.h <<\_ACEOF
3728 #define HAVE_SYS_WAIT_H 1
3734 if test -z "$CFLAGS"; then
3736 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3738 if test "$GCC" = yes; then
3739 gccversion=`"$CC" -dumpversion`
3740 if test "x$gccversion" = "x"; then
3741 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3743 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3744 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3745 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3747 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3748 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3749 CFLAGS="$CFLAGS -fno-strength-reduce"
3754 if test "$cross_compiling" = yes; then
3755 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3756 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3759 test "$GCC" = yes && CPP_MM=M;
3761 if test -f ./toolcheck; then
3762 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3763 $as_echo "$as_me: checking for buggy tools..." >&6;}
3767 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3769 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3770 $as_echo_n "checking for BeOS... " >&6; }
3772 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3773 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3774 $as_echo "yes" >&6; };;
3775 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3776 $as_echo "no" >&6; };;
3779 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3780 $as_echo_n "checking for QNX... " >&6; }
3782 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3783 test -z "$with_x" && with_x=no
3784 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3785 $as_echo "yes" >&6; };;
3786 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3787 $as_echo "no" >&6; };;
3790 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3791 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3792 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3793 { $as_echo "$as_me:$LINENO: result: yes" >&5
3794 $as_echo "yes" >&6; }
3796 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3797 $as_echo_n "checking --disable-darwin argument... " >&6; }
3798 # Check whether --enable-darwin was given.
3799 if test "${enable_darwin+set}" = set; then
3800 enableval=$enable_darwin;
3805 if test "$enable_darwin" = "yes"; then
3806 { $as_echo "$as_me:$LINENO: result: no" >&5
3807 $as_echo "no" >&6; }
3808 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3809 $as_echo_n "checking if Darwin files are there... " >&6; }
3810 if test -f os_macosx.c; then
3811 { $as_echo "$as_me:$LINENO: result: yes" >&5
3812 $as_echo "yes" >&6; }
3814 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3815 $as_echo "no, Darwin support disabled" >&6; }
3819 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3820 $as_echo "yes, Darwin support excluded" >&6; }
3823 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3824 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3826 # Check whether --with-mac-arch was given.
3827 if test "${with_mac_arch+set}" = set; then
3828 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3829 $as_echo "$MACARCH" >&6; }
3831 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3832 $as_echo "defaulting to $MACARCH" >&6; }
3836 if test "x$MACARCH" = "xboth"; then
3837 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3838 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3839 save_cppflags="$CPPFLAGS"
3840 save_cflags="$CFLAGS"
3841 save_ldflags="$LDFLAGS"
3842 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3858 rm -f conftest.$ac_objext conftest$ac_exeext
3859 if { (ac_try="$ac_link"
3861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3862 *) ac_try_echo
=$ac_try;;
3864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3865 $as_echo "$ac_try_echo") >&5
3866 (eval "$ac_link") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1
>conftest.err
3870 cat conftest.err
>&5
3871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest
$ac_exeext && {
3876 test "$cross_compiling" = yes ||
3877 $as_test_x conftest
$ac_exeext
3879 { $as_echo "$as_me:$LINENO: result: found" >&5
3880 $as_echo "found" >&6; }
3882 $as_echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.
$ac_ext >&5
3885 { $as_echo "$as_me:$LINENO: result: not found" >&5
3886 $as_echo "not found" >&6; }
3887 CFLAGS
="$save_cflags"
3888 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3889 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3890 CPPFLAGS
="$CPPFLAGS -arch i386"
3891 LDFLAGS
="$save_ldflags -arch i386"
3892 cat >conftest.
$ac_ext <<_ACEOF
3895 cat confdefs.h
>>conftest.
$ac_ext
3896 cat >>conftest.
$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3907 rm -f conftest.
$ac_objext conftest
$ac_exeext
3908 if { (ac_try
="$ac_link"
3910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915 (eval "$ac_link") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest$ac_exeext && {
3925 test "$cross_compiling" = yes ||
3926 $as_test_x conftest$ac_exeext
3928 { $as_echo "$as_me:$LINENO: result: yes" >&5
3929 $as_echo "yes" >&6; }; MACARCH="intel"
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3934 { $as_echo "$as_me:$LINENO: result: no" >&5
3935 $as_echo "no" >&6; }
3937 CPPFLAGS="$save_cppflags -arch ppc"
3938 LDFLAGS="$save_ldflags -arch ppc"
3941 rm -rf conftest.dSYM
3942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3943 conftest$ac_exeext conftest.$ac_ext
3946 rm -rf conftest.dSYM
3947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3948 conftest$ac_exeext conftest.$ac_ext
3949 elif test "x$MACARCH" = "xintel"; then
3950 CPPFLAGS="$CPPFLAGS -arch intel"
3951 LDFLAGS="$LDFLAGS -arch intel"
3952 elif test "x$MACARCH" = "xppc"; then
3953 CPPFLAGS="$CPPFLAGS -arch ppc"
3954 LDFLAGS="$LDFLAGS -arch ppc"
3957 if test "$enable_darwin" = "yes"; then
3959 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3960 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3961 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3962 if test "x$MACARCH" = "xboth"; then
3963 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3965 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3979 inttypes.h stdint.h unistd.h
3981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3983 $as_echo_n "checking for $ac_header... " >&6; }
3984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3985 $as_echo_n "(cached) " >&6
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 $ac_includes_default
3995 #include <$ac_header>
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
4000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4001 *) ac_try_echo
=$ac_try;;
4003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4004 $as_echo "$ac_try_echo") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4007 grep -v '^ *+' conftest.er1
>conftest.err
4009 cat conftest.err
>&5
4010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } && {
4012 test -z "$ac_c_werror_flag" ||
4013 test ! -s conftest.err
4014 } && test -s conftest.
$ac_objext; then
4015 eval "$as_ac_Header=yes"
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.
$ac_ext >&5
4020 eval "$as_ac_Header=no"
4023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4025 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4026 $as_echo "$as_val"'`
4027 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4028 $as_echo "$ac_res" >&6; }
4029 as_val
=`eval 'as_val=${'$as_ac_Header'}
4030 $as_echo "$as_val"'`
4031 if test "x$as_val" = x
""yes; then
4032 cat >>confdefs.h
<<_ACEOF
4033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4042 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4043 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4044 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4047 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4048 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4050 # Is the header compilable?
4051 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4052 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4053 cat >conftest.
$ac_ext <<_ACEOF
4056 cat confdefs.h
>>conftest.
$ac_ext
4057 cat >>conftest.
$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 $ac_includes_default
4060 #include <Carbon/Carbon.h>
4062 rm -f conftest.
$ac_objext
4063 if { (ac_try
="$ac_compile"
4065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4069 $as_echo "$ac_try_echo") >&5
4070 (eval "$ac_compile") 2>conftest.er1
4072 grep -v '^ *+' conftest.er1 >conftest.err
4074 cat conftest.err >&5
4075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } && {
4077 test -z "$ac_c_werror_flag" ||
4078 test ! -s conftest.err
4079 } && test -s conftest.$ac_objext; then
4080 ac_header_compiler=yes
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 ac_header_compiler=no
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4090 $as_echo "$ac_header_compiler" >&6; }
4092 # Is the header present?
4093 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4094 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 #include <Carbon/Carbon.h>
4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4106 *) ac_try_echo
=$ac_try;;
4108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1
>conftest.err
4114 cat conftest.err
>&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } >/dev
/null
&& {
4117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4120 ac_header_preproc
=yes
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.
$ac_ext >&5
4125 ac_header_preproc
=no
4128 rm -f conftest.err conftest.
$ac_ext
4129 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4130 $as_echo "$ac_header_preproc" >&6; }
4132 # So? What about this header?
4133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4139 ac_header_preproc
=yes
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4150 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4151 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4152 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4153 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4157 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4158 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4159 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4160 $as_echo_n "(cached) " >&6
4162 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4165 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4168 if test "x$ac_cv_header_Carbon_Carbon_h" = x
""yes; then
4173 if test "x$CARBON" = "xyes"; then
4174 if test -z "$with_x" -a "X$enable_gui" != Xmotif
-a "X$enable_gui" != Xathena
-a "X$enable_gui" != Xgtk
-a "X$enable_gui" != Xgtk2
; then
4180 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4181 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4185 { $as_echo "$as_me:$LINENO: result: no" >&5
4186 $as_echo "no" >&6; }
4192 if test "$cross_compiling" = no
; then
4193 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4194 $as_echo_n "checking --with-local-dir argument... " >&6; }
4195 have_local_include
=''
4198 # Check whether --with-local-dir was given.
4199 if test "${with_local_dir+set}" = set; then
4200 withval
=$with_local_dir;
4201 local_dir
="$withval"
4205 # avoid adding local dir to LDFLAGS and CPPFLAGS
4209 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4210 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4211 { (exit 1); exit 1; }; } ;;
4213 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4214 $as_echo "$local_dir" >&6; }
4218 local_dir
=/usr
/local
4219 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4220 $as_echo "Defaulting to $local_dir" >&6; }
4224 if test "$GCC" = yes -a "$local_dir" != no
; then
4225 echo 'void f(){}' > conftest.c
4226 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4227 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4228 rm -f conftest.c conftest.o
4230 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4231 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4232 if test "$tt" = "$LDFLAGS"; then
4233 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4236 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4237 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4238 if test "$tt" = "$CPPFLAGS"; then
4239 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4244 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4245 $as_echo_n "checking --with-vim-name argument... " >&6; }
4247 # Check whether --with-vim-name was given.
4248 if test "${with_vim_name+set}" = set; then
4249 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4250 $as_echo "$VIMNAME" >&6; }
4252 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4253 $as_echo "Defaulting to $VIMNAME" >&6; }
4257 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4258 $as_echo_n "checking --with-ex-name argument... " >&6; }
4260 # Check whether --with-ex-name was given.
4261 if test "${with_ex_name+set}" = set; then
4262 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4263 $as_echo "$EXNAME" >&6; }
4265 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4266 $as_echo "Defaulting to ex" >&6; }
4270 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4271 $as_echo_n "checking --with-view-name argument... " >&6; }
4273 # Check whether --with-view-name was given.
4274 if test "${with_view_name+set}" = set; then
4275 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4276 $as_echo "$VIEWNAME" >&6; }
4278 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4279 $as_echo "Defaulting to view" >&6; }
4284 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4285 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4287 # Check whether --with-global-runtime was given.
4288 if test "${with_global_runtime+set}" = set; then
4289 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4290 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4291 #define RUNTIME_GLOBAL "$withval"
4295 { $as_echo "$as_me:$LINENO: result: no" >&5
4296 $as_echo "no" >&6; }
4300 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4301 $as_echo_n "checking --with-modified-by argument... " >&6; }
4303 # Check whether --with-modified-by was given.
4304 if test "${with_modified_by+set}" = set; then
4305 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4306 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4307 #define MODIFIED_BY "$withval"
4311 { $as_echo "$as_me:$LINENO: result: no" >&5
4312 $as_echo "no" >&6; }
4316 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4317 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4318 cat >conftest.
$ac_ext <<_ACEOF
4321 cat confdefs.h
>>conftest.
$ac_ext
4322 cat >>conftest.
$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4328 /* TryCompile function for CharSet.
4329 Treat any failure as ASCII for compatibility with existing art.
4330 Use compile-time rather than run-time tests for cross-compiler
4333 make an error "Character set is not EBCDIC"
4339 rm -f conftest.
$ac_objext
4340 if { (ac_try
="$ac_compile"
4342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4346 $as_echo "$ac_try_echo") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.$ac_objext; then
4357 # TryCompile action if true
4360 $as_echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 # TryCompile action if false
4367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368 # end of TryCompile ])
4369 # end of CacheVal CvEbcdic
4370 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4371 $as_echo "$cf_cv_ebcdic" >&6; }
4372 case "$cf_cv_ebcdic" in #(vi
4373 yes) cat >>confdefs.h <<\_ACEOF
4379 *) line_break='"\\012"';;
4383 if test "$cf_cv_ebcdic" = "yes"; then
4384 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4385 $as_echo_n "checking for OS/390 Unix... " >&6; }
4387 OS/390) OS390Unix="yes";
4388 if test "$CC" = "cc"; then
4392 if test "$CC" = "c89"; then
4399 if test "$ccm" != "1"; then
4401 echo "------------------------------------------"
4402 echo " On OS/390 Unix, the environment variable"
4403 echo " __CC_${ccn}MODE must be set to \"1\"!"
4405 echo " export _CC_${ccn}MODE=1"
4406 echo " and then call configure again."
4407 echo "------------------------------------------"
4410 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4411 { $as_echo "$as_me:$LINENO: result: yes" >&5
4412 $as_echo "yes" >&6; }
4415 { $as_echo "$as_me:$LINENO: result: no" >&5
4416 $as_echo "no" >&6; }
4421 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4422 $as_echo_n "checking --disable-selinux argument... " >&6; }
4423 # Check whether --enable-selinux was given.
4424 if test "${enable_selinux+set}" = set; then
4425 enableval=$enable_selinux;
4427 enable_selinux="yes"
4430 if test "$enable_selinux" = "yes"; then
4431 { $as_echo "$as_me:$LINENO: result: no" >&5
4432 $as_echo "no" >&6; }
4433 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4434 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4435 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4438 ac_check_lib_save_LIBS=$LIBS
4439 LIBS="-lselinux $LIBS"
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 /* Override any GCC internal prototype to avoid an error.
4448 Use char because int might match the return type of a GCC
4449 builtin and then its argument prototype would still apply. */
4453 char is_selinux_enabled ();
4457 return is_selinux_enabled ();
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (ac_try="$ac_link"
4465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4466 *) ac_try_echo
=$ac_try;;
4468 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4469 $as_echo "$ac_try_echo") >&5
4470 (eval "$ac_link") 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && {
4477 test -z "$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 } && test -s conftest
$ac_exeext && {
4480 test "$cross_compiling" = yes ||
4481 $as_test_x conftest
$ac_exeext
4483 ac_cv_lib_selinux_is_selinux_enabled
=yes
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 ac_cv_lib_selinux_is_selinux_enabled
=no
4491 rm -rf conftest.dSYM
4492 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4493 conftest
$ac_exeext conftest.
$ac_ext
4494 LIBS
=$ac_check_lib_save_LIBS
4496 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4497 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4498 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
4499 LIBS
="$LIBS -lselinux"
4500 cat >>confdefs.h
<<\_ACEOF
4501 #define HAVE_SELINUX 1
4507 { $as_echo "$as_me:$LINENO: result: yes" >&5
4508 $as_echo "yes" >&6; }
4512 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4513 $as_echo_n "checking --with-features argument... " >&6; }
4515 # Check whether --with-features was given.
4516 if test "${with_features+set}" = set; then
4517 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4518 $as_echo "$features" >&6; }
4520 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4521 $as_echo "Defaulting to normal" >&6; }
4528 tiny
) cat >>confdefs.h
<<\_ACEOF
4532 small
) cat >>confdefs.h
<<\_ACEOF
4533 #define FEAT_SMALL 1
4536 normal
) cat >>confdefs.h
<<\_ACEOF
4537 #define FEAT_NORMAL 1
4539 dovimdiff
="installvimdiff";
4540 dogvimdiff
="installgvimdiff" ;;
4541 big
) cat >>confdefs.h
<<\_ACEOF
4544 dovimdiff
="installvimdiff";
4545 dogvimdiff
="installgvimdiff" ;;
4546 huge
) cat >>confdefs.h
<<\_ACEOF
4549 dovimdiff
="installvimdiff";
4550 dogvimdiff
="installgvimdiff" ;;
4551 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4552 $as_echo "Sorry, $features is not supported" >&6; } ;;
4558 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4559 $as_echo_n "checking --with-compiledby argument... " >&6; }
4561 # Check whether --with-compiledby was given.
4562 if test "${with_compiledby+set}" = set; then
4563 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4564 $as_echo "$withval" >&6; }
4566 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4567 $as_echo "no" >&6; }
4572 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4573 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4574 # Check whether --enable-xsmp was given.
4575 if test "${enable_xsmp+set}" = set; then
4576 enableval
=$enable_xsmp;
4582 if test "$enable_xsmp" = "yes"; then
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4585 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4586 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4587 # Check whether --enable-xsmp-interact was given.
4588 if test "${enable_xsmp_interact+set}" = set; then
4589 enableval
=$enable_xsmp_interact;
4591 enable_xsmp_interact
="yes"
4594 if test "$enable_xsmp_interact" = "yes"; then
4595 { $as_echo "$as_me:$LINENO: result: no" >&5
4596 $as_echo "no" >&6; }
4597 cat >>confdefs.h
<<\_ACEOF
4598 #define USE_XSMP_INTERACT 1
4602 { $as_echo "$as_me:$LINENO: result: yes" >&5
4603 $as_echo "yes" >&6; }
4606 { $as_echo "$as_me:$LINENO: result: yes" >&5
4607 $as_echo "yes" >&6; }
4610 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4611 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4612 # Check whether --enable-mzschemeinterp was given.
4613 if test "${enable_mzschemeinterp+set}" = set; then
4614 enableval
=$enable_mzschemeinterp;
4616 enable_mzschemeinterp
="no"
4619 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4620 $as_echo "$enable_mzschemeinterp" >&6; }
4622 if test "$enable_mzschemeinterp" = "yes"; then
4625 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4626 $as_echo_n "checking --with-plthome argument... " >&6; }
4628 # Check whether --with-plthome was given.
4629 if test "${with_plthome+set}" = set; then
4630 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4631 $as_echo "$with_plthome" >&6; }
4633 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4634 $as_echo "\"no\"" >&6; }
4638 if test "X$with_plthome" != "X"; then
4639 vi_cv_path_mzscheme_pfx
="$with_plthome"
4641 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4642 $as_echo_n "checking PLTHOME environment var... " >&6; }
4643 if test "X$PLTHOME" != "X"; then
4644 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4645 $as_echo "\"$PLTHOME\"" >&6; }
4646 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4648 { $as_echo "$as_me:$LINENO: result: not set" >&5
4649 $as_echo "not set" >&6; }
4650 # Extract the first word of "mzscheme", so it can be a program name with args.
4651 set dummy mzscheme
; ac_word
=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4655 $as_echo_n "(cached) " >&6
4657 case $vi_cv_path_mzscheme in
4659 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4666 test -z "$as_dir" && as_dir
=.
4667 for ac_exec_ext
in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4681 if test -n "$vi_cv_path_mzscheme"; then
4682 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4683 $as_echo "$vi_cv_path_mzscheme" >&6; }
4685 { $as_echo "$as_me:$LINENO: result: no" >&5
4686 $as_echo "no" >&6; }
4691 if test "X$vi_cv_path_mzscheme" != "X"; then
4692 lsout
=`ls -l $vi_cv_path_mzscheme`
4693 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4694 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4698 if test "X$vi_cv_path_mzscheme" != "X"; then
4699 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4700 $as_echo_n "checking MzScheme install prefix... " >&6; }
4701 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4702 $as_echo_n "(cached) " >&6
4704 echo "(display (simplify-path \
4705 (build-path (call-with-values \
4706 (lambda () (split-path (find-system-path (quote exec-file)))) \
4707 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4708 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4711 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4712 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4719 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4720 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4721 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4722 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4723 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4724 { $as_echo "$as_me:$LINENO: result: yes" >&5
4725 $as_echo "yes" >&6; }
4727 { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4729 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4730 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4731 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4732 { $as_echo "$as_me:$LINENO: result: yes" >&5
4733 $as_echo "yes" >&6; }
4734 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737 $as_echo "no" >&6; }
4738 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4739 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4740 if test -f /usr
/include
/plt
/scheme.h
; then
4741 { $as_echo "$as_me:$LINENO: result: yes" >&5
4742 $as_echo "yes" >&6; }
4743 SCHEME_INC
=/usr
/include
/plt
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 vi_cv_path_mzscheme_pfx
=
4753 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4754 if test "x$MACOSX" = "xyes"; then
4755 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4756 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4757 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4758 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4759 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4760 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4762 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4763 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4764 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4766 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4768 if test "$GCC" = yes; then
4769 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4770 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4771 uname
-r |
grep '^5' >/dev
/null
; then
4772 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4775 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4776 SCHEME_COLLECTS
=lib
/plt
/
4778 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4779 MZSCHEME_EXTRA
="mzscheme_base.c"
4780 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4781 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4783 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4784 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4785 MZSCHEME_SRC
="if_mzsch.c"
4786 MZSCHEME_OBJ
="objects/if_mzsch.o"
4787 MZSCHEME_PRO
="if_mzsch.pro"
4788 cat >>confdefs.h
<<\_ACEOF
4789 #define FEAT_MZSCHEME 1
4803 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4804 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4805 # Check whether --enable-perlinterp was given.
4806 if test "${enable_perlinterp+set}" = set; then
4807 enableval
=$enable_perlinterp;
4809 enable_perlinterp
="no"
4812 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4813 $as_echo "$enable_perlinterp" >&6; }
4814 if test "$enable_perlinterp" = "yes"; then
4816 # Extract the first word of "perl", so it can be a program name with args.
4817 set dummy perl
; ac_word
=$2
4818 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4821 $as_echo_n "(cached) " >&6
4823 case $vi_cv_path_perl in
4825 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir
=.
4833 for ac_exec_ext
in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4847 if test -n "$vi_cv_path_perl"; then
4848 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4849 $as_echo "$vi_cv_path_perl" >&6; }
4851 { $as_echo "$as_me:$LINENO: result: no" >&5
4852 $as_echo "no" >&6; }
4856 if test "X$vi_cv_path_perl" != "X"; then
4857 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4858 $as_echo_n "checking Perl version... " >&6; }
4859 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4860 eval `$vi_cv_path_perl -V:usethreads`
4861 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4864 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4865 eval `$vi_cv_path_perl -V:use5005threads`
4866 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4870 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4871 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4875 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4876 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4879 if test $badthreads = no
; then
4880 { $as_echo "$as_me:$LINENO: result: OK" >&5
4881 $as_echo "OK" >&6; }
4882 eval `$vi_cv_path_perl -V:shrpenv`
4883 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4886 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4888 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4889 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4890 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4891 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4892 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4893 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4894 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4896 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4897 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4900 ldflags_save
=$LDFLAGS
4901 CFLAGS
="$CFLAGS $perlcppflags"
4902 LIBS
="$LIBS $perllibs"
4903 LDFLAGS
="$perlldflags $LDFLAGS"
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4919 rm -f conftest.
$ac_objext conftest
$ac_exeext
4920 if { (ac_try
="$ac_link"
4922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_link") 2>conftest.er1
4929 grep -v '^ *+' conftest.er1 >conftest.err
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest$ac_exeext && {
4937 test "$cross_compiling" = yes ||
4938 $as_test_x conftest$ac_exeext
4940 { $as_echo "$as_me:$LINENO: result: yes" >&5
4941 $as_echo "yes" >&6; }; perl_ok=yes
4943 $as_echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4947 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4950 rm -rf conftest.dSYM
4951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4952 conftest$ac_exeext conftest.$ac_ext
4955 LDFLAGS=$ldflags_save
4956 if test $perl_ok = yes; then
4957 if test "X$perlcppflags" != "X"; then
4958 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4960 if test "X$perlldflags" != "X"; then
4961 LDFLAGS="$perlldflags $LDFLAGS"
4964 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4965 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4966 PERL_PRO="if_perl.pro if_perlsfio.pro"
4967 cat >>confdefs.h <<\_ACEOF
4974 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4975 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4979 if test "x$MACOSX" = "xyes"; then
4980 dir=/System/Library/Perl
4981 darwindir=$dir/darwin
4982 if test -d $darwindir; then
4985 dir=/System/Library/Perl/5.8.1
4986 darwindir=$dir/darwin-thread-multi-2level
4987 if test -d $darwindir; then
4991 if test -n "$PERL"; then
4993 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4994 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4995 PERL_LIBS="-L$darwindir/CORE -lperl"
5006 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5007 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5008 # Check whether --enable-pythoninterp was given.
5009 if test "${enable_pythoninterp+set}" = set; then
5010 enableval=$enable_pythoninterp;
5012 enable_pythoninterp="no"
5015 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5016 $as_echo "$enable_pythoninterp" >&6; }
5017 if test "$enable_pythoninterp" = "yes"; then
5018 # Extract the first word of "python", so it can be a program name with args.
5019 set dummy python; ac_word=$2
5020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5023 $as_echo_n "(cached) " >&6
5025 case $vi_cv_path_python in
5027 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5049 if test -n "$vi_cv_path_python"; then
5050 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5051 $as_echo "$vi_cv_path_python" >&6; }
5053 { $as_echo "$as_me:$LINENO: result: no" >&5
5054 $as_echo "no" >&6; }
5058 if test "X$vi_cv_path_python" != "X"; then
5060 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5061 $as_echo_n "checking Python version... " >&6; }
5062 if test "${vi_cv_var_python_version+set}" = set; then
5063 $as_echo_n "(cached) " >&6
5065 vi_cv_var_python_version=`
5066 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5069 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5070 $as_echo "$vi_cv_var_python_version" >&6; }
5072 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5073 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5074 if ${vi_cv_path_python} -c \
5075 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5077 { $as_echo "$as_me:$LINENO: result: yep" >&5
5078 $as_echo "yep" >&6; }
5080 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5081 $as_echo_n "checking Python's install prefix... " >&6; }
5082 if test "${vi_cv_path_python_pfx+set}" = set; then
5083 $as_echo_n "(cached) " >&6
5085 vi_cv_path_python_pfx=`
5086 ${vi_cv_path_python} -c \
5087 "import sys; print sys.prefix"`
5089 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5090 $as_echo "$vi_cv_path_python_pfx" >&6; }
5092 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5093 $as_echo_n "checking Python's execution prefix... " >&6; }
5094 if test "${vi_cv_path_python_epfx+set}" = set; then
5095 $as_echo_n "(cached) " >&6
5097 vi_cv_path_python_epfx=`
5098 ${vi_cv_path_python} -c \
5099 "import sys; print sys.exec_prefix"`
5101 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5102 $as_echo "$vi_cv_path_python_epfx" >&6; }
5105 if test "${vi_cv_path_pythonpath+set}" = set; then
5106 $as_echo_n "(cached) " >&6
5108 vi_cv_path_pythonpath=`
5110 ${vi_cv_path_python} -c \
5111 "import sys, string; print string.join(sys.path,':')"`
5117 # Check whether --with-python-config-dir was given.
5118 if test "${with_python_config_dir+set}" = set; then
5119 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5123 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5124 $as_echo_n "checking Python's configuration directory... " >&6; }
5125 if test "${vi_cv_path_python_conf+set}" = set; then
5126 $as_echo_n "(cached) " >&6
5129 vi_cv_path_python_conf=
5130 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5131 for subdir in lib64 lib share; do
5132 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5133 if test -d "$d" && test -f "$d/config.c"; then
5134 vi_cv_path_python_conf="$d"
5140 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5141 $as_echo "$vi_cv_path_python_conf" >&6; }
5143 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5145 if test "X$PYTHON_CONFDIR" = "X"; then
5146 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5147 $as_echo "can't find it!" >&6; }
5150 if test "${vi_cv_path_python_plibs+set}" = set; then
5151 $as_echo_n "(cached) " >&6
5155 tmp_mkf="$pwd/config-PyMake$$"
5156 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5158 @echo "python_MODLIBS='$(MODLIBS)'"
5159 @echo "python_LIBS='$(LIBS)'"
5160 @echo "python_SYSLIBS='$(SYSLIBS)'"
5161 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5163 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5164 rm -f -- "${tmp_mkf}"
5165 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5166 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5167 vi_cv_path_python_plibs="-framework Python"
5169 if test "${vi_cv_var_python_version}" = "1.4"; then
5170 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5172 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5174 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5175 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5181 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5182 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5183 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5185 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
5187 PYTHON_SRC="if_python.c"
5188 if test "x$MACOSX" = "xyes"; then
5189 PYTHON_OBJ="objects/if_python.o"
5191 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5193 if test "${vi_cv_var_python_version}" = "1.4"; then
5194 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5196 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5198 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5199 $as_echo_n "checking if -pthread should be used... " >&6; }
5202 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5203 test "$GCC" = yes && threadsafe_flag="-pthread"
5204 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5205 threadsafe_flag="-D_THREAD_SAFE"
5206 thread_lib="-pthread"
5210 if test -n "$threadsafe_flag"; then
5212 CFLAGS="$CFLAGS $threadsafe_flag"
5213 LIBS="$LIBS $thread_lib"
5214 cat >conftest.$ac_ext <<_ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5229 rm -f conftest.$ac_objext conftest$ac_exeext
5230 if { (ac_try="$ac_link"
5232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5233 *) ac_try_echo
=$ac_try;;
5235 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5236 $as_echo "$ac_try_echo") >&5
5237 (eval "$ac_link") 2>conftest.er1
5239 grep -v '^ *+' conftest.er1
>conftest.err
5241 cat conftest.err
>&5
5242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest
$ac_exeext && {
5247 test "$cross_compiling" = yes ||
5248 $as_test_x conftest
$ac_exeext
5250 { $as_echo "$as_me:$LINENO: result: yes" >&5
5251 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5253 $as_echo "$as_me: failed program was:" >&5
5254 sed 's/^/| /' conftest.
$ac_ext >&5
5256 { $as_echo "$as_me:$LINENO: result: no" >&5
5257 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5261 rm -rf conftest.dSYM
5262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5263 conftest
$ac_exeext conftest.
$ac_ext
5266 { $as_echo "$as_me:$LINENO: result: no" >&5
5267 $as_echo "no" >&6; }
5270 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5271 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5274 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5275 LIBS
="$LIBS $PYTHON_LIBS"
5276 cat >conftest.
$ac_ext <<_ACEOF
5279 cat confdefs.h
>>conftest.
$ac_ext
5280 cat >>conftest.
$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5291 rm -f conftest.
$ac_objext conftest
$ac_exeext
5292 if { (ac_try
="$ac_link"
5294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5298 $as_echo "$ac_try_echo") >&5
5299 (eval "$ac_link") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1 >conftest.err
5303 cat conftest.err >&5
5304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest$ac_exeext && {
5309 test "$cross_compiling" = yes ||
5310 $as_test_x conftest$ac_exeext
5312 { $as_echo "$as_me:$LINENO: result: yes" >&5
5313 $as_echo "yes" >&6; }; python_ok=yes
5315 $as_echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5319 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5322 rm -rf conftest.dSYM
5323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5324 conftest$ac_exeext conftest.$ac_ext
5327 if test $python_ok = yes; then
5328 cat >>confdefs.h <<\_ACEOF
5329 #define FEAT_PYTHON 1
5342 { $as_echo "$as_me:$LINENO: result: too old" >&5
5343 $as_echo "too old" >&6; }
5354 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5355 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5356 # Check whether --enable-tclinterp was given.
5357 if test "${enable_tclinterp+set}" = set; then
5358 enableval=$enable_tclinterp;
5360 enable_tclinterp="no"
5363 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5364 $as_echo "$enable_tclinterp" >&6; }
5366 if test "$enable_tclinterp" = "yes"; then
5368 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5369 $as_echo_n "checking --with-tclsh argument... " >&6; }
5371 # Check whether --with-tclsh was given.
5372 if test "${with_tclsh+set}" = set; then
5373 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5374 $as_echo "$tclsh_name" >&6; }
5376 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5377 $as_echo "no" >&6; }
5380 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5381 set dummy $tclsh_name; ac_word=$2
5382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 $as_echo_n "checking for $ac_word... " >&6; }
5384 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5385 $as_echo_n "(cached) " >&6
5387 case $vi_cv_path_tcl in
5389 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5411 if test -n "$vi_cv_path_tcl"; then
5412 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5413 $as_echo "$vi_cv_path_tcl" >&6; }
5415 { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5422 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5423 tclsh_name="tclsh8.4"
5424 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5425 set dummy $tclsh_name; ac_word=$2
5426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5429 $as_echo_n "(cached) " >&6
5431 case $vi_cv_path_tcl in
5433 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5455 if test -n "$vi_cv_path_tcl"; then
5456 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5457 $as_echo "$vi_cv_path_tcl" >&6; }
5459 { $as_echo "$as_me:$LINENO: result: no" >&5
5460 $as_echo "no" >&6; }
5465 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5466 tclsh_name="tclsh8.2"
5467 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5468 set dummy $tclsh_name; ac_word=$2
5469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5474 case $vi_cv_path_tcl in
5476 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5498 if test -n "$vi_cv_path_tcl"; then
5499 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5500 $as_echo "$vi_cv_path_tcl" >&6; }
5502 { $as_echo "$as_me:$LINENO: result: no" >&5
5503 $as_echo "no" >&6; }
5508 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5509 tclsh_name="tclsh8.0"
5510 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5511 set dummy $tclsh_name; ac_word=$2
5512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5515 $as_echo_n "(cached) " >&6
5517 case $vi_cv_path_tcl in
5519 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5541 if test -n "$vi_cv_path_tcl"; then
5542 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5543 $as_echo "$vi_cv_path_tcl" >&6; }
5545 { $as_echo "$as_me:$LINENO: result: no" >&5
5546 $as_echo "no" >&6; }
5551 if test "X$vi_cv_path_tcl" = "X"; then
5553 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5554 set dummy $tclsh_name; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5560 case $vi_cv_path_tcl in
5562 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5584 if test -n "$vi_cv_path_tcl"; then
5585 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5586 $as_echo "$vi_cv_path_tcl" >&6; }
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589 $as_echo "no" >&6; }
5594 if test "X$vi_cv_path_tcl" != "X"; then
5595 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5596 $as_echo_n "checking Tcl version... " >&6; }
5597 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5598 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5599 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5600 $as_echo "$tclver - OK" >&6; };
5601 tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' |
$vi_cv_path_tcl -`
5603 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5604 $as_echo_n "checking for location of Tcl include... " >&6; }
5605 if test "x$MACOSX" != "xyes"; then
5606 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5608 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5611 for try in $tclinc; do
5612 if test -f "$try/tcl.h"; then
5613 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5614 $as_echo "$try/tcl.h" >&6; }
5619 if test -z "$TCL_INC"; then
5620 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5621 $as_echo "<not found>" >&6; }
5624 if test -z "$SKIP_TCL"; then
5625 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5626 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5627 if test "x$MACOSX" != "xyes"; then
5628 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5629 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5631 tclcnf="/System/Library/Frameworks/Tcl.framework"
5633 for try in $tclcnf; do
5634 if test -f $try/tclConfig.sh; then
5635 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5636 $as_echo "$try/tclConfig.sh" >&6; }
5638 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5639 TCL_DEFS=`echo $TCL_DEFS |
sed -e 's/\\\\ /\\\\X/g' |
tr ' ' '\012' |
sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' |
tr '\012' ' ' |
sed -e 's/\\\\X/\\\\ /g'`
5643 if test -z "$TCL_LIBS"; then
5644 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5645 $as_echo "<not found>" >&6; }
5646 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5647 $as_echo_n "checking for Tcl library by myself... " >&6; }
5648 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5649 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5650 for ext in .so .a ; do
5651 for ver in "" $tclver ; do
5652 for try in $tcllib ; do
5654 if test -f $try/lib$trylib ; then
5655 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5656 $as_echo "$try/lib$trylib" >&6; }
5657 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5658 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5659 uname -r | grep '^5' >/dev/null; then
5660 TCL_LIBS="$TCL_LIBS -R $try"
5667 if test -z "$TCL_LIBS"; then
5668 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5669 $as_echo "<not found>" >&6; }
5673 if test -z "$SKIP_TCL"; then
5674 cat >>confdefs.h <<\_ACEOF
5679 TCL_OBJ=objects/if_tcl.o
5681 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5685 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5686 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5696 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5697 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5698 # Check whether --enable-rubyinterp was given.
5699 if test "${enable_rubyinterp+set}" = set; then
5700 enableval=$enable_rubyinterp;
5702 enable_rubyinterp="no"
5705 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5706 $as_echo "$enable_rubyinterp" >&6; }
5707 if test "$enable_rubyinterp" = "yes"; then
5708 { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
5709 $as_echo_n "checking --with-ruby-command argument... " >&6; }
5711 # Check whether --with-ruby-command was given.
5712 if test "${with_ruby_command+set}" = set; then
5713 withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
5714 $as_echo "$RUBY_CMD" >&6; }
5716 RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
5717 $as_echo "defaulting to $RUBY_CMD" >&6; }
5721 # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5722 set dummy $RUBY_CMD; ac_word=$2
5723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5726 $as_echo_n "(cached) " >&6
5728 case $vi_cv_path_ruby in
5730 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5752 if test -n "$vi_cv_path_ruby"; then
5753 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5754 $as_echo "$vi_cv_path_ruby" >&6; }
5756 { $as_echo "$as_me:$LINENO: result: no" >&5
5757 $as_echo "no" >&6; }
5761 if test "X$vi_cv_path_ruby" != "X"; then
5762 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5763 $as_echo_n "checking Ruby version... " >&6; }
5764 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5765 { $as_echo "$as_me:$LINENO: result: OK" >&5
5766 $as_echo "OK" >&6; }
5767 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5768 $as_echo_n "checking Ruby header files... " >&6; }
5769 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5770 if test "X$rubyhdrdir" != "X"; then
5771 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5772 $as_echo "$rubyhdrdir" >&6; }
5773 RUBY_CFLAGS="-I$rubyhdrdir"
5774 rubyarch=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["arch"]'`
5775 if test -d "$rubyhdrdir/$rubyarch"; then
5776 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5778 rubyversion=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5779 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5780 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5781 if test "X$rubylibs" != "X"; then
5782 RUBY_LIBS="$rubylibs"
5784 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5785 if test -f "$rubyhdrdir/$librubyarg"; then
5786 librubyarg="$rubyhdrdir/$librubyarg"
5788 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5789 if test -f "$rubylibdir/$librubyarg"; then
5790 librubyarg="$rubylibdir/$librubyarg"
5791 elif test "$librubyarg" = "libruby.a"; then
5794 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5798 if test "X$librubyarg" != "X"; then
5799 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5801 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5802 if test "X$rubyldflags" != "X"; then
5803 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5804 if test "X$rubyldflags" != "X"; then
5805 LDFLAGS="$rubyldflags $LDFLAGS"
5808 RUBY_SRC="if_ruby.c"
5809 RUBY_OBJ="objects/if_ruby.o"
5810 RUBY_PRO="if_ruby.pro"
5811 cat >>confdefs.h <<\_ACEOF
5816 { $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
5817 $as_echo "not found; disabling Ruby" >&6; }
5820 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5821 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5831 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5832 $as_echo_n "checking --enable-cscope argument... " >&6; }
5833 # Check whether --enable-cscope was given.
5834 if test "${enable_cscope+set}" = set; then
5835 enableval=$enable_cscope;
5840 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5841 $as_echo "$enable_cscope" >&6; }
5842 if test "$enable_cscope" = "yes"; then
5843 cat >>confdefs.h <<\_ACEOF
5844 #define FEAT_CSCOPE 1
5849 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5850 $as_echo_n "checking --enable-workshop argument... " >&6; }
5851 # Check whether --enable-workshop was given.
5852 if test "${enable_workshop+set}" = set; then
5853 enableval=$enable_workshop;
5855 enable_workshop="no"
5858 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5859 $as_echo "$enable_workshop" >&6; }
5860 if test "$enable_workshop" = "yes"; then
5861 cat >>confdefs.h <<\_ACEOF
5862 #define FEAT_SUN_WORKSHOP 1
5865 WORKSHOP_SRC="workshop.c integration.c"
5867 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5869 if test "${enable_gui-xxx}" = xxx; then
5874 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5875 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5876 # Check whether --enable-netbeans was given.
5877 if test "${enable_netbeans+set}" = set; then
5878 enableval=$enable_netbeans;
5880 enable_netbeans="yes"
5883 if test "$enable_netbeans" = "yes"; then
5884 { $as_echo "$as_me:$LINENO: result: no" >&5
5885 $as_echo "no" >&6; }
5887 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5888 $as_echo_n "checking for socket in -lsocket... " >&6; }
5889 if test "${ac_cv_lib_socket_socket+set}" = set; then
5890 $as_echo_n "(cached) " >&6
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lsocket $LIBS"
5894 cat >conftest.$ac_ext <<_ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5920 *) ac_try_echo
=$ac_try;;
5922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5923 $as_echo "$ac_try_echo") >&5
5924 (eval "$ac_link") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1
>conftest.err
5928 cat conftest.err
>&5
5929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest
$ac_exeext && {
5934 test "$cross_compiling" = yes ||
5935 $as_test_x conftest
$ac_exeext
5937 ac_cv_lib_socket_socket
=yes
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_cv_lib_socket_socket
=no
5945 rm -rf conftest.dSYM
5946 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5947 conftest
$ac_exeext conftest.
$ac_ext
5948 LIBS
=$ac_check_lib_save_LIBS
5950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5951 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5952 if test "x$ac_cv_lib_socket_socket" = x
""yes; then
5953 cat >>confdefs.h
<<_ACEOF
5954 #define HAVE_LIBSOCKET 1
5957 LIBS
="-lsocket $LIBS"
5962 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5963 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5964 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5967 ac_check_lib_save_LIBS
=$LIBS
5969 cat >conftest.
$ac_ext <<_ACEOF
5972 cat confdefs.h
>>conftest.
$ac_ext
5973 cat >>conftest.
$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5976 /* Override any GCC internal prototype to avoid an error.
5977 Use char because int might match the return type of a GCC
5978 builtin and then its argument prototype would still apply. */
5982 char gethostbyname ();
5986 return gethostbyname ();
5991 rm -f conftest.
$ac_objext conftest
$ac_exeext
5992 if { (ac_try
="$ac_link"
5994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5998 $as_echo "$ac_try_echo") >&5
5999 (eval "$ac_link") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext && {
6009 test "$cross_compiling" = yes ||
6010 $as_test_x conftest$ac_exeext
6012 ac_cv_lib_nsl_gethostbyname=yes
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_lib_nsl_gethostbyname=no
6020 rm -rf conftest.dSYM
6021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022 conftest$ac_exeext conftest.$ac_ext
6023 LIBS=$ac_check_lib_save_LIBS
6025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6026 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6027 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_LIBNSL 1
6036 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6037 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6050 #include <netinet/in.h>
6052 #include <sys/types.h>
6053 #include <sys/socket.h>
6054 /* Check bitfields */
6056 unsigned int initDone:1;
6064 /* Check creating a socket. */
6065 struct sockaddr_in server;
6066 (void)socket(AF_INET, SOCK_STREAM, 0);
6068 (void)gethostbyname("microsoft.com");
6069 if (errno == ECONNREFUSED)
6070 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (ac_try="$ac_link"
6079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6080 *) ac_try_echo
=$ac_try;;
6082 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6083 $as_echo "$ac_try_echo") >&5
6084 (eval "$ac_link") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1
>conftest.err
6088 cat conftest.err
>&5
6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest
$ac_exeext && {
6094 test "$cross_compiling" = yes ||
6095 $as_test_x conftest
$ac_exeext
6097 { $as_echo "$as_me:$LINENO: result: yes" >&5
6098 $as_echo "yes" >&6; }
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 { $as_echo "$as_me:$LINENO: result: no" >&5
6104 $as_echo "no" >&6; }; enable_netbeans
="no"
6107 rm -rf conftest.dSYM
6108 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6109 conftest
$ac_exeext conftest.
$ac_ext
6111 { $as_echo "$as_me:$LINENO: result: yes" >&5
6112 $as_echo "yes" >&6; }
6114 if test "$enable_netbeans" = "yes"; then
6115 cat >>confdefs.h
<<\_ACEOF
6116 #define FEAT_NETBEANS_INTG 1
6119 NETBEANS_SRC
="netbeans.c"
6121 NETBEANS_OBJ
="objects/netbeans.o"
6125 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6126 $as_echo_n "checking --enable-sniff argument... " >&6; }
6127 # Check whether --enable-sniff was given.
6128 if test "${enable_sniff+set}" = set; then
6129 enableval
=$enable_sniff;
6134 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6135 $as_echo "$enable_sniff" >&6; }
6136 if test "$enable_sniff" = "yes"; then
6137 cat >>confdefs.h
<<\_ACEOF
6138 #define FEAT_SNIFF 1
6141 SNIFF_SRC
="if_sniff.c"
6143 SNIFF_OBJ
="objects/if_sniff.o"
6147 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6148 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6149 # Check whether --enable-multibyte was given.
6150 if test "${enable_multibyte+set}" = set; then
6151 enableval
=$enable_multibyte;
6153 enable_multibyte
="no"
6156 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6157 $as_echo "$enable_multibyte" >&6; }
6158 if test "$enable_multibyte" = "yes"; then
6159 cat >>confdefs.h
<<\_ACEOF
6160 #define FEAT_MBYTE 1
6165 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6166 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6167 # Check whether --enable-hangulinput was given.
6168 if test "${enable_hangulinput+set}" = set; then
6169 enableval
=$enable_hangulinput;
6171 enable_hangulinput
="no"
6174 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6175 $as_echo "$enable_hangulinput" >&6; }
6177 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6178 $as_echo_n "checking --enable-xim argument... " >&6; }
6179 # Check whether --enable-xim was given.
6180 if test "${enable_xim+set}" = set; then
6181 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6182 $as_echo "$enable_xim" >&6; }
6184 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6185 $as_echo "defaulting to auto" >&6; }
6189 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6190 $as_echo_n "checking --enable-fontset argument... " >&6; }
6191 # Check whether --enable-fontset was given.
6192 if test "${enable_fontset+set}" = set; then
6193 enableval
=$enable_fontset;
6198 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6199 $as_echo "$enable_fontset" >&6; }
6201 test -z "$with_x" && with_x
=yes
6202 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6203 if test "$with_x" = no
; then
6204 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6205 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6208 # Extract the first word of "xmkmf", so it can be a program name with args.
6209 set dummy xmkmf
; ac_word
=$2
6210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6213 $as_echo_n "(cached) " >&6
6217 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir
=.
6225 for ac_exec_ext
in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 xmkmfpath
=$ac_cv_path_xmkmfpath
6239 if test -n "$xmkmfpath"; then
6240 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6241 $as_echo "$xmkmfpath" >&6; }
6243 { $as_echo "$as_me:$LINENO: result: no" >&5
6244 $as_echo "no" >&6; }
6249 { $as_echo "$as_me:$LINENO: checking for X" >&5
6250 $as_echo_n "checking for X... " >&6; }
6253 # Check whether --with-x was given.
6254 if test "${with_x+set}" = set; then
6258 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6259 if test "x$with_x" = xno
; then
6260 # The user explicitly disabled X.
6263 case $x_includes,$x_libraries in #(
6264 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6265 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6266 { (exit 1); exit 1; }; };; #(
6267 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6270 # One or both of the vars are not set, and there is no cached value.
6271 ac_x_includes
=no ac_x_libraries
=no
6272 rm -f -r conftest.dir
6273 if mkdir conftest.dir
; then
6275 cat >Imakefile
<<'_ACEOF'
6277 @echo incroot='${INCROOT}'
6279 @echo usrlibdir='${USRLIBDIR}'
6281 @echo libdir='${LIBDIR}'
6283 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6284 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6285 for ac_var
in incroot usrlibdir libdir
; do
6286 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6288 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6289 for ac_extension
in a so sl dylib la dll
; do
6290 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6291 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6292 ac_im_usrlibdir
=$ac_im_libdir; break
6295 # Screen out bogus values from the imake configuration. They are
6296 # bogus both because they are the default anyway, and because
6297 # using them would break gcc on systems where it needs fixed includes.
6298 case $ac_im_incroot in
6299 /usr
/include
) ac_x_includes
= ;;
6300 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6302 case $ac_im_usrlibdir in
6303 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6304 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6308 rm -f -r conftest.dir
6311 # Standard set of common directories for X headers.
6312 # Check X11 before X11Rn because it is often a symlink to the current release.
6324 /usr/local/X11/include
6325 /usr/local/X11R6/include
6326 /usr/local/X11R5/include
6327 /usr/local/X11R4/include
6329 /usr/local/include/X11
6330 /usr/local/include/X11R6
6331 /usr/local/include/X11R5
6332 /usr/local/include/X11R4
6336 /usr/XFree86/include/X11
6340 /usr/unsupported/include
6342 /usr/local/x11r5/include
6343 /usr/lpp/Xamples/include
6345 /usr/openwin/include
6346 /usr/openwin/share/include'
6348 if test "$ac_x_includes" = no
; then
6349 # Guess where to find include files, by looking for Xlib.h.
6350 # First, try using that file with no special directory specified.
6351 cat >conftest.
$ac_ext <<_ACEOF
6354 cat confdefs.h
>>conftest.
$ac_ext
6355 cat >>conftest.
$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #include <X11/Xlib.h>
6359 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365 $as_echo "$ac_try_echo") >&5
6366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6368 grep -v '^ *+' conftest.er1 >conftest.err
6370 cat conftest.err >&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } >/dev/null && {
6373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6376 # We can compile using X headers with no special include directory.
6379 $as_echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 for ac_dir in $ac_x_header_dirs; do
6383 if test -r "$ac_dir/X11/Xlib.h"; then
6384 ac_x_includes=$ac_dir
6390 rm -f conftest.err conftest.$ac_ext
6391 fi # $ac_x_includes = no
6393 if test "$ac_x_libraries" = no; then
6394 # Check for the libraries.
6395 # See if we find them without any special options.
6396 # Don't add to $LIBS permanently.
6399 cat >conftest.$ac_ext <<_ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 #include <X11/Xlib.h>
6414 rm -f conftest.$ac_objext conftest$ac_exeext
6415 if { (ac_try="$ac_link"
6417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6418 *) ac_try_echo
=$ac_try;;
6420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6421 $as_echo "$ac_try_echo") >&5
6422 (eval "$ac_link") 2>conftest.er1
6424 grep -v '^ *+' conftest.er1
>conftest.err
6426 cat conftest.err
>&5
6427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } && {
6429 test -z "$ac_c_werror_flag" ||
6430 test ! -s conftest.err
6431 } && test -s conftest
$ac_exeext && {
6432 test "$cross_compiling" = yes ||
6433 $as_test_x conftest
$ac_exeext
6436 # We can link X programs with no special library path.
6439 $as_echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.
$ac_ext >&5
6443 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6445 # Don't even attempt the hair of trying to link an X program!
6446 for ac_extension
in a so sl dylib la dll
; do
6447 if test -r "$ac_dir/libX11.$ac_extension"; then
6448 ac_x_libraries
=$ac_dir
6455 rm -rf conftest.dSYM
6456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6457 conftest
$ac_exeext conftest.
$ac_ext
6458 fi # $ac_x_libraries = no
6460 case $ac_x_includes,$ac_x_libraries in #(
6462 # Didn't find X, or a directory has "'" in its name.
6463 ac_cv_have_x
="have_x=no";; #(
6465 # Record where we found X for the cache.
6466 ac_cv_have_x
="have_x=yes\
6467 ac_x_includes='$ac_x_includes'\
6468 ac_x_libraries='$ac_x_libraries'"
6474 eval "$ac_cv_have_x"
6477 if test "$have_x" != yes; then
6478 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6479 $as_echo "$have_x" >&6; }
6482 # If each of the values was on the command line, it overrides each guess.
6483 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6484 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6485 # Update the cache value to reflect the command line values.
6486 ac_cv_have_x
="have_x=yes\
6487 ac_x_includes='$x_includes'\
6488 ac_x_libraries='$x_libraries'"
6489 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6490 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6493 if test "$no_x" = yes; then
6494 # Not all programs may use this symbol, but it does not hurt to define it.
6496 cat >>confdefs.h
<<\_ACEOF
6497 #define X_DISPLAY_MISSING 1
6500 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6502 if test -n "$x_includes"; then
6503 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6506 # It would also be nice to do this for all -L options, not just this one.
6507 if test -n "$x_libraries"; then
6508 X_LIBS
="$X_LIBS -L$x_libraries"
6509 # For Solaris; some versions of Sun CC require a space after -R and
6510 # others require no space. Words are not sufficient . . . .
6511 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6512 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6513 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6514 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6515 ac_c_werror_flag
=yes
6516 cat >conftest.
$ac_ext <<_ACEOF
6519 cat confdefs.h
>>conftest.
$ac_ext
6520 cat >>conftest.
$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6531 rm -f conftest.
$ac_objext conftest
$ac_exeext
6532 if { (ac_try
="$ac_link"
6534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_link") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1 >conftest.err
6543 cat conftest.err >&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest$ac_exeext && {
6549 test "$cross_compiling" = yes ||
6550 $as_test_x conftest$ac_exeext
6552 { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6554 X_LIBS="$X_LIBS -R$x_libraries"
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 LIBS="$ac_xsave_LIBS -R $x_libraries"
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (ac_try="$ac_link"
6578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6579 *) ac_try_echo
=$ac_try;;
6581 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6582 $as_echo "$ac_try_echo") >&5
6583 (eval "$ac_link") 2>conftest.er1
6585 grep -v '^ *+' conftest.er1
>conftest.err
6587 cat conftest.err
>&5
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest
$ac_exeext && {
6593 test "$cross_compiling" = yes ||
6594 $as_test_x conftest
$ac_exeext
6596 { $as_echo "$as_me:$LINENO: result: yes" >&5
6597 $as_echo "yes" >&6; }
6598 X_LIBS
="$X_LIBS -R $x_libraries"
6600 $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.
$ac_ext >&5
6603 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6604 $as_echo "neither works" >&6; }
6607 rm -rf conftest.dSYM
6608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6609 conftest
$ac_exeext conftest.
$ac_ext
6612 rm -rf conftest.dSYM
6613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6614 conftest
$ac_exeext conftest.
$ac_ext
6615 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6619 # Check for system-dependent libraries X programs must link with.
6620 # Do this before checking for the system-independent R6 libraries
6621 # (-lICE), since we may need -lsocket or whatever for X linking.
6623 if test "$ISC" = yes; then
6624 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6626 # Martyn Johnson says this is needed for Ultrix, if the X
6627 # libraries were built with DECnet support. And Karl Berry says
6628 # the Alpha needs dnet_stub (dnet does not exist).
6629 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6630 cat >conftest.
$ac_ext <<_ACEOF
6633 cat confdefs.h
>>conftest.
$ac_ext
6634 cat >>conftest.
$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6637 /* Override any GCC internal prototype to avoid an error.
6638 Use char because int might match the return type of a GCC
6639 builtin and then its argument prototype would still apply. */
6643 char XOpenDisplay ();
6647 return XOpenDisplay ();
6652 rm -f conftest.
$ac_objext conftest
$ac_exeext
6653 if { (ac_try
="$ac_link"
6655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6659 $as_echo "$ac_try_echo") >&5
6660 (eval "$ac_link") 2>conftest.er1
6662 grep -v '^ *+' conftest.er1 >conftest.err
6664 cat conftest.err >&5
6665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest$ac_exeext && {
6670 test "$cross_compiling" = yes ||
6671 $as_test_x conftest$ac_exeext
6675 $as_echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6679 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6680 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6683 ac_check_lib_save_LIBS=$LIBS
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6692 /* Override any GCC internal prototype to avoid an error.
6693 Use char because int might match the return type of a GCC
6694 builtin and then its argument prototype would still apply. */
6702 return dnet_ntoa ();
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6711 *) ac_try_echo
=$ac_try;;
6713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_link") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1
>conftest.err
6719 cat conftest.err
>&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest
$ac_exeext && {
6725 test "$cross_compiling" = yes ||
6726 $as_test_x conftest
$ac_exeext
6728 ac_cv_lib_dnet_dnet_ntoa
=yes
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.
$ac_ext >&5
6733 ac_cv_lib_dnet_dnet_ntoa
=no
6736 rm -rf conftest.dSYM
6737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6738 conftest
$ac_exeext conftest.
$ac_ext
6739 LIBS
=$ac_check_lib_save_LIBS
6741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6742 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6743 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
6744 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6747 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6748 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6749 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6750 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6751 $as_echo_n "(cached) " >&6
6753 ac_check_lib_save_LIBS
=$LIBS
6754 LIBS
="-ldnet_stub $LIBS"
6755 cat >conftest.
$ac_ext <<_ACEOF
6758 cat confdefs.h
>>conftest.
$ac_ext
6759 cat >>conftest.
$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6762 /* Override any GCC internal prototype to avoid an error.
6763 Use char because int might match the return type of a GCC
6764 builtin and then its argument prototype would still apply. */
6772 return dnet_ntoa ();
6777 rm -f conftest.
$ac_objext conftest
$ac_exeext
6778 if { (ac_try
="$ac_link"
6780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784 $as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6798 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6800 $as_echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_lib_dnet_stub_dnet_ntoa=no
6806 rm -rf conftest.dSYM
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6811 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6812 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6813 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6814 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6820 rm -rf conftest.dSYM
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822 conftest$ac_exeext conftest.$ac_ext
6823 LIBS="$ac_xsave_LIBS"
6825 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6826 # to get the SysV transport functions.
6827 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6829 # The nsl library prevents programs from opening the X display
6830 # on Irix 5.2, according to T.E. Dickey.
6831 # The functions gethostbyname, getservbyname, and inet_addr are
6832 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6833 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6834 $as_echo_n "checking for gethostbyname... " >&6; }
6835 if test "${ac_cv_func_gethostbyname+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6846 #define gethostbyname innocuous_gethostbyname
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char gethostbyname (); below.
6850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851 <limits.h> exists even on freestanding compilers. */
6854 # include <limits.h>
6856 # include <assert.h>
6859 #undef gethostbyname
6861 /* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
6867 char gethostbyname ();
6868 /* The GNU C library defines this for functions which it implements
6869 to always fail with ENOSYS. Some functions are actually named
6870 something starting with __ and the normal name is an alias. */
6871 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6878 return gethostbyname ();
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (ac_try="$ac_link"
6886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6887 *) ac_try_echo
=$ac_try;;
6889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_link") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1
>conftest.err
6895 cat conftest.err
>&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_c_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest
$ac_exeext && {
6901 test "$cross_compiling" = yes ||
6902 $as_test_x conftest
$ac_exeext
6904 ac_cv_func_gethostbyname
=yes
6906 $as_echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6909 ac_cv_func_gethostbyname
=no
6912 rm -rf conftest.dSYM
6913 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6914 conftest
$ac_exeext conftest.
$ac_ext
6916 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6917 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6919 if test $ac_cv_func_gethostbyname = no
; then
6920 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6921 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6922 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6923 $as_echo_n "(cached) " >&6
6925 ac_check_lib_save_LIBS
=$LIBS
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6934 /* Override any GCC internal prototype to avoid an error.
6935 Use char because int might match the return type of a GCC
6936 builtin and then its argument prototype would still apply. */
6940 char gethostbyname ();
6944 return gethostbyname ();
6949 rm -f conftest.
$ac_objext conftest
$ac_exeext
6950 if { (ac_try
="$ac_link"
6952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_link") 2>conftest.er1
6959 grep -v '^ *+' conftest.er1 >conftest.err
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest$ac_exeext && {
6967 test "$cross_compiling" = yes ||
6968 $as_test_x conftest$ac_exeext
6970 ac_cv_lib_nsl_gethostbyname=yes
6972 $as_echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_lib_nsl_gethostbyname=no
6978 rm -rf conftest.dSYM
6979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980 conftest$ac_exeext conftest.$ac_ext
6981 LIBS=$ac_check_lib_save_LIBS
6983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6984 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6985 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6989 if test $ac_cv_lib_nsl_gethostbyname = no; then
6990 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6991 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6992 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6993 $as_echo_n "(cached) " >&6
6995 ac_check_lib_save_LIBS=$LIBS
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7004 /* Override any GCC internal prototype to avoid an error.
7005 Use char because int might match the return type of a GCC
7006 builtin and then its argument prototype would still apply. */
7010 char gethostbyname ();
7014 return gethostbyname ();
7019 rm -f conftest.$ac_objext conftest$ac_exeext
7020 if { (ac_try="$ac_link"
7022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7023 *) ac_try_echo
=$ac_try;;
7025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_link") 2>conftest.er1
7029 grep -v '^ *+' conftest.er1
>conftest.err
7031 cat conftest.err
>&5
7032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } && {
7034 test -z "$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7036 } && test -s conftest
$ac_exeext && {
7037 test "$cross_compiling" = yes ||
7038 $as_test_x conftest
$ac_exeext
7040 ac_cv_lib_bsd_gethostbyname
=yes
7042 $as_echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.
$ac_ext >&5
7045 ac_cv_lib_bsd_gethostbyname
=no
7048 rm -rf conftest.dSYM
7049 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7050 conftest
$ac_exeext conftest.
$ac_ext
7051 LIBS
=$ac_check_lib_save_LIBS
7053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7054 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7055 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then
7056 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7063 # socket/setsockopt and other routines are undefined under SCO ODT
7064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7065 # on later versions), says Simon Leinen: it contains gethostby*
7066 # variants that don't use the name server (or something). -lsocket
7067 # must be given before -lnsl if both are needed. We assume that
7068 # if connect needs -lnsl, so does gethostbyname.
7069 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7070 $as_echo_n "checking for connect... " >&6; }
7071 if test "${ac_cv_func_connect+set}" = set; then
7072 $as_echo_n "(cached) " >&6
7074 cat >conftest.
$ac_ext <<_ACEOF
7077 cat confdefs.h
>>conftest.
$ac_ext
7078 cat >>conftest.
$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7082 #define connect innocuous_connect
7084 /* System header to define __stub macros and hopefully few prototypes,
7085 which can conflict with char connect (); below.
7086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 <limits.h> exists even on freestanding compilers. */
7090 # include <limits.h>
7092 # include <assert.h>
7097 /* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined __stub_connect || defined __stub___connect
7119 rm -f conftest.
$ac_objext conftest
$ac_exeext
7120 if { (ac_try
="$ac_link"
7122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127 (eval "$ac_link") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest$ac_exeext && {
7137 test "$cross_compiling" = yes ||
7138 $as_test_x conftest$ac_exeext
7140 ac_cv_func_connect=yes
7142 $as_echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_func_connect=no
7148 rm -rf conftest.dSYM
7149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150 conftest$ac_exeext conftest.$ac_ext
7152 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7153 $as_echo "$ac_cv_func_connect" >&6; }
7155 if test $ac_cv_func_connect = no; then
7156 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7157 $as_echo_n "checking for connect in -lsocket... " >&6; }
7158 if test "${ac_cv_lib_socket_connect+set}" = set; then
7159 $as_echo_n "(cached) " >&6
7161 ac_check_lib_save_LIBS=$LIBS
7162 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7170 /* Override any GCC internal prototype to avoid an error.
7171 Use char because int might match the return type of a GCC
7172 builtin and then its argument prototype would still apply. */
7185 rm -f conftest.$ac_objext conftest$ac_exeext
7186 if { (ac_try="$ac_link"
7188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7189 *) ac_try_echo
=$ac_try;;
7191 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7192 $as_echo "$ac_try_echo") >&5
7193 (eval "$ac_link") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1
>conftest.err
7197 cat conftest.err
>&5
7198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest
$ac_exeext && {
7203 test "$cross_compiling" = yes ||
7204 $as_test_x conftest
$ac_exeext
7206 ac_cv_lib_socket_connect
=yes
7208 $as_echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.
$ac_ext >&5
7211 ac_cv_lib_socket_connect
=no
7214 rm -rf conftest.dSYM
7215 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7216 conftest
$ac_exeext conftest.
$ac_ext
7217 LIBS
=$ac_check_lib_save_LIBS
7219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7220 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7221 if test "x$ac_cv_lib_socket_connect" = x
""yes; then
7222 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7227 # Guillermo Gomez says -lposix is necessary on A/UX.
7228 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7229 $as_echo_n "checking for remove... " >&6; }
7230 if test "${ac_cv_func_remove+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7233 cat >conftest.
$ac_ext <<_ACEOF
7236 cat confdefs.h
>>conftest.
$ac_ext
7237 cat >>conftest.
$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7239 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7241 #define remove innocuous_remove
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char remove (); below.
7245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7246 <limits.h> exists even on freestanding compilers. */
7249 # include <limits.h>
7251 # include <assert.h>
7256 /* Override any GCC internal prototype to avoid an error.
7257 Use char because int might match the return type of a GCC
7258 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined __stub_remove || defined __stub___remove
7278 rm -f conftest.
$ac_objext conftest
$ac_exeext
7279 if { (ac_try
="$ac_link"
7281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7285 $as_echo "$ac_try_echo") >&5
7286 (eval "$ac_link") 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest$ac_exeext && {
7296 test "$cross_compiling" = yes ||
7297 $as_test_x conftest$ac_exeext
7299 ac_cv_func_remove=yes
7301 $as_echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_func_remove=no
7307 rm -rf conftest.dSYM
7308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7309 conftest$ac_exeext conftest.$ac_ext
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7312 $as_echo "$ac_cv_func_remove" >&6; }
7314 if test $ac_cv_func_remove = no; then
7315 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7316 $as_echo_n "checking for remove in -lposix... " >&6; }
7317 if test "${ac_cv_lib_posix_remove+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7320 ac_check_lib_save_LIBS=$LIBS
7321 LIBS="-lposix $LIBS"
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7329 /* Override any GCC internal prototype to avoid an error.
7330 Use char because int might match the return type of a GCC
7331 builtin and then its argument prototype would still apply. */
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (ac_try="$ac_link"
7347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7348 *) ac_try_echo
=$ac_try;;
7350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_link") 2>conftest.er1
7354 grep -v '^ *+' conftest.er1
>conftest.err
7356 cat conftest.err
>&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest
$ac_exeext && {
7362 test "$cross_compiling" = yes ||
7363 $as_test_x conftest
$ac_exeext
7365 ac_cv_lib_posix_remove
=yes
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.
$ac_ext >&5
7370 ac_cv_lib_posix_remove
=no
7373 rm -rf conftest.dSYM
7374 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7375 conftest
$ac_exeext conftest.
$ac_ext
7376 LIBS
=$ac_check_lib_save_LIBS
7378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7379 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7380 if test "x$ac_cv_lib_posix_remove" = x
""yes; then
7381 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7386 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7387 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7388 $as_echo_n "checking for shmat... " >&6; }
7389 if test "${ac_cv_func_shmat+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7392 cat >conftest.
$ac_ext <<_ACEOF
7395 cat confdefs.h
>>conftest.
$ac_ext
7396 cat >>conftest.
$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7400 #define shmat innocuous_shmat
7402 /* System header to define __stub macros and hopefully few prototypes,
7403 which can conflict with char shmat (); below.
7404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7405 <limits.h> exists even on freestanding compilers. */
7408 # include <limits.h>
7410 # include <assert.h>
7415 /* Override any GCC internal prototype to avoid an error.
7416 Use char because int might match the return type of a GCC
7417 builtin and then its argument prototype would still apply. */
7422 /* The GNU C library defines this for functions which it implements
7423 to always fail with ENOSYS. Some functions are actually named
7424 something starting with __ and the normal name is an alias. */
7425 #if defined __stub_shmat || defined __stub___shmat
7437 rm -f conftest.
$ac_objext conftest
$ac_exeext
7438 if { (ac_try
="$ac_link"
7440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7444 $as_echo "$ac_try_echo") >&5
7445 (eval "$ac_link") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest$ac_exeext && {
7455 test "$cross_compiling" = yes ||
7456 $as_test_x conftest$ac_exeext
7458 ac_cv_func_shmat=yes
7460 $as_echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7466 rm -rf conftest.dSYM
7467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7468 conftest$ac_exeext conftest.$ac_ext
7470 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7471 $as_echo "$ac_cv_func_shmat" >&6; }
7473 if test $ac_cv_func_shmat = no; then
7474 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7475 $as_echo_n "checking for shmat in -lipc... " >&6; }
7476 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7477 $as_echo_n "(cached) " >&6
7479 ac_check_lib_save_LIBS=$LIBS
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7488 /* Override any GCC internal prototype to avoid an error.
7489 Use char because int might match the return type of a GCC
7490 builtin and then its argument prototype would still apply. */
7503 rm -f conftest.$ac_objext conftest$ac_exeext
7504 if { (ac_try="$ac_link"
7506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7507 *) ac_try_echo
=$ac_try;;
7509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_link") 2>conftest.er1
7513 grep -v '^ *+' conftest.er1
>conftest.err
7515 cat conftest.err
>&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest
$ac_exeext && {
7521 test "$cross_compiling" = yes ||
7522 $as_test_x conftest
$ac_exeext
7524 ac_cv_lib_ipc_shmat
=yes
7526 $as_echo "$as_me: failed program was:" >&5
7527 sed 's/^/| /' conftest.
$ac_ext >&5
7529 ac_cv_lib_ipc_shmat
=no
7532 rm -rf conftest.dSYM
7533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7534 conftest
$ac_exeext conftest.
$ac_ext
7535 LIBS
=$ac_check_lib_save_LIBS
7537 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7538 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7539 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then
7540 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7546 # Check for libraries that X11R6 Xt/Xaw programs need.
7547 ac_save_LDFLAGS
=$LDFLAGS
7548 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7549 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7550 # check for ICE first), but we must link in the order -lSM -lICE or
7551 # we get undefined symbols. So assume we have SM if we have ICE.
7552 # These have to be linked with before -lX11, unlike the other
7553 # libraries we check for below, so use a different variable.
7554 # John Interrante, Karl Berry
7555 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7556 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7557 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7558 $as_echo_n "(cached) " >&6
7560 ac_check_lib_save_LIBS
=$LIBS
7561 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7562 cat >conftest.
$ac_ext <<_ACEOF
7565 cat confdefs.h
>>conftest.
$ac_ext
7566 cat >>conftest.
$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7569 /* Override any GCC internal prototype to avoid an error.
7570 Use char because int might match the return type of a GCC
7571 builtin and then its argument prototype would still apply. */
7575 char IceConnectionNumber ();
7579 return IceConnectionNumber ();
7584 rm -f conftest.
$ac_objext conftest
$ac_exeext
7585 if { (ac_try
="$ac_link"
7587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591 $as_echo "$ac_try_echo") >&5
7592 (eval "$ac_link") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1 >conftest.err
7596 cat conftest.err >&5
7597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest$ac_exeext && {
7602 test "$cross_compiling" = yes ||
7603 $as_test_x conftest$ac_exeext
7605 ac_cv_lib_ICE_IceConnectionNumber=yes
7607 $as_echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 ac_cv_lib_ICE_IceConnectionNumber=no
7613 rm -rf conftest.dSYM
7614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7615 conftest$ac_exeext conftest.$ac_ext
7616 LIBS=$ac_check_lib_save_LIBS
7618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7619 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7620 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7621 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7624 LDFLAGS=$ac_save_LDFLAGS
7629 if test "$OS390Unix" = "yes"; then
7630 CFLAGS="$CFLAGS -W c,dll"
7631 LDFLAGS="$LDFLAGS -W l,dll"
7632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7636 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7637 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7638 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7639 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7640 X_LIBS="$X_LIBS -L$x_libraries"
7641 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7642 uname -r | grep '^5' >/dev/null; then
7643 X_LIBS="$X_LIBS -R $x_libraries"
7647 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7648 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7649 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7650 $as_echo "Corrected X includes to $x_includes" >&6; }
7651 X_CFLAGS="$X_CFLAGS -I$x_includes"
7654 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7655 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7656 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7659 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7660 $as_echo_n "checking if X11 header files can be found... " >&6; }
7662 CFLAGS="$CFLAGS $X_CFLAGS"
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 #include <X11/Xlib.h>
7670 #include <X11/Intrinsic.h>
7679 rm -f conftest.$ac_objext
7680 if { (ac_try="$ac_compile"
7682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7683 *) ac_try_echo
=$ac_try;;
7685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7686 $as_echo "$ac_try_echo") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7689 grep -v '^ *+' conftest.er1
>conftest.err
7691 cat conftest.err
>&5
7692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.
$ac_objext; then
7697 { $as_echo "$as_me:$LINENO: result: yes" >&5
7698 $as_echo "yes" >&6; }
7700 $as_echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.
$ac_ext >&5
7703 { $as_echo "$as_me:$LINENO: result: no" >&5
7704 $as_echo "no" >&6; }; no_x
=yes
7707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7710 if test "${no_x-no}" = yes; then
7713 cat >>confdefs.h
<<\_ACEOF
7720 ac_save_LDFLAGS
="$LDFLAGS"
7721 LDFLAGS
="-L$x_libraries $LDFLAGS"
7723 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7724 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7725 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7726 $as_echo_n "(cached) " >&6
7728 ac_check_lib_save_LIBS
=$LIBS
7729 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7730 cat >conftest.
$ac_ext <<_ACEOF
7733 cat confdefs.h
>>conftest.
$ac_ext
7734 cat >>conftest.
$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7743 char _XdmcpAuthDoIt ();
7747 return _XdmcpAuthDoIt ();
7752 rm -f conftest.
$ac_objext conftest
$ac_exeext
7753 if { (ac_try
="$ac_link"
7755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7759 $as_echo "$ac_try_echo") >&5
7760 (eval "$ac_link") 2>conftest.er1
7762 grep -v '^ *+' conftest.er1 >conftest.err
7764 cat conftest.err >&5
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest$ac_exeext && {
7770 test "$cross_compiling" = yes ||
7771 $as_test_x conftest$ac_exeext
7773 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7781 rm -rf conftest.dSYM
7782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7783 conftest$ac_exeext conftest.$ac_ext
7784 LIBS=$ac_check_lib_save_LIBS
7786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7787 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7788 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7789 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7793 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7794 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7795 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7796 $as_echo_n "(cached) " >&6
7798 ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7813 char IceOpenConnection ();
7817 return IceOpenConnection ();
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7826 *) ac_try_echo
=$ac_try;;
7828 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1
>conftest.err
7834 cat conftest.err
>&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest
$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest
$ac_exeext
7843 ac_cv_lib_ICE_IceOpenConnection
=yes
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.
$ac_ext >&5
7848 ac_cv_lib_ICE_IceOpenConnection
=no
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7853 conftest
$ac_exeext conftest.
$ac_ext
7854 LIBS
=$ac_check_lib_save_LIBS
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7857 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7858 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x
""yes; then
7859 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7863 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7864 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7865 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7866 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7869 ac_check_lib_save_LIBS
=$LIBS
7870 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7871 cat >conftest.
$ac_ext <<_ACEOF
7874 cat confdefs.h
>>conftest.
$ac_ext
7875 cat >>conftest.
$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7878 /* Override any GCC internal prototype to avoid an error.
7879 Use char because int might match the return type of a GCC
7880 builtin and then its argument prototype would still apply. */
7884 char XpmCreatePixmapFromData ();
7888 return XpmCreatePixmapFromData ();
7893 rm -f conftest.
$ac_objext conftest
$ac_exeext
7894 if { (ac_try
="$ac_link"
7896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901 (eval "$ac_link") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest$ac_exeext && {
7911 test "$cross_compiling" = yes ||
7912 $as_test_x conftest$ac_exeext
7914 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7922 rm -rf conftest.dSYM
7923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LIBS=$ac_check_lib_save_LIBS
7927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7928 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7929 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7930 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7934 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7935 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7937 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #include <X11/Xlib.h>
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7957 *) ac_try_echo
=$ac_try;;
7959 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7960 $as_echo "$ac_try_echo") >&5
7961 (eval "$ac_compile") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1
>conftest.err
7965 cat conftest.err
>&5
7966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } && {
7968 test -z "$ac_c_werror_flag" ||
7969 test ! -s conftest.err
7970 } && test -s conftest.
$ac_objext; then
7971 { $as_echo "$as_me:$LINENO: result: no" >&5
7972 $as_echo "no" >&6; }
7974 $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.
$ac_ext >&5
7977 CFLAGS
="$CFLAGS -Wno-implicit-int"
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <X11/Xlib.h>
7993 rm -f conftest.
$ac_objext
7994 if { (ac_try
="$ac_compile"
7996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8000 $as_echo "$ac_try_echo") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 { $as_echo "$as_me:$LINENO: result: yes" >&5
8012 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
8014 $as_echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 { $as_echo "$as_me:$LINENO: result: test failed" >&5
8018 $as_echo "test failed" >&6; }
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 LDFLAGS="$ac_save_LDFLAGS"
8031 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8032 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8033 if test "${ac_cv_small_wchar_t+set}" = set; then
8034 $as_echo_n "(cached) " >&6
8036 if test "$cross_compiling" = yes; then
8037 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8038 $as_echo "$as_me: error: failed to compile test program" >&2;}
8039 { (exit 1); exit 1; }; }
8041 cat >conftest.$ac_ext <<_ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h. */
8048 #include <X11/Xlib.h>
8050 # include <stdlib.h>
8051 # include <stddef.h>
8055 if (sizeof(wchar_t) <= 2)
8060 rm -f conftest$ac_exeext
8061 if { (ac_try="$ac_link"
8063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8064 *) ac_try_echo
=$ac_try;;
8066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_link") 2>&5
8070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8072 { (case "(($ac_try" in
8073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078 (eval "$ac_try") 2>&5
8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 ac_cv_small_wchar_t="no"
8084 $as_echo "$as_me: program exited with status $ac_status" >&5
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_cv_small_wchar_t="yes"
8091 rm -rf conftest.dSYM
8092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8098 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8099 $as_echo "$ac_cv_small_wchar_t" >&6; }
8100 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define SMALL_WCHAR_T 1
8110 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8112 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8113 $as_echo_n "checking --enable-gui argument... " >&6; }
8114 # Check whether --enable-gui was given.
8115 if test "${enable_gui+set}" = set; then
8116 enableval=$enable_gui;
8122 enable_gui_canon=`echo "_$enable_gui" | \
8123 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8135 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8137 case "$enable_gui_canon" in
8138 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8139 $as_echo "no GUI support" >&6; }
8141 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8142 $as_echo "yes - automatic GUI support" >&6; } ;;
8143 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8144 $as_echo "auto - automatic GUI support" >&6; } ;;
8145 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8146 $as_echo "Photon GUI support" >&6; } ;;
8147 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8148 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8152 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8154 case "$enable_gui_canon" in
8155 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8156 $as_echo "no GUI support" >&6; }
8158 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8159 $as_echo "yes - automatic GUI support" >&6; } ;;
8160 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8161 $as_echo "auto - automatic GUI support" >&6; } ;;
8162 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8163 $as_echo "Carbon GUI support" >&6; } ;;
8164 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8165 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8171 case "$enable_gui_canon" in
8172 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8173 $as_echo "no GUI support" >&6; } ;;
8174 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8175 $as_echo "yes/auto - automatic GUI support" >&6; }
8183 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8184 $as_echo "GTK+ 1.x GUI support" >&6; }
8186 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8187 $as_echo "GTK+ 2.x GUI support" >&6; }
8190 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8191 $as_echo "GNOME 1.x GUI support" >&6; }
8194 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8195 $as_echo "GNOME 2.x GUI support" >&6; }
8199 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8200 $as_echo "Motif GUI support" >&6; }
8202 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8203 $as_echo "Athena GUI support" >&6; }
8205 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8206 $as_echo "neXtaw GUI support" >&6; }
8208 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8209 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8214 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8215 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8216 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8217 # Check whether --enable-gtk-check was given.
8218 if test "${enable_gtk_check+set}" = set; then
8219 enableval=$enable_gtk_check;
8221 enable_gtk_check="yes"
8224 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8225 $as_echo "$enable_gtk_check" >&6; }
8226 if test "x$enable_gtk_check" = "xno"; then
8232 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8233 -a "$enable_gui_canon" != "gnome2"; then
8234 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8235 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8236 # Check whether --enable-gtk2-check was given.
8237 if test "${enable_gtk2_check+set}" = set; then
8238 enableval=$enable_gtk2_check;
8240 enable_gtk2_check="yes"
8243 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8244 $as_echo "$enable_gtk2_check" >&6; }
8245 if test "x$enable_gtk2_check" = "xno"; then
8250 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8251 -a "$enable_gui_canon" != "gnome2"; then
8252 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8253 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8254 # Check whether --enable-gnome-check was given.
8255 if test "${enable_gnome_check+set}" = set; then
8256 enableval=$enable_gnome_check;
8258 enable_gnome_check="no"
8261 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8262 $as_echo "$enable_gnome_check" >&6; }
8263 if test "x$enable_gnome_check" = "xno"; then
8268 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8269 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8270 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8271 # Check whether --enable-motif-check was given.
8272 if test "${enable_motif_check+set}" = set; then
8273 enableval=$enable_motif_check;
8275 enable_motif_check="yes"
8278 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8279 $as_echo "$enable_motif_check" >&6; }
8280 if test "x$enable_motif_check" = "xno"; then
8285 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8286 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8287 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8288 # Check whether --enable-athena-check was given.
8289 if test "${enable_athena_check+set}" = set; then
8290 enableval=$enable_athena_check;
8292 enable_athena_check="yes"
8295 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8296 $as_echo "$enable_athena_check" >&6; }
8297 if test "x$enable_athena_check" = "xno"; then
8302 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8303 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8304 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8305 # Check whether --enable-nextaw-check was given.
8306 if test "${enable_nextaw_check+set}" = set; then
8307 enableval=$enable_nextaw_check;
8309 enable_nextaw_check="yes"
8312 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8313 $as_echo "$enable_nextaw_check" >&6; };
8314 if test "x$enable_nextaw_check" = "xno"; then
8319 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8320 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8321 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8322 # Check whether --enable-carbon-check was given.
8323 if test "${enable_carbon_check+set}" = set; then
8324 enableval=$enable_carbon_check;
8326 enable_carbon_check="yes"
8329 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8330 $as_echo "$enable_carbon_check" >&6; };
8331 if test "x$enable_carbon_check" = "xno"; then
8337 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8338 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8339 $as_echo_n "checking for Carbon GUI... " >&6; }
8340 { $as_echo "$as_me:$LINENO: result: yes" >&5
8341 $as_echo "yes" >&6; };
8343 if test "$VIMNAME" = "vim"; then
8347 if test x$prefix = xNONE; then
8348 prefix=/Applications
8351 datadir='${prefix}/Vim.app/Contents/Resources'
8371 if test -z "$SKIP_GTK"; then
8373 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8374 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8376 # Check whether --with-gtk-prefix was given.
8377 if test "${with_gtk_prefix+set}" = set; then
8378 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8379 $as_echo "$gtk_config_prefix" >&6; }
8381 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8382 $as_echo "no" >&6; }
8386 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8387 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8389 # Check whether --with-gtk-exec-prefix was given.
8390 if test "${with_gtk_exec_prefix+set}" = set; then
8391 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8392 $as_echo "$gtk_config_prefix" >&6; }
8394 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8399 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8400 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8401 # Check whether --enable-gtktest was given.
8402 if test "${enable_gtktest+set}" = set; then
8403 enableval=$enable_gtktest;
8408 if test "x$enable_gtktest" = "xyes" ; then
8409 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8410 $as_echo "gtk test enabled" >&6; }
8412 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8413 $as_echo "gtk test disabled" >&6; }
8416 if test "x$gtk_config_prefix" != "x" ; then
8417 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8418 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8420 if test "x$gtk_config_exec_prefix" != "x" ; then
8421 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8422 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8424 if test "X$GTK_CONFIG" = "X"; then
8425 # Extract the first word of "gtk-config", so it can be a program name with args.
8426 set dummy gtk-config; ac_word=$2
8427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8434 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 test -z "$as_dir" && as_dir=.
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8456 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8457 if test -n "$GTK_CONFIG"; then
8458 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8459 $as_echo "$GTK_CONFIG" >&6; }
8461 { $as_echo "$as_me:$LINENO: result: no" >&5
8462 $as_echo "no" >&6; }
8466 if test "X$GTK_CONFIG" = "Xno"; then
8467 # Extract the first word of "gtk12-config", so it can be a program name with args.
8468 set dummy gtk12-config; ac_word=$2
8469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8472 $as_echo_n "(cached) " >&6
8474 case $GTK12_CONFIG in
8476 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8498 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8499 if test -n "$GTK12_CONFIG"; then
8500 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8501 $as_echo "$GTK12_CONFIG" >&6; }
8503 { $as_echo "$as_me:$LINENO: result: no" >&5
8504 $as_echo "no" >&6; }
8508 GTK_CONFIG="$GTK12_CONFIG"
8511 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8512 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8514 if test "X$PKG_CONFIG" = "X"; then
8515 # Extract the first word of "pkg-config", so it can be a program name with args.
8516 set dummy pkg-config; ac_word=$2
8517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8520 $as_echo_n "(cached) " >&6
8524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8546 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8547 if test -n "$PKG_CONFIG"; then
8548 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8549 $as_echo "$PKG_CONFIG" >&6; }
8551 { $as_echo "$as_me:$LINENO: result: no" >&5
8552 $as_echo "no" >&6; }
8558 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8559 if test "X$SKIP_GTK2" != "XYES"; then
8561 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8563 min_gtk_version=2.2.0
8564 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8565 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8567 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8568 && $PKG_CONFIG --exists gtk+-2.0; then
8570 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8571 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8572 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8573 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8574 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8575 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8576 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8577 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8578 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8580 elif test "X$GTK_CONFIG" != "Xno"; then
8582 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8584 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8585 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8586 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8587 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8588 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8589 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8590 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8596 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8598 ac_save_CFLAGS="$CFLAGS"
8599 ac_save_LIBS="$LIBS"
8600 CFLAGS="$CFLAGS $GTK_CFLAGS"
8601 LIBS="$LIBS $GTK_LIBS"
8604 if test "$cross_compiling" = yes; then
8605 echo $ac_n "cross compiling; assumed OK... $ac_c"
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 #include <gtk/gtk.h>
8617 # include <stdlib.h>
8618 # include <stddef.h>
8624 int major, minor, micro;
8627 system ("touch conf.gtktest");
8629 /* HP/UX 9 (%@#!) writes to sscanf strings */
8630 tmp_version = g_strdup("$min_gtk_version");
8631 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8632 printf("%s, bad version string\n", "$min_gtk_version");
8636 if ((gtk_major_version > major) ||
8637 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8638 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8639 (gtk_micro_version >= micro)))
8647 rm -f conftest$ac_exeext
8648 if { (ac_try="$ac_link"
8650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8651 *) ac_try_echo
=$ac_try;;
8653 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8654 $as_echo "$ac_try_echo") >&5
8655 (eval "$ac_link") 2>&5
8657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8659 { (case "(($ac_try" in
8660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8664 $as_echo "$ac_try_echo") >&5
8665 (eval "$ac_try") 2>&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8671 $as_echo "$as_me: program exited with status $ac_status" >&5
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8678 rm -rf conftest.dSYM
8679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8683 CFLAGS="$ac_save_CFLAGS"
8684 LIBS="$ac_save_LIBS"
8687 if test "x$no_gtk" = x ; then
8688 if test "x$enable_gtktest" = "xyes"; then
8689 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8690 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8692 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8693 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8695 GUI_LIB_LOC="$GTK_LIBDIR"
8696 GTK_LIBNAME="$GTK_LIBS"
8697 GUI_INC_LOC="$GTK_CFLAGS"
8700 { $as_echo "$as_me:$LINENO: result: no" >&5
8701 $as_echo "no" >&6; }
8717 if test "x$GTK_CFLAGS" != "x"; then
8726 if test "x$GUITYPE" != "xGTK"; then
8729 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8731 min_gtk_version=1.1.16
8732 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8733 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8735 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8736 && $PKG_CONFIG --exists gtk+-2.0; then
8738 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8739 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8740 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8741 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8742 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8743 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8744 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8745 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8746 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8748 elif test "X$GTK_CONFIG" != "Xno"; then
8750 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8752 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8753 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8754 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8755 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8756 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8757 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8758 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8764 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8766 ac_save_CFLAGS="$CFLAGS"
8767 ac_save_LIBS="$LIBS"
8768 CFLAGS="$CFLAGS $GTK_CFLAGS"
8769 LIBS="$LIBS $GTK_LIBS"
8772 if test "$cross_compiling" = yes; then
8773 echo $ac_n "cross compiling; assumed OK... $ac_c"
8775 cat >conftest.$ac_ext <<_ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8782 #include <gtk/gtk.h>
8785 # include <stdlib.h>
8786 # include <stddef.h>
8792 int major, minor, micro;
8795 system ("touch conf.gtktest");
8797 /* HP/UX 9 (%@#!) writes to sscanf strings */
8798 tmp_version = g_strdup("$min_gtk_version");
8799 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8800 printf("%s, bad version string\n", "$min_gtk_version");
8804 if ((gtk_major_version > major) ||
8805 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8806 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8807 (gtk_micro_version >= micro)))
8815 rm -f conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8819 *) ac_try_echo
=$ac_try;;
8821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8822 $as_echo "$ac_try_echo") >&5
8823 (eval "$ac_link") 2>&5
8825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8827 { (case "(($ac_try" in
8828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8832 $as_echo "$ac_try_echo") >&5
8833 (eval "$ac_try") 2>&5
8835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8839 $as_echo "$as_me: program exited with status $ac_status" >&5
8840 $as_echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8846 rm -rf conftest.dSYM
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8851 CFLAGS="$ac_save_CFLAGS"
8852 LIBS="$ac_save_LIBS"
8855 if test "x$no_gtk" = x ; then
8856 if test "x$enable_gtktest" = "xyes"; then
8857 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8858 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8860 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8861 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8863 GTK_LIBNAME="$GTK_LIBS"
8864 GUI_INC_LOC="$GTK_CFLAGS"
8867 { $as_echo "$as_me:$LINENO: result: no" >&5
8868 $as_echo "no" >&6; }
8884 if test "x$GTK_CFLAGS" != "x"; then
8893 if test "x$GUITYPE" = "xGTK"; then
8894 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8895 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8896 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8897 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8900 if test "0$gtk_major_version" -ge 2; then
8901 cat >>confdefs.h <<\_ACEOF
8905 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8906 || test "0$gtk_minor_version" -ge 2 \
8907 || test "0$gtk_major_version" -gt 2; then
8908 cat >>confdefs.h <<\_ACEOF
8909 #define HAVE_GTK_MULTIHEAD 1
8914 if test -z "$SKIP_GNOME"; then
8922 # Check whether --with-gnome-includes was given.
8923 if test "${with_gnome_includes+set}" = set; then
8924 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8930 # Check whether --with-gnome-libs was given.
8931 if test "${with_gnome_libs+set}" = set; then
8932 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8938 # Check whether --with-gnome was given.
8939 if test "${with_gnome+set}" = set; then
8940 withval=$with_gnome; if test x$withval = xyes; then
8944 if test "x$withval" = xno; then
8948 LDFLAGS="$LDFLAGS -L$withval/lib"
8949 CFLAGS="$CFLAGS -I$withval/include"
8950 gnome_prefix=$withval/lib
8958 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8960 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8961 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8962 if $PKG_CONFIG --exists libgnomeui-2.0; then
8963 { $as_echo "$as_me:$LINENO: result: yes" >&5
8964 $as_echo "yes" >&6; }
8965 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8966 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8967 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8969 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8970 $as_echo_n "checking for FreeBSD... " >&6; }
8971 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8972 { $as_echo "$as_me:$LINENO: result: yes" >&5
8973 $as_echo "yes" >&6; }
8974 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8975 GNOME_LIBS="$GNOME_LIBS -pthread"
8977 { $as_echo "$as_me:$LINENO: result: no" >&5
8978 $as_echo "no" >&6; }
8982 { $as_echo "$as_me:$LINENO: result: not found" >&5
8983 $as_echo "not found" >&6; }
8984 if test "x" = xfail; then
8985 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8986 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8987 { (exit 1); exit 1; }; }
8991 elif test "x$want_gnome" = xyes; then
8993 # Extract the first word of "gnome-config", so it can be a program name with args.
8994 set dummy gnome-config; ac_word=$2
8995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8998 $as_echo_n "(cached) " >&6
9000 case $GNOME_CONFIG in
9002 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 test -z "$as_dir" && as_dir=.
9010 for ac_exec_ext in '' $ac_executable_extensions; do
9011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9012 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9024 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9025 if test -n "$GNOME_CONFIG"; then
9026 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9027 $as_echo "$GNOME_CONFIG" >&6; }
9029 { $as_echo "$as_me:$LINENO: result: no" >&5
9030 $as_echo "no" >&6; }
9034 if test "$GNOME_CONFIG" = "no"; then
9035 no_gnome_config="yes"
9037 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9038 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9039 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9040 { $as_echo "$as_me:$LINENO: result: yes" >&5
9041 $as_echo "yes" >&6; }
9042 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9043 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9044 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9049 no_gnome_config="yes"
9053 if test x$exec_prefix = xNONE; then
9054 if test x$prefix = xNONE; then
9055 gnome_prefix=$ac_default_prefix/lib
9057 gnome_prefix=$prefix/lib
9060 gnome_prefix=`eval echo \
`echo $libdir\``
9063 if test "$no_gnome_config" = "yes"; then
9064 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9065 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9066 if test -f $gnome_prefix/gnomeConf.sh; then
9067 { $as_echo "$as_me:$LINENO: result: found" >&5
9068 $as_echo "found" >&6; }
9069 echo "loading gnome configuration from" \
9070 "$gnome_prefix/gnomeConf.sh"
9071 . $gnome_prefix/gnomeConf.sh
9074 { $as_echo "$as_me:$LINENO: result: not found" >&5
9075 $as_echo "not found" >&6; }
9076 if test x = xfail; then
9077 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9078 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9079 { (exit 1); exit 1; }; }
9086 if test x$have_gnome = xyes ; then
9087 cat >>confdefs.h <<\_ACEOF
9088 #define FEAT_GUI_GNOME 1
9091 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9092 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9102 if test -z "$SKIP_MOTIF"; then
9103 gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
9104 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9106 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9107 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9108 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9110 for try in $gui_includes; do
9111 if test -f "$try/Xm/Xm.h"; then
9115 if test -n "$GUI_INC_LOC"; then
9116 if test "$GUI_INC_LOC" = /usr/include; then
9118 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9119 $as_echo "in default path" >&6; }
9121 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9122 $as_echo "$GUI_INC_LOC" >&6; }
9125 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9126 $as_echo "<not found>" >&6; }
9132 if test -z "$SKIP_MOTIF"; then
9133 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9134 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9136 # Check whether --with-motif-lib was given.
9137 if test "${with_motif_lib+set}" = set; then
9138 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9142 if test -n "$MOTIF_LIBNAME"; then
9143 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9144 $as_echo "$MOTIF_LIBNAME" >&6; }
9147 { $as_echo "$as_me:$LINENO: result: no" >&5
9148 $as_echo "no" >&6; }
9150 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9152 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9153 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9154 gui_libs="`echo $x_libraries|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/lib
/g
` `echo "$GUI_INC_LOC" |
sed s
/include
/lib
/` $GUI_LIB_LOC"
9156 for try in $gui_libs; do
9157 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9158 if test -f "$libtry"; then
9163 if test -n "$GUI_LIB_LOC"; then
9164 if test "$GUI_LIB_LOC" = /usr/lib; then
9166 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9167 $as_echo "in default path" >&6; }
9169 if test -n "$GUI_LIB_LOC"; then
9170 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9171 $as_echo "$GUI_LIB_LOC" >&6; }
9172 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9173 uname -r | grep '^5' >/dev/null; then
9174 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9180 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9181 $as_echo "<not found>" >&6; }
9187 if test -z "$SKIP_MOTIF"; then
9197 if test -z "$SKIP_ATHENA"; then
9198 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9199 $as_echo_n "checking if Athena header files can be found... " >&6; }
9201 CFLAGS="$CFLAGS $X_CFLAGS"
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 #include <X11/Intrinsic.h>
9210 #include <X11/Xaw/Paned.h>
9219 rm -f conftest.$ac_objext
9220 if { (ac_try="$ac_compile"
9222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9223 *) ac_try_echo
=$ac_try;;
9225 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9226 $as_echo "$ac_try_echo") >&5
9227 (eval "$ac_compile") 2>conftest.er1
9229 grep -v '^ *+' conftest.er1
>conftest.err
9231 cat conftest.err
>&5
9232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && {
9234 test -z "$ac_c_werror_flag" ||
9235 test ! -s conftest.err
9236 } && test -s conftest.
$ac_objext; then
9237 { $as_echo "$as_me:$LINENO: result: yes" >&5
9238 $as_echo "yes" >&6; }
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.
$ac_ext >&5
9243 { $as_echo "$as_me:$LINENO: result: no" >&5
9244 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9251 if test -z "$SKIP_ATHENA"; then
9255 if test -z "$SKIP_NEXTAW"; then
9256 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9257 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9259 CFLAGS
="$CFLAGS $X_CFLAGS"
9260 cat >conftest.
$ac_ext <<_ACEOF
9263 cat confdefs.h
>>conftest.
$ac_ext
9264 cat >>conftest.
$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9267 #include <X11/Intrinsic.h>
9268 #include <X11/neXtaw/Paned.h>
9277 rm -f conftest.
$ac_objext
9278 if { (ac_try
="$ac_compile"
9280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9284 $as_echo "$ac_try_echo") >&5
9285 (eval "$ac_compile") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
9295 { $as_echo "$as_me:$LINENO: result: yes" >&5
9296 $as_echo "yes" >&6; }
9298 $as_echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 { $as_echo "$as_me:$LINENO: result: no" >&5
9302 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 if test -z "$SKIP_NEXTAW"; then
9313 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9314 if test -n "$GUI_INC_LOC"; then
9315 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9317 if test -n "$GUI_LIB_LOC"; then
9318 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9321 ldflags_save=$LDFLAGS
9322 LDFLAGS="$X_LIBS $LDFLAGS"
9323 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9324 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9325 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9326 $as_echo_n "(cached) " >&6
9328 ac_check_lib_save_LIBS=$LIBS
9329 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9343 char XShapeQueryExtension ();
9347 return XShapeQueryExtension ();
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (ac_try="$ac_link"
9355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9356 *) ac_try_echo
=$ac_try;;
9358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9359 $as_echo "$ac_try_echo") >&5
9360 (eval "$ac_link") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1
>conftest.err
9364 cat conftest.err
>&5
9365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest
$ac_exeext && {
9370 test "$cross_compiling" = yes ||
9371 $as_test_x conftest
$ac_exeext
9373 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9375 $as_echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.
$ac_ext >&5
9378 ac_cv_lib_Xext_XShapeQueryExtension
=no
9381 rm -rf conftest.dSYM
9382 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9383 conftest
$ac_exeext conftest.
$ac_ext
9384 LIBS
=$ac_check_lib_save_LIBS
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9387 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9388 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then
9392 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9393 $as_echo_n "checking for wslen in -lw... " >&6; }
9394 if test "${ac_cv_lib_w_wslen+set}" = set; then
9395 $as_echo_n "(cached) " >&6
9397 ac_check_lib_save_LIBS
=$LIBS
9398 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9399 cat >conftest.
$ac_ext <<_ACEOF
9402 cat confdefs.h
>>conftest.
$ac_ext
9403 cat >>conftest.
$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9406 /* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9421 rm -f conftest.
$ac_objext conftest
$ac_exeext
9422 if { (ac_try
="$ac_link"
9424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext && {
9439 test "$cross_compiling" = yes ||
9440 $as_test_x conftest$ac_exeext
9442 ac_cv_lib_w_wslen=yes
9444 $as_echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9447 ac_cv_lib_w_wslen=no
9450 rm -rf conftest.dSYM
9451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452 conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_lib_save_LIBS
9455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9456 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9457 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9458 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9461 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9462 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9463 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9466 ac_check_lib_save_LIBS=$LIBS
9467 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9494 *) ac_try_echo
=$ac_try;;
9496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_link") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1
>conftest.err
9502 cat conftest.err
>&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest
$ac_exeext && {
9508 test "$cross_compiling" = yes ||
9509 $as_test_x conftest
$ac_exeext
9511 ac_cv_lib_dl_dlsym
=yes
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.
$ac_ext >&5
9516 ac_cv_lib_dl_dlsym
=no
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9521 conftest
$ac_exeext conftest.
$ac_ext
9522 LIBS
=$ac_check_lib_save_LIBS
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9525 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9526 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then
9527 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9530 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9531 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9532 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9533 $as_echo_n "(cached) " >&6
9535 ac_check_lib_save_LIBS
=$LIBS
9536 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9537 cat >conftest.
$ac_ext <<_ACEOF
9540 cat confdefs.h
>>conftest.
$ac_ext
9541 cat >>conftest.
$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9550 char XmuCreateStippledPixmap ();
9554 return XmuCreateStippledPixmap ();
9559 rm -f conftest.
$ac_objext conftest
$ac_exeext
9560 if { (ac_try
="$ac_link"
9562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9566 $as_echo "$ac_try_echo") >&5
9567 (eval "$ac_link") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1 >conftest.err
9571 cat conftest.err >&5
9572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest$ac_exeext && {
9577 test "$cross_compiling" = yes ||
9578 $as_test_x conftest$ac_exeext
9580 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9582 $as_echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9585 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9588 rm -rf conftest.dSYM
9589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9594 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9595 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9596 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9599 if test -z "$SKIP_MOTIF"; then
9600 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9601 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9602 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9603 $as_echo_n "(cached) " >&6
9605 ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9607 cat >conftest.$ac_ext <<_ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9633 *) ac_try_echo
=$ac_try;;
9635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9636 $as_echo "$ac_try_echo") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1
>conftest.err
9641 cat conftest.err
>&5
9642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest
$ac_exeext && {
9647 test "$cross_compiling" = yes ||
9648 $as_test_x conftest
$ac_exeext
9650 ac_cv_lib_Xp_XpEndJob
=yes
9652 $as_echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9655 ac_cv_lib_Xp_XpEndJob
=no
9658 rm -rf conftest.dSYM
9659 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9660 conftest
$ac_exeext conftest.
$ac_ext
9661 LIBS
=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9664 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9665 if test "x$ac_cv_lib_Xp_XpEndJob" = x
""yes; then
9666 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9670 LDFLAGS
=$ldflags_save
9672 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9673 $as_echo_n "checking for extra X11 defines... " >&6; }
9676 if mkdir conftestdir
; then
9678 cat > Imakefile
<<'EOF'
9680 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9682 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9683 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9688 if test -z "$NARROW_PROTO"; then
9689 { $as_echo "$as_me:$LINENO: result: no" >&5
9690 $as_echo "no" >&6; }
9692 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9693 $as_echo "$NARROW_PROTO" >&6; }
9698 if test "$enable_xsmp" = "yes"; then
9699 cppflags_save
=$CPPFLAGS
9700 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9702 for ac_header
in X11
/SM
/SMlib.h
9704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9707 $as_echo_n "checking for $ac_header... " >&6; }
9708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9709 $as_echo_n "(cached) " >&6
9711 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9712 $as_echo "$as_val"'`
9713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9714 $as_echo "$ac_res" >&6; }
9716 # Is the header compilable?
9717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9718 $as_echo_n "checking $ac_header usability... " >&6; }
9719 cat >conftest.
$ac_ext <<_ACEOF
9722 cat confdefs.h
>>conftest.
$ac_ext
9723 cat >>conftest.
$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9725 $ac_includes_default
9726 #include <$ac_header>
9728 rm -f conftest.
$ac_objext
9729 if { (ac_try
="$ac_compile"
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_compile") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && {
9743 test -z "$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9745 } && test -s conftest.$ac_objext; then
9746 ac_header_compiler=yes
9748 $as_echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_header_compiler=no
9754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9756 $as_echo "$ac_header_compiler" >&6; }
9758 # Is the header present?
9759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9760 $as_echo_n "checking $ac_header presence... " >&6; }
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 #include <$ac_header>
9769 if { (ac_try="$ac_cpp conftest.$ac_ext"
9771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9772 *) ac_try_echo
=$ac_try;;
9774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9775 $as_echo "$ac_try_echo") >&5
9776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1
>conftest.err
9780 cat conftest.err
>&5
9781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } >/dev
/null
&& {
9783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9786 ac_header_preproc
=yes
9788 $as_echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 ac_header_preproc
=no
9794 rm -f conftest.err conftest.
$ac_ext
9795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9796 $as_echo "$ac_header_preproc" >&6; }
9798 # So? What about this header?
9799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9805 ac_header_preproc
=yes
9808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 $as_echo_n "checking for $ac_header... " >&6; }
9825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9826 $as_echo_n "(cached) " >&6
9828 eval "$as_ac_Header=\$ac_header_preproc"
9830 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9831 $as_echo "$as_val"'`
9832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9833 $as_echo "$ac_res" >&6; }
9836 as_val
=`eval 'as_val=${'$as_ac_Header'}
9837 $as_echo "$as_val"'`
9838 if test "x$as_val" = x
""yes; then
9839 cat >>confdefs.h
<<_ACEOF
9840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9847 CPPFLAGS
=$cppflags_save
9851 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9852 cppflags_save
=$CPPFLAGS
9853 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9856 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9858 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9859 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9861 $as_echo_n "checking for $ac_header... " >&6; }
9862 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9863 $as_echo_n "(cached) " >&6
9865 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9866 $as_echo "$as_val"'`
9867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9868 $as_echo "$ac_res" >&6; }
9870 # Is the header compilable?
9871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 $as_echo_n "checking $ac_header usability... " >&6; }
9873 cat >conftest.
$ac_ext <<_ACEOF
9876 cat confdefs.h
>>conftest.
$ac_ext
9877 cat >>conftest.
$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9882 rm -f conftest.
$ac_objext
9883 if { (ac_try
="$ac_compile"
9885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9889 $as_echo "$ac_try_echo") >&5
9890 (eval "$ac_compile") 2>conftest.er1
9892 grep -v '^ *+' conftest.er1 >conftest.err
9894 cat conftest.err >&5
9895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && {
9897 test -z "$ac_c_werror_flag" ||
9898 test ! -s conftest.err
9899 } && test -s conftest.$ac_objext; then
9900 ac_header_compiler=yes
9902 $as_echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_header_compiler=no
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9910 $as_echo "$ac_header_compiler" >&6; }
9912 # Is the header present?
9913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9914 $as_echo_n "checking $ac_header presence... " >&6; }
9915 cat >conftest.$ac_ext <<_ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 #include <$ac_header>
9923 if { (ac_try="$ac_cpp conftest.$ac_ext"
9925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9926 *) ac_try_echo
=$ac_try;;
9928 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9932 grep -v '^ *+' conftest.er1
>conftest.err
9934 cat conftest.err
>&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } >/dev
/null
&& {
9937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9940 ac_header_preproc
=yes
9942 $as_echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9945 ac_header_preproc
=no
9948 rm -f conftest.err conftest.
$ac_ext
9949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9950 $as_echo "$ac_header_preproc" >&6; }
9952 # So? What about this header?
9953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9959 ac_header_preproc
=yes
9962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9965 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9969 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 $as_echo_n "checking for $ac_header... " >&6; }
9979 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9980 $as_echo_n "(cached) " >&6
9982 eval "$as_ac_Header=\$ac_header_preproc"
9984 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9985 $as_echo "$as_val"'`
9986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9987 $as_echo "$ac_res" >&6; }
9990 as_val
=`eval 'as_val=${'$as_ac_Header'}
9991 $as_echo "$as_val"'`
9992 if test "x$as_val" = x
""yes; then
9993 cat >>confdefs.h
<<_ACEOF
9994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 if test ! "$enable_xim" = "no"; then
10003 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
10004 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
10005 cat >conftest.
$ac_ext <<_ACEOF
10008 cat confdefs.h
>>conftest.
$ac_ext
10009 cat >>conftest.
$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 #include <X11/Xlib.h>
10013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 $EGREP "XIMText" >/dev
/null
2>&1; then
10015 { $as_echo "$as_me:$LINENO: result: yes" >&5
10016 $as_echo "yes" >&6; }
10018 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
10019 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
10024 CPPFLAGS
=$cppflags_save
10026 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10027 -a "x$GUITYPE" != "xNONE" ; then
10028 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10029 $as_echo "X GUI selected; xim has been enabled" >&6; }
10034 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10035 cppflags_save
=$CPPFLAGS
10036 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10037 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10038 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10039 cat >conftest.
$ac_ext <<_ACEOF
10042 cat confdefs.h
>>conftest.
$ac_ext
10043 cat >>conftest.
$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 #include <X11/Intrinsic.h>
10047 #include <X11/Xmu/Editres.h>
10056 rm -f conftest.
$ac_objext
10057 if { (ac_try
="$ac_compile"
10058 case "(($ac_try" in
10059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10063 $as_echo "$ac_try_echo") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_c_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 { $as_echo "$as_me:$LINENO: result: yes" >&5
10075 $as_echo "yes" >&6; }
10076 cat >>confdefs.h <<\_ACEOF
10077 #define HAVE_X11_XMU_EDITRES_H 1
10081 $as_echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 { $as_echo "$as_me:$LINENO: result: no" >&5
10085 $as_echo "no" >&6; }
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 CPPFLAGS=$cppflags_save
10092 if test -z "$SKIP_MOTIF"; then
10093 cppflags_save=$CPPFLAGS
10094 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10102 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10103 Xm/UnhighlightT.h Xm/Notebook.h
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10108 $as_echo_n "checking for $ac_header... " >&6; }
10109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 $as_echo_n "(cached) " >&6
10112 ac_res=`eval 'as_val=${'$as_ac_Header'}
10113 $as_echo "$as_val"'`
10114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10115 $as_echo "$ac_res" >&6; }
10117 # Is the header compilable?
10118 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10119 $as_echo_n "checking $ac_header usability... " >&6; }
10120 cat >conftest.$ac_ext <<_ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>conftest.$ac_ext <<_ACEOF
10125 /* end confdefs.h. */
10126 $ac_includes_default
10127 #include <$ac_header>
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10133 *) ac_try_echo
=$ac_try;;
10135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1
>conftest.err
10141 cat conftest.err
>&5
10142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.
$ac_objext; then
10147 ac_header_compiler
=yes
10149 $as_echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.
$ac_ext >&5
10152 ac_header_compiler
=no
10155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10156 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 $as_echo "$ac_header_compiler" >&6; }
10159 # Is the header present?
10160 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 $as_echo_n "checking $ac_header presence... " >&6; }
10162 cat >conftest.
$ac_ext <<_ACEOF
10165 cat confdefs.h
>>conftest.
$ac_ext
10166 cat >>conftest.
$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10168 #include <$ac_header>
10170 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10176 $as_echo "$ac_try_echo") >&5
10177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1 >conftest.err
10181 cat conftest.err >&5
10182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev/null && {
10184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10187 ac_header_preproc=yes
10189 $as_echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ac_header_preproc=no
10195 rm -f conftest.err conftest.$ac_ext
10196 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 $as_echo "$ac_header_preproc" >&6; }
10199 # So? What about this header?
10200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10205 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10206 ac_header_preproc=yes
10209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10210 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10212 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10214 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10216 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 $as_echo_n "(cached) " >&6
10229 eval "$as_ac_Header=\$ac_header_preproc"
10231 ac_res=`eval 'as_val=${'$as_ac_Header'}
10232 $as_echo "$as_val"'`
10233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10234 $as_echo "$ac_res" >&6; }
10237 as_val=`eval 'as_val=${'$as_ac_Header'}
10238 $as_echo "$as_val"'`
10239 if test "x$as_val" = x""yes; then
10240 cat >>confdefs.h <<_ACEOF
10241 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10249 if test $ac_cv_header_Xm_XpmP_h = yes; then
10250 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10251 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <Xm/XpmP.h>
10262 XpmAttributes_21 attr;
10267 rm -f conftest.$ac_objext
10268 if { (ac_try="$ac_compile"
10269 case "(($ac_try" in
10270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10271 *) ac_try_echo
=$ac_try;;
10273 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10274 $as_echo "$ac_try_echo") >&5
10275 (eval "$ac_compile") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1
>conftest.err
10279 cat conftest.err
>&5
10280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest.
$ac_objext; then
10285 { $as_echo "$as_me:$LINENO: result: yes" >&5
10286 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10287 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10291 $as_echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.
$ac_ext >&5
10294 { $as_echo "$as_me:$LINENO: result: no" >&5
10295 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10296 #define XPMATTRIBUTES_TYPE XpmAttributes
10302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10304 cat >>confdefs.h
<<\_ACEOF
10305 #define XPMATTRIBUTES_TYPE XpmAttributes
10309 CPPFLAGS
=$cppflags_save
10312 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10313 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10314 $as_echo "no GUI selected; xim has been disabled" >&6; }
10317 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10318 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10319 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10320 enable_fontset
="no"
10322 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10323 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10324 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10325 enable_fontset
="no"
10328 if test -z "$SKIP_PHOTON"; then
10337 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10338 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10339 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10340 { (exit 1); exit 1; }; }
10343 if test "$enable_xim" = "yes"; then
10344 cat >>confdefs.h
<<\_ACEOF
10349 if test "$enable_fontset" = "yes"; then
10350 cat >>confdefs.h
<<\_ACEOF
10351 #define FEAT_XFONTSET 1
10359 if test "$enable_hangulinput" = "yes"; then
10360 if test "x$GUITYPE" = "xNONE"; then
10361 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10362 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10363 enable_hangulinput
=no
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define FEAT_HANGULIN 1
10369 HANGULIN_SRC
=hangulin.c
10371 HANGULIN_OBJ
=objects
/hangulin.o
10377 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10378 $as_echo_n "checking whether toupper is broken... " >&6; }
10379 if test "${vim_cv_toupper_broken+set}" = set; then
10380 $as_echo_n "(cached) " >&6
10383 if test "$cross_compiling" = yes; then
10385 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10386 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10387 { (exit 1); exit 1; }; }
10390 cat >conftest.
$ac_ext <<_ACEOF
10392 #include "confdefs.h"
10395 # include <stdlib.h>
10396 # include <stddef.h>
10398 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10401 rm -f conftest
$ac_exeext
10402 if { (ac_try
="$ac_link"
10403 case "(($ac_try" in
10404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_link") 2>&5
10411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10415 *) ac_try_echo
=$ac_try;;
10417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419 (eval "$ac_try") 2>&5
10421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10424 vim_cv_toupper_broken
=yes
10427 $as_echo "$as_me: program exited with status $ac_status" >&5
10428 $as_echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.
$ac_ext >&5
10431 ( exit $ac_status )
10433 vim_cv_toupper_broken
=no
10436 rm -rf conftest.dSYM
10437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10442 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10443 $as_echo "$vim_cv_toupper_broken" >&6; }
10445 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10446 cat >>confdefs.h
<<\_ACEOF
10447 #define BROKEN_TOUPPER 1
10452 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10453 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10454 cat >conftest.
$ac_ext <<_ACEOF
10457 cat confdefs.h
>>conftest.
$ac_ext
10458 cat >>conftest.
$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10464 printf("(" __DATE__ " " __TIME__ ")");
10469 rm -f conftest.
$ac_objext
10470 if { (ac_try
="$ac_compile"
10471 case "(($ac_try" in
10472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_compile") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest.$ac_objext; then
10487 { $as_echo "$as_me:$LINENO: result: yes" >&5
10488 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_DATE_TIME 1
10493 $as_echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 { $as_echo "$as_me:$LINENO: result: no" >&5
10497 $as_echo "no" >&6; }
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10503 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10514 int x __attribute__((unused));
10519 rm -f conftest.$ac_objext
10520 if { (ac_try="$ac_compile"
10521 case "(($ac_try" in
10522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10523 *) ac_try_echo
=$ac_try;;
10525 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10526 $as_echo "$ac_try_echo") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10529 grep -v '^ *+' conftest.er1
>conftest.err
10531 cat conftest.err
>&5
10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.
$ac_objext; then
10537 { $as_echo "$as_me:$LINENO: result: yes" >&5
10538 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10539 #define HAVE_ATTRIBUTE_UNUSED 1
10543 $as_echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.
$ac_ext >&5
10546 { $as_echo "$as_me:$LINENO: result: no" >&5
10547 $as_echo "no" >&6; }
10550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10552 if test "${ac_cv_header_elf_h+set}" = set; then
10553 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10554 $as_echo_n "checking for elf.h... " >&6; }
10555 if test "${ac_cv_header_elf_h+set}" = set; then
10556 $as_echo_n "(cached) " >&6
10558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10559 $as_echo "$ac_cv_header_elf_h" >&6; }
10561 # Is the header compilable?
10562 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10563 $as_echo_n "checking elf.h usability... " >&6; }
10564 cat >conftest.
$ac_ext <<_ACEOF
10567 cat confdefs.h
>>conftest.
$ac_ext
10568 cat >>conftest.
$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 $ac_includes_default
10573 rm -f conftest.
$ac_objext
10574 if { (ac_try
="$ac_compile"
10575 case "(($ac_try" in
10576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10580 $as_echo "$ac_try_echo") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1 >conftest.err
10585 cat conftest.err >&5
10586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.$ac_objext; then
10591 ac_header_compiler=yes
10593 $as_echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_header_compiler=no
10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10601 $as_echo "$ac_header_compiler" >&6; }
10603 # Is the header present?
10604 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10605 $as_echo_n "checking elf.h presence... " >&6; }
10606 cat >conftest.$ac_ext <<_ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h. */
10614 if { (ac_try="$ac_cpp conftest.$ac_ext"
10615 case "(($ac_try" in
10616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10617 *) ac_try_echo
=$ac_try;;
10619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10620 $as_echo "$ac_try_echo") >&5
10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10623 grep -v '^ *+' conftest.er1
>conftest.err
10625 cat conftest.err
>&5
10626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } >/dev
/null
&& {
10628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10629 test ! -s conftest.err
10631 ac_header_preproc
=yes
10633 $as_echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.
$ac_ext >&5
10636 ac_header_preproc
=no
10639 rm -f conftest.err conftest.
$ac_ext
10640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10641 $as_echo "$ac_header_preproc" >&6; }
10643 # So? What about this header?
10644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10647 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10649 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10650 ac_header_preproc
=yes
10653 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10654 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10656 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10658 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10660 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10662 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10663 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10664 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10668 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10669 $as_echo_n "checking for elf.h... " >&6; }
10670 if test "${ac_cv_header_elf_h+set}" = set; then
10671 $as_echo_n "(cached) " >&6
10673 ac_cv_header_elf_h
=$ac_header_preproc
10675 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10676 $as_echo "$ac_cv_header_elf_h" >&6; }
10679 if test "x$ac_cv_header_elf_h" = x
""yes; then
10684 if test "$HAS_ELF" = 1; then
10686 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10687 $as_echo_n "checking for main in -lelf... " >&6; }
10688 if test "${ac_cv_lib_elf_main+set}" = set; then
10689 $as_echo_n "(cached) " >&6
10691 ac_check_lib_save_LIBS
=$LIBS
10693 cat >conftest.
$ac_ext <<_ACEOF
10696 cat confdefs.h
>>conftest.
$ac_ext
10697 cat >>conftest.
$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10709 rm -f conftest.
$ac_objext conftest
$ac_exeext
10710 if { (ac_try
="$ac_link"
10711 case "(($ac_try" in
10712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10716 $as_echo "$ac_try_echo") >&5
10717 (eval "$ac_link") 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest$ac_exeext && {
10727 test "$cross_compiling" = yes ||
10728 $as_test_x conftest$ac_exeext
10730 ac_cv_lib_elf_main=yes
10732 $as_echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_lib_elf_main=no
10738 rm -rf conftest.dSYM
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10744 $as_echo "$ac_cv_lib_elf_main" >&6; }
10745 if test "x$ac_cv_lib_elf_main" = x""yes; then
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_LIBELF 1
10761 ac_header_dirent=no
10762 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10763 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10764 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10765 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10767 $as_echo_n "(cached) " >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 #include <sys/types.h>
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10791 *) ac_try_echo
=$ac_try;;
10793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10794 $as_echo "$ac_try_echo") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.
$ac_objext; then
10805 eval "$as_ac_Header=yes"
10807 $as_echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.
$ac_ext >&5
10810 eval "$as_ac_Header=no"
10813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10815 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10816 $as_echo "$as_val"'`
10817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10818 $as_echo "$ac_res" >&6; }
10819 as_val
=`eval 'as_val=${'$as_ac_Header'}
10820 $as_echo "$as_val"'`
10821 if test "x$as_val" = x
""yes; then
10822 cat >>confdefs.h
<<_ACEOF
10823 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10826 ac_header_dirent
=$ac_hdr; break
10830 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10831 if test $ac_header_dirent = dirent.h
; then
10832 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10833 $as_echo_n "checking for library containing opendir... " >&6; }
10834 if test "${ac_cv_search_opendir+set}" = set; then
10835 $as_echo_n "(cached) " >&6
10837 ac_func_search_save_LIBS
=$LIBS
10838 cat >conftest.
$ac_ext <<_ACEOF
10841 cat confdefs.h
>>conftest.
$ac_ext
10842 cat >>conftest.
$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10845 /* Override any GCC internal prototype to avoid an error.
10846 Use char because int might match the return type of a GCC
10847 builtin and then its argument prototype would still apply. */
10860 for ac_lib
in '' dir
; do
10861 if test -z "$ac_lib"; then
10862 ac_res
="none required"
10865 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10867 rm -f conftest.
$ac_objext conftest
$ac_exeext
10868 if { (ac_try
="$ac_link"
10869 case "(($ac_try" in
10870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874 $as_echo "$ac_try_echo") >&5
10875 (eval "$ac_link") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest$ac_exeext && {
10885 test "$cross_compiling" = yes ||
10886 $as_test_x conftest$ac_exeext
10888 ac_cv_search_opendir=$ac_res
10890 $as_echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10896 rm -rf conftest.dSYM
10897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10899 if test "${ac_cv_search_opendir+set}" = set; then
10903 if test "${ac_cv_search_opendir+set}" = set; then
10906 ac_cv_search_opendir=no
10908 rm conftest.$ac_ext
10909 LIBS=$ac_func_search_save_LIBS
10911 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10912 $as_echo "$ac_cv_search_opendir" >&6; }
10913 ac_res=$ac_cv_search_opendir
10914 if test "$ac_res" != no; then
10915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10920 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10921 $as_echo_n "checking for library containing opendir... " >&6; }
10922 if test "${ac_cv_search_opendir+set}" = set; then
10923 $as_echo_n "(cached) " >&6
10925 ac_func_search_save_LIBS=$LIBS
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10948 for ac_lib in '' x; do
10949 if test -z "$ac_lib"; then
10950 ac_res="none required"
10953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (ac_try="$ac_link"
10957 case "(($ac_try" in
10958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10959 *) ac_try_echo
=$ac_try;;
10961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10962 $as_echo "$ac_try_echo") >&5
10963 (eval "$ac_link") 2>conftest.er1
10965 grep -v '^ *+' conftest.er1
>conftest.err
10967 cat conftest.err
>&5
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } && {
10970 test -z "$ac_c_werror_flag" ||
10971 test ! -s conftest.err
10972 } && test -s conftest
$ac_exeext && {
10973 test "$cross_compiling" = yes ||
10974 $as_test_x conftest
$ac_exeext
10976 ac_cv_search_opendir
=$ac_res
10978 $as_echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.
$ac_ext >&5
10984 rm -rf conftest.dSYM
10985 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10987 if test "${ac_cv_search_opendir+set}" = set; then
10991 if test "${ac_cv_search_opendir+set}" = set; then
10994 ac_cv_search_opendir
=no
10996 rm conftest.
$ac_ext
10997 LIBS
=$ac_func_search_save_LIBS
10999 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11000 $as_echo "$ac_cv_search_opendir" >&6; }
11001 ac_res
=$ac_cv_search_opendir
11002 if test "$ac_res" != no
; then
11003 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11010 if test $ac_cv_header_sys_wait_h = no
; then
11011 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
11012 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
11013 cat >conftest.
$ac_ext <<_ACEOF
11016 cat confdefs.h
>>conftest.
$ac_ext
11017 cat >>conftest.
$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 #include <sys/wait.h>
11023 union wait xx, yy; xx = yy
11028 rm -f conftest.
$ac_objext
11029 if { (ac_try
="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11035 $as_echo "$ac_try_echo") >&5
11036 (eval "$ac_compile") 2>conftest.er1
11038 grep -v '^ *+' conftest.er1 >conftest.err
11040 cat conftest.err >&5
11041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); } && {
11043 test -z "$ac_c_werror_flag" ||
11044 test ! -s conftest.err
11045 } && test -s conftest.$ac_objext; then
11046 { $as_echo "$as_me:$LINENO: result: yes" >&5
11047 $as_echo "yes" >&6; }
11048 cat >>confdefs.h <<\_ACEOF
11049 #define HAVE_SYS_WAIT_H 1
11052 cat >>confdefs.h <<\_ACEOF
11053 #define HAVE_UNION_WAIT 1
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 { $as_echo "$as_me:$LINENO: result: no" >&5
11061 $as_echo "no" >&6; }
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11108 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11109 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11110 sys/resource.h sys/systeminfo.h locale.h \
11111 sys/stream.h termios.h libc.h sys/statfs.h \
11112 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11113 libgen.h util/debug.h util/msg18n.h frame.h \
11114 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11118 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11119 $as_echo_n "checking for $ac_header... " >&6; }
11120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11121 $as_echo_n "(cached) " >&6
11123 ac_res=`eval 'as_val=${'$as_ac_Header'}
11124 $as_echo "$as_val"'`
11125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11126 $as_echo "$ac_res" >&6; }
11128 # Is the header compilable?
11129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11130 $as_echo_n "checking $ac_header usability... " >&6; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 $ac_includes_default
11138 #include <$ac_header>
11140 rm -f conftest.$ac_objext
11141 if { (ac_try="$ac_compile"
11142 case "(($ac_try" in
11143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11144 *) ac_try_echo
=$ac_try;;
11146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148 (eval "$ac_compile") 2>conftest.er1
11150 grep -v '^ *+' conftest.er1
>conftest.err
11152 cat conftest.err
>&5
11153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } && {
11155 test -z "$ac_c_werror_flag" ||
11156 test ! -s conftest.err
11157 } && test -s conftest.
$ac_objext; then
11158 ac_header_compiler
=yes
11160 $as_echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.
$ac_ext >&5
11163 ac_header_compiler
=no
11166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11168 $as_echo "$ac_header_compiler" >&6; }
11170 # Is the header present?
11171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11172 $as_echo_n "checking $ac_header presence... " >&6; }
11173 cat >conftest.
$ac_ext <<_ACEOF
11176 cat confdefs.h
>>conftest.
$ac_ext
11177 cat >>conftest.
$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 #include <$ac_header>
11181 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11182 case "(($ac_try" in
11183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } >/dev/null && {
11195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11198 ac_header_preproc=yes
11200 $as_echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 ac_header_preproc=no
11206 rm -f conftest.err conftest.$ac_ext
11207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208 $as_echo "$ac_header_preproc" >&6; }
11210 # So? What about this header?
11211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11236 $as_echo_n "checking for $ac_header... " >&6; }
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 $as_echo_n "(cached) " >&6
11240 eval "$as_ac_Header=\$ac_header_preproc"
11242 ac_res=`eval 'as_val=${'$as_ac_Header'}
11243 $as_echo "$as_val"'`
11244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11245 $as_echo "$ac_res" >&6; }
11248 as_val=`eval 'as_val=${'$as_ac_Header'}
11249 $as_echo "$as_val"'`
11250 if test "x$as_val" = x""yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11261 for ac_header in sys/ptem.h
11263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 $as_echo_n "checking for $ac_header... " >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 $as_echo_n "(cached) " >&6
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 #if defined HAVE_SYS_STREAM_H
11276 # include <sys/stream.h>
11279 #include <$ac_header>
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11285 *) ac_try_echo
=$ac_try;;
11287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11288 $as_echo "$ac_try_echo") >&5
11289 (eval "$ac_compile") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest.
$ac_objext; then
11299 eval "$as_ac_Header=yes"
11301 $as_echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.
$ac_ext >&5
11304 eval "$as_ac_Header=no"
11307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11309 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11310 $as_echo "$as_val"'`
11311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11313 as_val
=`eval 'as_val=${'$as_ac_Header'}
11314 $as_echo "$as_val"'`
11315 if test "x$as_val" = x
""yes; then
11316 cat >>confdefs.h
<<_ACEOF
11317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326 for ac_header
in sys
/sysctl.h
11328 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11329 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 $as_echo_n "checking for $ac_header... " >&6; }
11331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 $as_echo_n "(cached) " >&6
11334 cat >conftest.
$ac_ext <<_ACEOF
11337 cat confdefs.h
>>conftest.
$ac_ext
11338 cat >>conftest.
$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #if defined HAVE_SYS_PARAM_H
11341 # include <sys/param.h>
11344 #include <$ac_header>
11346 rm -f conftest.
$ac_objext
11347 if { (ac_try
="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11353 $as_echo "$ac_try_echo") >&5
11354 (eval "$ac_compile") 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } && {
11361 test -z "$ac_c_werror_flag" ||
11362 test ! -s conftest.err
11363 } && test -s conftest.$ac_objext; then
11364 eval "$as_ac_Header=yes"
11366 $as_echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 eval "$as_ac_Header=no"
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 ac_res=`eval 'as_val=${'$as_ac_Header'}
11375 $as_echo "$as_val"'`
11376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11377 $as_echo "$ac_res" >&6; }
11378 as_val=`eval 'as_val=${'$as_ac_Header'}
11379 $as_echo "$as_val"'`
11380 if test "x$as_val" = x""yes; then
11381 cat >>confdefs.h <<_ACEOF
11382 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11391 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11392 $as_echo_n "checking for pthread_np.h... " >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11400 #include <pthread.h>
11401 #include <pthread_np.h>
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11414 *) ac_try_echo
=$ac_try;;
11416 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11417 $as_echo "$ac_try_echo") >&5
11418 (eval "$ac_compile") 2>conftest.er1
11420 grep -v '^ *+' conftest.er1
>conftest.err
11422 cat conftest.err
>&5
11423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
11427 } && test -s conftest.
$ac_objext; then
11428 { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11430 cat >>confdefs.h
<<\_ACEOF
11431 #define HAVE_PTHREAD_NP_H 1
11435 $as_echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.
$ac_ext >&5
11438 { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 for ac_header
in strings.h
11447 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11448 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 $as_echo_n "checking for $ac_header... " >&6; }
11451 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 $as_echo_n "(cached) " >&6
11454 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11455 $as_echo "$as_val"'`
11456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11457 $as_echo "$ac_res" >&6; }
11459 # Is the header compilable?
11460 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11461 $as_echo_n "checking $ac_header usability... " >&6; }
11462 cat >conftest.
$ac_ext <<_ACEOF
11465 cat confdefs.h
>>conftest.
$ac_ext
11466 cat >>conftest.
$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 $ac_includes_default
11469 #include <$ac_header>
11471 rm -f conftest.
$ac_objext
11472 if { (ac_try
="$ac_compile"
11473 case "(($ac_try" in
11474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478 $as_echo "$ac_try_echo") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11481 grep -v '^ *+' conftest.er1 >conftest.err
11483 cat conftest.err >&5
11484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11489 ac_header_compiler=yes
11491 $as_echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11494 ac_header_compiler=no
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11499 $as_echo "$ac_header_compiler" >&6; }
11501 # Is the header present?
11502 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11503 $as_echo_n "checking $ac_header presence... " >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 #include <$ac_header>
11512 if { (ac_try="$ac_cpp conftest.$ac_ext"
11513 case "(($ac_try" in
11514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11515 *) ac_try_echo
=$ac_try;;
11517 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11518 $as_echo "$ac_try_echo") >&5
11519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1
>conftest.err
11523 cat conftest.err
>&5
11524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } >/dev
/null
&& {
11526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11529 ac_header_preproc
=yes
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.
$ac_ext >&5
11534 ac_header_preproc
=no
11537 rm -f conftest.err conftest.
$ac_ext
11538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11539 $as_echo "$ac_header_preproc" >&6; }
11541 # So? What about this header?
11542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11548 ac_header_preproc
=yes
11551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11552 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11554 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11556 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11558 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11562 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11567 $as_echo_n "checking for $ac_header... " >&6; }
11568 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11571 eval "$as_ac_Header=\$ac_header_preproc"
11573 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11574 $as_echo "$as_val"'`
11575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11576 $as_echo "$ac_res" >&6; }
11579 as_val
=`eval 'as_val=${'$as_ac_Header'}
11580 $as_echo "$as_val"'`
11581 if test "x$as_val" = x
""yes; then
11582 cat >>confdefs.h
<<_ACEOF
11583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11590 if test "x$MACOSX" = "xyes"; then
11591 cat >>confdefs.h
<<\_ACEOF
11592 #define NO_STRINGS_WITH_STRING_H 1
11597 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11598 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11599 cppflags_save
=$CPPFLAGS
11600 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11601 cat >conftest.
$ac_ext <<_ACEOF
11604 cat confdefs.h
>>conftest.
$ac_ext
11605 cat >>conftest.
$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11608 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11609 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11610 /* but don't do it on AIX 5.1 (Uribarri) */
11612 #ifdef HAVE_XM_XM_H
11613 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11615 #ifdef HAVE_STRING_H
11616 # include <string.h>
11618 #if defined(HAVE_STRINGS_H)
11619 # include <strings.h>
11630 rm -f conftest.
$ac_objext
11631 if { (ac_try
="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 { $as_echo "$as_me:$LINENO: result: yes" >&5
11649 $as_echo "yes" >&6; }
11651 $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 cat >>confdefs.h <<\_ACEOF
11655 #define NO_STRINGS_WITH_STRING_H 1
11658 { $as_echo "$as_me:$LINENO: result: no" >&5
11659 $as_echo "no" >&6; }
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 CPPFLAGS=$cppflags_save
11666 if test $ac_cv_c_compiler_gnu = yes; then
11667 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11668 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11669 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11670 $as_echo_n "(cached) " >&6
11672 ac_pattern="Autoconf.*'x'"
11673 cat >conftest.$ac_ext <<_ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h. */
11682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11683 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11684 ac_cv_prog_gcc_traditional=yes
11686 ac_cv_prog_gcc_traditional=no
11691 if test $ac_cv_prog_gcc_traditional = no; then
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 #include <termio.h>
11701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11702 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11703 ac_cv_prog_gcc_traditional=yes
11709 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11710 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11711 if test $ac_cv_prog_gcc_traditional = yes; then
11712 CC="$CC -traditional"
11716 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11717 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11718 if test "${ac_cv_c_const+set}" = set; then
11719 $as_echo_n "(cached) " >&6
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11731 /* FIXME: Include the comments suggested by Paul. */
11732 #ifndef __cplusplus
11733 /* Ultrix mips cc rejects this. */
11734 typedef int charset[2];
11736 /* SunOS 4.1.1 cc rejects this. */
11737 char const *const *pcpcc;
11739 /* NEC SVR4.0.2 mips cc rejects this. */
11740 struct point {int x, y;};
11741 static struct point const zero = {0,0};
11742 /* AIX XL C 1.02.0.0 rejects this.
11743 It does not let you subtract one const X* pointer from another in
11744 an arm of an if-expression whose if-part is not a constant
11746 const char *g = "string";
11747 pcpcc = &g + (g ? g-g : 0);
11748 /* HPUX 7.0 cc rejects these. */
11750 ppc = (char**) pcpcc;
11751 pcpcc = (char const *const *) ppc;
11752 { /* SCO 3.2v4 cc rejects this. */
11754 char const *s = 0 ? (char *) 0 : (char const *) 0;
11759 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11760 int x[] = {25, 17};
11761 const int *foo = &x[0];
11764 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11765 typedef const int *iptr;
11769 { /* AIX XL C 1.02.0.0 rejects this saying
11770 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11771 struct s { int j; const int *ap[3]; };
11772 struct s *b; b->j = 5;
11774 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11775 const int foo = 10;
11776 if (!foo) return 0;
11778 return !cs[0] && !zero.x;
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11789 *) ac_try_echo
=$ac_try;;
11791 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1
>conftest.err
11797 cat conftest.err
>&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.
$ac_objext; then
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.
$ac_ext >&5
11811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11814 $as_echo "$ac_cv_c_const" >&6; }
11815 if test $ac_cv_c_const = no
; then
11817 cat >>confdefs.h
<<\_ACEOF
11823 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11824 $as_echo_n "checking for working volatile... " >&6; }
11825 if test "${ac_cv_c_volatile+set}" = set; then
11826 $as_echo_n "(cached) " >&6
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11840 int * volatile y = (int *) 0;
11846 rm -f conftest.
$ac_objext
11847 if { (ac_try
="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11853 $as_echo "$ac_try_echo") >&5
11854 (eval "$ac_compile") 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_c_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest.$ac_objext; then
11864 ac_cv_c_volatile=yes
11866 $as_echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11869 ac_cv_c_volatile=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11875 $as_echo "$ac_cv_c_volatile" >&6; }
11876 if test $ac_cv_c_volatile = no; then
11878 cat >>confdefs.h <<\_ACEOF
11879 #define volatile /**/
11884 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11885 $as_echo_n "checking for mode_t... " >&6; }
11886 if test "${ac_cv_type_mode_t+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11889 ac_cv_type_mode_t=no
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11900 if (sizeof (mode_t))
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11910 *) ac_try_echo
=$ac_try;;
11912 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11913 $as_echo "$ac_try_echo") >&5
11914 (eval "$ac_compile") 2>conftest.er1
11916 grep -v '^ *+' conftest.er1
>conftest.err
11918 cat conftest.err
>&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest.
$ac_objext; then
11924 cat >conftest.
$ac_ext <<_ACEOF
11927 cat confdefs.h
>>conftest.
$ac_ext
11928 cat >>conftest.
$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11934 if (sizeof ((mode_t)))
11940 rm -f conftest.
$ac_objext
11941 if { (ac_try
="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11947 $as_echo "$ac_try_echo") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11950 grep -v '^ *+' conftest.er1 >conftest.err
11952 cat conftest.err >&5
11953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11960 $as_echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_type_mode_t=yes
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 $as_echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11977 $as_echo "$ac_cv_type_mode_t" >&6; }
11978 if test "x$ac_cv_type_mode_t" = x""yes; then
11982 cat >>confdefs.h <<_ACEOF
11988 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11989 $as_echo_n "checking for off_t... " >&6; }
11990 if test "${ac_cv_type_off_t+set}" = set; then
11991 $as_echo_n "(cached) " >&6
11993 ac_cv_type_off_t=no
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12004 if (sizeof (off_t))
12010 rm -f conftest.$ac_objext
12011 if { (ac_try="$ac_compile"
12012 case "(($ac_try" in
12013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12014 *) ac_try_echo
=$ac_try;;
12016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12017 $as_echo "$ac_try_echo") >&5
12018 (eval "$ac_compile") 2>conftest.er1
12020 grep -v '^ *+' conftest.er1
>conftest.err
12022 cat conftest.err
>&5
12023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } && {
12025 test -z "$ac_c_werror_flag" ||
12026 test ! -s conftest.err
12027 } && test -s conftest.
$ac_objext; then
12028 cat >conftest.
$ac_ext <<_ACEOF
12031 cat confdefs.h
>>conftest.
$ac_ext
12032 cat >>conftest.
$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12034 $ac_includes_default
12038 if (sizeof ((off_t)))
12044 rm -f conftest.
$ac_objext
12045 if { (ac_try
="$ac_compile"
12046 case "(($ac_try" in
12047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12051 $as_echo "$ac_try_echo") >&5
12052 (eval "$ac_compile") 2>conftest.er1
12054 grep -v '^ *+' conftest.er1 >conftest.err
12056 cat conftest.err >&5
12057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest.$ac_objext; then
12064 $as_echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_type_off_t=yes
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12081 $as_echo "$ac_cv_type_off_t" >&6; }
12082 if test "x$ac_cv_type_off_t" = x""yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define off_t long int
12092 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12093 $as_echo_n "checking for pid_t... " >&6; }
12094 if test "${ac_cv_type_pid_t+set}" = set; then
12095 $as_echo_n "(cached) " >&6
12097 ac_cv_type_pid_t=no
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12108 if (sizeof (pid_t))
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12118 *) ac_try_echo
=$ac_try;;
12120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1
>conftest.err
12126 cat conftest.err
>&5
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.
$ac_objext; then
12132 cat >conftest.
$ac_ext <<_ACEOF
12135 cat confdefs.h
>>conftest.
$ac_ext
12136 cat >>conftest.
$ac_ext <<_ACEOF
12137 /* end confdefs.h. */
12138 $ac_includes_default
12142 if (sizeof ((pid_t)))
12148 rm -f conftest.
$ac_objext
12149 if { (ac_try
="$ac_compile"
12150 case "(($ac_try" in
12151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12155 $as_echo "$ac_try_echo") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
12168 $as_echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_type_pid_t=yes
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 $as_echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12185 $as_echo "$ac_cv_type_pid_t" >&6; }
12186 if test "x$ac_cv_type_pid_t" = x""yes; then
12190 cat >>confdefs.h <<_ACEOF
12196 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12197 $as_echo_n "checking for size_t... " >&6; }
12198 if test "${ac_cv_type_size_t+set}" = set; then
12199 $as_echo_n "(cached) " >&6
12201 ac_cv_type_size_t=no
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12212 if (sizeof (size_t))
12218 rm -f conftest.$ac_objext
12219 if { (ac_try="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12222 *) ac_try_echo
=$ac_try;;
12224 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_compile") 2>conftest.er1
12228 grep -v '^ *+' conftest.er1
>conftest.err
12230 cat conftest.err
>&5
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest.
$ac_objext; then
12236 cat >conftest.
$ac_ext <<_ACEOF
12239 cat confdefs.h
>>conftest.
$ac_ext
12240 cat >>conftest.
$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12246 if (sizeof ((size_t)))
12252 rm -f conftest.
$ac_objext
12253 if { (ac_try
="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12259 $as_echo "$ac_try_echo") >&5
12260 (eval "$ac_compile") 2>conftest.er1
12262 grep -v '^ *+' conftest.er1 >conftest.err
12264 cat conftest.err >&5
12265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); } && {
12267 test -z "$ac_c_werror_flag" ||
12268 test ! -s conftest.err
12269 } && test -s conftest.$ac_objext; then
12272 $as_echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_type_size_t=yes
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12288 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12289 $as_echo "$ac_cv_type_size_t" >&6; }
12290 if test "x$ac_cv_type_size_t" = x""yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define size_t unsigned int
12300 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12301 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12302 if test "${ac_cv_type_uid_t+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 #include <sys/types.h>
12314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315 $EGREP "uid_t" >/dev/null 2>&1; then
12316 ac_cv_type_uid_t=yes
12318 ac_cv_type_uid_t=no
12323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12324 $as_echo "$ac_cv_type_uid_t" >&6; }
12325 if test $ac_cv_type_uid_t = no; then
12327 cat >>confdefs.h <<\_ACEOF
12332 cat >>confdefs.h <<\_ACEOF
12338 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12339 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12340 if test "${ac_cv_header_time+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 #include <sys/types.h>
12350 #include <sys/time.h>
12356 if ((struct tm *) 0)
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12366 *) ac_try_echo
=$ac_try;;
12368 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12369 $as_echo "$ac_try_echo") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1
>conftest.err
12374 cat conftest.err
>&5
12375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.
$ac_objext; then
12380 ac_cv_header_time
=yes
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12385 ac_cv_header_time
=no
12388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12391 $as_echo "$ac_cv_header_time" >&6; }
12392 if test $ac_cv_header_time = yes; then
12394 cat >>confdefs.h
<<\_ACEOF
12395 #define TIME_WITH_SYS_TIME 1
12400 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12401 $as_echo_n "checking for ino_t... " >&6; }
12402 if test "${ac_cv_type_ino_t+set}" = set; then
12403 $as_echo_n "(cached) " >&6
12405 ac_cv_type_ino_t
=no
12406 cat >conftest.
$ac_ext <<_ACEOF
12409 cat confdefs.h
>>conftest.
$ac_ext
12410 cat >>conftest.
$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12416 if (sizeof (ino_t))
12422 rm -f conftest.
$ac_objext
12423 if { (ac_try
="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12429 $as_echo "$ac_try_echo") >&5
12430 (eval "$ac_compile") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest.$ac_objext; then
12440 cat >conftest.$ac_ext <<_ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h. */
12446 $ac_includes_default
12450 if (sizeof ((ino_t)))
12456 rm -f conftest.$ac_objext
12457 if { (ac_try="$ac_compile"
12458 case "(($ac_try" in
12459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12460 *) ac_try_echo
=$ac_try;;
12462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12463 $as_echo "$ac_try_echo") >&5
12464 (eval "$ac_compile") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1
>conftest.err
12468 cat conftest.err
>&5
12469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } && {
12471 test -z "$ac_c_werror_flag" ||
12472 test ! -s conftest.err
12473 } && test -s conftest.
$ac_objext; then
12476 $as_echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.
$ac_ext >&5
12479 ac_cv_type_ino_t
=yes
12482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.
$ac_ext >&5
12490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12492 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12493 $as_echo "$ac_cv_type_ino_t" >&6; }
12494 if test "x$ac_cv_type_ino_t" = x
""yes; then
12498 cat >>confdefs.h
<<_ACEOF
12504 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12505 $as_echo_n "checking for dev_t... " >&6; }
12506 if test "${ac_cv_type_dev_t+set}" = set; then
12507 $as_echo_n "(cached) " >&6
12509 ac_cv_type_dev_t
=no
12510 cat >conftest.
$ac_ext <<_ACEOF
12513 cat confdefs.h
>>conftest.
$ac_ext
12514 cat >>conftest.
$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12520 if (sizeof (dev_t))
12526 rm -f conftest.
$ac_objext
12527 if { (ac_try
="$ac_compile"
12528 case "(($ac_try" in
12529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12544 cat >conftest.$ac_ext <<_ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 $ac_includes_default
12554 if (sizeof ((dev_t)))
12560 rm -f conftest.$ac_objext
12561 if { (ac_try="$ac_compile"
12562 case "(($ac_try" in
12563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12564 *) ac_try_echo
=$ac_try;;
12566 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12567 $as_echo "$ac_try_echo") >&5
12568 (eval "$ac_compile") 2>conftest.er1
12570 grep -v '^ *+' conftest.er1
>conftest.err
12572 cat conftest.err
>&5
12573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } && {
12575 test -z "$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12577 } && test -s conftest.
$ac_objext; then
12580 $as_echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12583 ac_cv_type_dev_t
=yes
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12588 $as_echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.
$ac_ext >&5
12594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12596 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12597 $as_echo "$ac_cv_type_dev_t" >&6; }
12598 if test "x$ac_cv_type_dev_t" = x
""yes; then
12602 cat >>confdefs.h
<<_ACEOF
12603 #define dev_t unsigned
12609 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12610 $as_echo_n "checking for rlim_t... " >&6; }
12611 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12612 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12613 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12615 cat >conftest.
$ac_ext <<_ACEOF
12618 cat confdefs.h
>>conftest.
$ac_ext
12619 cat >>conftest.
$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12622 #include <sys/types.h>
12624 # include <stdlib.h>
12625 # include <stddef.h>
12627 #ifdef HAVE_SYS_RESOURCE_H
12628 # include <sys/resource.h>
12632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12633 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12634 ac_cv_type_rlim_t
=yes
12636 ac_cv_type_rlim_t
=no
12640 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12641 $as_echo "$ac_cv_type_rlim_t" >&6; }
12643 if test $ac_cv_type_rlim_t = no
; then
12644 cat >> confdefs.h
<<\EOF
12645 #define rlim_t unsigned long
12649 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12650 $as_echo_n "checking for stack_t... " >&6; }
12651 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12652 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12653 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12655 cat >conftest.
$ac_ext <<_ACEOF
12658 cat confdefs.h
>>conftest.
$ac_ext
12659 cat >>conftest.
$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 #include <sys/types.h>
12664 # include <stdlib.h>
12665 # include <stddef.h>
12667 #include <signal.h>
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671 $EGREP "stack_t" >/dev
/null
2>&1; then
12672 ac_cv_type_stack_t
=yes
12674 ac_cv_type_stack_t
=no
12678 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12679 $as_echo "$ac_cv_type_stack_t" >&6; }
12681 if test $ac_cv_type_stack_t = no
; then
12682 cat >> confdefs.h
<<\EOF
12683 #define stack_t struct sigaltstack
12687 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12688 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12689 cat >conftest.
$ac_ext <<_ACEOF
12692 cat confdefs.h
>>conftest.
$ac_ext
12693 cat >>conftest.
$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12696 #include <sys/types.h>
12698 # include <stdlib.h>
12699 # include <stddef.h>
12701 #include <signal.h>
12702 #include "confdefs.h"
12707 stack_t sigstk; sigstk.ss_base = 0;
12712 rm -f conftest.
$ac_objext
12713 if { (ac_try
="$ac_compile"
12714 case "(($ac_try" in
12715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12716 *) ac_try_echo=$ac_try;;
12718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12719 $as_echo "$ac_try_echo") >&5
12720 (eval "$ac_compile") 2>conftest.er1
12722 grep -v '^ *+' conftest.er1 >conftest.err
12724 cat conftest.err >&5
12725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } && {
12727 test -z "$ac_c_werror_flag" ||
12728 test ! -s conftest.err
12729 } && test -s conftest.$ac_objext; then
12730 { $as_echo "$as_me:$LINENO: result: yes" >&5
12731 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12732 #define HAVE_SS_BASE 1
12736 $as_echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 { $as_echo "$as_me:$LINENO: result: no" >&5
12740 $as_echo "no" >&6; }
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12747 $as_echo_n "checking --with-tlib argument... " >&6; }
12749 # Check whether --with-tlib was given.
12750 if test "${with_tlib+set}" = set; then
12751 withval=$with_tlib;
12754 if test -n "$with_tlib"; then
12755 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12756 $as_echo "$with_tlib" >&6; }
12757 LIBS="$LIBS -l$with_tlib"
12758 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12759 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12779 *) ac_try_echo
=$ac_try;;
12781 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12782 $as_echo "$ac_try_echo") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1
>conftest.err
12787 cat conftest.err
>&5
12788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest
$ac_exeext && {
12793 test "$cross_compiling" = yes ||
12794 $as_test_x conftest
$ac_exeext
12796 { $as_echo "$as_me:$LINENO: result: OK" >&5
12797 $as_echo "OK" >&6; }
12799 $as_echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.
$ac_ext >&5
12802 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12803 $as_echo "$as_me: error: FAILED" >&2;}
12804 { (exit 1); exit 1; }; }
12807 rm -rf conftest.dSYM
12808 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12809 conftest
$ac_exeext conftest.
$ac_ext
12812 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12813 $as_echo "empty: automatic terminal library selection" >&6; }
12814 case "`uname -s 2>/dev/null`" in
12815 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12816 *) tlibs
="ncurses termlib termcap curses";;
12818 for libname
in $tlibs; do
12820 as_ac_Lib
=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12821 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12822 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12823 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12824 $as_echo_n "(cached) " >&6
12826 ac_check_lib_save_LIBS
=$LIBS
12827 LIBS
="-l${libname} $LIBS"
12828 cat >conftest.
$ac_ext <<_ACEOF
12831 cat confdefs.h
>>conftest.
$ac_ext
12832 cat >>conftest.
$ac_ext <<_ACEOF
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12850 rm -f conftest.
$ac_objext conftest
$ac_exeext
12851 if { (ac_try
="$ac_link"
12852 case "(($ac_try" in
12853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12857 $as_echo "$ac_try_echo") >&5
12858 (eval "$ac_link") 2>conftest.er1
12860 grep -v '^ *+' conftest.er1 >conftest.err
12862 cat conftest.err >&5
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } && {
12865 test -z "$ac_c_werror_flag" ||
12866 test ! -s conftest.err
12867 } && test -s conftest$ac_exeext && {
12868 test "$cross_compiling" = yes ||
12869 $as_test_x conftest$ac_exeext
12871 eval "$as_ac_Lib=yes"
12873 $as_echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 eval "$as_ac_Lib=no"
12879 rm -rf conftest.dSYM
12880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12884 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12885 $as_echo "$as_val"'`
12886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12887 $as_echo "$ac_res" >&6; }
12888 as_val=`eval 'as_val=${'$as_ac_Lib'}
12889 $as_echo "$as_val"'`
12890 if test "x$as_val" = x""yes; then
12891 cat >>confdefs.h <<_ACEOF
12892 #define `$as_echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12895 LIBS="-l${libname} $LIBS"
12899 if test "x$olibs" != "x$LIBS"; then
12900 if test "$cross_compiling" = yes; then
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12910 #ifdef HAVE_TERMCAP_H
12911 # include <termcap.h>
12914 # include <stdlib.h>
12915 # include <stddef.h>
12917 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12919 rm -f conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12923 *) ac_try_echo
=$ac_try;;
12925 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12926 $as_echo "$ac_try_echo") >&5
12927 (eval "$ac_link") 2>&5
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12931 { (case "(($ac_try" in
12932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12936 $as_echo "$ac_try_echo") >&5
12937 (eval "$ac_try") 2>&5
12939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12943 $as_echo "$as_me: program exited with status $ac_status" >&5
12944 $as_echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12947 ( exit $ac_status )
12950 rm -rf conftest.dSYM
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955 if test "$res" = "OK"; then
12958 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12959 $as_echo "$libname library is not usable" >&6; }
12963 if test "x$olibs" = "x$LIBS"; then
12964 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12965 $as_echo "no terminal library found" >&6; }
12969 if test "x$olibs" = "x$LIBS"; then
12970 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12971 $as_echo_n "checking for tgetent()... " >&6; }
12972 cat >conftest.$ac_ext <<_ACEOF
12975 cat confdefs.h >>conftest.$ac_ext
12976 cat >>conftest.$ac_ext <<_ACEOF
12977 /* end confdefs.h. */
12982 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (ac_try="$ac_link"
12989 case "(($ac_try" in
12990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12991 *) ac_try_echo
=$ac_try;;
12993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12994 $as_echo "$ac_try_echo") >&5
12995 (eval "$ac_link") 2>conftest.er1
12997 grep -v '^ *+' conftest.er1
>conftest.err
12999 cat conftest.err
>&5
13000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_c_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest
$ac_exeext && {
13005 test "$cross_compiling" = yes ||
13006 $as_test_x conftest
$ac_exeext
13008 { $as_echo "$as_me:$LINENO: result: yes" >&5
13009 $as_echo "yes" >&6; }
13011 $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.
$ac_ext >&5
13014 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
13015 You need to install a terminal library; for example ncurses.
13016 Or specify the name of the library with --with-tlib." >&5
13017 $as_echo "$as_me: error: NOT FOUND!
13018 You need to install a terminal library; for example ncurses.
13019 Or specify the name of the library with --with-tlib." >&2;}
13020 { (exit 1); exit 1; }; }
13023 rm -rf conftest.dSYM
13024 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13025 conftest
$ac_exeext conftest.
$ac_ext
13028 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13029 $as_echo_n "checking whether we talk terminfo... " >&6; }
13030 if test "${vim_cv_terminfo+set}" = set; then
13031 $as_echo_n "(cached) " >&6
13034 if test "$cross_compiling" = yes; then
13036 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13037 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13038 { (exit 1); exit 1; }; }
13041 cat >conftest.
$ac_ext <<_ACEOF
13043 #include "confdefs.h"
13044 #ifdef HAVE_TERMCAP_H
13045 # include <termcap.h>
13047 #ifdef HAVE_STRING_H
13048 # include <string.h>
13051 # include <stdlib.h>
13052 # include <stddef.h>
13055 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13058 rm -f conftest
$ac_exeext
13059 if { (ac_try
="$ac_link"
13060 case "(($ac_try" in
13061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066 (eval "$ac_link") 2>&5
13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13070 { (case "(($ac_try" in
13071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13072 *) ac_try_echo
=$ac_try;;
13074 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13075 $as_echo "$ac_try_echo") >&5
13076 (eval "$ac_try") 2>&5
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13084 $as_echo "$as_me: program exited with status $ac_status" >&5
13085 $as_echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.
$ac_ext >&5
13088 ( exit $ac_status )
13090 vim_cv_terminfo
=yes
13093 rm -rf conftest.dSYM
13094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13100 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13101 $as_echo "$vim_cv_terminfo" >&6; }
13103 if test "x$vim_cv_terminfo" = "xyes" ; then
13104 cat >>confdefs.h
<<\_ACEOF
13110 if test "x$olibs" != "x$LIBS"; then
13111 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13112 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13113 if test "${vim_cv_tgent+set}" = set; then
13114 $as_echo_n "(cached) " >&6
13117 if test "$cross_compiling" = yes; then
13119 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13120 $as_echo "$as_me: error: failed to compile test program." >&2;}
13121 { (exit 1); exit 1; }; }
13124 cat >conftest.
$ac_ext <<_ACEOF
13126 #include "confdefs.h"
13127 #ifdef HAVE_TERMCAP_H
13128 # include <termcap.h>
13131 # include <stdlib.h>
13132 # include <stddef.h>
13135 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13138 rm -f conftest
$ac_exeext
13139 if { (ac_try
="$ac_link"
13140 case "(($ac_try" in
13141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13142 *) ac_try_echo=$ac_try;;
13144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13145 $as_echo "$ac_try_echo") >&5
13146 (eval "$ac_link") 2>&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13150 { (case "(($ac_try" in
13151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13152 *) ac_try_echo
=$ac_try;;
13154 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13155 $as_echo "$ac_try_echo") >&5
13156 (eval "$ac_try") 2>&5
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13164 $as_echo "$as_me: program exited with status $ac_status" >&5
13165 $as_echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.
$ac_ext >&5
13168 ( exit $ac_status )
13170 vim_cv_tgent
=non-zero
13173 rm -rf conftest.dSYM
13174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13180 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13181 $as_echo "$vim_cv_tgent" >&6; }
13183 if test "x$vim_cv_tgent" = "xzero" ; then
13184 cat >>confdefs.h
<<\_ACEOF
13185 #define TGETENT_ZERO_ERR 0
13191 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13192 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13193 cat >conftest.
$ac_ext <<_ACEOF
13196 cat confdefs.h
>>conftest.
$ac_ext
13197 cat >>conftest.
$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13200 #ifdef HAVE_TERMCAP_H
13201 # include <termcap.h>
13212 rm -f conftest.
$ac_objext conftest
$ac_exeext
13213 if { (ac_try
="$ac_link"
13214 case "(($ac_try" in
13215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13233 { $as_echo "$as_me:$LINENO: result: yes" >&5
13234 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_OSPEED 1
13239 $as_echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13242 { $as_echo "$as_me:$LINENO: result: no" >&5
13243 $as_echo "no" >&6; }
13244 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13245 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13253 #ifdef HAVE_TERMCAP_H
13254 # include <termcap.h>
13256 extern short ospeed;
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13270 *) ac_try_echo
=$ac_try;;
13272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274 (eval "$ac_link") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1
>conftest.err
13278 cat conftest.err
>&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest
$ac_exeext && {
13284 test "$cross_compiling" = yes ||
13285 $as_test_x conftest
$ac_exeext
13287 { $as_echo "$as_me:$LINENO: result: yes" >&5
13288 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13289 #define OSPEED_EXTERN 1
13293 $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.
$ac_ext >&5
13296 { $as_echo "$as_me:$LINENO: result: no" >&5
13297 $as_echo "no" >&6; }
13300 rm -rf conftest.dSYM
13301 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13302 conftest
$ac_exeext conftest.
$ac_ext
13306 rm -rf conftest.dSYM
13307 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13308 conftest
$ac_exeext conftest.
$ac_ext
13310 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
13311 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13312 cat >conftest.
$ac_ext <<_ACEOF
13315 cat confdefs.h
>>conftest.
$ac_ext
13316 cat >>conftest.
$ac_ext <<_ACEOF
13317 /* end confdefs.h. */
13319 #ifdef HAVE_TERMCAP_H
13320 # include <termcap.h>
13326 if (UP == 0 && BC == 0) PC = 1
13331 rm -f conftest.
$ac_objext conftest
$ac_exeext
13332 if { (ac_try
="$ac_link"
13333 case "(($ac_try" in
13334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13338 $as_echo "$ac_try_echo") >&5
13339 (eval "$ac_link") 2>conftest.er1
13341 grep -v '^ *+' conftest.er1 >conftest.err
13343 cat conftest.err >&5
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest$ac_exeext && {
13349 test "$cross_compiling" = yes ||
13350 $as_test_x conftest$ac_exeext
13352 { $as_echo "$as_me:$LINENO: result: yes" >&5
13353 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13354 #define HAVE_UP_BC_PC 1
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13361 { $as_echo "$as_me:$LINENO: result: no" >&5
13362 $as_echo "no" >&6; }
13363 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13364 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 #ifdef HAVE_TERMCAP_H
13373 # include <termcap.h>
13375 extern char *UP, *BC, PC;
13380 if (UP == 0 && BC == 0) PC = 1
13385 rm -f conftest.$ac_objext conftest$ac_exeext
13386 if { (ac_try="$ac_link"
13387 case "(($ac_try" in
13388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13389 *) ac_try_echo
=$ac_try;;
13391 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13392 $as_echo "$ac_try_echo") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1
>conftest.err
13397 cat conftest.err
>&5
13398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_c_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest
$ac_exeext && {
13403 test "$cross_compiling" = yes ||
13404 $as_test_x conftest
$ac_exeext
13406 { $as_echo "$as_me:$LINENO: result: yes" >&5
13407 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13408 #define UP_BC_PC_EXTERN 1
13412 $as_echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.
$ac_ext >&5
13415 { $as_echo "$as_me:$LINENO: result: no" >&5
13416 $as_echo "no" >&6; }
13419 rm -rf conftest.dSYM
13420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13421 conftest
$ac_exeext conftest.
$ac_ext
13425 rm -rf conftest.dSYM
13426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13427 conftest
$ac_exeext conftest.
$ac_ext
13429 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13430 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13431 cat >conftest.
$ac_ext <<_ACEOF
13434 cat confdefs.h
>>conftest.
$ac_ext
13435 cat >>conftest.
$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 #ifdef HAVE_TERMCAP_H
13439 # include <termcap.h>
13445 extern int xx(); tputs("test", 1, (outfuntype)xx)
13450 rm -f conftest.
$ac_objext
13451 if { (ac_try
="$ac_compile"
13452 case "(($ac_try" in
13453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13457 $as_echo "$ac_try_echo") >&5
13458 (eval "$ac_compile") 2>conftest.er1
13460 grep -v '^ *+' conftest.er1 >conftest.err
13462 cat conftest.err >&5
13463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && {
13465 test -z "$ac_c_werror_flag" ||
13466 test ! -s conftest.err
13467 } && test -s conftest.$ac_objext; then
13468 { $as_echo "$as_me:$LINENO: result: yes" >&5
13469 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13470 #define HAVE_OUTFUNTYPE 1
13474 $as_echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 { $as_echo "$as_me:$LINENO: result: no" >&5
13478 $as_echo "no" >&6; }
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13483 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13484 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13492 #include <sys/types.h>
13493 #include <sys/time.h>
13494 #include <sys/select.h>
13503 rm -f conftest.$ac_objext
13504 if { (ac_try="$ac_compile"
13505 case "(($ac_try" in
13506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13507 *) ac_try_echo
=$ac_try;;
13509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_compile") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1
>conftest.err
13515 cat conftest.err
>&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && {
13518 test -z "$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13520 } && test -s conftest.
$ac_objext; then
13521 { $as_echo "$as_me:$LINENO: result: yes" >&5
13522 $as_echo "yes" >&6; }
13523 cat >>confdefs.h
<<\_ACEOF
13524 #define SYS_SELECT_WITH_SYS_TIME 1
13528 $as_echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.
$ac_ext >&5
13531 { $as_echo "$as_me:$LINENO: result: no" >&5
13532 $as_echo "no" >&6; }
13535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13538 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13539 $as_echo_n "checking for /dev/ptc... " >&6; }
13540 if test -r /dev
/ptc
; then
13541 cat >>confdefs.h
<<\_ACEOF
13542 #define HAVE_DEV_PTC 1
13545 { $as_echo "$as_me:$LINENO: result: yes" >&5
13546 $as_echo "yes" >&6; }
13548 { $as_echo "$as_me:$LINENO: result: no" >&5
13549 $as_echo "no" >&6; }
13552 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13553 $as_echo_n "checking for SVR4 ptys... " >&6; }
13554 if test -c /dev
/ptmx
; then
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13565 ptsname(0);grantpt(0);unlockpt(0);
13570 rm -f conftest.
$ac_objext conftest
$ac_exeext
13571 if { (ac_try
="$ac_link"
13572 case "(($ac_try" in
13573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13577 $as_echo "$ac_try_echo") >&5
13578 (eval "$ac_link") 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && {
13585 test -z "$ac_c_werror_flag" ||
13586 test ! -s conftest.err
13587 } && test -s conftest$ac_exeext && {
13588 test "$cross_compiling" = yes ||
13589 $as_test_x conftest$ac_exeext
13591 { $as_echo "$as_me:$LINENO: result: yes" >&5
13592 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13593 #define HAVE_SVR4_PTYS 1
13597 $as_echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13600 { $as_echo "$as_me:$LINENO: result: no" >&5
13601 $as_echo "no" >&6; }
13604 rm -rf conftest.dSYM
13605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13606 conftest$ac_exeext conftest.$ac_ext
13608 { $as_echo "$as_me:$LINENO: result: no" >&5
13609 $as_echo "no" >&6; }
13612 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13613 $as_echo_n "checking for ptyranges... " >&6; }
13614 if test -d /dev/ptym ; then
13619 cat >conftest.$ac_ext <<_ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h. */
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "yes" >/dev/null 2>&1; then
13632 ptys=`echo /dev
/ptyp??
`
13634 ptys=`echo $pdir/pty??
`
13638 if test "$ptys" != "$pdir/pty??" ; then
13639 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13640 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13641 cat >>confdefs.h <<_ACEOF
13642 #define PTYRANGE0 "$p0"
13645 cat >>confdefs.h <<_ACEOF
13646 #define PTYRANGE1 "$p1"
13649 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13650 $as_echo "$p0 / $p1" >&6; }
13652 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13653 $as_echo "don't know" >&6; }
13657 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13658 $as_echo_n "checking default tty permissions/group... " >&6; }
13659 if test "${vim_cv_tty_group+set}" = set; then
13660 $as_echo_n "(cached) " >&6
13663 if test "$cross_compiling" = yes; then
13665 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13666 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13667 { (exit 1); exit 1; }; }
13670 cat >conftest.$ac_ext <<_ACEOF
13672 #include "confdefs.h"
13673 #include <sys/types.h>
13675 # include <stdlib.h>
13676 # include <stddef.h>
13678 #ifdef HAVE_UNISTD_H
13679 #include <unistd.h>
13681 #include <sys/stat.h>
13686 char *x,*ttyname();
13690 if (!(x = ttyname(0))) exit(1);
13691 if (stat(x, &sb)) exit(1);
13693 if (om & 002) exit(0);
13694 m = system("mesg y");
13695 if (m == -1 || m == 127) exit(1);
13696 if (stat(x, &sb)) exit(1);
13698 if (chmod(x, om)) exit(1);
13699 if (m & 002) exit(0);
13700 if (sb.st_gid == getgid()) exit(1);
13701 if (!(fp=fopen("conftest_grp", "w")))
13703 fprintf(fp, "%d\n", sb.st_gid);
13709 rm -f conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13713 *) ac_try_echo
=$ac_try;;
13715 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13716 $as_echo "$ac_try_echo") >&5
13717 (eval "$ac_link") 2>&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727 (eval "$ac_try") 2>&5
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13732 if test -f conftest_grp; then
13733 vim_cv_tty_group=`cat conftest_grp
`
13734 if test "x$vim_cv_tty_mode" = "x" ; then
13735 vim_cv_tty_mode=0620
13737 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13738 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13740 vim_cv_tty_group=world
13741 { $as_echo "$as_me:$LINENO: result: ptys are world accessible" >&5
13742 $as_echo "ptys are world accessible" >&6; }
13746 $as_echo "$as_me: program exited with status $ac_status" >&5
13747 $as_echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ( exit $ac_status )
13752 vim_cv_tty_group=world
13753 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessible" >&5
13754 $as_echo "can't determine - assume ptys are world accessible" >&6; }
13757 rm -rf conftest.dSYM
13758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13764 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13765 $as_echo "$vim_cv_tty_group" >&6; }
13768 if test "x$vim_cv_tty_group" != "xworld" ; then
13769 cat >>confdefs.h <<_ACEOF
13770 #define PTYGROUP $vim_cv_tty_group
13773 if test "x$vim_cv_tty_mode" = "x" ; then
13774 { { $as_echo "$as_me:$LINENO: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&5
13775 $as_echo "$as_me: error: It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" >&2;}
13776 { (exit 1); exit 1; }; }
13778 cat >>confdefs.h <<\_ACEOF
13779 #define PTYMODE 0620
13786 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13787 $as_echo_n "checking return type of signal handlers... " >&6; }
13788 if test "${ac_cv_type_signal+set}" = set; then
13789 $as_echo_n "(cached) " >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <sys/types.h>
13798 #include <signal.h>
13803 return *(signal (0, 0)) (0) == 1;
13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13812 *) ac_try_echo
=$ac_try;;
13814 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1
>conftest.err
13820 cat conftest.err
>&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest.
$ac_objext; then
13826 ac_cv_type_signal
=int
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.
$ac_ext >&5
13831 ac_cv_type_signal
=void
13834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13836 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13837 $as_echo "$ac_cv_type_signal" >&6; }
13839 cat >>confdefs.h
<<_ACEOF
13840 #define RETSIGTYPE $ac_cv_type_signal
13845 if test $ac_cv_type_signal = void
; then
13846 cat >>confdefs.h
<<\_ACEOF
13847 #define SIGRETURN return
13851 cat >>confdefs.h
<<\_ACEOF
13852 #define SIGRETURN return 0
13857 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13858 $as_echo_n "checking for struct sigcontext... " >&6; }
13859 cat >conftest.
$ac_ext <<_ACEOF
13862 cat confdefs.h
>>conftest.
$ac_ext
13863 cat >>conftest.
$ac_ext <<_ACEOF
13864 /* end confdefs.h. */
13866 #include <signal.h>
13869 struct sigcontext *scont;
13870 scont = (struct sigcontext *)0;
13881 rm -f conftest.
$ac_objext
13882 if { (ac_try
="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 { $as_echo "$as_me:$LINENO: result: yes" >&5
13900 $as_echo "yes" >&6; }
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_SIGCONTEXT 1
13906 $as_echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13909 { $as_echo "$as_me:$LINENO: result: no" >&5
13910 $as_echo "no" >&6; }
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13916 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13917 if test "${vim_cv_getcwd_broken+set}" = set; then
13918 $as_echo_n "(cached) " >&6
13921 if test "$cross_compiling" = yes; then
13923 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13924 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13925 { (exit 1); exit 1; }; }
13928 cat >conftest.$ac_ext <<_ACEOF
13930 #include "confdefs.h"
13931 #ifdef HAVE_UNISTD_H
13932 #include <unistd.h>
13934 char *dagger[] = { "IFS=pwd", 0 };
13938 extern char **environ;
13940 return getcwd(buffer, 500) ? 0 : 1;
13944 rm -f conftest$ac_exeext
13945 if { (ac_try="$ac_link"
13946 case "(($ac_try" in
13947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13948 *) ac_try_echo
=$ac_try;;
13950 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13951 $as_echo "$ac_try_echo") >&5
13952 (eval "$ac_link") 2>&5
13954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13956 { (case "(($ac_try" in
13957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_try") 2>&5
13964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; }; then
13967 vim_cv_getcwd_broken=no
13970 $as_echo "$as_me: program exited with status $ac_status" >&5
13971 $as_echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13974 ( exit $ac_status )
13976 vim_cv_getcwd_broken=yes
13979 rm -rf conftest.dSYM
13980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13986 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13987 $as_echo "$vim_cv_getcwd_broken" >&6; }
13989 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define BAD_GETCWD 1
14043 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
14044 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14045 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
14046 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14047 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14048 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14049 usleep utime utimes
14051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14052 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14053 $as_echo_n "checking for $ac_func... " >&6; }
14054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14055 $as_echo_n "(cached) " >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14065 #define $ac_func innocuous_$ac_func
14067 /* System header to define __stub macros and hopefully few prototypes,
14068 which can conflict with char $ac_func (); below.
14069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14070 <limits.h> exists even on freestanding compilers. */
14073 # include <limits.h>
14075 # include <assert.h>
14080 /* Override any GCC internal prototype to avoid an error.
14081 Use char because int might match the return type of a GCC
14082 builtin and then its argument prototype would still apply. */
14087 /* The GNU C library defines this for functions which it implements
14088 to always fail with ENOSYS. Some functions are actually named
14089 something starting with __ and the normal name is an alias. */
14090 #if defined __stub_$ac_func || defined __stub___$ac_func
14097 return $ac_func ();
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (ac_try="$ac_link"
14104 case "(($ac_try" in
14105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14106 *) ac_try_echo
=$ac_try;;
14108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14109 $as_echo "$ac_try_echo") >&5
14110 (eval "$ac_link") 2>conftest.er1
14112 grep -v '^ *+' conftest.er1
>conftest.err
14114 cat conftest.err
>&5
14115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest
$ac_exeext && {
14120 test "$cross_compiling" = yes ||
14121 $as_test_x conftest
$ac_exeext
14123 eval "$as_ac_var=yes"
14125 $as_echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.
$ac_ext >&5
14128 eval "$as_ac_var=no"
14131 rm -rf conftest.dSYM
14132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14133 conftest
$ac_exeext conftest.
$ac_ext
14135 ac_res
=`eval 'as_val=${'$as_ac_var'}
14136 $as_echo "$as_val"'`
14137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14138 $as_echo "$ac_res" >&6; }
14139 as_val
=`eval 'as_val=${'$as_ac_var'}
14140 $as_echo "$as_val"'`
14141 if test "x$as_val" = x
""yes; then
14142 cat >>confdefs.h
<<_ACEOF
14143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14150 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14151 $as_echo_n "checking for st_blksize... " >&6; }
14152 cat >conftest.
$ac_ext <<_ACEOF
14155 cat confdefs.h
>>conftest.
$ac_ext
14156 cat >>conftest.
$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <sys/types.h>
14159 #include <sys/stat.h>
14167 n = (int)st.st_blksize;
14172 rm -f conftest.
$ac_objext
14173 if { (ac_try
="$ac_compile"
14174 case "(($ac_try" in
14175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179 $as_echo "$ac_try_echo") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.$ac_objext; then
14190 { $as_echo "$as_me:$LINENO: result: yes" >&5
14191 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14192 #define HAVE_ST_BLKSIZE 1
14196 $as_echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 { $as_echo "$as_me:$LINENO: result: no" >&5
14200 $as_echo "no" >&6; }
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14206 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14207 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14208 $as_echo_n "(cached) " >&6
14211 if test "$cross_compiling" = yes; then
14213 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14214 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14215 { (exit 1); exit 1; }; }
14218 cat >conftest.$ac_ext <<_ACEOF
14220 #include "confdefs.h"
14222 # include <stdlib.h>
14223 # include <stddef.h>
14225 #include <sys/types.h>
14226 #include <sys/stat.h>
14227 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14230 rm -f conftest$ac_exeext
14231 if { (ac_try="$ac_link"
14232 case "(($ac_try" in
14233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14234 *) ac_try_echo
=$ac_try;;
14236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14237 $as_echo "$ac_try_echo") >&5
14238 (eval "$ac_link") 2>&5
14240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14253 vim_cv_stat_ignores_slash=yes
14256 $as_echo "$as_me: program exited with status $ac_status" >&5
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ( exit $ac_status )
14262 vim_cv_stat_ignores_slash=no
14265 rm -rf conftest.dSYM
14266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14272 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14273 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14275 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14276 cat >>confdefs.h <<\_ACEOF
14277 #define STAT_IGNORES_SLASH 1
14282 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14283 $as_echo_n "checking for iconv_open()... " >&6; }
14285 LIBS="$LIBS -liconv"
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14293 #ifdef HAVE_ICONV_H
14294 # include <iconv.h>
14300 iconv_open("fr", "to");
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14309 *) ac_try_echo
=$ac_try;;
14311 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14312 $as_echo "$ac_try_echo") >&5
14313 (eval "$ac_link") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1
>conftest.err
14317 cat conftest.err
>&5
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest
$ac_exeext && {
14323 test "$cross_compiling" = yes ||
14324 $as_test_x conftest
$ac_exeext
14326 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14327 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14328 #define HAVE_ICONV 1
14332 $as_echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.
$ac_ext >&5
14336 cat >conftest.
$ac_ext <<_ACEOF
14339 cat confdefs.h
>>conftest.
$ac_ext
14340 cat >>conftest.
$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14343 #ifdef HAVE_ICONV_H
14344 # include <iconv.h>
14350 iconv_open("fr", "to");
14355 rm -f conftest.
$ac_objext conftest
$ac_exeext
14356 if { (ac_try
="$ac_link"
14357 case "(($ac_try" in
14358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14362 $as_echo "$ac_try_echo") >&5
14363 (eval "$ac_link") 2>conftest.er1
14365 grep -v '^ *+' conftest.er1 >conftest.err
14367 cat conftest.err >&5
14368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } && {
14370 test -z "$ac_c_werror_flag" ||
14371 test ! -s conftest.err
14372 } && test -s conftest$ac_exeext && {
14373 test "$cross_compiling" = yes ||
14374 $as_test_x conftest$ac_exeext
14376 { $as_echo "$as_me:$LINENO: result: yes" >&5
14377 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14378 #define HAVE_ICONV 1
14382 $as_echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.$ac_ext >&5
14385 { $as_echo "$as_me:$LINENO: result: no" >&5
14386 $as_echo "no" >&6; }
14389 rm -rf conftest.dSYM
14390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14391 conftest$ac_exeext conftest.$ac_ext
14394 rm -rf conftest.dSYM
14395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14396 conftest$ac_exeext conftest.$ac_ext
14399 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14400 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14401 cat >conftest.$ac_ext <<_ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h. */
14408 #ifdef HAVE_LANGINFO_H
14409 # include <langinfo.h>
14415 char *cs = nl_langinfo(CODESET);
14420 rm -f conftest.$ac_objext conftest$ac_exeext
14421 if { (ac_try="$ac_link"
14422 case "(($ac_try" in
14423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14424 *) ac_try_echo
=$ac_try;;
14426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14427 $as_echo "$ac_try_echo") >&5
14428 (eval "$ac_link") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1
>conftest.err
14432 cat conftest.err
>&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } && {
14435 test -z "$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 } && test -s conftest
$ac_exeext && {
14438 test "$cross_compiling" = yes ||
14439 $as_test_x conftest
$ac_exeext
14441 { $as_echo "$as_me:$LINENO: result: yes" >&5
14442 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14443 #define HAVE_NL_LANGINFO_CODESET 1
14447 $as_echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.
$ac_ext >&5
14450 { $as_echo "$as_me:$LINENO: result: no" >&5
14451 $as_echo "no" >&6; }
14454 rm -rf conftest.dSYM
14455 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14456 conftest
$ac_exeext conftest.
$ac_ext
14459 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14460 $as_echo_n "checking for strtod in -lm... " >&6; }
14461 if test "${ac_cv_lib_m_strtod+set}" = set; then
14462 $as_echo_n "(cached) " >&6
14464 ac_check_lib_save_LIBS
=$LIBS
14466 cat >conftest.
$ac_ext <<_ACEOF
14469 cat confdefs.h
>>conftest.
$ac_ext
14470 cat >>conftest.
$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14488 rm -f conftest.
$ac_objext conftest
$ac_exeext
14489 if { (ac_try
="$ac_link"
14490 case "(($ac_try" in
14491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14495 $as_echo "$ac_try_echo") >&5
14496 (eval "$ac_link") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest$ac_exeext && {
14506 test "$cross_compiling" = yes ||
14507 $as_test_x conftest$ac_exeext
14509 ac_cv_lib_m_strtod=yes
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_cv_lib_m_strtod=no
14517 rm -rf conftest.dSYM
14518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14519 conftest$ac_exeext conftest.$ac_ext
14520 LIBS=$ac_check_lib_save_LIBS
14522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14523 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14524 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14525 cat >>confdefs.h <<_ACEOF
14526 #define HAVE_LIBM 1
14533 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14534 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14535 cat >conftest.$ac_ext <<_ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14546 # include <stdlib.h>
14547 # include <stddef.h>
14554 d = strtod("1.1", &s);
14559 d = pow(1.11, 2.22);
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (ac_try="$ac_link"
14571 case "(($ac_try" in
14572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14573 *) ac_try_echo
=$ac_try;;
14575 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577 (eval "$ac_link") 2>conftest.er1
14579 grep -v '^ *+' conftest.er1
>conftest.err
14581 cat conftest.err
>&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest
$ac_exeext && {
14587 test "$cross_compiling" = yes ||
14588 $as_test_x conftest
$ac_exeext
14590 { $as_echo "$as_me:$LINENO: result: yes" >&5
14591 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14592 #define HAVE_FLOAT_FUNCS 1
14596 $as_echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.
$ac_ext >&5
14599 { $as_echo "$as_me:$LINENO: result: no" >&5
14600 $as_echo "no" >&6; }
14603 rm -rf conftest.dSYM
14604 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14605 conftest
$ac_exeext conftest.
$ac_ext
14607 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14608 $as_echo_n "checking --disable-acl argument... " >&6; }
14609 # Check whether --enable-acl was given.
14610 if test "${enable_acl+set}" = set; then
14611 enableval
=$enable_acl;
14616 if test "$enable_acl" = "yes"; then
14617 { $as_echo "$as_me:$LINENO: result: no" >&5
14618 $as_echo "no" >&6; }
14619 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14620 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14621 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14622 $as_echo_n "(cached) " >&6
14624 ac_check_lib_save_LIBS
=$LIBS
14625 LIBS
="-lposix1e $LIBS"
14626 cat >conftest.
$ac_ext <<_ACEOF
14629 cat confdefs.h
>>conftest.
$ac_ext
14630 cat >>conftest.
$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14639 char acl_get_file ();
14643 return acl_get_file ();
14648 rm -f conftest.
$ac_objext conftest
$ac_exeext
14649 if { (ac_try
="$ac_link"
14650 case "(($ac_try" in
14651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14655 $as_echo "$ac_try_echo") >&5
14656 (eval "$ac_link") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest$ac_exeext && {
14666 test "$cross_compiling" = yes ||
14667 $as_test_x conftest$ac_exeext
14669 ac_cv_lib_posix1e_acl_get_file=yes
14671 $as_echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14674 ac_cv_lib_posix1e_acl_get_file=no
14677 rm -rf conftest.dSYM
14678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14679 conftest$ac_exeext conftest.$ac_ext
14680 LIBS=$ac_check_lib_save_LIBS
14682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14683 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14684 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14685 LIBS="$LIBS -lposix1e"
14687 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14688 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14689 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14690 $as_echo_n "(cached) " >&6
14692 ac_check_lib_save_LIBS=$LIBS
14694 cat >conftest.$ac_ext <<_ACEOF
14697 cat confdefs.h >>conftest.$ac_ext
14698 cat >>conftest.$ac_ext <<_ACEOF
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14707 char acl_get_file ();
14711 return acl_get_file ();
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14720 *) ac_try_echo
=$ac_try;;
14722 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14723 $as_echo "$ac_try_echo") >&5
14724 (eval "$ac_link") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1
>conftest.err
14728 cat conftest.err
>&5
14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest
$ac_exeext && {
14734 test "$cross_compiling" = yes ||
14735 $as_test_x conftest
$ac_exeext
14737 ac_cv_lib_acl_acl_get_file
=yes
14739 $as_echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.
$ac_ext >&5
14742 ac_cv_lib_acl_acl_get_file
=no
14745 rm -rf conftest.dSYM
14746 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14747 conftest
$ac_exeext conftest.
$ac_ext
14748 LIBS
=$ac_check_lib_save_LIBS
14750 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14751 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14752 if test "x$ac_cv_lib_acl_acl_get_file" = x
""yes; then
14754 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14755 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14756 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14757 $as_echo_n "(cached) " >&6
14759 ac_check_lib_save_LIBS
=$LIBS
14760 LIBS
="-lattr $LIBS"
14761 cat >conftest.
$ac_ext <<_ACEOF
14764 cat confdefs.h
>>conftest.
$ac_ext
14765 cat >>conftest.
$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14768 /* Override any GCC internal prototype to avoid an error.
14769 Use char because int might match the return type of a GCC
14770 builtin and then its argument prototype would still apply. */
14778 return fgetxattr ();
14783 rm -f conftest.
$ac_objext conftest
$ac_exeext
14784 if { (ac_try
="$ac_link"
14785 case "(($ac_try" in
14786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791 (eval "$ac_link") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest$ac_exeext && {
14801 test "$cross_compiling" = yes ||
14802 $as_test_x conftest$ac_exeext
14804 ac_cv_lib_attr_fgetxattr=yes
14806 $as_echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_cv_lib_attr_fgetxattr=no
14812 rm -rf conftest.dSYM
14813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14814 conftest$ac_exeext conftest.$ac_ext
14815 LIBS=$ac_check_lib_save_LIBS
14817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14818 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14819 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
14820 LIBS="$LIBS -lattr"
14828 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14829 $as_echo_n "checking for POSIX ACL support... " >&6; }
14830 cat >conftest.$ac_ext <<_ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14837 #include <sys/types.h>
14838 #ifdef HAVE_SYS_ACL_H
14839 # include <sys/acl.h>
14845 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14846 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (ac_try="$ac_link"
14854 case "(($ac_try" in
14855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14856 *) ac_try_echo
=$ac_try;;
14858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14859 $as_echo "$ac_try_echo") >&5
14860 (eval "$ac_link") 2>conftest.er1
14862 grep -v '^ *+' conftest.er1
>conftest.err
14864 cat conftest.err
>&5
14865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } && {
14867 test -z "$ac_c_werror_flag" ||
14868 test ! -s conftest.err
14869 } && test -s conftest
$ac_exeext && {
14870 test "$cross_compiling" = yes ||
14871 $as_test_x conftest
$ac_exeext
14873 { $as_echo "$as_me:$LINENO: result: yes" >&5
14874 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14875 #define HAVE_POSIX_ACL 1
14879 $as_echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.
$ac_ext >&5
14882 { $as_echo "$as_me:$LINENO: result: no" >&5
14883 $as_echo "no" >&6; }
14886 rm -rf conftest.dSYM
14887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14888 conftest
$ac_exeext conftest.
$ac_ext
14890 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14891 $as_echo_n "checking for Solaris ACL support... " >&6; }
14892 cat >conftest.
$ac_ext <<_ACEOF
14895 cat confdefs.h
>>conftest.
$ac_ext
14896 cat >>conftest.
$ac_ext <<_ACEOF
14897 /* end confdefs.h. */
14899 #ifdef HAVE_SYS_ACL_H
14900 # include <sys/acl.h>
14905 acl("foo", GETACLCNT, 0, NULL);
14911 rm -f conftest.
$ac_objext conftest
$ac_exeext
14912 if { (ac_try
="$ac_link"
14913 case "(($ac_try" in
14914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14915 *) ac_try_echo=$ac_try;;
14917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14918 $as_echo "$ac_try_echo") >&5
14919 (eval "$ac_link") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest$ac_exeext && {
14929 test "$cross_compiling" = yes ||
14930 $as_test_x conftest$ac_exeext
14932 { $as_echo "$as_me:$LINENO: result: yes" >&5
14933 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14934 #define HAVE_SOLARIS_ACL 1
14938 $as_echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 { $as_echo "$as_me:$LINENO: result: no" >&5
14942 $as_echo "no" >&6; }
14945 rm -rf conftest.dSYM
14946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14947 conftest$ac_exeext conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14950 $as_echo_n "checking for AIX ACL support... " >&6; }
14951 cat >conftest.$ac_ext <<_ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14959 # include <stdlib.h>
14960 # include <stddef.h>
14962 #ifdef HAVE_SYS_ACL_H
14963 # include <sys/acl.h>
14965 #ifdef HAVE_SYS_ACCESS_H
14966 # include <sys/access.h>
14968 #define _ALL_SOURCE
14970 #include <sys/stat.h>
14973 struct acl *aclent;
14977 aclsize = sizeof(struct acl);
14978 aclent = (void *)malloc(aclsize);
14979 statacl("foo", STX_NORMAL, aclent, aclsize);
14985 rm -f conftest.$ac_objext conftest$ac_exeext
14986 if { (ac_try="$ac_link"
14987 case "(($ac_try" in
14988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14989 *) ac_try_echo
=$ac_try;;
14991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14992 $as_echo "$ac_try_echo") >&5
14993 (eval "$ac_link") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1
>conftest.err
14997 cat conftest.err
>&5
14998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest
$ac_exeext && {
15003 test "$cross_compiling" = yes ||
15004 $as_test_x conftest
$ac_exeext
15006 { $as_echo "$as_me:$LINENO: result: yes" >&5
15007 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15008 #define HAVE_AIX_ACL 1
15012 $as_echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.
$ac_ext >&5
15015 { $as_echo "$as_me:$LINENO: result: no" >&5
15016 $as_echo "no" >&6; }
15019 rm -rf conftest.dSYM
15020 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15021 conftest
$ac_exeext conftest.
$ac_ext
15023 { $as_echo "$as_me:$LINENO: result: yes" >&5
15024 $as_echo "yes" >&6; }
15027 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15028 $as_echo_n "checking --disable-gpm argument... " >&6; }
15029 # Check whether --enable-gpm was given.
15030 if test "${enable_gpm+set}" = set; then
15031 enableval
=$enable_gpm;
15037 if test "$enable_gpm" = "yes"; then
15038 { $as_echo "$as_me:$LINENO: result: no" >&5
15039 $as_echo "no" >&6; }
15040 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15041 $as_echo_n "checking for gpm... " >&6; }
15042 if test "${vi_cv_have_gpm+set}" = set; then
15043 $as_echo_n "(cached) " >&6
15045 olibs
="$LIBS" ; LIBS
="-lgpm"
15046 cat >conftest.
$ac_ext <<_ACEOF
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15053 #include <linux/keyboard.h>
15057 Gpm_GetLibVersion(NULL);
15062 rm -f conftest.
$ac_objext conftest
$ac_exeext
15063 if { (ac_try
="$ac_link"
15064 case "(($ac_try" in
15065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15066 *) ac_try_echo=$ac_try;;
15068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15069 $as_echo "$ac_try_echo") >&5
15070 (eval "$ac_link") 2>conftest.er1
15072 grep -v '^ *+' conftest.er1 >conftest.err
15074 cat conftest.err >&5
15075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest$ac_exeext && {
15080 test "$cross_compiling" = yes ||
15081 $as_test_x conftest$ac_exeext
15085 $as_echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15091 rm -rf conftest.dSYM
15092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15093 conftest$ac_exeext conftest.$ac_ext
15097 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15098 $as_echo "$vi_cv_have_gpm" >&6; }
15099 if test $vi_cv_have_gpm = yes; then
15101 cat >>confdefs.h <<\_ACEOF
15107 { $as_echo "$as_me:$LINENO: result: yes" >&5
15108 $as_echo "yes" >&6; }
15111 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15112 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15113 # Check whether --enable-sysmouse was given.
15114 if test "${enable_sysmouse+set}" = set; then
15115 enableval=$enable_sysmouse;
15117 enable_sysmouse="yes"
15121 if test "$enable_sysmouse" = "yes"; then
15122 { $as_echo "$as_me:$LINENO: result: no" >&5
15123 $as_echo "no" >&6; }
15124 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15125 $as_echo_n "checking for sysmouse... " >&6; }
15126 if test "${vi_cv_have_sysmouse+set}" = set; then
15127 $as_echo_n "(cached) " >&6
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <sys/consio.h>
15136 #include <signal.h>
15137 #include <sys/fbio.h>
15141 struct mouse_info mouse;
15142 mouse.operation = MOUSE_MODE;
15143 mouse.operation = MOUSE_SHOW;
15144 mouse.u.mode.mode = 0;
15145 mouse.u.mode.signal = SIGUSR2;
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15154 *) ac_try_echo
=$ac_try;;
15156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15157 $as_echo "$ac_try_echo") >&5
15158 (eval "$ac_link") 2>conftest.er1
15160 grep -v '^ *+' conftest.er1
>conftest.err
15162 cat conftest.err
>&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest
$ac_exeext && {
15168 test "$cross_compiling" = yes ||
15169 $as_test_x conftest
$ac_exeext
15171 vi_cv_have_sysmouse
=yes
15173 $as_echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.
$ac_ext >&5
15176 vi_cv_have_sysmouse
=no
15179 rm -rf conftest.dSYM
15180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15181 conftest
$ac_exeext conftest.
$ac_ext
15184 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15185 $as_echo "$vi_cv_have_sysmouse" >&6; }
15186 if test $vi_cv_have_sysmouse = yes; then
15187 cat >>confdefs.h
<<\_ACEOF
15188 #define HAVE_SYSMOUSE 1
15193 { $as_echo "$as_me:$LINENO: result: yes" >&5
15194 $as_echo "yes" >&6; }
15197 { $as_echo "$as_me:$LINENO: checking for FD_CLOEXEC" >&5
15198 $as_echo_n "checking for FD_CLOEXEC... " >&6; }
15199 cat >conftest.
$ac_ext <<_ACEOF
15202 cat confdefs.h
>>conftest.
$ac_ext
15203 cat >>conftest.
$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 # include <fcntl.h>
15211 int flag = FD_CLOEXEC;
15216 rm -f conftest.
$ac_objext
15217 if { (ac_try
="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15223 $as_echo "$ac_try_echo") >&5
15224 (eval "$ac_compile") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest.$ac_objext; then
15234 { $as_echo "$as_me:$LINENO: result: yes" >&5
15235 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15236 #define HAVE_FD_CLOEXEC 1
15240 $as_echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15243 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15244 $as_echo "not usable" >&6; }
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15250 $as_echo_n "checking for rename... " >&6; }
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15261 rename("this", "that")
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15270 *) ac_try_echo
=$ac_try;;
15272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15273 $as_echo "$ac_try_echo") >&5
15274 (eval "$ac_link") 2>conftest.er1
15276 grep -v '^ *+' conftest.er1
>conftest.err
15278 cat conftest.err
>&5
15279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest
$ac_exeext && {
15284 test "$cross_compiling" = yes ||
15285 $as_test_x conftest
$ac_exeext
15287 { $as_echo "$as_me:$LINENO: result: yes" >&5
15288 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15289 #define HAVE_RENAME 1
15293 $as_echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.
$ac_ext >&5
15296 { $as_echo "$as_me:$LINENO: result: no" >&5
15297 $as_echo "no" >&6; }
15300 rm -rf conftest.dSYM
15301 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15302 conftest
$ac_exeext conftest.
$ac_ext
15304 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15305 $as_echo_n "checking for sysctl... " >&6; }
15306 cat >conftest.
$ac_ext <<_ACEOF
15309 cat confdefs.h
>>conftest.
$ac_ext
15310 cat >>conftest.
$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 #include <sys/types.h>
15313 #include <sys/sysctl.h>
15321 mib[1] = HW_USERMEM;
15323 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15329 rm -f conftest.
$ac_objext
15330 if { (ac_try
="$ac_compile"
15331 case "(($ac_try" in
15332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15336 $as_echo "$ac_try_echo") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1 >conftest.err
15341 cat conftest.err >&5
15342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest.$ac_objext; then
15347 { $as_echo "$as_me:$LINENO: result: yes" >&5
15348 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15349 #define HAVE_SYSCTL 1
15353 $as_echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15357 $as_echo "not usable" >&6; }
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15363 $as_echo_n "checking for sysinfo... " >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 #include <sys/types.h>
15371 #include <sys/sysinfo.h>
15375 struct sysinfo sinfo;
15378 (void)sysinfo(&sinfo);
15379 t = sinfo.totalram;
15385 rm -f conftest.$ac_objext
15386 if { (ac_try="$ac_compile"
15387 case "(($ac_try" in
15388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15389 *) ac_try_echo
=$ac_try;;
15391 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15392 $as_echo "$ac_try_echo") >&5
15393 (eval "$ac_compile") 2>conftest.er1
15395 grep -v '^ *+' conftest.er1
>conftest.err
15397 cat conftest.err
>&5
15398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } && {
15400 test -z "$ac_c_werror_flag" ||
15401 test ! -s conftest.err
15402 } && test -s conftest.
$ac_objext; then
15403 { $as_echo "$as_me:$LINENO: result: yes" >&5
15404 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15405 #define HAVE_SYSINFO 1
15409 $as_echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.
$ac_ext >&5
15412 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15413 $as_echo "not usable" >&6; }
15416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15418 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15419 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15420 cat >conftest.
$ac_ext <<_ACEOF
15423 cat confdefs.h
>>conftest.
$ac_ext
15424 cat >>conftest.
$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 #include <sys/types.h>
15427 #include <sys/sysinfo.h>
15431 struct sysinfo sinfo;
15432 sinfo.mem_unit = 1;
15438 rm -f conftest.
$ac_objext
15439 if { (ac_try
="$ac_compile"
15440 case "(($ac_try" in
15441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15445 $as_echo "$ac_try_echo") >&5
15446 (eval "$ac_compile") 2>conftest.er1
15448 grep -v '^ *+' conftest.er1 >conftest.err
15450 cat conftest.err >&5
15451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } && {
15453 test -z "$ac_c_werror_flag" ||
15454 test ! -s conftest.err
15455 } && test -s conftest.$ac_objext; then
15456 { $as_echo "$as_me:$LINENO: result: yes" >&5
15457 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_SYSINFO_MEM_UNIT 1
15462 $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15465 { $as_echo "$as_me:$LINENO: result: no" >&5
15466 $as_echo "no" >&6; }
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15472 $as_echo_n "checking for sysconf... " >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 #include <unistd.h>
15483 (void)sysconf(_SC_PAGESIZE);
15484 (void)sysconf(_SC_PHYS_PAGES);
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15494 *) ac_try_echo
=$ac_try;;
15496 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1
>conftest.err
15502 cat conftest.err
>&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.
$ac_objext; then
15508 { $as_echo "$as_me:$LINENO: result: yes" >&5
15509 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15510 #define HAVE_SYSCONF 1
15514 $as_echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.
$ac_ext >&5
15517 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15518 $as_echo "not usable" >&6; }
15521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15524 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15525 $as_echo_n "checking size of int... " >&6; }
15526 if test "${ac_cv_sizeof_int+set}" = set; then
15527 $as_echo_n "(cached) " >&6
15529 if test "$cross_compiling" = yes; then
15530 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15531 $as_echo "$as_me: error: failed to compile test program" >&2;}
15532 { (exit 1); exit 1; }; }
15534 cat >conftest.
$ac_ext <<_ACEOF
15537 cat confdefs.h
>>conftest.
$ac_ext
15538 cat >>conftest.
$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15543 # include <stdlib.h>
15544 # include <stddef.h>
15548 FILE *f=fopen("conftestval", "w");
15550 fprintf(f, "%d\n", (int)sizeof(int));
15554 rm -f conftest
$ac_exeext
15555 if { (ac_try
="$ac_link"
15556 case "(($ac_try" in
15557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15561 $as_echo "$ac_try_echo") >&5
15562 (eval "$ac_link") 2>&5
15564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15566 { (case "(($ac_try" in
15567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15568 *) ac_try_echo
=$ac_try;;
15570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572 (eval "$ac_try") 2>&5
15574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_cv_sizeof_int
=`cat conftestval`
15578 $as_echo "$as_me: program exited with status $ac_status" >&5
15579 $as_echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.
$ac_ext >&5
15582 ( exit $ac_status )
15585 rm -rf conftest.dSYM
15586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15592 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15593 $as_echo "$ac_cv_sizeof_int" >&6; }
15594 cat >>confdefs.h
<<_ACEOF
15595 #define SIZEOF_INT $ac_cv_sizeof_int
15601 #include "confdefs.h"
15602 #ifdef HAVE_STRING_H
15603 # include <string.h>
15606 # include <stdlib.h>
15607 # include <stddef.h>
15611 strcpy(buf, "abcdefghi");
15612 mch_memmove(buf, buf + 2, 3);
15613 if (strncmp(buf, "ababcf", 6))
15615 strcpy(buf, "abcdefghi");
15616 mch_memmove(buf + 2, buf, 3);
15617 if (strncmp(buf, "cdedef", 6))
15619 exit(0); /* libc version works properly. */
15622 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15623 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15624 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15625 $as_echo_n "(cached) " >&6
15628 if test "$cross_compiling" = yes; then
15630 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15631 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15632 { (exit 1); exit 1; }; }
15635 cat >conftest.
$ac_ext <<_ACEOF
15636 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15638 rm -f conftest
$ac_exeext
15639 if { (ac_try
="$ac_link"
15640 case "(($ac_try" in
15641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15645 $as_echo "$ac_try_echo") >&5
15646 (eval "$ac_link") 2>&5
15648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15652 *) ac_try_echo
=$ac_try;;
15654 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_try") 2>&5
15658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15661 vim_cv_memmove_handles_overlap
=yes
15664 $as_echo "$as_me: program exited with status $ac_status" >&5
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.
$ac_ext >&5
15668 ( exit $ac_status )
15670 vim_cv_memmove_handles_overlap
=no
15673 rm -rf conftest.dSYM
15674 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15680 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15681 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15683 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15684 cat >>confdefs.h
<<\_ACEOF
15685 #define USEMEMMOVE 1
15689 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15690 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15691 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15695 if test "$cross_compiling" = yes; then
15697 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15698 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15699 { (exit 1); exit 1; }; }
15702 cat >conftest.
$ac_ext <<_ACEOF
15703 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15705 rm -f conftest
$ac_exeext
15706 if { (ac_try
="$ac_link"
15707 case "(($ac_try" in
15708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713 (eval "$ac_link") 2>&5
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15719 *) ac_try_echo
=$ac_try;;
15721 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_try") 2>&5
15725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15728 vim_cv_bcopy_handles_overlap
=yes
15731 $as_echo "$as_me: program exited with status $ac_status" >&5
15732 $as_echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.
$ac_ext >&5
15735 ( exit $ac_status )
15737 vim_cv_bcopy_handles_overlap
=no
15740 rm -rf conftest.dSYM
15741 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15747 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15748 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15750 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15751 cat >>confdefs.h
<<\_ACEOF
15756 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15757 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15758 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15759 $as_echo_n "(cached) " >&6
15762 if test "$cross_compiling" = yes; then
15764 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15765 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15766 { (exit 1); exit 1; }; }
15769 cat >conftest.
$ac_ext <<_ACEOF
15770 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15772 rm -f conftest
$ac_exeext
15773 if { (ac_try
="$ac_link"
15774 case "(($ac_try" in
15775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15779 $as_echo "$ac_try_echo") >&5
15780 (eval "$ac_link") 2>&5
15782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15786 *) ac_try_echo
=$ac_try;;
15788 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15789 $as_echo "$ac_try_echo") >&5
15790 (eval "$ac_try") 2>&5
15792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; }; then
15795 vim_cv_memcpy_handles_overlap
=yes
15798 $as_echo "$as_me: program exited with status $ac_status" >&5
15799 $as_echo "$as_me: failed program was:" >&5
15800 sed 's/^/| /' conftest.
$ac_ext >&5
15802 ( exit $ac_status )
15804 vim_cv_memcpy_handles_overlap
=no
15807 rm -rf conftest.dSYM
15808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15814 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15815 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15817 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15818 cat >>confdefs.h
<<\_ACEOF
15819 #define USEMEMCPY 1
15828 if test "$enable_multibyte" = "yes"; then
15829 cflags_save
=$CFLAGS
15830 ldflags_save
=$LDFLAGS
15831 if test "x$x_includes" != "xNONE" ; then
15832 CFLAGS
="$CFLAGS -I$x_includes"
15833 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
15834 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15835 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15836 cat >conftest.
$ac_ext <<_ACEOF
15839 cat confdefs.h
>>conftest.
$ac_ext
15840 cat >>conftest.
$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 #include <X11/Xlocale.h>
15851 rm -f conftest.
$ac_objext
15852 if { (ac_try
="$ac_compile"
15853 case "(($ac_try" in
15854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15858 $as_echo "$ac_try_echo") >&5
15859 (eval "$ac_compile") 2>conftest.er1
15861 grep -v '^ *+' conftest.er1 >conftest.err
15863 cat conftest.err >&5
15864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest.$ac_objext; then
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15876 /* Override any GCC internal prototype to avoid an error.
15877 Use char because int might match the return type of a GCC
15878 builtin and then its argument prototype would still apply. */
15882 char _Xsetlocale ();
15886 return _Xsetlocale ();
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (ac_try="$ac_link"
15893 case "(($ac_try" in
15894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15895 *) ac_try_echo
=$ac_try;;
15897 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15898 $as_echo "$ac_try_echo") >&5
15899 (eval "$ac_link") 2>conftest.er1
15901 grep -v '^ *+' conftest.er1
>conftest.err
15903 cat conftest.err
>&5
15904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } && {
15906 test -z "$ac_c_werror_flag" ||
15907 test ! -s conftest.err
15908 } && test -s conftest
$ac_exeext && {
15909 test "$cross_compiling" = yes ||
15910 $as_test_x conftest
$ac_exeext
15912 { $as_echo "$as_me:$LINENO: result: yes" >&5
15913 $as_echo "yes" >&6; }
15914 cat >>confdefs.h
<<\_ACEOF
15919 $as_echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.
$ac_ext >&5
15922 { $as_echo "$as_me:$LINENO: result: no" >&5
15923 $as_echo "no" >&6; }
15926 rm -rf conftest.dSYM
15927 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15928 conftest
$ac_exeext conftest.
$ac_ext
15930 $as_echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.
$ac_ext >&5
15933 { $as_echo "$as_me:$LINENO: result: no" >&5
15934 $as_echo "no" >&6; }
15937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15939 CFLAGS
=$cflags_save
15940 LDFLAGS
=$ldflags_save
15943 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15944 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15945 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15946 $as_echo_n "(cached) " >&6
15948 ac_check_lib_save_LIBS
=$LIBS
15949 LIBS
="-lxpg4 $LIBS"
15950 cat >conftest.
$ac_ext <<_ACEOF
15953 cat confdefs.h
>>conftest.
$ac_ext
15954 cat >>conftest.
$ac_ext <<_ACEOF
15955 /* end confdefs.h. */
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply. */
15963 char _xpg4_setrunelocale ();
15967 return _xpg4_setrunelocale ();
15972 rm -f conftest.
$ac_objext conftest
$ac_exeext
15973 if { (ac_try
="$ac_link"
15974 case "(($ac_try" in
15975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15976 *) ac_try_echo=$ac_try;;
15978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15979 $as_echo "$ac_try_echo") >&5
15980 (eval "$ac_link") 2>conftest.er1
15982 grep -v '^ *+' conftest.er1 >conftest.err
15984 cat conftest.err >&5
15985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); } && {
15987 test -z "$ac_c_werror_flag" ||
15988 test ! -s conftest.err
15989 } && test -s conftest$ac_exeext && {
15990 test "$cross_compiling" = yes ||
15991 $as_test_x conftest$ac_exeext
15993 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15995 $as_echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_cv_lib_xpg4__xpg4_setrunelocale=no
16001 rm -rf conftest.dSYM
16002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16003 conftest$ac_exeext conftest.$ac_ext
16004 LIBS=$ac_check_lib_save_LIBS
16006 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
16007 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
16008 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then
16009 LIBS="$LIBS -lxpg4"
16013 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
16014 $as_echo_n "checking how to create tags... " >&6; }
16015 test -f tags && mv tags tags.save
16016 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
16017 TAGPRG="ctags -I INIT+ --fields=+S"
16020 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
16021 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
16022 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
16023 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
16024 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
16025 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
16026 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
16028 test -f tags.save && mv tags.save tags
16029 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
16030 $as_echo "$TAGPRG" >&6; }
16032 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
16033 $as_echo_n "checking how to run man with a section nr... " >&6; }
16035 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
16036 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
16037 $as_echo "$MANDEF" >&6; }
16038 if test "$MANDEF" = "man -s"; then
16039 cat >>confdefs.h <<\_ACEOF
16045 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
16046 $as_echo_n "checking --disable-nls argument... " >&6; }
16047 # Check whether --enable-nls was given.
16048 if test "${enable_nls+set}" = set; then
16049 enableval=$enable_nls;
16055 if test "$enable_nls" = "yes"; then
16056 { $as_echo "$as_me:$LINENO: result: no" >&5
16057 $as_echo "no" >&6; }
16059 INSTALL_LANGS=install-languages
16061 INSTALL_TOOL_LANGS=install-tool-languages
16064 # Extract the first word of "msgfmt", so it can be a program name with args.
16065 set dummy msgfmt; ac_word=$2
16066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16067 $as_echo_n "checking for $ac_word... " >&6; }
16068 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16069 $as_echo_n "(cached) " >&6
16071 if test -n "$MSGFMT"; then
16072 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16075 for as_dir in $PATH
16078 test -z "$as_dir" && as_dir=.
16079 for ac_exec_ext in '' $ac_executable_extensions; do
16080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16081 ac_cv_prog_MSGFMT="msgfmt"
16082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16091 MSGFMT=$ac_cv_prog_MSGFMT
16092 if test -n "$MSGFMT"; then
16093 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16094 $as_echo "$MSGFMT" >&6; }
16096 { $as_echo "$as_me:$LINENO: result: no" >&5
16097 $as_echo "no" >&6; }
16101 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16102 $as_echo_n "checking for NLS... " >&6; }
16103 if test -f po/Makefile; then
16105 if test -n "$MSGFMT"; then
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16112 #include <libintl.h>
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16131 grep -v '^ *+' conftest.er1
>conftest.err
16133 cat conftest.err
>&5
16134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
16138 } && test -s conftest
$ac_exeext && {
16139 test "$cross_compiling" = yes ||
16140 $as_test_x conftest
$ac_exeext
16142 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16143 $as_echo "gettext() works" >&6; }; have_gettext
="yes"
16145 $as_echo "$as_me: failed program was:" >&5
16146 sed 's/^/| /' conftest.
$ac_ext >&5
16149 LIBS
="$LIBS -lintl"
16150 cat >conftest.
$ac_ext <<_ACEOF
16153 cat confdefs.h
>>conftest.
$ac_ext
16154 cat >>conftest.
$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <libintl.h>
16165 rm -f conftest.
$ac_objext conftest
$ac_exeext
16166 if { (ac_try
="$ac_link"
16167 case "(($ac_try" in
16168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16172 $as_echo "$ac_try_echo") >&5
16173 (eval "$ac_link") 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest$ac_exeext && {
16183 test "$cross_compiling" = yes ||
16184 $as_test_x conftest$ac_exeext
16186 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16187 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
16189 $as_echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16193 $as_echo "gettext() doesn't work" >&6; };
16197 rm -rf conftest.dSYM
16198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16199 conftest$ac_exeext conftest.$ac_ext
16202 rm -rf conftest.dSYM
16203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16204 conftest$ac_exeext conftest.$ac_ext
16206 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16207 $as_echo "msgfmt not found - disabled" >&6; };
16209 if test $have_gettext = "yes"; then
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE_GETTEXT 1
16217 for ac_func in bind_textdomain_codeset
16219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16221 $as_echo_n "checking for $ac_func... " >&6; }
16222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16223 $as_echo_n "(cached) " >&6
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16233 #define $ac_func innocuous_$ac_func
16235 /* System header to define __stub macros and hopefully few prototypes,
16236 which can conflict with char $ac_func (); below.
16237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238 <limits.h> exists even on freestanding compilers. */
16241 # include <limits.h>
16243 # include <assert.h>
16248 /* Override any GCC internal prototype to avoid an error.
16249 Use char because int might match the return type of a GCC
16250 builtin and then its argument prototype would still apply. */
16255 /* The GNU C library defines this for functions which it implements
16256 to always fail with ENOSYS. Some functions are actually named
16257 something starting with __ and the normal name is an alias. */
16258 #if defined __stub_$ac_func || defined __stub___$ac_func
16265 return $ac_func ();
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16274 *) ac_try_echo
=$ac_try;;
16276 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16277 $as_echo "$ac_try_echo") >&5
16278 (eval "$ac_link") 2>conftest.er1
16280 grep -v '^ *+' conftest.er1
>conftest.err
16282 cat conftest.err
>&5
16283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } && {
16285 test -z "$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16287 } && test -s conftest
$ac_exeext && {
16288 test "$cross_compiling" = yes ||
16289 $as_test_x conftest
$ac_exeext
16291 eval "$as_ac_var=yes"
16293 $as_echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.
$ac_ext >&5
16296 eval "$as_ac_var=no"
16299 rm -rf conftest.dSYM
16300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16301 conftest
$ac_exeext conftest.
$ac_ext
16303 ac_res
=`eval 'as_val=${'$as_ac_var'}
16304 $as_echo "$as_val"'`
16305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16306 $as_echo "$ac_res" >&6; }
16307 as_val
=`eval 'as_val=${'$as_ac_var'}
16308 $as_echo "$as_val"'`
16309 if test "x$as_val" = x
""yes; then
16310 cat >>confdefs.h
<<_ACEOF
16311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16317 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16318 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16319 cat >conftest.
$ac_ext <<_ACEOF
16322 cat confdefs.h
>>conftest.
$ac_ext
16323 cat >>conftest.
$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <libintl.h>
16326 extern int _nl_msg_cat_cntr;
16330 ++_nl_msg_cat_cntr;
16335 rm -f conftest.
$ac_objext conftest
$ac_exeext
16336 if { (ac_try
="$ac_link"
16337 case "(($ac_try" in
16338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16342 $as_echo "$ac_try_echo") >&5
16343 (eval "$ac_link") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext && {
16353 test "$cross_compiling" = yes ||
16354 $as_test_x conftest$ac_exeext
16356 { $as_echo "$as_me:$LINENO: result: yes" >&5
16357 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_NL_MSG_CAT_CNTR 1
16362 $as_echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 { $as_echo "$as_me:$LINENO: result: no" >&5
16366 $as_echo "no" >&6; }
16369 rm -rf conftest.dSYM
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16374 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16375 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16378 { $as_echo "$as_me:$LINENO: result: yes" >&5
16379 $as_echo "yes" >&6; }
16382 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16383 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16384 $as_echo_n "checking for dlfcn.h... " >&6; }
16385 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16386 $as_echo_n "(cached) " >&6
16388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16389 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16391 # Is the header compilable?
16392 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16393 $as_echo_n "checking dlfcn.h usability... " >&6; }
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16407 *) ac_try_echo
=$ac_try;;
16409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16410 $as_echo "$ac_try_echo") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16413 grep -v '^ *+' conftest.er1
>conftest.err
16415 cat conftest.err
>&5
16416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } && {
16418 test -z "$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 } && test -s conftest.
$ac_objext; then
16421 ac_header_compiler
=yes
16423 $as_echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.
$ac_ext >&5
16426 ac_header_compiler
=no
16429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16430 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16431 $as_echo "$ac_header_compiler" >&6; }
16433 # Is the header present?
16434 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16435 $as_echo_n "checking dlfcn.h presence... " >&6; }
16436 cat >conftest.
$ac_ext <<_ACEOF
16439 cat confdefs.h
>>conftest.
$ac_ext
16440 cat >>conftest.
$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16444 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16445 case "(($ac_try" in
16446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16450 $as_echo "$ac_try_echo") >&5
16451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } >/dev/null && {
16458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16461 ac_header_preproc=yes
16463 $as_echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_header_preproc=no
16469 rm -f conftest.err conftest.$ac_ext
16470 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16471 $as_echo "$ac_header_preproc" >&6; }
16473 # So? What about this header?
16474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16476 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16477 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16478 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16479 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16480 ac_header_preproc=yes
16483 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16484 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16485 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16486 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16487 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16488 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16489 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16490 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16491 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16492 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16493 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16494 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16498 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16499 $as_echo_n "checking for dlfcn.h... " >&6; }
16500 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16501 $as_echo_n "(cached) " >&6
16503 ac_cv_header_dlfcn_h=$ac_header_preproc
16505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16506 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16509 if test "x$ac_cv_header_dlfcn_h" = x""yes; then
16512 if test "${ac_cv_header_dl_h+set}" = set; then
16513 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16514 $as_echo_n "checking for dl.h... " >&6; }
16515 if test "${ac_cv_header_dl_h+set}" = set; then
16516 $as_echo_n "(cached) " >&6
16518 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16519 $as_echo "$ac_cv_header_dl_h" >&6; }
16521 # Is the header compilable?
16522 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16523 $as_echo_n "checking dl.h usability... " >&6; }
16524 cat >conftest.$ac_ext <<_ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 $ac_includes_default
16533 rm -f conftest.$ac_objext
16534 if { (ac_try="$ac_compile"
16535 case "(($ac_try" in
16536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16537 *) ac_try_echo
=$ac_try;;
16539 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541 (eval "$ac_compile") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1
>conftest.err
16545 cat conftest.err
>&5
16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest.
$ac_objext; then
16551 ac_header_compiler
=yes
16553 $as_echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.
$ac_ext >&5
16556 ac_header_compiler
=no
16559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16560 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16561 $as_echo "$ac_header_compiler" >&6; }
16563 # Is the header present?
16564 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16565 $as_echo_n "checking dl.h presence... " >&6; }
16566 cat >conftest.
$ac_ext <<_ACEOF
16569 cat confdefs.h
>>conftest.
$ac_ext
16570 cat >>conftest.
$ac_ext <<_ACEOF
16571 /* end confdefs.h. */
16574 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16575 case "(($ac_try" in
16576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16580 $as_echo "$ac_try_echo") >&5
16581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); } >/dev/null && {
16588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16591 ac_header_preproc=yes
16593 $as_echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_header_preproc=no
16599 rm -f conftest.err conftest.$ac_ext
16600 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16601 $as_echo "$ac_header_preproc" >&6; }
16603 # So? What about this header?
16604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16606 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16607 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16608 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16609 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16610 ac_header_preproc=yes
16613 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16614 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16615 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16616 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16617 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16618 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16619 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16620 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16621 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16622 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16623 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16624 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16628 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16629 $as_echo_n "checking for dl.h... " >&6; }
16630 if test "${ac_cv_header_dl_h+set}" = set; then
16631 $as_echo_n "(cached) " >&6
16633 ac_cv_header_dl_h=$ac_header_preproc
16635 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16636 $as_echo "$ac_cv_header_dl_h" >&6; }
16639 if test "x$ac_cv_header_dl_h" = x""yes; then
16647 if test x${DLL} = xdlfcn.h; then
16649 cat >>confdefs.h <<\_ACEOF
16650 #define HAVE_DLFCN_H 1
16653 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16654 $as_echo_n "checking for dlopen()... " >&6; }
16655 cat >conftest.$ac_ext <<_ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16666 extern void* dlopen();
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16677 *) ac_try_echo
=$ac_try;;
16679 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681 (eval "$ac_link") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1
>conftest.err
16685 cat conftest.err
>&5
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest
$ac_exeext && {
16691 test "$cross_compiling" = yes ||
16692 $as_test_x conftest
$ac_exeext
16694 { $as_echo "$as_me:$LINENO: result: yes" >&5
16695 $as_echo "yes" >&6; };
16697 cat >>confdefs.h
<<\_ACEOF
16698 #define HAVE_DLOPEN 1
16702 $as_echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.
$ac_ext >&5
16705 { $as_echo "$as_me:$LINENO: result: no" >&5
16706 $as_echo "no" >&6; };
16707 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16708 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16711 cat >conftest.
$ac_ext <<_ACEOF
16714 cat confdefs.h
>>conftest.
$ac_ext
16715 cat >>conftest.
$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16722 extern void* dlopen();
16729 rm -f conftest.
$ac_objext conftest
$ac_exeext
16730 if { (ac_try
="$ac_link"
16731 case "(($ac_try" in
16732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737 (eval "$ac_link") 2>conftest.er1
16739 grep -v '^ *+' conftest.er1 >conftest.err
16741 cat conftest.err >&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && {
16744 test -z "$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 } && test -s conftest$ac_exeext && {
16747 test "$cross_compiling" = yes ||
16748 $as_test_x conftest$ac_exeext
16750 { $as_echo "$as_me:$LINENO: result: yes" >&5
16751 $as_echo "yes" >&6; };
16753 cat >>confdefs.h <<\_ACEOF
16754 #define HAVE_DLOPEN 1
16758 $as_echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 { $as_echo "$as_me:$LINENO: result: no" >&5
16762 $as_echo "no" >&6; };
16766 rm -rf conftest.dSYM
16767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16768 conftest$ac_exeext conftest.$ac_ext
16771 rm -rf conftest.dSYM
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16774 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16775 $as_echo_n "checking for dlsym()... " >&6; }
16776 cat >conftest.$ac_ext <<_ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16787 extern void* dlsym();
16794 rm -f conftest.$ac_objext conftest$ac_exeext
16795 if { (ac_try="$ac_link"
16796 case "(($ac_try" in
16797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16798 *) ac_try_echo
=$ac_try;;
16800 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16801 $as_echo "$ac_try_echo") >&5
16802 (eval "$ac_link") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1
>conftest.err
16806 cat conftest.err
>&5
16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } && {
16809 test -z "$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 } && test -s conftest
$ac_exeext && {
16812 test "$cross_compiling" = yes ||
16813 $as_test_x conftest
$ac_exeext
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816 $as_echo "yes" >&6; };
16818 cat >>confdefs.h
<<\_ACEOF
16819 #define HAVE_DLSYM 1
16823 $as_echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.
$ac_ext >&5
16826 { $as_echo "$as_me:$LINENO: result: no" >&5
16827 $as_echo "no" >&6; };
16828 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16829 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16832 cat >conftest.
$ac_ext <<_ACEOF
16835 cat confdefs.h
>>conftest.
$ac_ext
16836 cat >>conftest.
$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16843 extern void* dlsym();
16850 rm -f conftest.
$ac_objext conftest
$ac_exeext
16851 if { (ac_try
="$ac_link"
16852 case "(($ac_try" in
16853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16857 $as_echo "$ac_try_echo") >&5
16858 (eval "$ac_link") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } && {
16865 test -z "$ac_c_werror_flag" ||
16866 test ! -s conftest.err
16867 } && test -s conftest$ac_exeext && {
16868 test "$cross_compiling" = yes ||
16869 $as_test_x conftest$ac_exeext
16871 { $as_echo "$as_me:$LINENO: result: yes" >&5
16872 $as_echo "yes" >&6; };
16874 cat >>confdefs.h <<\_ACEOF
16875 #define HAVE_DLSYM 1
16879 $as_echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 { $as_echo "$as_me:$LINENO: result: no" >&5
16883 $as_echo "no" >&6; };
16887 rm -rf conftest.dSYM
16888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16889 conftest$ac_exeext conftest.$ac_ext
16892 rm -rf conftest.dSYM
16893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16894 conftest$ac_exeext conftest.$ac_ext
16895 elif test x${DLL} = xdl.h; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_DL_H 1
16901 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16902 $as_echo_n "checking for shl_load()... " >&6; }
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16914 extern void* shl_load();
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (ac_try="$ac_link"
16923 case "(($ac_try" in
16924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16925 *) ac_try_echo
=$ac_try;;
16927 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_link") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1
>conftest.err
16933 cat conftest.err
>&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest
$ac_exeext && {
16939 test "$cross_compiling" = yes ||
16940 $as_test_x conftest
$ac_exeext
16942 { $as_echo "$as_me:$LINENO: result: yes" >&5
16943 $as_echo "yes" >&6; };
16945 cat >>confdefs.h
<<\_ACEOF
16946 #define HAVE_SHL_LOAD 1
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.
$ac_ext >&5
16953 { $as_echo "$as_me:$LINENO: result: no" >&5
16954 $as_echo "no" >&6; };
16955 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16956 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16959 cat >conftest.
$ac_ext <<_ACEOF
16962 cat confdefs.h
>>conftest.
$ac_ext
16963 cat >>conftest.
$ac_ext <<_ACEOF
16964 /* end confdefs.h. */
16970 extern void* shl_load();
16977 rm -f conftest.
$ac_objext conftest
$ac_exeext
16978 if { (ac_try
="$ac_link"
16979 case "(($ac_try" in
16980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_link") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest$ac_exeext && {
16995 test "$cross_compiling" = yes ||
16996 $as_test_x conftest$ac_exeext
16998 { $as_echo "$as_me:$LINENO: result: yes" >&5
16999 $as_echo "yes" >&6; };
17001 cat >>confdefs.h <<\_ACEOF
17002 #define HAVE_SHL_LOAD 1
17006 $as_echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 { $as_echo "$as_me:$LINENO: result: no" >&5
17010 $as_echo "no" >&6; };
17014 rm -rf conftest.dSYM
17015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17016 conftest$ac_exeext conftest.$ac_ext
17019 rm -rf conftest.dSYM
17020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17021 conftest$ac_exeext conftest.$ac_ext
17024 for ac_header in setjmp.h
17026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17029 $as_echo_n "checking for $ac_header... " >&6; }
17030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17031 $as_echo_n "(cached) " >&6
17033 ac_res=`eval 'as_val=${'$as_ac_Header'}
17034 $as_echo "$as_val"'`
17035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17036 $as_echo "$ac_res" >&6; }
17038 # Is the header compilable?
17039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040 $as_echo_n "checking $ac_header usability... " >&6; }
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $ac_includes_default
17048 #include <$ac_header>
17050 rm -f conftest.$ac_objext
17051 if { (ac_try="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17054 *) ac_try_echo
=$ac_try;;
17056 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17057 $as_echo "$ac_try_echo") >&5
17058 (eval "$ac_compile") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1
>conftest.err
17062 cat conftest.err
>&5
17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest.
$ac_objext; then
17068 ac_header_compiler
=yes
17070 $as_echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.
$ac_ext >&5
17073 ac_header_compiler
=no
17076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17078 $as_echo "$ac_header_compiler" >&6; }
17080 # Is the header present?
17081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17082 $as_echo_n "checking $ac_header presence... " >&6; }
17083 cat >conftest.
$ac_ext <<_ACEOF
17086 cat confdefs.h
>>conftest.
$ac_ext
17087 cat >>conftest.
$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 #include <$ac_header>
17091 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
17105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17108 ac_header_preproc=yes
17110 $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17113 ac_header_preproc=no
17116 rm -f conftest.err conftest.$ac_ext
17117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118 $as_echo "$ac_header_preproc" >&6; }
17120 # So? What about this header?
17121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17127 ac_header_preproc=yes
17130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17146 $as_echo_n "checking for $ac_header... " >&6; }
17147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17148 $as_echo_n "(cached) " >&6
17150 eval "$as_ac_Header=\$ac_header_preproc"
17152 ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155 $as_echo "$ac_res" >&6; }
17158 as_val=`eval 'as_val=${'$as_ac_Header'}
17159 $as_echo "$as_val"'`
17160 if test "x$as_val" = x""yes; then
17161 cat >>confdefs.h <<_ACEOF
17162 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17170 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17171 if echo $LIBS | grep -e '-ldl' >/dev/null; then
17172 LIBS=`echo $LIBS |
sed s
/-ldl//`
17173 PERL_LIBS="$PERL_LIBS -ldl"
17177 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17178 && test "x$GUITYPE" != "xCARBONGUI"; then
17179 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17180 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17181 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
17182 || test "x$features" = "xhuge"; then
17183 LIBS="$LIBS -framework Carbon"
17184 { $as_echo "$as_me:$LINENO: result: yes" >&5
17185 $as_echo "yes" >&6; }
17187 { $as_echo "$as_me:$LINENO: result: no" >&5
17188 $as_echo "no" >&6; }
17191 if test "x$MACARCH" = "xboth"; then
17192 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17195 DEPEND_CFLAGS_FILTER=
17196 if test "$GCC" = yes; then
17197 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17198 $as_echo_n "checking for GCC 3 or later... " >&6; }
17199 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
17200 if test "$gccmajor" -gt "2"; then
17201 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
17202 { $as_echo "$as_me:$LINENO: result: yes" >&5
17203 $as_echo "yes" >&6; }
17205 { $as_echo "$as_me:$LINENO: result: no" >&5
17206 $as_echo "no" >&6; }
17208 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17209 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17210 if test "$gccmajor" -gt "3"; then
17211 CFLAGS=`echo "$CFLAGS" |
sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
17212 { $as_echo "$as_me:$LINENO: result: yes" >&5
17213 $as_echo "yes" >&6; }
17215 { $as_echo "$as_me:$LINENO: result: no" >&5
17216 $as_echo "no" >&6; }
17221 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
17223 cat >confcache <<\_ACEOF
17224 # This file is a shell script that caches the results of configure
17225 # tests run on this system so they can be shared between configure
17226 # scripts and configure runs, see configure's option --config-cache.
17227 # It is not useful on other systems. If it contains results you don't
17228 # want to keep, you may remove or edit it.
17230 # config.status only pays attention to the cache file if you give it
17231 # the --recheck option to rerun configure.
17233 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
17234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17235 # following values.
17239 # The following way of writing the cache mishandles newlines in values,
17240 # but we know of no workaround that is simple, portable, and efficient.
17241 # So, we kill variables containing newlines.
17242 # Ultrix sh set writes to stderr and can't be redirected directly,
17243 # and sets the high bit in the cache file unless we assign to the vars.
17245 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17246 eval ac_val
=\$
$ac_var
17250 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17254 _ | IFS | as_nl
) ;; #(
17255 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17256 *) $as_unset $ac_var ;;
17262 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17263 *${as_nl}ac_space
=\
*)
17264 # `set' does not quote correctly, so add quotes (double-quote
17265 # substitution turns \\\\ into \\, and sed turns \\ into \).
17268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17271 # `set' quotes correctly as required by POSIX, so do not add quotes.
17272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17285 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17286 if test -w "$cache_file"; then
17287 test "x$cache_file" != "x/dev/null" &&
17288 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17289 $as_echo "$as_me: updating cache $cache_file" >&6;}
17290 cat confcache
>$cache_file
17292 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17293 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17298 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17299 # Let make expand exec_prefix.
17300 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17302 DEFS
=-DHAVE_CONFIG_H
17306 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17307 # 1. Remove the extension, and $U if already installed.
17308 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17309 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17311 # will be set to the directory where LIBOBJS objects are built.
17312 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17313 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17315 LIBOBJS
=$ac_libobjs
17317 LTLIBOBJS
=$ac_ltlibobjs
17321 : ${CONFIG_STATUS=./config.status}
17323 ac_clean_files_save
=$ac_clean_files
17324 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17325 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17327 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17329 # Generated by $as_me.
17330 # Run this file to recreate the current configuration.
17331 # Compiler output produced by configure, useful for debugging
17332 # configure, is in config.log if it exists.
17335 ac_cs_recheck=false
17337 SHELL=\${CONFIG_SHELL-$SHELL}
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17341 ## --------------------- ##
17342 ## M4sh Initialization. ##
17343 ## --------------------- ##
17345 # Be more Bourne compatible
17346 DUALCASE
=1; export DUALCASE
# for MKS sh
17347 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17351 # is contrary to our usage. Disable this feature.
17352 alias -g '${1+"$@"}'='"$@"'
17353 setopt NO_GLOB_SUBST
17355 case `(set -o) 2>/dev/null` in
17356 *posix
*) set -o posix
;;
17365 # Avoid depending upon Character Ranges.
17366 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17367 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17368 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17369 as_cr_digits
='0123456789'
17370 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17375 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17376 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17377 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17379 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17380 as_echo='printf %s
\n'
17381 as_echo_n='printf %s
'
17383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17384 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17385 as_echo_n='/usr
/ucb
/echo -n'
17387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17388 as_echo_n_body='eval
17392 expr "X$arg" : "X\\(.*\\)$as_nl";
17393 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17395 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17397 export as_echo_n_body
17398 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17400 export as_echo_body
17401 as_echo='sh
-c $as_echo_body as_echo
'
17404 # The user is always right.
17405 if test "${PATH_SEPARATOR+set}" != set; then
17407 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17408 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17413 # Support unset when possible.
17414 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17422 # We need space, tab and new line, in precisely that order. Quoting is
17423 # there to prevent editors from complaining about space-tab.
17424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17425 # splitting by setting IFS to empty value.)
17428 # Find who we are. Look in the path if we contain no directory separator.
17430 *[\\/]* ) as_myself=$0 ;;
17431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17432 for as_dir in $PATH
17435 test -z "$as_dir" && as_dir=.
17436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17442 # We did not find ourselves, most probably we were run as `sh COMMAND'
17443 # in which case we are not to be found in the path.
17444 if test "x$as_myself" = x
; then
17447 if test ! -f "$as_myself"; then
17448 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17449 { (exit 1); exit 1; }
17452 # Work around bugs in pre-3.0 UWIN ksh.
17453 for as_var
in ENV MAIL MAILPATH
17454 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17466 # Required to use basename.
17467 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17468 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17474 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17475 as_basename
=basename
17481 # Name of the executable.
17482 as_me
=`$as_basename -- "$0" ||
17483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17484 X"$0" : 'X\(//\)$' \| \
17485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17487 sed '/^.*\/\([^/][^/]*\)\/*$/{
17506 as_lineno_1
=$LINENO
17507 as_lineno_2
=$LINENO
17508 test "x$as_lineno_1" != "x$as_lineno_2" &&
17509 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17511 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17512 # uniformly replaced by the line number. The first 'sed' inserts a
17513 # line-number line after each line using $LINENO; the second 'sed'
17514 # does the real work. The second script uses 'N' to pair each
17515 # line-number line with the line containing $LINENO, and appends
17516 # trailing '-' during substitution so that $LINENO is not a special
17517 # case at line end.
17518 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17519 # scripts with optimization help from Paolo Bonzini. Blame Lee
17520 # E. McMahon (1931-1989) for sed's syntax. :-)
17532 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17535 ' >$as_me.lineno
&&
17536 chmod +x
"$as_me.lineno" ||
17537 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17538 { (exit 1); exit 1; }; }
17540 # Don't try to exec as it changes $[0], causing all sort of problems
17541 # (the dirname of $[0] is not the place where we might find the
17542 # original and so on. Autoconf is especially sensitive to this).
17543 .
"./$as_me.lineno"
17544 # Exit status is that of the last command.
17549 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17555 ECHO_C
= ECHO_N
= ECHO_T
=
17556 case `echo -n x` in
17558 case `echo 'x\c'` in
17559 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17565 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17566 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17572 rm -f conf$$ conf$$.exe conf$$.
file
17573 if test -d conf$$.dir
; then
17574 rm -f conf$$.dir
/conf$$.
file
17577 mkdir conf$$.dir
2>/dev
/null
17579 if (echo >conf$$.
file) 2>/dev
/null
; then
17580 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17582 # ... but there are two gotchas:
17583 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17584 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17585 # In both cases, we have to default to `cp -p'.
17586 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17588 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17596 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17597 rmdir conf$$.dir
2>/dev
/null
17599 if mkdir
-p .
2>/dev
/null
; then
17602 test -d .
/-p && rmdir .
/-p
17606 if test -x / >/dev
/null
2>&1; then
17607 as_test_x
='test -x'
17609 if ls -dL / >/dev
/null
2>&1; then
17616 if test -d "$1"; then
17622 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17623 ???[sx]*):;;*)false;;esac;fi
17627 as_executable_p
=$as_test_x
17629 # Sed expression to map a string onto a valid CPP name.
17630 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17632 # Sed expression to map a string onto a valid variable name.
17633 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17638 # Save the log message, to keep $[0] and so on meaningful, and to
17639 # report actual input values of CONFIG_FILES etc. instead of their
17640 # values after options handling.
17642 This file was extended by $as_me, which was
17643 generated by GNU Autoconf 2.63. Invocation command line was
17645 CONFIG_FILES = $CONFIG_FILES
17646 CONFIG_HEADERS = $CONFIG_HEADERS
17647 CONFIG_LINKS = $CONFIG_LINKS
17648 CONFIG_COMMANDS = $CONFIG_COMMANDS
17651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17656 case $ac_config_files in *"
17657 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17660 case $ac_config_headers in *"
17661 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17666 # Files that config.status was made for.
17667 config_files="$ac_config_files"
17668 config_headers="$ac_config_headers"
17672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17674 \`$as_me' instantiates files from templates according to the
17675 current configuration.
17677 Usage: $0 [OPTION]... [FILE]...
17679 -h, --help print this help, then exit
17680 -V, --version print version number and configuration settings, then exit
17681 -q, --quiet, --silent
17682 do not print progress messages
17683 -d, --debug don't remove temporary files
17684 --recheck update $as_me by reconfiguring in the same conditions
17685 --file=FILE[:TEMPLATE]
17686 instantiate the configuration file FILE
17687 --header=FILE[:TEMPLATE]
17688 instantiate the configuration header FILE
17690 Configuration files:
17693 Configuration headers:
17696 Report bugs to <bug-autoconf@gnu.org>."
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17702 configured by $0, generated by GNU Autoconf 2.63,
17703 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17705 Copyright (C) 2008 Free Software Foundation, Inc.
17706 This config.status script is free software; the Free Software Foundation
17707 gives unlimited permission to copy, distribute and modify it."
17712 test -n "\$AWK" || AWK=awk
17715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17716 # The default lists apply if the user does not specify any file.
17722 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17723 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17734 # Handling of the options.
17735 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17737 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17738 $as_echo "$ac_cs_version"; exit ;;
17739 --debug |
--debu |
--deb |
--de |
--d |
-d )
17741 --file |
--fil |
--fi |
--f )
17744 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17746 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17747 ac_need_defaults
=false
;;
17748 --header |
--heade |
--head |
--hea )
17751 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17753 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17754 ac_need_defaults
=false
;;
17756 # Conflict between --help and --header
17757 { $as_echo "$as_me: error: ambiguous option: $1
17758 Try \`$0 --help' for more information." >&2
17759 { (exit 1); exit 1; }; };;
17760 --help |
--hel |
-h )
17761 $as_echo "$ac_cs_usage"; exit ;;
17762 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17763 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17766 # This is an error.
17767 -*) { $as_echo "$as_me: error: unrecognized option: $1
17768 Try \`$0 --help' for more information." >&2
17769 { (exit 1); exit 1; }; } ;;
17771 *) ac_config_targets
="$ac_config_targets $1"
17772 ac_need_defaults
=false
;;
17778 ac_configure_extra_args
=
17780 if $ac_cs_silent; then
17782 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17787 if \$ac_cs_recheck; then
17788 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17790 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17791 CONFIG_SHELL='$SHELL'
17792 export CONFIG_SHELL
17797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17798 exec 5>>auto
/config.log
17801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17802 ## Running $as_me. ##
17808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17813 # Handling of arguments.
17814 for ac_config_target
in $ac_config_targets
17816 case $ac_config_target in
17817 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17818 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17820 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17821 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17822 { (exit 1); exit 1; }; };;
17827 # If the user did not use the arguments to specify the items to instantiate,
17828 # then the envvar interface is used. Set only those that are not.
17829 # We use the long form for the default assignment because of an extremely
17830 # bizarre bug on SunOS 4.1.3.
17831 if $ac_need_defaults; then
17832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17836 # Have a temporary directory for convenience. Make it in the build tree
17837 # simply because there is no reason against having it here, and in addition,
17838 # creating and moving files from /tmp can sometimes cause problems.
17839 # Hook for its removal unless debugging.
17840 # Note that there is a small window in which the directory will not be cleaned:
17841 # after its creation but before its name has been assigned to `$tmp'.
17845 trap 'exit_status=$?
17846 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17848 trap '{ (exit 1); exit 1; }' 1 2 13 15
17850 # Create a (secure) tmp directory for tmp files.
17853 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17854 test -n "$tmp" && test -d "$tmp"
17857 tmp
=.
/conf$$
-$RANDOM
17858 (umask 077 && mkdir
"$tmp")
17861 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17862 { (exit 1); exit 1; }
17865 # Set up the scripts for CONFIG_FILES section.
17866 # No need to generate them if there are no CONFIG_FILES.
17867 # This happens for instance with `./config.status config.h'.
17868 if test -n "$CONFIG_FILES"; then
17872 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17873 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17876 ac_cs_awk_cr
=$ac_cr
17879 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17884 echo "cat >conf$$subs.awk <<_ACEOF" &&
17885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17887 } >conf$$subs.sh ||
17888 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17889 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17890 { (exit 1); exit 1; }; }
17891 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17893 for ac_last_try in false false false false false :; do
17894 . ./conf$$subs.sh ||
17895 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17896 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17897 { (exit 1); exit 1; }; }
17899 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17900 if test $ac_delim_n = $ac_delim_num; then
17902 elif $ac_last_try; then
17903 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17904 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17905 { (exit 1); exit 1; }; }
17907 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17910 rm -f conf$$subs.sh
17912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17913 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17917 s/^/S["/; s
/!.
*/"]=/
17927 s/\(.\{148\}\).*/\1/
17929 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17934 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17941 s/\(.\{148\}\).*/\1/
17943 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17947 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17952 ' <conf$$subs.awk | sed '
17957 ' >>$CONFIG_STATUS || ac_write_fail=1
17958 rm -f conf$$subs.awk
17959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17961 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17962 for (key in S) S_is_set[key] = 1
17968 nfields = split(line, field, "@
")
17970 len = length(field[1])
17971 for (i = 2; i < nfields; i++) {
17973 keylen = length(key)
17974 if (S_is_set[key]) {
17976 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17977 len += length(value) + length(field[++i])
17988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17989 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17990 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17993 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17994 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
17995 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
17996 { (exit 1); exit 1; }; }
17999 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18000 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18001 # trailing colons and then remove the whole line if VPATH becomes empty
18002 # (actually we leave an empty line to preserve line numbers).
18003 if test "x
$srcdir" = x.; then
18004 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18005 s/:*\$(srcdir):*/:/
18006 s/:*\${srcdir}:*/:/
18008 s/^\([^=]*=[ ]*\):*/\1/
18014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 fi # test -n "$CONFIG_FILES"
18017 # Set up the scripts for CONFIG_HEADERS section.
18018 # No need to generate them if there are no CONFIG_HEADERS.
18019 # This happens for instance with `./config.status Makefile'.
18020 if test -n "$CONFIG_HEADERS"; then
18021 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18025 # Transform confdefs.h into an awk script `defines.awk', embedded as
18026 # here-document in config.status, that substitutes the proper values into
18027 # config.h.in to produce config.h.
18029 # Create a delimiter string that does not exist in confdefs.h, to ease
18030 # handling of long lines.
18032 for ac_last_try in false false :; do
18033 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18034 if test -z "$ac_t"; then
18036 elif $ac_last_try; then
18037 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
18038 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
18039 { (exit 1); exit 1; }; }
18041 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18045 # For the awk script, D is an array of macro values keyed by name,
18046 # likewise P contains macro parameters if any. Preserve backslash
18047 # newline sequences.
18049 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18051 s/.\{148\}/&'"$ac_delim"'/g
18054 s/^[ ]*#[ ]*define[ ][ ]*/ /
18061 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18063 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18068 D["\
1"]=" \
3\\\\\\n
"\\/p
18070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18075 s/.\{148\}/&'"$ac_delim"'/g
18080 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18083 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18085 ' <confdefs.h | sed '
18086 s/'"$ac_delim"'/"\\\
18087 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18090 for (key in D) D_is_set[key] = 1
18093 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18095 split(line, arg, " ")
18096 if (arg[1] == "#") {
18100 defundef
= substr
(arg
[1], 2)
18103 split(mac1
, mac2
, "(") #)
18105 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18106 if (D_is_set
[macro
]) {
18107 # Preserve the white space surrounding the "#".
18108 print prefix
"define", macro P
[macro
] D
[macro
]
18111 # Replace #undef with comments. This is necessary, for example,
18112 # in the case of _POSIX_SOURCE, which is predefined and required
18113 # on some systems where configure will not decide to define it.
18114 if (defundef
== "undef") {
18115 print
"/*", prefix defundef
, macro
, "*/"
18123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18124 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18125 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18126 { (exit 1); exit 1; }; }
18127 fi # test -n "$CONFIG_HEADERS"
18130 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
18135 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18137 case $ac_mode$ac_tag in
18139 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18140 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18141 { (exit 1); exit 1; }; };;
18142 :[FH
]-) ac_tag
=-:-;;
18143 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18160 -) ac_f
="$tmp/stdin";;
18161 *) # Look for the file first in the build tree, then in the source tree
18162 # (if the path is not absolute). The absolute path cannot be DOS-style,
18163 # because $ac_f cannot contain `:'.
18167 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18169 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18170 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18171 { (exit 1); exit 1; }; };;
18173 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18174 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18177 # Let's still pretend it is `configure' which instantiates (i.e., don't
18178 # use $as_me), people would be surprised to read:
18179 # /* config.h. Generated by config.status. */
18180 configure_input
='Generated from '`
18181 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18183 if test x
"$ac_file" != x-
; then
18184 configure_input
="$ac_file. $configure_input"
18185 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18186 $as_echo "$as_me: creating $ac_file" >&6;}
18188 # Neutralize special characters interpreted by sed in replacement strings.
18189 case $configure_input in #(
18190 *\
&* |
*\|
* |
*\\* )
18191 ac_sed_conf_input
=`$as_echo "$configure_input" |
18192 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18193 *) ac_sed_conf_input
=$configure_input;;
18197 *:-:* |
*:-) cat >"$tmp/stdin" \
18198 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18199 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18200 { (exit 1); exit 1; }; } ;;
18205 ac_dir
=`$as_dirname -- "$ac_file" ||
18206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18207 X"$ac_file" : 'X\(//\)[^/]' \| \
18208 X"$ac_file" : 'X\(//\)$' \| \
18209 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18210 $as_echo X"$ac_file" |
18211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18215 /^X\(\/\/\)[^/].*/{
18230 -*) as_dir
=.
/$as_dir;;
18232 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18236 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18237 *) as_qdir
=$as_dir;;
18239 as_dirs
="'$as_qdir' $as_dirs"
18240 as_dir
=`$as_dirname -- "$as_dir" ||
18241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18242 X"$as_dir" : 'X\(//\)[^/]' \| \
18243 X"$as_dir" : 'X\(//\)$' \| \
18244 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18245 $as_echo X"$as_dir" |
18246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18250 /^X\(\/\/\)[^/].*/{
18263 test -d "$as_dir" && break
18265 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18266 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18267 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18268 { (exit 1); exit 1; }; }; }
18272 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18274 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18275 # A ".." for each directory in $ac_dir_suffix.
18276 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18277 case $ac_top_builddir_sub in
18278 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18279 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18282 ac_abs_top_builddir
=$ac_pwd
18283 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18284 # for backward compatibility:
18285 ac_top_builddir
=$ac_top_build_prefix
18288 .
) # We are building in place.
18290 ac_top_srcdir
=$ac_top_builddir_sub
18291 ac_abs_top_srcdir
=$ac_pwd ;;
18292 [\\/]* | ?
:[\\/]* ) # Absolute name.
18293 ac_srcdir
=$srcdir$ac_dir_suffix;
18294 ac_top_srcdir
=$srcdir
18295 ac_abs_top_srcdir
=$srcdir ;;
18296 *) # Relative name.
18297 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18298 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18299 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18301 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18313 # If the template does not know about datarootdir, expand it.
18314 # FIXME: This hack should be removed a few years after 2.60.
18315 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18328 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18329 *datarootdir
*) ac_datarootdir_seen
=yes;;
18330 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18331 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18332 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18335 ac_datarootdir_hack='
18336 s&@datadir@&$datadir&g
18337 s&@docdir@&$docdir&g
18338 s&@infodir@&$infodir&g
18339 s&@localedir@&$localedir&g
18340 s&@mandir@&$mandir&g
18341 s&\\\${datarootdir}&$datarootdir&g' ;;
18345 # Neutralize VPATH when `$srcdir' = `.'.
18346 # Shell code in configure.ac might set extrasub.
18347 # FIXME: do we really want to maintain this feature?
18348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18349 ac_sed_extra="$ac_vpsub
18352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18354 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18355 s|@configure_input@|
$ac_sed_conf_input|
;t t
18356 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18357 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18358 s
&@srcdir@
&$ac_srcdir&;t t
18359 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18360 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18361 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18362 s
&@builddir@
&$ac_builddir&;t t
18363 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18364 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18365 $ac_datarootdir_hack
18367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18368 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18369 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18370 { (exit 1); exit 1; }; }
18372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18375 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18376 which seems to be undefined. Please make sure it is defined." >&5
18377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18378 which seems to be undefined. Please make sure it is defined." >&2;}
18382 -) cat "$tmp/out" && rm -f "$tmp/out";;
18383 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18385 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18386 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18387 { (exit 1); exit 1; }; }
18393 if test x"$ac_file" != x-; then
18395 $as_echo "/* $configure_input */" \
18396 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18397 } >"$tmp/config.h" \
18398 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18399 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18400 { (exit 1); exit 1; }; }
18401 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18402 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18403 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18406 mv "$tmp/config.h" "$ac_file" \
18407 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18408 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18409 { (exit 1); exit 1; }; }
18412 $as_echo "/* $configure_input */" \
18413 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18414 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18415 $as_echo "$as_me: error: could not create -" >&2;}
18416 { (exit 1); exit 1; }; }
18426 { (exit 0); exit 0; }
18428 chmod +x $CONFIG_STATUS
18429 ac_clean_files=$ac_clean_files_save
18431 test $ac_write_fail = 0 ||
18432 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18433 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18434 { (exit 1); exit 1; }; }
18437 # configure is writing to config.log, and then calls config.status.
18438 # config.status does its own redirection, appending to config.log.
18439 # Unfortunately, on DOS this fails, as config.log is still kept open
18440 # by configure, so config.status won't be able to
write to it
; its
18441 # output is simply discarded. So we exec the FD to /dev/null,
18442 # effectively closing config.log, so it can be properly (re)opened and
18443 # appended to by config.status. When coming back to configure, we
18444 # need to make the FD available again.
18445 if test "$no_create" != yes; then
18447 ac_config_status_args
=
18448 test "$silent" = yes &&
18449 ac_config_status_args
="$ac_config_status_args --quiet"
18451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18452 exec 5>>auto
/config.log
18453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18454 # would make configure fail if this is the last instruction.
18455 $ac_cs_success ||
{ (exit 1); exit 1; }
18457 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18458 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18459 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}